
    Mwg7                     p    d dl mZ d dlmZmZmZ d dlmZmZm	Z	 ddl
mZ  G d de      Z G d d	e      Zy
)    )Serialisable)TypedAliasSequence)RichTextProperties	ListStyle	Paragraph   )StrRefc                   ~    e Zd ZdZdZ ee      Z ed      Z	 ee
d      Z ee      Z ed      ZdZ	 	 	 dd
Zy	)RichTextz
    From the specification: 21.2.2.216

    This element specifies text formatting. The lstStyle element is not supported.
    rich)expected_typebodyPrTr   
allow_nonep)r   lstStyler   Nc                 `    |
t               }|| _        || _        |t               g}|| _        y N)r   r   r   r	   r   )selfr   r   r   s       J/var/www/horilla/myenv/lib/python3.12/site-packages/openpyxl/chart/text.py__init__zRichText.__init__%   s4    
 >')F 9A    NNN)__name__
__module____qualname____doc__tagnamer   r   r   r   
propertiesr   r   r   r	   r   
paragraphs__elements__r    r   r   r   r      sV     G!34FxJ9>Hy)AsJ.L r   r   c                   `     e Zd ZdZdZ eed      Z eed      Z	dZ
	 	 ddZd	 fd	Z xZS )
Textz}
    The value can be either a cell reference or a text element
    If both are present then the reference will be used.
    txTr   )strRefr   c                 8    || _         |
t               }|| _        y r   )r(   r   r   )r   r(   r   s      r   r   zText.__init__A   s     <:D	r   c                 d    | j                   r| j                  rd | _        t        |   |||      S r   )r(   r   superto_tree)r   r    idx	namespace	__class__s       r   r,   zText.to_treeK   s*    ;;499DIwwY77r   )NNr   )r   r   r   r   r    r   r   r(   r   r   r#   r   r,   __classcell__)r/   s   @r   r&   r&   3   sC    
 GD9FxD9D%L 8 8r   r&   N)!openpyxl.descriptors.serialisabler   openpyxl.descriptorsr   r   r   openpyxl.drawing.textr   r   r	   data_sourcer   r   r&   r$   r   r   <module>r5      s:    :    | @8< 8r   