File: dml-wordprocessingDrawing.rnc

package info (click to toggle)
python-docx 1.2.0%2Bdfsg-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 7,216 kB
  • sloc: xml: 25,323; python: 23,414; makefile: 175
file content (178 lines) | stat: -rw-r--r-- 6,668 bytes parent folder | download | duplicates (3)
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
default namespace =
  "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"
namespace a = "http://schemas.openxmlformats.org/drawingml/2006/main"
namespace o = "urn:schemas-microsoft-com:office:office"
namespace dpct =
  "http://schemas.openxmlformats.org/drawingml/2006/picture"
namespace r =
  "http://schemas.openxmlformats.org/officeDocument/2006/relationships"
namespace v = "urn:schemas-microsoft-com:vml"
namespace w =
  "http://schemas.openxmlformats.org/wordprocessingml/2006/main"
namespace w10 = "urn:schemas-microsoft-com:office:word"
namespace wp =
  "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"
namespace x = "urn:schemas-microsoft-com:office:excel"

wp_CT_EffectExtent =
  attribute l { a_ST_Coordinate },
  attribute t { a_ST_Coordinate },
  attribute r { a_ST_Coordinate },
  attribute b { a_ST_Coordinate }
wp_ST_WrapDistance = xsd:unsignedInt
wp_CT_Inline =
  attribute distT { wp_ST_WrapDistance }?,
  attribute distB { wp_ST_WrapDistance }?,
  attribute distL { wp_ST_WrapDistance }?,
  attribute distR { wp_ST_WrapDistance }?,
  element extent { a_CT_PositiveSize2D },
  element effectExtent { wp_CT_EffectExtent }?,
  element docPr { a_CT_NonVisualDrawingProps },
  element cNvGraphicFramePr { a_CT_NonVisualGraphicFrameProperties }?,
  a_graphic
wp_ST_WrapText = "bothSides" | "left" | "right" | "largest"
wp_CT_WrapPath =
  attribute edited { xsd:boolean }?,
  element start { a_CT_Point2D },
  element lineTo { a_CT_Point2D }+
wp_CT_WrapNone = empty
wp_CT_WrapSquare =
  attribute wrapText { wp_ST_WrapText },
  attribute distT { wp_ST_WrapDistance }?,
  attribute distB { wp_ST_WrapDistance }?,
  attribute distL { wp_ST_WrapDistance }?,
  attribute distR { wp_ST_WrapDistance }?,
  element effectExtent { wp_CT_EffectExtent }?
wp_CT_WrapTight =
  attribute wrapText { wp_ST_WrapText },
  attribute distL { wp_ST_WrapDistance }?,
  attribute distR { wp_ST_WrapDistance }?,
  element wrapPolygon { wp_CT_WrapPath }
wp_CT_WrapThrough =
  attribute wrapText { wp_ST_WrapText },
  attribute distL { wp_ST_WrapDistance }?,
  attribute distR { wp_ST_WrapDistance }?,
  element wrapPolygon { wp_CT_WrapPath }
wp_CT_WrapTopBottom =
  attribute distT { wp_ST_WrapDistance }?,
  attribute distB { wp_ST_WrapDistance }?,
  element effectExtent { wp_CT_EffectExtent }?
wp_EG_WrapType =
  element wrapNone { wp_CT_WrapNone }
  | element wrapSquare { wp_CT_WrapSquare }
  | element wrapTight { wp_CT_WrapTight }
  | element wrapThrough { wp_CT_WrapThrough }
  | element wrapTopAndBottom { wp_CT_WrapTopBottom }
wp_ST_PositionOffset = xsd:int
wp_ST_AlignH = "left" | "right" | "center" | "inside" | "outside"
wp_ST_RelFromH =
  "margin"
  | "page"
  | "column"
  | "character"
  | "leftMargin"
  | "rightMargin"
  | "insideMargin"
  | "outsideMargin"
wp_CT_PosH =
  attribute relativeFrom { wp_ST_RelFromH },
  (element align { wp_ST_AlignH }
   | element posOffset { wp_ST_PositionOffset })
wp_ST_AlignV = "top" | "bottom" | "center" | "inside" | "outside"
wp_ST_RelFromV =
  "margin"
  | "page"
  | "paragraph"
  | "line"
  | "topMargin"
  | "bottomMargin"
  | "insideMargin"
  | "outsideMargin"
wp_CT_PosV =
  attribute relativeFrom { wp_ST_RelFromV },
  (element align { wp_ST_AlignV }
   | element posOffset { wp_ST_PositionOffset })
