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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
//
// -----------------------------------------------------------------------------
// THIS FILE WAS @generated AUTOMATICALLY. DO NOT MODIFY THIS FILE MANUALLY.
// -----------------------------------------------------------------------------
//
#[derive(Copy, Clone, Debug, Default, PartialEq, Eq, Hash, ooxmlsdk_derive::SdkEnum)]
pub enum BorderValues {
#[sdk(rename = "none")]
#[default]
None,
#[sdk(rename = "single")]
Single,
#[sdk(rename = "thick")]
Thick,
#[sdk(rename = "double")]
Double,
#[sdk(rename = "hairline")]
Hairline,
#[sdk(rename = "dot")]
Dot,
#[sdk(rename = "dash")]
Dash,
#[sdk(rename = "dotDash")]
DotDash,
#[sdk(rename = "dashDotDot")]
DashDotDot,
#[sdk(rename = "triple")]
Triple,
#[sdk(rename = "thinThickSmall")]
ThinThickSmall,
#[sdk(rename = "thickThinSmall")]
ThickThinSmall,
#[sdk(rename = "thickBetweenThinSmall")]
ThickBetweenThinSmall,
#[sdk(rename = "thinThick")]
ThinThick,
#[sdk(rename = "thickThin")]
ThickThin,
#[sdk(rename = "thickBetweenThin")]
ThickBetweenThin,
#[sdk(rename = "thinThickLarge")]
ThinThickLarge,
#[sdk(rename = "thickThinLarge")]
ThickThinLarge,
#[sdk(rename = "thickBetweenThinLarge")]
ThickBetweenThinLarge,
#[sdk(rename = "wave")]
Wave,
#[sdk(rename = "doubleWave")]
DoubleWave,
#[sdk(rename = "dashedSmall")]
DashedSmall,
#[sdk(rename = "dashDotStroked")]
DashDotStroked,
#[sdk(rename = "threeDEmboss")]
ThreeDEmboss,
#[sdk(rename = "threeDEngrave")]
ThreeDEngrave,
#[sdk(rename = "HTMLOutset")]
HtmlOutset,
#[sdk(rename = "HTMLInset")]
HtmlInset,
}
#[derive(Copy, Clone, Debug, Default, PartialEq, Eq, Hash, ooxmlsdk_derive::SdkEnum)]
pub enum WrapValues {
#[sdk(rename = "topAndBottom")]
#[default]
TopAndBottom,
#[sdk(rename = "square")]
Square,
#[sdk(rename = "none")]
None,
#[sdk(rename = "tight")]
Tight,
#[sdk(rename = "through")]
Through,
}
#[derive(Copy, Clone, Debug, Default, PartialEq, Eq, Hash, ooxmlsdk_derive::SdkEnum)]
pub enum WrapSideValues {
#[sdk(rename = "both")]
#[default]
Both,
#[sdk(rename = "left")]
Left,
#[sdk(rename = "right")]
Right,
#[sdk(rename = "largest")]
Largest,
}
#[derive(Copy, Clone, Debug, Default, PartialEq, Eq, Hash, ooxmlsdk_derive::SdkEnum)]
pub enum HorizontalAnchorValues {
#[sdk(rename = "margin")]
#[default]
Margin,
#[sdk(rename = "page")]
Page,
#[sdk(rename = "text")]
Text,
}
#[derive(Copy, Clone, Debug, Default, PartialEq, Eq, Hash, ooxmlsdk_derive::SdkEnum)]
pub enum VerticalAnchorValues {
#[sdk(rename = "margin")]
#[default]
Margin,
#[sdk(rename = "page")]
Page,
#[sdk(rename = "text")]
Text,
}
/// Top Border.
///
/// Available in Office2007 and above.
///
/// When the object is serialized out as xml, it's qualified name is w10:bordertop.
#[derive(Clone, Debug, Default, PartialEq, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "w10:CT_Border/w10:bordertop")]
pub struct TopBorder {
/// Border Style
///
/// Available in Office2007 and above.
///
/// Represents the following attribute in the schema: :type
#[sdk(attr(qname = ":type"))]
pub r#type: Option<BorderValues>,
/// Border Width
///
/// Available in Office2007 and above.
///
/// Represents the following attribute in the schema: :width
#[sdk(attr(qname = ":width"))]
#[sdk(number_sign(source = 0u32, kind = "positive"))]
pub width: Option<crate::simple_type::IntegerValue>,
/// Border shadow
///
/// Available in Office2007 and above.
///
/// Represents the following attribute in the schema: :shadow
#[sdk(attr(qname = ":shadow"))]
pub shadow: Option<crate::simple_type::TrueFalseValue>,
}
/// Left Border.
///
/// Available in Office2007 and above.
///
/// When the object is serialized out as xml, it's qualified name is w10:borderleft.
#[derive(Clone, Debug, Default, PartialEq, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "w10:CT_Border/w10:borderleft")]
pub struct LeftBorder {
/// Border Style
///
/// Available in Office2007 and above.
///
/// Represents the following attribute in the schema: :type
#[sdk(attr(qname = ":type"))]
pub r#type: Option<BorderValues>,
/// Border Width
///
/// Available in Office2007 and above.
///
/// Represents the following attribute in the schema: :width
#[sdk(attr(qname = ":width"))]
#[sdk(number_sign(source = 0u32, kind = "positive"))]
pub width: Option<crate::simple_type::IntegerValue>,
/// Border shadow
///
/// Available in Office2007 and above.
///
/// Represents the following attribute in the schema: :shadow
#[sdk(attr(qname = ":shadow"))]
pub shadow: Option<crate::simple_type::TrueFalseValue>,
}
/// Right Border.
///
/// Available in Office2007 and above.
///
/// When the object is serialized out as xml, it's qualified name is w10:borderright.
#[derive(Clone, Debug, Default, PartialEq, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "w10:CT_Border/w10:borderright")]
pub struct RightBorder {
/// Border Style
///
/// Available in Office2007 and above.
///
/// Represents the following attribute in the schema: :type
#[sdk(attr(qname = ":type"))]
pub r#type: Option<BorderValues>,
/// Border Width
///
/// Available in Office2007 and above.
///
/// Represents the following attribute in the schema: :width
#[sdk(attr(qname = ":width"))]
#[sdk(number_sign(source = 0u32, kind = "positive"))]
pub width: Option<crate::simple_type::IntegerValue>,
/// Border shadow
///
/// Available in Office2007 and above.
///
/// Represents the following attribute in the schema: :shadow
#[sdk(attr(qname = ":shadow"))]
pub shadow: Option<crate::simple_type::TrueFalseValue>,
}
/// Bottom Border.
///
/// Available in Office2007 and above.
///
/// When the object is serialized out as xml, it's qualified name is w10:borderbottom.
#[derive(Clone, Debug, Default, PartialEq, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "w10:CT_Border/w10:borderbottom")]
pub struct BottomBorder {
/// Border Style
///
/// Available in Office2007 and above.
///
/// Represents the following attribute in the schema: :type
#[sdk(attr(qname = ":type"))]
pub r#type: Option<BorderValues>,
/// Border Width
///
/// Available in Office2007 and above.
///
/// Represents the following attribute in the schema: :width
#[sdk(attr(qname = ":width"))]
#[sdk(number_sign(source = 0u32, kind = "positive"))]
pub width: Option<crate::simple_type::IntegerValue>,
/// Border shadow
///
/// Available in Office2007 and above.
///
/// Represents the following attribute in the schema: :shadow
#[sdk(attr(qname = ":shadow"))]
pub shadow: Option<crate::simple_type::TrueFalseValue>,
}
/// Defines the BorderType Class.
///
/// Available in Office2007 and above.
///
/// When the object is serialized out as xml, it's qualified name is .
#[derive(Clone, Debug, Default, PartialEq, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "w10:CT_Border/")]
pub struct BorderType {
/// Border Style
///
/// Available in Office2007 and above.
///
/// Represents the following attribute in the schema: :type
#[sdk(attr(qname = ":type"))]
pub r#type: Option<BorderValues>,
/// Border Width
///
/// Available in Office2007 and above.
///
/// Represents the following attribute in the schema: :width
#[sdk(attr(qname = ":width"))]
#[sdk(number_sign(source = 0u32, kind = "positive"))]
pub width: Option<crate::simple_type::IntegerValue>,
/// Border shadow
///
/// Available in Office2007 and above.
///
/// Represents the following attribute in the schema: :shadow
#[sdk(attr(qname = ":shadow"))]
pub shadow: Option<crate::simple_type::TrueFalseValue>,
}
/// Text Wrapping.
///
/// Available in Office2007 and above.
///
/// When the object is serialized out as xml, it's qualified name is w10:wrap.
#[derive(Clone, Debug, Default, PartialEq, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "w10:CT_Wrap/w10:wrap")]
pub struct TextWrap {
/// Wrapping type
///
/// Available in Office2007 and above.
///
/// Represents the following attribute in the schema: :type
#[sdk(attr(qname = ":type"))]
pub r#type: Option<WrapValues>,
/// Wrapping side
///
/// Available in Office2007 and above.
///
/// Represents the following attribute in the schema: :side
#[sdk(attr(qname = ":side"))]
pub side: Option<WrapSideValues>,
/// Horizontal Positioning Base
///
/// Available in Office2007 and above.
///
/// Represents the following attribute in the schema: :anchorx
#[sdk(attr(qname = ":anchorx"))]
pub anchor_x: Option<HorizontalAnchorValues>,
/// Vertical Positioning Base
///
/// Available in Office2007 and above.
///
/// Represents the following attribute in the schema: :anchory
#[sdk(attr(qname = ":anchory"))]
pub anchor_y: Option<VerticalAnchorValues>,
}
/// Anchor Location Is Locked.
///
/// Available in Office2007 and above.
///
/// When the object is serialized out as xml, it's qualified name is w10:anchorlock.
#[derive(Clone, Debug, Default, PartialEq, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "w10:CT_AnchorLock/w10:anchorlock")]
pub struct AnchorLock {}