forked from python-openxml/python-docx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdml.py
More file actions
63 lines (38 loc) · 1.14 KB
/
Copy pathdml.py
File metadata and controls
63 lines (38 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
"""Test data builders for DrawingML XML elements."""
from ...unitdata import BaseBuilder
class CT_BlipBuilder(BaseBuilder):
__tag__ = "a:blip"
__nspfxs__ = ("a",)
__attrs__ = ("r:embed", "r:link", "cstate")
class CT_BlipFillPropertiesBuilder(BaseBuilder):
__tag__ = "pic:blipFill"
__nspfxs__ = ("pic",)
__attrs__ = ()
class CT_GraphicalObjectBuilder(BaseBuilder):
__tag__ = "a:graphic"
__nspfxs__ = ("a",)
__attrs__ = ()
class CT_GraphicalObjectDataBuilder(BaseBuilder):
__tag__ = "a:graphicData"
__nspfxs__ = ("a",)
__attrs__ = ("uri",)
class CT_InlineBuilder(BaseBuilder):
__tag__ = "wp:inline"
__nspfxs__ = ("wp",)
__attrs__ = ("distT", "distB", "distL", "distR")
class CT_PictureBuilder(BaseBuilder):
__tag__ = "pic:pic"
__nspfxs__ = ("pic",)
__attrs__ = ()
def a_blip():
return CT_BlipBuilder()
def a_blipFill():
return CT_BlipFillPropertiesBuilder()
def a_graphic():
return CT_GraphicalObjectBuilder()
def a_graphicData():
return CT_GraphicalObjectDataBuilder()
def a_pic():
return CT_PictureBuilder()
def an_inline():
return CT_InlineBuilder()