U o^A@sdddlmZddlmZmZmZddlmZmZm Z ddl m Z GdddeZ Gdd d eZ d S) ) Serialisable)TypedAliasSequence)RichTextProperties ListStyle Paragraph)StrRefc@sReZdZdZdZeedZedZ ee ddZ e e dZedZdZd d d Zd S) RichTextz From the specification: 21.2.2.216 This element specifies text formatting. The lstStyle element is not supported. rich) expected_typebodyPrTr allow_nonep)rlstStylerNcCs4|dkrt}||_||_|dkr*tg}||_dSN)rrrrr)selfrrrrm/private/var/folders/sd/whlwsn6x1_qgglc0mjv25_695qk2gl/T/pip-install-4zq3fp6i/openpyxl/openpyxl/chart/text.py__init__%szRichText.__init__)NNN)__name__ __module__ __qualname____doc__tagnamerrrrZ propertiesrrrrrZ paragraphs __elements__rrrrrr s   r csLeZdZdZdZeeddZeeddZ dZ d ddZ d fd d Z 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. ZtxTr)strRefr NcCs||_|dkrt}||_dSr)rr r )rrr rrrrAsz Text.__init__cs&|jr|jrd|_tt||||Sr)rr superrto_tree)rridx namespace __class__rrr!Ks z Text.to_tree)NN)NNN)rrrrrrr rr r rrr! __classcell__rrr$rr3s   rN)Z!openpyxl.descriptors.serialisablerZopenpyxl.descriptorsrrrZopenpyxl.drawing.textrrrZ data_sourcer r rrrrrs