class CT_OLEOBJECT(BaseOxmlElement): """ OLE Object解析元素 ``<o:OLEObject>`` """ rid = RequiredAttribute('r:id', BaseStringType)
class CT_Parent(BaseOxmlElement): """ ``<w:parent>`` element, an invented element for use in testing. """ eg_zooChoice = ZeroOrOneChoice((Choice('w:choice'), Choice('w:choice2')), successors=('w:oomChild', 'w:oooChild')) oomChild = OneOrMore('w:oomChild', successors=('w:oooChild', 'w:zomChild', 'w:zooChild')) oooChild = OneAndOnlyOne('w:oooChild') zomChild = ZeroOrMore('w:zomChild', successors=('w:zooChild', )) zooChild = ZeroOrOne('w:zooChild', successors=()) optAttr = OptionalAttribute('w:optAttr', ST_IntegerType) reqAttr = RequiredAttribute('reqAttr', ST_IntegerType)
class CT_HdrFtrRef(BaseOxmlElement): """`w:headerReference` and `w:footerReference` elements""" type_ = RequiredAttribute('w:type', WD_HEADER_FOOTER) rId = RequiredAttribute('r:id', XsdString)
class CT_Bookmark(BaseOxmlElement): """`w:bookmarkStart` element""" id = RequiredAttribute("w:id", ST_DecimalNumber) name = RequiredAttribute("w:name", ST_String)
class CT_MarkupRange(BaseOxmlElement): """`w:bookmarkEnd` element""" id = RequiredAttribute("w:id", ST_DecimalNumber)