o
    ϩZh                     @   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)ZhalfwidthKatakanaZfullwidthKatakanaHiraganaZnoConversion)values)Z	noControlleftcenterdistributedNc                 C      || _ || _|| _d S N)fontIdtype	alignment)selfr   r   r    r   I/var/www/html/lang_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.
    ZRPrEltT)
allow_nonerFontcharsetfamilybistrikeoutlineshadowcondenseextendcolorszu	vertAlignschemeNc                 C   s^   || _ || _|| _|| _|| _|| _|| _|| _|	| _|
| _	|| _
|| _|| _|| _|| _d S r   r0   )r   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r   r   r   r   ]   s   
zInlineFont.__init__)NNNNNNNNNNNNNNN)r"   r#   r$   __doc__r%   r   r1   r   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   __elements__r   r   r   r   r   r.   A   sF    
r.   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 )RichTextZREltTr(   r/   rPrr)   rD   r)   Nc                 C   s   || _ || _d S r   rE   )r   rD   r)   r   r   r   r      s   
zRichText.__init__)NN)r"   r#   r$   r%   r   r.   rD   r   Zfontr   r,   r)   r-   rA   r   r   r   r   r   rB      s    rB   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 )Textr-   T)r/   r(   r)   rC   rr'   r   r)   rG   r'   r   Nr   c                 C   s   || _ || _|| _|| _d S r   rH   )r   r)   rG   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   Zsnippetsblockr   r   r   content   s   



zText.content)Nr   r   N)r"   r#   r$   r%   r   r,   r)   r   rJ   r
   rB   rG   rL   r&   r'   Zphoneticr   r   r   rA   r   propertyrO   r   r   r   r   rF      s$    
rF   N)r@   Z!openpyxl.descriptors.serialisabler   Zopenpyxl.descriptorsr   r   r   r   r   r   r	   r
   Zopenpyxl.descriptors.nestedr   r   r   r   Zopenpyxl.styles.fontsr   r   r&   r.   rB   rF   r   r   r   r   <module>   s   (
>