U Dx`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)selfrrrr:/tmp/pip-target-zr53vnty/lib/python/openpyxl/chart/text.py__init__%szRichText.__init__)NNN)__name__ __module__ __qualname____doc__tagnamerrrr 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)r r r )rr r rrrrAsz Text.__init__cs&|jr|jrd|_tt||||Sr)r r superrto_tree)rridx namespace __class__rrr"Ks z Text.to_tree)NN)NNN)rrrrrrr r r r rrr" __classcell__rrr%rr3s   rN)Z!openpyxl.descriptors.serialisablerZopenpyxl.descriptorsrrrZopenpyxl.drawing.textrrrZ data_sourcer r rrrrrs