Esempio n. 1
0
    def get_xml(self):
        p_tags = [
            DXB.p_tag(
                [
                    DXB.r_tag([DXB.t_tag('AAA')]),
                    DXB.r_tag(
                        [DXB.t_tag('BBB')],
                        rpr=DXB.rpr_tag({'vertAlign': 'superscript'}),
                    ),
                ],
            ),
            DXB.p_tag(
                [
                    DXB.r_tag(
                        [DXB.t_tag('CCC')],
                        rpr=DXB.rpr_tag({'vertAlign': 'subscript'}),
                    ),
                    DXB.r_tag([DXB.t_tag('DDD')]),
                ],
            ),
        ]
        body = ''
        for p_tag in p_tags:
            body += p_tag

        xml = DXB.xml(body)
        return xml
Esempio n. 2
0
    def get_xml(self):
        p_tags = [
            DXB.p_tag(text='AAA', style='style0'),
            DXB.p_tag(
                [
                    DXB.r_tag(
                        [DXB.t_tag('BBB')],
                        # Don't do duplicates
                        rpr=DXB.rpr_tag({'b': None}),
                    ),
                ],
                style='style0',
            ),
            DXB.p_tag(
                [
                    DXB.r_tag(
                        [DXB.t_tag('CCC')],
                        # Overwrite the current style
                        rpr=DXB.rpr_tag({'b': 'false'}),
                    ),
                ],
                style='style0',
            ),
        ]
        body = b''
        for tag in p_tags:
            body += tag

        xml = DXB.xml(body)
        return xml
Esempio n. 3
0
 def get_xml(self):
     run_tags = [DXB.r_tag([DXB.t_tag(i)]) for i in 'link']
     run_tags = [DXB.hyperlink_tag(r_id='rId0', run_tags=run_tags)]
     run_tags.append(DXB.r_tag([DXB.t_tag('.')]))
     body = DXB.p_tag(run_tags)
     xml = DXB.xml(body)
     return xml
Esempio n. 4
0
    def get_xml(self):
        p_tags = [
            DXB.p_tag(text='AAA', style='style0'),
            DXB.p_tag(
                [
                    DXB.r_tag(
                        [DXB.t_tag('BBB')],
                        # Don't do duplicates
                        rpr=DXB.rpr_tag({'b': None}),
                    ),
                ],
                style='style0',
            ),
            DXB.p_tag(
                [
                    DXB.r_tag(
                        [DXB.t_tag('CCC')],
                        # Overwrite the current style
                        rpr=DXB.rpr_tag({'b': 'false'}),
                    ),
                ],
                style='style0',
            ),
        ]
        body = ''
        for tag in p_tags:
            body += tag

        xml = DXB.xml(body)
        return xml
Esempio n. 5
0
 def get_xml(self):
     run_tags = [DXB.r_tag([DXB.t_tag(i)]) for i in 'link']
     run_tags = [DXB.hyperlink_tag(r_id='rId0', run_tags=run_tags)]
     run_tags.append(DXB.r_tag([DXB.t_tag('.')]))
     body = DXB.p_tag(run_tags)
     xml = DXB.xml(body)
     return xml
Esempio n. 6
0
 def get_xml(self):
     run_tags = []
     run_tags.append(DXB.r_tag([DXB.t_tag('link')]))
     run_tags.append(DXB.r_tag([DXB.linebreak()]))
     run_tags = [DXB.hyperlink_tag(r_id='rId0', run_tags=run_tags)]
     body = DXB.p_tag(run_tags)
     xml = DXB.xml(body)
     return xml
Esempio n. 7
0
 def get_xml(self):
     run_tags = []
     run_tags.append(DXB.r_tag([DXB.t_tag('link')]))
     run_tags.append(DXB.r_tag([DXB.linebreak()]))
     run_tags = [DXB.hyperlink_tag(r_id='rId0', run_tags=run_tags)]
     body = DXB.p_tag(run_tags)
     xml = DXB.xml(body)
     return xml
Esempio n. 8
0
    def get_xml(self):
        run_tags = [DXB.r_tag([DXB.t_tag(i)]) for i in 'insert ']
        insert_tag = DXB.insert_tag(run_tags)
        run_tags = [DXB.r_tag([DXB.t_tag(i)]) for i in 'smarttag']
        smart_tag = DXB.smart_tag(run_tags)

        run_tags = [insert_tag, smart_tag]
        body = DXB.p_tag(run_tags)
        xml = DXB.xml(body)
        return xml
