
    fh                         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dS )    )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d	S )TitletitleT)expected_type
allow_nonetx)r   spPrtxPr)r   layoutoverlayr   r   Nc                 l    |t                      }|| _        || _        || _        || _        || _        d S N)r	   r   r   r   r   r   )selfr   r   r   r   r   extLsts          K/var/www/histauto/venv/lib/python3.11/site-packages/openpyxl/chart/title.py__init__zTitle.__init__(   s9     :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	3	3	3B5;;DUD999FjD)))G52tDDDD%--5xD999D5==DU4@@@F>L      r"   r   c                     t                      }t                      t                      _        fd|                     d          D             }||j        j        _        |S )Nc                 P    g | ]"}t          t          |           g          #S ))t)rpPr)r   r   ).0s	parapropss     r    
<listcomp>ztitle_maker.<locals>.<listcomp>>   s4    YYY1Y.1---.I>>>YYYr"   
)r   r   r   defRPrsplitr   rich
paragraphs)r'   r   parasr3   s      @r    title_makerr;   :   s\    GGE#%%I*,,IYYYY

SWHXHXYYYE$EHMLr"   c                   &     e Zd ZeZdZ fdZ xZS )TitleDescriptorTc                     t          |t                    rt          |          }t                                          ||           d S r   )
isinstancestrr;   super__set__)r   instancevalue	__class__s      r    rB   zTitleDescriptor.__set__I   s@    eS!! 	'&&E%(((((r"   )r#   r$   r%   r   r   r   rB   __classcell__)rE   s   @r    r=   r=   D   sB        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   r;   r=   r+   r"   r    <module>rM      sW   ; : : : : :       
 5 4 4 4 4 4 2 2 2 2 2 2                       ' ' ' ' ' '                 L   B  ) ) ) ) )e ) ) ) ) )r"   