o
    ðäj  ã                   @   s°   d Z ddlmZ ddlmZmZmZmZmZm	Z	m
Z
mZ ddlmZmZmZmZ ddlmZ G dd„ deƒZG dd	„ d	eƒZG d
d„ deƒZG dd„ deƒZG dd„ deƒZdS )z
Richtext definition
é    )ÚSerialisable)ÚAliasÚTypedÚIntegerÚSetÚNoneSetÚBoolÚStringÚSequence)Ú
NestedBoolÚNestedIntegerÚNestedStringÚ
NestedText)ÚFontc                   @   sB   e Zd ZdZeƒ Zeg d¢d�Zeg d¢d�Z			ddd„Z	dS )	ÚPhoneticPropertiesÚ
phoneticPr)ÚhalfwidthKatakanaÚfullwidthKatakanaÚHiraganaÚnoConversion)Úvalues)Ú	noControlÚleftÚcenterÚdistributedNc                 C   ó   || _ || _|| _d S ©N)ÚfontIdÚtypeÚ	alignment)Úselfr   r   r   © r!   úV/var/www/ticemtrilhas/avaliacao_env/lib/python3.10/site-packages/openpyxl/cell/text.pyÚ__init__$   ó   
zPhoneticProperties.__init__©NNN)
Ú__name__Ú
__module__Ú__qualname__Útagnamer   r   r   r   r   r#   r!   r!   r!   r"   r      s    ýr   c                   @   s>   e Zd ZdZeƒ Zeƒ Zeed�Z	e
dƒZ			ddd„ZdS )ÚPhoneticTextÚrPh)Úexpected_typeÚtNc                 C   r   r   )ÚsbÚebr-   )r    r.   r/   r-   r!   r!   r"   r#   7   r$   zPhoneticText.__init__r%   )r&   r'   r(   r)   r   r.   r/   r   Ústrr-   r   Útextr#   r!   r!   r!   r"   r*   .   s    
ýr*   c                   @   sž   e Zd ZdZdZedd�ZejZej	Z	ej
Z
ejZejZejZejZejZejZejZejZejZejZejZdZ															d	dd„ZdS )
Ú
InlineFontz�
    Font for inline text because, yes what you need are different objects with the same elements but different constraints.
    ÚRPrEltT)Ú
allow_none©ÚrFontÚcharsetÚfamilyÚbÚiÚstrikeÚoutlineÚshadowÚcondenseÚextendÚcolorÚszÚuÚ	vertAlignÚschemeNc                 C   s^   || _ || _|| _|| _|| _|| _|| _|| _|	| _|
| _	|| _
|| _|| _|| _|| _d S r   r5   )r    r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   r!   r!   r"   r#   ]   s   
zInlineFont.__init__)NNNNNNNNNNNNNNN)r&   r'   r(   Ú__doc__r)   r   r6   r   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   Ú__elements__r#   r!   r!   r!   r"   r2   A   sF    
ñr2   c                   @   sJ   e Zd ZdZeedd�ZedƒZe	e
dd�ZedƒZdZ		d
dd	„ZdS )ÚRichTextÚREltT©r,   r4   ÚrPrr-   ©rJ   r-   Nc                 C   s   || _ || _d S r   rK   )r    rJ   r-   r!   r!   r"   r#   Š   s   
zRichText.__init__)NN)r&   r'   r(   r)   r   r2   rJ   r   Úfontr   r0   r-   r1   rF   r#   r!   r!   r!   r"   rG      s    þrG   c                   @   s‚   e Zd ZdZeded�ZedƒZe	e
dd�ZedƒZe	edd�ZedƒZeedd�ZedƒZd	Z	
			
ddd„Zedd„ ƒZd
S )ÚTextr1   T)r4   r,   r-   rI   Úrr+   r   ©r-   rN   r+   r   Nr!   c                 C   s   || _ || _|| _|| _d S r   rO   )r    r-   rN   r+   r   r!   r!   r"   r#   ¡   s   
zText.__init__c                 C   sF   g }| j dur| | j ¡ | jD ]}|jdur| |j¡ qd |¡S )z1
        Text stripped of all formatting
        NÚ )ÚplainÚappendÚ	formattedr-   Újoin)r    ÚsnippetsÚblockr!   r!   r"   Úcontent­   s   


€
zText.content)Nr!   r!   N)r&   r'   r(   r)   r   r0   r-   r   rQ   r
   rG   rN   rS   r*   r+   Úphoneticr   r   r   rF   r#   ÚpropertyrW   r!   r!   r!   r"   rM   ’   s$    
ürM   N)rE   Ú!openpyxl.descriptors.serialisabler   Úopenpyxl.descriptorsr   r   r   r   r   r   r	   r
   Úopenpyxl.descriptors.nestedr   r   r   r   Úopenpyxl.styles.fontsr   r   r*   r2   rG   rM   r!   r!   r!   r"   Ú<module>   s   (
>