예제 #1
0
class CT_OLEOBJECT(BaseOxmlElement):
    """
    OLE Object解析元素

    ``<o:OLEObject>``
    """

    rid = RequiredAttribute('r:id', BaseStringType)
예제 #2
0
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)
예제 #3
0
class CT_HdrFtrRef(BaseOxmlElement):
    """`w:headerReference` and `w:footerReference` elements"""

    type_ = RequiredAttribute('w:type', WD_HEADER_FOOTER)
    rId = RequiredAttribute('r:id', XsdString)
예제 #4
0
class CT_Bookmark(BaseOxmlElement):
    """`w:bookmarkStart` element"""

    id = RequiredAttribute("w:id", ST_DecimalNumber)
    name = RequiredAttribute("w:name", ST_String)
예제 #5
0
class CT_MarkupRange(BaseOxmlElement):
    """`w:bookmarkEnd` element"""

    id = RequiredAttribute("w:id", ST_DecimalNumber)