a
    CgW                     @   s  d dl mZ d dlmZ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 d dlmZmZ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mZmZm Z  dd
l!m"Z"m#Z#m$Z$ d dl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,G dd deZ-G dd deZ.G dd deZ/G dd deZ0G dd  d eZ1G d!d" d"eZ2G d#d$ d$eZ3G d%d& d&eZ4G d'd( d(eZ5G d)d* d*eZ6G d+d, d,eZ7G d-d. d.eZ8G d/d0 d0eZ9G d1d2 d2eZ:d3S )4    )Serialisable)	AliasTypedSetNoneSetSequenceStringBoolMinMaxInteger)	HexBinary
CoordinateRelation)NestedInteger
NestedTextNestedValueEmptyTag)
DRAWING_NS   )ColorChoiceDescriptor)
EffectListEffectContainer)GradientFillPropertiesBlipFillPropertiesPatternFillPropertiesBlip)LinePropertiesColorScene3D)ExtensionList)
NestedBoolc                   @   s    e Zd ZeddZdddZdS )EmbeddedWAVAudioFileT
allow_noneNc                 C   s
   || _ d S N)name)selfr%    r'   T/var/www/lab.imftr.de/x/nb_venv/lib/python3.9/site-packages/openpyxl/drawing/text.py__init__7   s    zEmbeddedWAVAudioFile.__init__)N)__name__
__module____qualname__r   r%   r)   r'   r'   r'   r(   r!   3   s   
 r!   c                
   @   s   e Zd ZdZeZeddZeddZeddZ	eddZ
eddZeddZeddZeeddZeeddZeddZdZd	ddZdS )
	Hyperlink
hlinkClickTr"   expected_typer#   )sndNc                 C   s:   || _ || _|| _|| _|| _|| _|| _|| _|
| _d S r$   )	
invalidUrlactiontgtFrametooltiphistoryhighlightClickendSndr1   id)r&   r2   r3   r4   r5   r6   r7   r8   r1   extLstr9   r'   r'   r(   r)   O   s    zHyperlink.__init__)
NNNNNNNNNN)r*   r+   r,   tagnamer   	namespacer   r2   r3   r4   r5   r	   r6   r7   r8   r   r!   r1   OfficeArtExtensionListr:   r   r9   __elements__r)   r'   r'   r'   r(   r-   =   s0   







          r-   c                   @   sF   e Zd ZdZeZe ZeddZ	e
ddddZeddZd
dd	ZdS )FontlatinTr"   r   4   )minmaxr#   Nc                 C   s   || _ || _|| _|| _d S r$   )typefacepanosepitchFamilycharset)r&   rD   rE   rF   rG   r'   r'   r(   r)   p   s    zFont.__init__)NNNN)r*   r+   r,   r;   r   r<   r   rD   r   rE   r
   rF   r   rG   r)   r'   r'   r'   r(   r?   f   s   

    r?   c                )   @   s  e Zd ZdZeZeddZeddZ	eddZ