Esempio n. 9
0
    def get_xml(self):
        run_tags = [DXB.r_tag([DXB.t_tag(i)]) for i in 'insert ']
        insert_tag = DXB.insert_tag(run_tags)
        run_tags = [DXB.r_tag([DXB.t_tag(i)]) for i in 'smarttag']
        smart_tag = DXB.smart_tag(run_tags)

        run_tags = [insert_tag, smart_tag]
        body = DXB.p_tag(run_tags)
        xml = DXB.xml(body)
        return xml
Esempio n. 10
0
    def get_xml(self):
        r_tag = DXB.r_tag([DXB.t_tag(letter) for letter in 'ABC'], )
        p_tag = DXB.p_tag(
            [r_tag],
            jc='start',
        )
        body = p_tag

        xml = DXB.xml(body)
        return xml
Esempio n. 11
0
    def get_xml(self):
        run_tags = [DXB.r_tag([DXB.t_tag(i)]) for i in 'BBB']
        smart_tag = DXB.smart_tag(run_tags)
        p_tag = DXB.p_tag([smart_tag])

        body = DXB.li(text='AAA', ilvl=0, numId=0)
        body += p_tag
        body += DXB.li(text='CCC', ilvl=0, numId=0)

        xml = DXB.xml(body)
        return xml
Esempio n. 12
0
    def get_xml(self):
        run_tags = [DXB.r_tag([DXB.t_tag(i)]) for i in 'BBB']
        smart_tag = DXB.smart_tag(run_tags)
        p_tag = DXB.p_tag([smart_tag])

        body = DXB.li(text='AAA', ilvl=0, numId=0)
        body += p_tag
        body += DXB.li(text='CCC', ilvl=0, numId=0)

        xml = DXB.xml(body)
        return xml
Esempio n. 13
0
    def get_xml(self):
        tags = [
            DXB.p_tag([
                DXB.r_tag([DXB.t_tag(None)], ),
            ], ),
        ]

        body = b''
        for tag in tags:
            body += tag
        return DXB.xml(body)
Esempio n. 14
0
    def get_xml(self):
        tags = [
            DXB.p_tag(
                [
                    DXB.r_tag(
                        [DXB.t_tag('AAA')],
                        rpr=DXB.rpr_tag({'b': None}),
                    ),
                ],
            ),
            DXB.p_tag(
                [
                    DXB.r_tag(
                        [DXB.t_tag('BBB')],
                        rpr=DXB.rpr_tag({'b': 'false'}),
                    ),
                ],
            ),
            DXB.p_tag(
                [
                    DXB.r_tag(
                        [DXB.t_tag('CCC')],
                        rpr=DXB.rpr_tag({'b': '0'}),
                    ),
                ],
            ),
            DXB.p_tag(
                [
                    DXB.r_tag(
                        [DXB.t_tag('DDD')],
                        rpr=DXB.rpr_tag({'u': 'none'}),
                    ),
                ],
            ),
        ]

        body = ''
        for tag in tags:
            body += tag
        xml = DXB.xml(body)
        return xml
Esempio n. 15
0
    def get_xml(self):
        r_tag = DXB.r_tag(
            [DXB.t_tag(letter) for letter in 'ABC'],
        )
        p_tag = DXB.p_tag(
            [r_tag],
            jc='start',
        )
        body = p_tag

        xml = DXB.xml(body)
        return xml
Esempio n. 16
0
    def get_xml(self):
        tags = [
            DXB.p_tag([
                DXB.r_tag([DXB.t_tag(r'􀀟')], ),
            ], ),
        ]

        body = b''
        for tag in tags:
            body += tag
        xml = DXB.xml(body)
        return xml
Esempio n. 17
0
    def get_xml(self):
        tags = [
            DXB.p_tag(
                [
                    DXB.r_tag(
                        [DXB.t_tag(None)],
                    ),
                ],
            ),
        ]

        body = b''
        for tag in tags:
            body += tag
        return DXB.xml(body)
Esempio n. 18
0
    def get_xml(self):
        tags = [
            DXB.p_tag(
                [
                    DXB.r_tag(
                        [DXB.t_tag(r'􀀟')],
                    ),
                ],
            ),
        ]

        body = b''
        for tag in tags:
            body += tag
        xml = DXB.xml(body)
        return xml
Esempio n. 19
0
    def get_xml(self):
        tags = [
            DXB.p_tag(
                [
                    DXB.r_tag(
                        [DXB.t_tag(None)],
                    ),
                ],
            ),
        ]

        body = ''
        for tag in tags:
            body += tag
        xml = DXB.xml(body)
        return xml.encode('utf-8')
