File: dml-spreadsheetDrawing.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 (122 lines) | stat: -rw-r--r-- 4,397 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
default namespace =
  "http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"
namespace a = "http://schemas.openxmlformats.org/drawingml/2006/main"
namespace o = "urn:schemas-microsoft-com:office:office"
namespace r =
  "http://schemas.openxmlformats.org/officeDocument/2006/relationships"
namespace v = "urn:schemas-microsoft-com:vml"
namespace w10 = "urn:schemas-microsoft-com:office:word"
namespace x = "urn:schemas-microsoft-com:office:excel"
namespace xdr =
  "http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"

xdr_from = element from { xdr_CT_Marker }
xdr_to = element to { xdr_CT_Marker }
xdr_CT_AnchorClientData =
  
  ## default value: true
  attribute fLocksWithSheet { xsd:boolean }?,
  
  ## default value: true
  attribute fPrintsWithSheet { xsd:boolean }?
xdr_CT_ShapeNonVisual =
  element cNvPr { a_CT_NonVisualDrawingProps },
  element cNvSpPr { a_CT_NonVisualDrawingShapeProps }
xdr_CT_Shape =
  attribute macro { xsd:string }?,
  attribute textlink { xsd:string }?,
  
  ## default value: true
  attribute fLocksText { xsd:boolean }?,
  
  ## default value: false
  attribute fPublished { xsd:boolean }?,
  element nvSpPr { xdr_CT_ShapeNonVisual },
  element spPr { a_CT_ShapeProperties },
  element style { a_CT_ShapeStyle }?,
  element txBody { a_CT_TextBody }?
xdr_CT_ConnectorNonVisual =
  element cNvPr { a_CT_NonVisualDrawingProps },
  element cNvCxnSpPr { a_CT_NonVisualConnectorProperties }
xdr_CT_Connector =
  attribute macro { xsd:string }?,
  
  ## default value: false
  attribute fPublished { xsd:boolean }?,
  element nvCxnSpPr { xdr_CT_ConnectorNonVisual },
  element spPr { a_CT_ShapeProperties },
  element style { a_CT_ShapeStyle }?
xdr_CT_PictureNonVisual =
  element cNvPr { a_CT_NonVisualDrawingProps },
  element cNvPicPr { a_CT_NonVisualPictureProperties }
xdr_CT_Picture =
  attribute macro { xsd:string }?,
  
  ## default value: false
  attribute fPublished { xsd:boolean }?,
  element nvPicPr { xdr_CT_PictureNonVisual },
  element blipFill { a_CT_BlipFillProperties },
  element spPr { a_CT_ShapeProperties },
  element style { a_CT_ShapeStyle }?
xdr_CT_GraphicalObjectFrameNonVisual =
  element cNvPr { a_CT_NonVisualDrawingProps },
  element cNvGraphicFramePr { a_CT_NonVisualGraphicFrameProperties }
xdr_CT_GraphicalObjectFrame =
  attribute macro { xsd:string }?,
  
  ## default value: false
  attribute fPublished { xsd:boolean }?,
  element nvGraphicFramePr { xdr_CT_GraphicalObjectFrameNonVisual },
  element xfrm { a_CT_Transform2D },
  a_graphic
xdr_CT_GroupShapeNonVisual =
  element cNvPr { a_CT_NonVisualDrawingProps },
  element cNvGrpSpPr { a_CT_NonVisualGroupDrawingShapeProps }
xdr_CT_GroupShape =
  element nvGrpSpPr { xdr_CT_GroupShapeNonVisual },
  element grpSpPr { a_CT_GroupShapeProperties },
  (element sp { xdr_CT_Shape }
   | element grpSp { xdr_CT_GroupShape }
   | element graphicFrame { xdr_CT_GraphicalObjectFrame }
   | element cxnSp { xdr_CT_Connector }
   | element pic { xdr_CT_Picture })*
xdr_EG_ObjectChoices =
  element sp { xdr_CT_Shape }
  | element grpSp { xdr_CT_GroupShape }
  | element graphicFrame { xdr_CT_GraphicalObjectFrame }
  | element cxnSp { xdr_CT_Connector }
  | element pic { xdr_CT_Picture }
  | element contentPart { xdr_CT_Rel }
xdr_CT_Rel = r_id
xdr_ST_ColID = xsd:int { minInclusive = "0" }
xdr_ST_RowID = xsd:int { minInclusive = "0" }
xdr_CT_Marker =
  element col { xdr_ST_ColID },
  element colOff { a_ST_Coordinate },
  element row { xdr_ST_RowID },
  element rowOff { a_ST_Coordinate }
xdr_ST_EditAs = "twoCell" | "oneCell" | "absolute"
xdr_CT_TwoCellAnchor =
  
  ## default value: twoCell
  attribute editAs { xdr_ST_EditAs }?,
  element from { xdr_CT_Marker },
  element to { xdr_CT_Marker },
  xdr_EG_ObjectChoices,
  element clientData { xdr_CT_AnchorClientData }
xdr_CT_OneCellAnchor =
  element from { xdr_CT_Marker },
  element ext { a_CT_PositiveSize2D },
  xdr_EG_ObjectChoices,
  element clientData { xdr_CT_AnchorClientData }
xdr_CT_AbsoluteAnchor =
  element pos { a_CT_Point2D },
  element ext { a_CT_PositiveSize2D },
  xdr_EG_ObjectChoices,
  element clientData { xdr_CT_AnchorClientData }
xdr_EG_Anchor =
  element twoCellAnchor { xdr_CT_TwoCellAnchor }
  | element oneCellAnchor { xdr_CT_OneCellAnchor }
  | element absoluteAnchor { xdr_CT_AbsoluteAnchor }
xdr_CT_Drawing = xdr_EG_Anchor*
xdr_wsDr = element wsDr { xdr_CT_Drawing }