
    Mwg                         d dl mZ d dlmZmZ d dlmZ d dlmZ ddl	m
Z
mZ ddlmZ ddlmZ d d	lmZmZmZmZmZ  G d
 de      Zd Z G d de      Zy)    )Serialisable)TypedAlias)ExtensionList)
NestedBool   )TextRichText)Layout)GraphicalProperties)	ParagraphRegularTextRun	LineBreakParagraphPropertiesCharacterPropertiesc                       e Zd ZdZ eed      Z ed      Z ee	d      Z
 ed      Z eed      Z ed      Z eed      Z ed      Z eed      ZdZ	 	 	 	 	 	 dd
Zy	)TitletitleT)expected_type
allow_nonetx)r   spPrtxPr)r   layoutoverlayr   r   Nc                 b    |
t               }|| _        || _        || _        || _        || _        y N)r	   r   r   r   r   r   )selfr   r   r   r   r   extLsts          K/var/www/horilla/myenv/lib/python3.12/site-packages/openpyxl/chart/title.py__init__zTitle.__init__(   s3     :B		    )NNNNNN)__name__
__module____qualname__tagnamer   r	   r   r   textr   r   r   r   r   r   graphicalPropertiesr
   r   bodyr   r   __elements__r!    r"   r    r   r      s    G	Td	3B;DD9FD)G2tDD-xD9D=D4@F>L r"   r   c                     t               }t               }t               |_        | j	                  d      D cg c]  }t        t        |      g|       }}||j                  j                  _	        |S c c}w )N
)t)rpPr)
r   r   r   defRPrsplitr   r   r   rich
paragraphs)r'   r   	parapropssparass        r    title_makerr8   :   sc    GE#%I*,IHL

SWHXY1Y.1-.I>YEY$EHHMML Zs   A5c                   &     e Zd ZeZdZ fdZ xZS )TitleDescriptorTc                 \    t        |t              rt        |      }t        |   ||       y r   )
isinstancestrr8   super__set__)r   instancevalue	__class__s      r    r?   zTitleDescriptor.__set__I   s%    eS!&E%(r"   )r#   r$   r%   r   r   r   r?   __classcell__)rB   s   @r    r:   r:   D   s    MJ) )r"   r:   N)!openpyxl.descriptors.serialisabler   openpyxl.descriptorsr   r   openpyxl.descriptors.excelr   openpyxl.descriptors.nestedr   r'   r	   r
   r   r   shapesr   openpyxl.drawing.textr   r   r   r   r   r   r8   r:   r+   r"   r    <module>rJ      sH    ;
 5 2    ' L B)e )r"   