Esempio n. 20
0
    def get_xml(self):
        p_tags = [
            DXB.p_tag(
                [
                    DXB.r_tag(
                        [DXB.t_tag('aaa')],
                        rpr=DXB.rpr_tag({'b': None}),
                    ),
                ],
            ),
            DXB.p_tag(
                [
                    DXB.r_tag(
                        [DXB.t_tag('bbb')],
                        rpr=DXB.rpr_tag({'u': None}),
                    ),
                ],
            ),
            DXB.p_tag(
                [
                    DXB.r_tag(
                        [DXB.t_tag('ccc')],
                        rpr=DXB.rpr_tag({'i': None}),
                    ),
                ],
            ),
            DXB.p_tag(
                [
                    DXB.r_tag(
                        [DXB.t_tag('ddd')],
                        rpr=DXB.rpr_tag({'caps': None}),
                    ),
                ],
            ),
            DXB.p_tag(
                [
                    DXB.r_tag(
                        [DXB.t_tag('eee')],
                        rpr=DXB.rpr_tag({'smallCaps': None}),
                    ),
                ],
            ),
            DXB.p_tag(
                [
                    DXB.r_tag(
                        [DXB.t_tag('fff')],
                        rpr=DXB.rpr_tag({'strike': None})
                    ),
                ],
            ),
            DXB.p_tag(
                [
                    DXB.r_tag(
                        [DXB.t_tag('ggg')],
                        rpr=DXB.rpr_tag({'dstrike': None}),
                    ),
                ],
            ),
            DXB.p_tag(
                [
                    DXB.r_tag(
                        [DXB.t_tag('hhh')],
                        rpr=DXB.rpr_tag({'vanish': None})
                    ),
                ],
            ),
            DXB.p_tag(
                [
                    DXB.r_tag(
                        [DXB.t_tag('iii')],
                        rpr=DXB.rpr_tag({'webHidden': None}),
                    ),
                ],
            ),
            DXB.p_tag(
                [
                    DXB.r_tag(
                        [DXB.t_tag('jjj')],
                        rpr=DXB.rpr_tag({'vertAlign': 'superscript'}),
                    ),
                ],
            ),
        ]
        body = ''
        for p_tag in p_tags:
            body += p_tag

        xml = DXB.xml(body)
        return xml
Esempio n. 21
0
    def get_xml(self):
        p_tags = [
            DXB.p_tag([
                DXB.r_tag(
                    [DXB.t_tag('aaa')],
                    rpr=DXB.rpr_tag({'b': None}),
                ),
            ], ),
            DXB.p_tag([
                DXB.r_tag(
                    [DXB.t_tag('bbb')],
                    rpr=DXB.rpr_tag({'u': 'single'}),
                ),
            ], ),
            DXB.p_tag([
                DXB.r_tag(
                    [DXB.t_tag('ccc')],
                    rpr=DXB.rpr_tag({'i': None}),
                ),
            ], ),
            DXB.p_tag([
                DXB.r_tag(
                    [DXB.t_tag('ddd')],
                    rpr=DXB.rpr_tag({'caps': None}),
                ),
            ], ),
            DXB.p_tag([
                DXB.r_tag(
                    [DXB.t_tag('eee')],
                    rpr=DXB.rpr_tag({'smallCaps': None}),
                ),
            ], ),
            DXB.p_tag([
                DXB.r_tag([DXB.t_tag('fff')],
                          rpr=DXB.rpr_tag({'strike': None})),
            ], ),
            DXB.p_tag([
                DXB.r_tag(
                    [DXB.t_tag('ggg')],
                    rpr=DXB.rpr_tag({'dstrike': None}),
                ),
            ], ),
            DXB.p_tag([
                DXB.r_tag([DXB.t_tag('hhh')],
                          rpr=DXB.rpr_tag({'vanish': None})),
            ], ),
            DXB.p_tag([
                DXB.r_tag(
                    [DXB.t_tag('iii')],
                    rpr=DXB.rpr_tag({'webHidden': None}),
                ),
            ], ),
            DXB.p_tag([
                DXB.r_tag(
                    [DXB.t_tag('jjj')],
                    rpr=DXB.rpr_tag({'vertAlign': 'superscript'}),
                ),
            ], ),
        ]
        body = b''
        for p_tag in p_tags:
            body += p_tag

        xml = DXB.xml(body)
        return xml