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
//
// -----------------------------------------------------------------------------
// THIS FILE WAS @generated AUTOMATICALLY. DO NOT MODIFY THIS FILE MANUALLY.
// -----------------------------------------------------------------------------
//
#[derive(Clone, Debug, Default, ooxmlsdk_derive::SdkEnum)]
pub enum PersistenceValues {
#[sdk(rename = "persistPropertyBag")]
#[default]
PersistPropertyBag,
#[sdk(rename = "persistStream")]
PersistStream,
#[sdk(rename = "persistStreamInit")]
PersistStreamInit,
#[sdk(rename = "persistStorage")]
PersistStorage,
}
/// Defines the ActiveXControlData Class.
///
/// Available in Office2007 and above.
///
/// When the object is serialized out as xml, it's qualified name is ax:ocx.
#[derive(Clone, Debug, Default, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "ax:CT_Ocx/ax:ocx")]
pub struct ActiveXControlData {
/// classid
///
/// Available in Office2007 and above.
///
/// Represents the following attribute in the schema: ax:classid
#[sdk(attr(qname = "ax:classid"))]
pub active_x_control_class_id: crate::simple_type::StringValue,
/// license
///
/// Available in Office2007 and above.
///
/// Represents the following attribute in the schema: ax:license
#[sdk(attr(qname = "ax:license"))]
pub license: Option<crate::simple_type::StringValue>,
/// id
///
/// Available in Office2007 and above.
///
/// Represents the following attribute in the schema: r:id
#[sdk(attr(qname = "r:id"))]
pub id: Option<crate::simple_type::StringValue>,
/// persistence
///
/// Available in Office2007 and above.
///
/// Represents the following attribute in the schema: ax:persistence
#[sdk(attr(qname = "ax:persistence"))]
pub persistence: PersistenceValues,
/// _
#[sdk(child(qname = "ax:CT_OcxPr/ax:ocxPr"))]
pub ax_ocx_pr: Vec<ActiveXObjectProperty>,
}
/// Defines the ActiveXObjectProperty Class.
///
/// Available in Office2007 and above.
///
/// When the object is serialized out as xml, it's qualified name is ax:ocxPr.
#[derive(Clone, Debug, Default, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "ax:CT_OcxPr/ax:ocxPr")]
pub struct ActiveXObjectProperty {
/// name
///
/// Available in Office2007 and above.
///
/// Represents the following attribute in the schema: ax:name
#[sdk(attr(qname = "ax:name"))]
pub name: crate::simple_type::StringValue,
/// value
///
/// Available in Office2007 and above.
///
/// Represents the following attribute in the schema: ax:value
#[sdk(attr(qname = "ax:value"))]
pub value: Option<crate::simple_type::StringValue>,
#[sdk(choice(qname = "ax:CT_Font/ax:font", qname = "ax:CT_Picture/ax:picture"))]
pub xml_children: Option<ActiveXObjectPropertyChoice>,
}
/// Defines the SharedComFont Class.
///
/// Available in Office2007 and above.
///
/// When the object is serialized out as xml, it's qualified name is ax:font.
#[derive(Clone, Debug, Default, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "ax:CT_Font/ax:font")]
pub struct SharedComFont {
/// persistence
///
/// Available in Office2007 and above.
///
/// Represents the following attribute in the schema: ax:persistence
#[sdk(attr(qname = "ax:persistence"))]
pub persistence: Option<PersistenceValues>,
/// id
///
/// Available in Office2007 and above.
///
/// Represents the following attribute in the schema: r:id
#[sdk(attr(qname = "r:id"))]
pub id: Option<crate::simple_type::StringValue>,
/// _
#[sdk(child(qname = "ax:CT_OcxPr/ax:ocxPr"))]
pub ax_ocx_pr: Vec<ActiveXObjectProperty>,
}
/// Defines the SharedComPicture Class.
///
/// Available in Office2007 and above.
///
/// When the object is serialized out as xml, it's qualified name is ax:picture.
#[derive(Clone, Debug, Default, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "ax:CT_Picture/ax:picture")]
pub struct SharedComPicture {
/// id
///
/// Available in Office2007 and above.
///
/// Represents the following attribute in the schema: r:id
#[sdk(attr(qname = "r:id"))]
pub id: Option<crate::simple_type::StringValue>,
}
#[derive(Clone, Debug, ooxmlsdk_derive::SdkChoice)]
pub enum ActiveXObjectPropertyChoice {
#[sdk(child(qname = "ax:CT_Font/ax:font"))]
AxFont(std::boxed::Box<SharedComFont>),
#[sdk(child(qname = "ax:CT_Picture/ax:picture"))]
AxPicture(std::boxed::Box<SharedComPicture>),
}