pub const RELATIONSHIP_TYPE: &str =
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing";
pub const PATH_PREFIX: &str = "../drawings";
pub const CONTENT_TYPE: &str = "application/vnd.openxmlformats-officedocument.drawing+xml";
pub const TARGET_NAME: &str = "drawing";
pub const EXTENSION: &str = "";
#[derive(Clone, Debug, Eq, PartialEq, ooxmlsdk_derive::SdkPart)]
pub struct DrawingsPart {
pub(crate) relationship_id: Option<String>,
pub(crate) id: crate::common::PartId,
}
impl DrawingsPart {
crate::sdk_part_root_methods!(
crate::schemas::schemas_openxmlformats_org_drawingml_2006_spreadsheet_drawing::WorksheetDrawing,
DrawingsPart,
as_drawings_part,
as_drawings_part_mut
);
pub fn chart_parts<'a, P: crate::sdk::SdkPackage>(
&'a self,
package: &'a P,
) -> impl Iterator<Item = crate::parts::chart_part::ChartPart> + 'a {
<Self as crate::sdk::SdkPart>::child_parts_by_relationship_type::<
P,
crate::parts::chart_part::ChartPart,
>(
self,
package,
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",
)
}
pub fn extended_chart_parts<'a, P: crate::sdk::SdkPackage>(
&'a self,
package: &'a P,
) -> impl Iterator<Item = crate::parts::extended_chart_part::ExtendedChartPart> + 'a {
<Self as crate::sdk::SdkPart>::child_parts_by_relationship_type::<
P,
crate::parts::extended_chart_part::ExtendedChartPart,
>(
self,
package,
"http://schemas.microsoft.com/office/2014/relationships/chartEx",
)
}
pub fn diagram_colors_parts<'a, P: crate::sdk::SdkPackage>(
&'a self,
package: &'a P,
) -> impl Iterator<Item = crate::parts::diagram_colors_part::DiagramColorsPart> + 'a {
<Self as crate::sdk::SdkPart>::child_parts_by_relationship_type::<
P,
crate::parts::diagram_colors_part::DiagramColorsPart,
>(
self,
package,
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramColors",
)
}
pub fn diagram_data_parts<'a, P: crate::sdk::SdkPackage>(
&'a self,
package: &'a P,
) -> impl Iterator<Item = crate::parts::diagram_data_part::DiagramDataPart> + 'a {
<Self as crate::sdk::SdkPart>::child_parts_by_relationship_type::<
P,
crate::parts::diagram_data_part::DiagramDataPart,
>(
self,
package,
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData",
)
}
pub fn diagram_persist_layout_parts<'a, P: crate::sdk::SdkPackage>(
&'a self,
package: &'a P,
) -> impl Iterator<Item = crate::parts::diagram_persist_layout_part::DiagramPersistLayoutPart> + 'a
{
<Self as crate::sdk::SdkPart>::child_parts_by_relationship_type::<
P,
crate::parts::diagram_persist_layout_part::DiagramPersistLayoutPart,
>(
self,
package,
"http://schemas.microsoft.com/office/2007/relationships/diagramDrawing",
)
}
pub fn diagram_layout_definition_parts<'a, P: crate::sdk::SdkPackage>(
&'a self,
package: &'a P,
) -> impl Iterator<Item = crate::parts::diagram_layout_definition_part::DiagramLayoutDefinitionPart> + 'a
{
<Self as crate::sdk::SdkPart>::child_parts_by_relationship_type::<
P,
crate::parts::diagram_layout_definition_part::DiagramLayoutDefinitionPart,
>(
self,
package,
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramLayout",
)
}
pub fn diagram_style_parts<'a, P: crate::sdk::SdkPackage>(
&'a self,
package: &'a P,
) -> impl Iterator<Item = crate::parts::diagram_style_part::DiagramStylePart> + 'a {
<Self as crate::sdk::SdkPart>::child_parts_by_relationship_type::<
P,
crate::parts::diagram_style_part::DiagramStylePart,
>(
self,
package,
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramQuickStyle",
)
}
pub fn image_parts<'a, P: crate::sdk::SdkPackage>(
&'a self,
package: &'a P,
) -> impl Iterator<Item = crate::parts::image_part::ImagePart> + 'a {
<Self as crate::sdk::SdkPart>::child_parts_by_relationship_type::<
P,
crate::parts::image_part::ImagePart,
>(
self,
package,
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",
)
}
pub fn custom_xml_parts<'a, P: crate::sdk::SdkPackage>(
&'a self,
package: &'a P,
) -> impl Iterator<Item = crate::parts::custom_xml_part::CustomXmlPart> + 'a {
<Self as crate::sdk::SdkPart>::child_parts_by_relationship_type::<
P,
crate::parts::custom_xml_part::CustomXmlPart,
>(
self,
package,
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",
)
}
pub fn web_extension_parts<'a, P: crate::sdk::SdkPackage>(
&'a self,
package: &'a P,
) -> impl Iterator<Item = crate::parts::web_extension_part::WebExtensionPart> + 'a {
<Self as crate::sdk::SdkPart>::child_parts_by_relationship_type::<
P,
crate::parts::web_extension_part::WebExtensionPart,
>(
self,
package,
"http://schemas.microsoft.com/office/2011/relationships/webextension",
)
}
}