XjAdZddlmZddlmZddlmZddlmZddl m Z m Z m Z ddl mZmZmZGdd eZGd d eZGd d eZy)z6Objects shared by modules in the docx.oxml subpackage.) annotations)cast)qn) OxmlElement)ST_DecimalNumberST_OnOff ST_String)BaseOxmlElementOptionalAttributeRequiredAttributec@eZdZUdZedeZded<eddZ y)CT_DecimalNumberzUsed for ````, ````, ```` and several others, containing a text representation of a decimal number (e.g. 42) in its ``val`` attribute.w:valintvalcDt|tdt|iS)zqReturn a new ``CT_DecimalNumber`` element having tagname `nsptagname` and ``val`` attribute set to `val`.r)attrs)rrstr)cls nsptagnamers d/mnt/ssd/data/Dropbox/adrian/vault-secondbrain/venv/lib/python3.12/site-packages/docx/oxml/shared.pynewzCT_DecimalNumber.news:bk3s8-DEEN)rrrr) __name__ __module__ __qualname____doc__r rr__annotations__ classmethodrrrrr s/!*:;C;FFrrc2eZdZUdZededZded<y)CT_OnOffzUsed for `w:b`, `w:i` elements and others. Contains a bool-ish string in its `val` attribute, xsd:boolean plus "on" and "off". Defaults to `True`, so `` for example means "bold is turned on". rT)defaultboolrN)rrrrr rrrr rrr"r"s! "4Crr"c@eZdZUdZedeZded<eddZ y) CT_StringzUsed for `w:pStyle` and `w:tblStyle` elements and others. In those cases, it containing a style name in its `val` attribute. rrrcFttt|}||_|S)zVA new `CT_String`` element with tagname `nsptagname` and `val` attribute set to `val`.)rr&rr)rrrelms rrz CT_String.new/s!9k*56 rN)rrrr) rrrrr r rrrrr rrr&r&'s, !)4C4rr&N)r __future__rtypingr docx.oxml.nsrdocx.oxml.parserrdocx.oxml.simpletypesrrr docx.oxml.xmlchemyr r r rr"r&r rrr/sF<"(GGTT F F    r