wp_CT_Anchor =
  attribute distT { wp_ST_WrapDistance }?,
  attribute distB { wp_ST_WrapDistance }?,
  attribute distL { wp_ST_WrapDistance }?,
  attribute distR { wp_ST_WrapDistance }?,
  attribute simplePos { xsd:boolean }?,
  attribute relativeHeight { xsd:unsignedInt },
  attribute behindDoc { xsd:boolean },
  attribute locked { xsd:boolean },
  attribute layoutInCell { xsd:boolean },
  attribute hidden { xsd:boolean }?,
  attribute allowOverlap { xsd:boolean },
  element simplePos { a_CT_Point2D },
  element positionH { wp_CT_PosH },
  element positionV { wp_CT_PosV },
  element extent { a_CT_PositiveSize2D },
  element effectExtent { wp_CT_EffectExtent }?,
  wp_EG_WrapType,
  element docPr { a_CT_NonVisualDrawingProps },
  element cNvGraphicFramePr { a_CT_NonVisualGraphicFrameProperties }?,
  a_graphic
wp_CT_TxbxContent = w_EG_BlockLevelElts+
wp_CT_TextboxInfo =
  
  ## default value: 0
  attribute id { xsd:unsignedShort }?,
  element txbxContent { wp_CT_TxbxContent },
  element extLst { a_CT_OfficeArtExtensionList }?
wp_CT_LinkedTextboxInformation =
  attribute id { xsd:unsignedShort },
  attribute seq { xsd:unsignedShort },
  element extLst { a_CT_OfficeArtExtensionList }?
wp_CT_WordprocessingShape =
  
  ## default value: false
  attribute normalEastAsianFlow { xsd:boolean }?,
  element cNvPr { a_CT_NonVisualDrawingProps }?,
  (element cNvSpPr { a_CT_NonVisualDrawingShapeProps }
   | element cNvCnPr { a_CT_NonVisualConnectorProperties }),
  element spPr { a_CT_ShapeProperties },
  element style { a_CT_ShapeStyle }?,
  element extLst { a_CT_OfficeArtExtensionList }?,
  (element txbx { wp_CT_TextboxInfo }
   | element linkedTxbx { wp_CT_LinkedTextboxInformation })?,
  element bodyPr { a_CT_TextBodyProperties }
wp_CT_GraphicFrame =
  element cNvPr { a_CT_NonVisualDrawingProps },
  element cNvFrPr { a_CT_NonVisualGraphicFrameProperties },
  element xfrm { a_CT_Transform2D },
  a_graphic,
  element extLst { a_CT_OfficeArtExtensionList }?
wp_CT_WordprocessingContentPartNonVisual =
  element cNvPr { a_CT_NonVisualDrawingProps }?,
  element cNvContentPartPr { a_CT_NonVisualContentPartProperties }?
wp_CT_WordprocessingContentPart =
  attribute bwMode { a_ST_BlackWhiteMode }?,
  r_id,
  element nvContentPartPr { wp_CT_WordprocessingContentPartNonVisual }?,
  element xfrm { a_CT_Transform2D }?,
  element extLst { a_CT_OfficeArtExtensionList }?
wp_CT_WordprocessingGroup =
  element cNvPr { a_CT_NonVisualDrawingProps }?,
  element cNvGrpSpPr { a_CT_NonVisualGroupDrawingShapeProps },
  element grpSpPr { a_CT_GroupShapeProperties },
  (wp_wsp
   | element grpSp { wp_CT_WordprocessingGroup }
   | element graphicFrame { wp_CT_GraphicFrame }
   | dpct_pic
   | element contentPart { wp_CT_WordprocessingContentPart })*,
  element extLst { a_CT_OfficeArtExtensionList }?
wp_CT_WordprocessingCanvas =
  element bg { a_CT_BackgroundFormatting }?,
  element whole { a_CT_WholeE2oFormatting }?,
  (wp_wsp
   | dpct_pic
   | element contentPart { wp_CT_WordprocessingContentPart }
   | wp_wgp
   | element graphicFrame { wp_CT_GraphicFrame })*,
  element extLst { a_CT_OfficeArtExtensionList }?
wp_wpc = element wpc { wp_CT_WordprocessingCanvas }
wp_wgp = element wgp { wp_CT_WordprocessingGroup }
wp_wsp = element wsp { wp_CT_WordprocessingShape }
wp_inline = element inline { wp_CT_Inline }
wp_anchor = element anchor { wp_CT_Anchor }