o
    g                     @   s   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 deZdd ZG dd deZdS )    )Serialisable)TypedAlias)ExtensionList)
NestedBool   )TextRichText)Layout)GraphicalProperties)	ParagraphRegularTextRun	LineBreakParagraphPropertiesCharacterPropertiesc                   @   s   e Zd ZdZeeddZedZee	ddZ
eddZeeddZedZeeddZedZeeddZdZ												dd
dZd	S )TitletitleT)expected_type
allow_nonetx)r   spPrtxPr)r   layoutoverlayr   r   Nc                 C   s0   |d u rt  }|| _|| _|| _|| _|| _d S N)r   r   r   r   r   r   )selfr   r   r   r   r   extLst r   N/var/www/html/api-tag/env/lib/python3.10/site-packages/openpyxl/chart/title.py__init__(   s   
zTitle.__init__)NNNNNN)__name__
__module____qualname__tagnamer   r   r   r   textr
   r   r   r   r   r   graphicalPropertiesr	   r   bodyr   r   __elements__r   r   r   r   r   r      s&    
r   c                    s:   t  }t  t  _ fdd| dD }||jj_|S )Nc                    s    g | ]}t t|d g dqS ))t)rpPr)r   r   ).0s	parapropsr   r   
<listcomp>>   s     ztitle_maker.<locals>.<listcomp>
)r   r   r   defRPrsplitr   rich
paragraphs)r$   r   parasr   r-   r   title_maker:   s   
r6   c                       s$   e Zd ZeZdZ fddZ  ZS )TitleDescriptorTc                    s$   t |tr	t|}t || d S r   )
isinstancestrr6   super__set__)r   instancevalue	__class__r   r   r;   I   s   
zTitleDescriptor.__set__)r    r!   r"   r   r   r   r;   __classcell__r   r   r>   r   r7   D   s    r7   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   r6   r7   r   r   r   r   <module>   s   	!