eddddZeddZeddZeg ddZeg d	dZeddZed
dgdZeddZeddZeddZeddZeddZeddZeddZeddZeddZeeddZ ee!ddZ"ee#ddZ$ee#ddZ%ee#ddZ&ee#ddZ'ee(ddZ)ee(ddZ*e+ddZ,ee-ddZ.e/edZ0e1 Z2ee3ddZ4ee5ddZ6ee7ddZ8e/edZ9ee:ddZ;ee<ddZ=e/ Z>eeddZ?e/ Z@e/ ZAdZBdddZCdS )CharacterPropertiesdefRPrTr"   d   i )r#   rB   rC   )wordsZsngZdblZheavyZdottedZdottedHeavyZdashZ	dashHeavyZdashLongZdashLongHeavyZdotDashZdotDashHeavyZ
dotDotDashZdotDotDashHeavyZwavyZ	wavyHeavyZwavyDblvalues)ZnoStrikeZ	sngStrikeZ	dblStrikesmallallr/   )r<   )lnnoFill	solidFillgradFillblipFillpattFillgrpFill	effectLst	effectDag	highlightuLnTxuLnuFillTxuFillr@   eacssymr.   hlinkMouseOverrtlNc*           *      C   s   || _ || _|| _|| _|| _|| _|| _|| _|	| _|
| _	|| _
|| _|| _|| _|| _|| _|| _|| _|| _|| _|| _|| _|| _|| _|| _|| _|| _|| _|| _|| _| | _|!| _|"| _ |#| _!|$| _"|%| _#|&| _$|'| _%|(| _&|)| _'d S r$   )(kumimojilangaltLangszbiustrikekerncapspc
normalizeHbaselinenoProofdirtyerrsmtCleansmtIdbmkrP   rY   r@   r^   r_   r`   r.   ra   rb   rQ   rR   rS   rT   rU   rV   rW   rX   rZ   r[   r\   r]   )*r&   rc   rd   re   rf   rg   rh   ri   rj   rk   rl   rm   rn   ro   rp   rq   rr   rs   rt   ru   rP   rY   r@   r^   r_   r`   r.   ra   rb   r:   rQ   rR   rS   rT   rU   rV   rW   rX   rZ   r[   r\   r]   r'   r'   r(   r)      sP    +zCharacterProperties.__init__))NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN)Dr*   r+   r,   r;   r   r<   r	   rc   r   rd   re   r
   rf   rg   rh   r   ri   rj   r   rk   rl   rm   rn   ro   rp   rq   rr   rs   rt   ru   r   r   rP   r   rY   r?   r@   r^   r_   r`   r-   r.   ra   r    rb   r=   r:   r   rQ   r   rR   r   rS   r   rT   r   rU   rV   r   rW   r   rX   rZ   r[   r\   r]   r>   r)   r'   r'   r'   r(   rH   |   s   

















                                         rH   c                   @   s6   e Zd ZeeddZeeg dddZd	ddZdS )
TabStopTr/   )lctrrdecrL   r0   Nc                 C   s   || _ || _d S r$   )posalgn)r&   r|   r}   r'   r'   r(   r)     s    zTabStop.__init__)NN)	r*   r+   r,   r   r   r|   r   r}   r)   r'   r'   r'   r(   rv     s
     rv   c                   @   s"   e Zd ZeeddZdddZdS )TabStopListTr/   Nc                 C   s
   || _ d S r$   )tab)r&   r   r'   r'   r(   r)     s    zTabStopList.__init__)N)r*   r+   r,   r   rv   r   r)   r'   r'   r'   r(   r~     s    r~   c                   @   s.   e Zd ZeddZeddZdZdddZdS )SpacingTr"   spcPctspcPtsNc                 C   s   || _ || _d S r$   r   )r&   r   r   r'   r'   r(   r)   *  s    zSpacing.__init__)NN)r*   r+   r,   r   r   r   r>   r)   r'   r'   r'   r(   r   #  s   

  r   c                   @   s*   e Zd Zeg ddZe ZdddZdS )AutonumberBullet))ZalphaLcParenBothZalphaUcParenBothZalphaLcParenRZalphaUcParenRZalphaLcPeriodZalphaUcPeriodZarabicParenBothZarabicParenRZarabicPeriodZarabicPlainZromanLcParenBothZromanUcParenBothZromanLcParenRZromanUcParenRZromanLcPeriodZromanUcPeriodZcircleNumDbPlainZcircleNumWdBlackPlainZcircleNumWdWhitePlainZarabicDbPeriodZarabicDbPlainZea1ChsPeriodZea1ChsPlainZea1ChtPeriodZea1ChtPlainZea1JpnChsDbPeriodZea1JpnKorPlainZea1JpnKorPeriodZarabic1MinusZarabic2MinusZhebrew2MinusZthaiAlphaPeriodZthaiAlphaParenRZthaiAlphaParenBothZthaiNumPeriodZthaiNumParenRZthaiNumParenBothZhindiAlphaPeriodZhindiNumPeriodZhindiNumParenRZhindiAlpha1PeriodrL   Nc                 C   s   || _ || _d S r$   )typestartAt)r&   r   r   r'   r'   r(   r)   B  s    zAutonumberBullet.__init__)NN)r*   r+   r,   r   r   r   r   r)   r'   r'   r'   r(   r   2  s
     r   c                   @   sF  e Zd ZdZeZeddZeddZeddZ	eddZ
eg ddZeddZeddZeddZeg ddZeddZeddZeeddZeeddZeeddZeeddZeeddZeeddZe Z ee!ddZ"e Z#e$ddZ%e$ddZ&e Z'ee(ddZ)e Z*e Z+e,e-ddd	Z.e,e/d
dd	Z0dZ1dddZ2dS )ParagraphPropertiespPrTr"   )rw   rx   ry   justZjustLowdistZthaiDistrL   )autotrx   baserg   r/   char)r0   	attributer#   Zblip)lnSpcspcBefspcAfttabLstrI   buClrTxbuClrbuSzTxbuSzPctbuSzPtsbuFontTxbuFontbuNone	buAutoNumbuCharbuBlipNc                 C   s   || _ || _|| _|| _|| _|| _|| _|| _|	| _|
| _	|| _
|| _|| _|| _|| _|| _|| _|| _|| _|| _|| _|| _|| _|| _|| _|| _|| _|| _d S r$   )marLmarRlvlindentr}   defTabSzrb   eaLnBrkfontAlgn
latinLnBrkhangingPunctr   r   r   r   rI   r   r   r   r   r   r   r   r   r   r   r   )r&   r   r   r   r   r}   r   rb   r   r   r   r   r   r   r   r   rI   r:   r   r   r   r   r   r   r   r   r   r   r   r'   r'   r(   r)   u  s8    zParagraphProperties.__init__)NNNNNNNNNNNNNNNNNNNNNNNNNNNN)3r*   r+   r,   r;   r   r<   r   r   r   r   r   r   r}   r   r	   rb   r   r   r   r   r   r   r   r   r   r~   r   rH   rI   r=   r:   r   r   r   r   r   r   r   r   r   r?   r   r   r   r   strr   r   r   r>   r)   r'   r'   r'   r(   r   J  sx   










                            r   c                   @   s   e Zd ZdZeZeeddZeeddZ	eeddZ
eeddZeeddZeeddZeeddZeeddZeeddZeeddZeeddZdZdddZdS )		ListStyleZlstStyleTr/   
defPPrlvl1pPrlvl2pPrlvl3pPrlvl4pPrlvl5pPrlvl6pPrlvl7pPrlvl8pPrlvl9pPrNc                 C   s@   || _ || _|| _|| _|| _|| _|| _|| _|	| _|
| _	d S r$   r   )r&   r   r   r   r   r   r   r   r   r   r   r:   r'   r'   r(   r)     s    zListStyle.__init__)NNNNNNNNNNN)r*   r+   r,   r;   r   r<   r   r   r   r   r   r   r   r   r   r   r   r   r=   r:   r>   r)   r'   r'   r'   r(   r     s4              r   c                   @   sH   e Zd ZdZeZeeddZe	dZ
eedZe	dZdZdd
dZdS )RegularTextRunry   Tr/   rPrr{   r   r   r   N c                 C   s   || _ || _d S r$   r   )r&   r   r   r'   r'   r(   r)     s    zRegularTextRun.__init__)Nr   )r*   r+   r,   r;   r   r<   r   rH   r   r   
propertiesr   r   r   valuer>   r)   r'   r'   r'   r(   r     s   
  r   c                   @   s.   e Zd ZdZeZeeddZdZ	dddZ
dS )		LineBreakbrTr/   r   Nc                 C   s
   || _ d S r$   r   )r&   r   r'   r'   r(   r)     s    zLineBreak.__init__)N)r*   r+   r,   r;   r   r<   r   rH   r   r>   r)   r'   r'   r'   r(   r     s    r   c                   @   sL   e Zd Ze ZeddZeeddZee	ddZ
eddZdZdddZdS )		TextFieldTr"   r/   )r   r   Nc                 C   s"   || _ || _|| _|| _|| _d S r$   )r9   r   r   r   r   )r&   r9   r   r   r   r   r'   r'   r(   r)     s
    zTextField.__init__)NNNNN)r*   r+   r,   r   r9   r   r   rH   r   r   r   r   r>   r)   r'   r'   r'   r(   r     s   

     r   c                   @   sl   e Zd ZdZeZeeddZe	dZ
eeddZeedZe	dZeeddZeeddZdZdd	d
ZdS )	ParagraphpTr/   r   r{   ry   )r   ry   r   fld
endParaRPrNc                 C   s2   || _ || _|d u rt g}|| _|| _|| _d S r$   )r   r   r   ry   r   r   )r&   r   r   ry   r   r   r'   r'   r(   r)   )  s    zParagraph.__init__)NNNNN)r*   r+   r,   r;   r   r<   r   r   r   r   r   rH   r   r   r   ry   textr   r   r   r   r>   r)   r'   r'   r'   r(   r     s    
     r   c                   @   s&   e Zd ZedZedZdddZdS )	GeomGuider'   Nc                 C   s   || _ || _d S r$   )r%   fmla)r&   r%   r   r'   r'   r(   r)   >  s    zGeomGuide.__init__)NN)r*   r+   r,   r   r%   r   r)   r'   r'   r'   r(   r   9  s
     r   c                   @   s"   e Zd ZeeddZdddZdS )GeomGuideListTr/   Nc                 C   s
   || _ d S r$   )gd)r&   r   r'   r'   r(   r)   J  s    zGeomGuideList.__init__)N)r*   r+   r,   r   r   r   r)   r'   r'   r'   r(   r   F  s    r   c                   @   s6   e Zd Zeeg dddZeeddZd	ddZdS )
PresetTextShape))ZtextNoShapeZ	textPlainZtextStopZtextTriangleZtextTriangleInvertedZtextChevronZtextChevronInvertedZtextRingInsideZtextRingOutsideZ
textArchUpZtextArchDownZ
textCircleZ
textButtonZtextArchUpPourZtextArchDownPourZtextCirclePourZtextButtonPourZtextCurveUpZtextCurveDownZ	textCanUpZtextCanDownZ	textWave1Z	textWave2ZtextDoubleWave1Z	textWave4ZtextInflateZtextDeflateZtextInflateBottomZtextDeflateBottomZtextInflateTopZtextDeflateTopZtextDeflateInflateZtextDeflateInflateDeflateZtextFadeRightZtextFadeLeftZ
textFadeUpZtextFadeDownZtextSlantUpZtextSlantDownZtextCascadeUpZtextCascadeDownrL   r{   Tr/   Nc                 C   s   || _ || _d S r$   )prstavLst)r&   r   r   r'   r'   r(   r)   a  s    zPresetTextShape.__init__)NN)	r*   r+   r,   r   r   r   r   r   r)   r'   r'   r'   r(   r   P  s   
  r   c                   @   s"   e Zd Ze Ze ZdddZdS )TextNormalAutofitNc                 C   s   || _ || _d S r$   )	fontScalelnSpcReduction)r&   r   r   r'   r'   r(   r)   n  s    zTextNormalAutofit.__init__)NN)r*   r+   r,   r   r   r   r)   r'   r'   r'   r(   r   i  s
     r   c                   @   s6  e Zd ZdZeZeddZeddZ	e
g ddZe
ddgdZe
g ddZe
d	d
gdZeddZeddZeddZeddZeddZeddZeddZeddZe
g ddZeddZeddZeddZeddZeeddZeeddZ ee!ddZ"e# Z$e# Z%e# Z&e'dddZ(dZ)dddZ*dS )RichTextPropertiesZbodyPrTr"   )overflowZellipsiscliprL   r   r   )ZhorzvertZvert270ZwordArtVertZeaVertZmongolianVertZwordArtVertRtlnoneZsquare)r   rx   rg   r   r   r/   z)r   r#   )
prstTxWarpscene3d	noAutofitnormAutofit	spAutoFitNc                 C   s   || _ || _|| _|| _|| _|| _|| _|| _|	| _|
| _	|| _
|| _|| _|| _|| _|| _|| _|| _|| _|| _|| _|| _|| _|| _|| _d S r$   )rotspcFirstLastParavertOverflowhorzOverflowr   wraplInstInsrInsbInsnumColspcColrtlColfromWordArtanchor	anchorCtrforceAAuprightcompatLnSpcr   r   r   r   r   flatTx)r&   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r:   r   r   r   r   r'   r'   r(   r)     s2    zRichTextProperties.__init__)NNNNNNNNNNNNNNNNNNNNNNNNNN)+r*   r+   r,   r;   r   r<   r   r   r	   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r=   r:   r   r   r   r   r   r   r>   r)   r'   r'   r'   r(   r   v  sp   













                          r   N);Z!openpyxl.descriptors.serialisabler   Zopenpyxl.descriptorsr   r   r   r   r   r   r	   r
   r   Zopenpyxl.descriptors.excelr   r   r   Zopenpyxl.descriptors.nestedr   r   r   r   Zopenpyxl.xml.constantsr   colorsr   Zeffectr   r   fillr   r   r   r   Zgeometryr   r   r   r   r=   r    r!   r-   r?   rH   rv   r~   r   r   r   r   r   r   r   r   r   r   r   r   r   r'   r'   r'   r(   <module>   s<   ,
) 
g- 
