Repository navigation
Expand file tree
/
Copy pathshape.py
More file actions
215 lines (129 loc) · 3.98 KB
/
Copy pathshape.py
File metadata and controls
215 lines (129 loc) · 3.98 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
"""Test data for autoshape-related unit tests."""
from __future__ import annotations
from ...unitdata import BaseBuilder
class CT_ApplicationNonVisualDrawingPropsBuilder(BaseBuilder):
__tag__ = "p:nvPr"
__nspfxs__ = ("p",)
__attrs__ = ("isPhoto", "userDrawn")
class CT_ConnectorBuilder(BaseBuilder):
__tag__ = "p:cxnSp"
__nspfxs__ = ("p", "a")
__attrs__ = ()
class CT_GeomGuideBuilder(BaseBuilder):
__tag__ = "a:gd"
__nspfxs__ = ("a",)
__attrs__ = ("name", "fmla")
class CT_GeomGuideListBuilder(BaseBuilder):
__tag__ = "a:avLst"
__nspfxs__ = ("a",)
__attrs__ = ()
class CT_GraphicalObjectFrameBuilder(BaseBuilder):
__tag__ = "p:graphicFrame"
__nspfxs__ = ("p", "a")
__attrs__ = ("bwMode",)
class CT_GraphicalObjectFrameNonVisualBuilder(BaseBuilder):
__tag__ = "p:nvGraphicFramePr"
__nspfxs__ = ("p",)
__attrs__ = ()
class CT_GroupShapeBuilder(BaseBuilder):
__nspfxs__ = ("p",)
__attrs__ = ()
def __init__(self, tag):
self.__tag__ = tag
super(CT_GroupShapeBuilder, self).__init__()
class CT_GroupShapePropertiesBuilder(BaseBuilder):
__tag__ = "p:grpSpPr"
__nspfxs__ = ("p", "a")
__attrs__ = ("bwMode",)
class CT_NonVisualDrawingPropsBuilder(BaseBuilder):
__tag__ = "p:cNvPr"
__nspfxs__ = ("p",)
__attrs__ = ("id", "name", "descr", "hidden", "title")
class CT_NonVisualDrawingShapePropsBuilder(BaseBuilder):
__tag__ = "p:cNvSpPr"
__nspfxs__ = ("p",)
__attrs__ = ("txBox",)
class CT_PictureBuilder(BaseBuilder):
__tag__ = "p:pic"
__nspfxs__ = ("p", "a")
__attrs__ = ()
class CT_PictureNonVisualBuilder(BaseBuilder):
__tag__ = "p:nvPicPr"
__nspfxs__ = ("p",)
__attrs__ = ()
class CT_PlaceholderBuilder(BaseBuilder):
__tag__ = "p:ph"
__nspfxs__ = ("p",)
__attrs__ = ("type", "orient", "sz", "idx", "hasCustomPropt")
class CT_Point2DBuilder(BaseBuilder):
__tag__ = "a:off"
__nspfxs__ = ("a",)
__attrs__ = ("x", "y")
class CT_PositiveSize2DBuilder(BaseBuilder):
__tag__ = "a:ext"
__nspfxs__ = ("a",)
__attrs__ = ("cx", "cy")
class CT_PresetGeometry2DBuilder(BaseBuilder):
__tag__ = "a:prstGeom"
__nspfxs__ = ("a",)
__attrs__ = ("prst",)
class CT_ShapeBuilder(BaseBuilder):
__tag__ = "p:sp"
__nspfxs__ = ("p", "a")
__attrs__ = ("useBgFill",)
class CT_ShapeNonVisualBuilder(BaseBuilder):
__tag__ = "p:nvSpPr"
__nspfxs__ = ("p",)
__attrs__ = ()
class CT_ShapePropertiesBuilder(BaseBuilder):
__tag__ = "p:spPr"
__nspfxs__ = ("p", "a")
__attrs__ = ("bwMode",)
class CT_Transform2DBuilder(BaseBuilder):
__nspfxs__ = ("a",)
__attrs__ = ("rot", "flipH", "flipV")
def __init__(self, tag):
self.__tag__ = tag
super(CT_Transform2DBuilder, self).__init__()
def a_cNvPr():
return CT_NonVisualDrawingPropsBuilder()
def a_cNvSpPr():
return CT_NonVisualDrawingShapePropsBuilder()
def a_cxnSp():
return CT_ConnectorBuilder()
def a_gd():
return CT_GeomGuideBuilder()
def a_graphicFrame():
return CT_GraphicalObjectFrameBuilder()
def a_grpSp():
return CT_GroupShapeBuilder("p:grpSp")
def a_grpSpPr():
return CT_GroupShapePropertiesBuilder()
def a_p_xfrm():
return CT_Transform2DBuilder("p:xfrm")
def a_ph():
return CT_PlaceholderBuilder()
def a_pic():
return CT_PictureBuilder()
def a_prstGeom():
return CT_PresetGeometry2DBuilder()
def an_avLst():
return CT_GeomGuideListBuilder()
def an_ext():
return CT_PositiveSize2DBuilder()
def an_nvGraphicFramePr():
return CT_GraphicalObjectFrameNonVisualBuilder()
def an_nvPicPr():
return CT_PictureNonVisualBuilder()
def an_nvPr():
return CT_ApplicationNonVisualDrawingPropsBuilder()
def an_nvSpPr():
return CT_ShapeNonVisualBuilder()
def an_off():
return CT_Point2DBuilder()
def an_sp():
return CT_ShapeBuilder()
def an_spPr():
return CT_ShapePropertiesBuilder()
def an_xfrm():
return CT_Transform2DBuilder("a:xfrm")