#[derive(Copy, Clone, Debug, Default, PartialEq, Eq, Hash, ooxmlsdk_derive::SdkEnum)]
pub enum PersistenceValues {
#[sdk(rename = "persistPropertyBag")]
#[default]
PersistPropertyBag,
#[sdk(rename = "persistStream")]
PersistStream,
#[sdk(rename = "persistStreamInit")]
PersistStreamInit,
#[sdk(rename = "persistStorage")]
PersistStorage,
}
#[derive(Clone, Debug, Default, PartialEq, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "ax:CT_Ocx/ax:ocx")]
pub struct ActiveXControlData {
#[sdk(attr(qname = "ax:classid"))]
pub active_x_control_class_id: crate::simple_type::StringValue,
#[sdk(attr(qname = "ax:license"))]
pub license: Option<crate::simple_type::StringValue>,
#[sdk(attr(qname = "r:id"))]
pub id: Option<crate::simple_type::StringValue>,
#[sdk(attr(qname = "ax:persistence"))]
pub persistence: PersistenceValues,
#[sdk(child(qname = "ax:CT_OcxPr/ax:ocxPr"))]
pub ax_ocx_pr: Vec<ActiveXObjectProperty>,
}
#[derive(Clone, Debug, Default, PartialEq, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "ax:CT_OcxPr/ax:ocxPr")]
pub struct ActiveXObjectProperty {
#[sdk(attr(qname = "ax:name"))]
pub name: crate::simple_type::StringValue,
#[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 active_x_object_property_choice: Option<ActiveXObjectPropertyChoice>,
}
#[derive(Clone, Debug, Default, PartialEq, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "ax:CT_Font/ax:font")]
pub struct SharedComFont {
#[sdk(attr(qname = "ax:persistence"))]
pub persistence: Option<PersistenceValues>,
#[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>,
}
#[derive(Clone, Debug, Default, PartialEq, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "ax:CT_Picture/ax:picture")]
pub struct SharedComPicture {
#[sdk(attr(qname = "r:id"))]
pub id: Option<crate::simple_type::StringValue>,
}
#[derive(Clone, Debug, PartialEq, 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>),
}