pub const RELATIONSHIP_TYPE: &str =
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet";
pub const PATH_PREFIX: &str = "worksheets";
pub const CONTENT_TYPE: &str =
"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml";
pub const TARGET_NAME: &str = "sheet";
pub const EXTENSION: &str = "";
#[derive(Clone, Debug, Eq, PartialEq, ooxmlsdk_derive::SdkPart)]
pub struct WorksheetPart {
pub(crate) relationship_id: Option<String>,
pub(crate) id: crate::common::PartId,
}
impl WorksheetPart {
crate::sdk_part_root_methods!(
crate::schemas::schemas_openxmlformats_org_spreadsheetml_2006_main::Worksheet,
WorksheetPart,
as_worksheet_part,
as_worksheet_part_mut
);
pub fn spreadsheet_printer_settings_parts<'a, P: crate::sdk::SdkPackage>(
&'a self,
package: &'a P,
) -> impl Iterator<
Item = crate::parts::spreadsheet_printer_settings_part::SpreadsheetPrinterSettingsPart,
> + 'a {
<Self as crate::sdk::SdkPart>::child_parts_by_relationship_type::<
P,
crate::parts::spreadsheet_printer_settings_part::SpreadsheetPrinterSettingsPart,
>(
self,
package,
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/printerSettings",
)
}
pub fn drawings_part<P: crate::sdk::SdkPackage>(
&self,
package: &P,
) -> Option<crate::parts::drawings_part::DrawingsPart> {
<Self as crate::sdk::SdkPart>::child_part_by_relationship_type::<
P,
crate::parts::drawings_part::DrawingsPart,
>(
self,
package,
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",
)
}
pub fn vml_drawing_parts<'a, P: crate::sdk::SdkPackage>(
&'a self,
package: &'a P,
) -> impl Iterator<Item = crate::parts::vml_drawing_part::VmlDrawingPart> + 'a {
<Self as crate::sdk::SdkPart>::child_parts_by_relationship_type::<
P,
crate::parts::vml_drawing_part::VmlDrawingPart,
>(
self,
package,
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",
)
}
pub fn worksheet_comments_part<P: crate::sdk::SdkPackage>(
&self,
package: &P,
) -> Option<crate::parts::worksheet_comments_part::WorksheetCommentsPart> {
<Self as crate::sdk::SdkPart>::child_part_by_relationship_type::<
P,
crate::parts::worksheet_comments_part::WorksheetCommentsPart,
>(
self,
package,
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",
)
}
pub fn pivot_table_parts<'a, P: crate::sdk::SdkPackage>(
&'a self,
package: &'a P,
) -> impl Iterator<Item = crate::parts::pivot_table_part::PivotTablePart> + 'a {
<Self as crate::sdk::SdkPart>::child_parts_by_relationship_type::<
P,
crate::parts::pivot_table_part::PivotTablePart,
>(
self,
package,
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotTable",
)
}
pub fn single_cell_table_part<P: crate::sdk::SdkPackage>(
&self,
package: &P,
) -> Option<crate::parts::single_cell_table_part::SingleCellTablePart> {
<Self as crate::sdk::SdkPart>::child_part_by_relationship_type::<
P,
crate::parts::single_cell_table_part::SingleCellTablePart,
>(
self,
package,
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/tableSingleCells",
)
}
pub fn table_definition_parts<'a, P: crate::sdk::SdkPackage>(
&'a self,
package: &'a P,
) -> impl Iterator<Item = crate::parts::table_definition_part::TableDefinitionPart> + 'a {
<Self as crate::sdk::SdkPart>::child_parts_by_relationship_type::<
P,
crate::parts::table_definition_part::TableDefinitionPart,
>(
self,
package,
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table",
)
}
pub fn embedded_control_persistence_parts<'a, P: crate::sdk::SdkPackage>(
&'a self,
package: &'a P,
) -> impl Iterator<
Item = crate::parts::embedded_control_persistence_part::EmbeddedControlPersistencePart,
> + 'a {
<Self as crate::sdk::SdkPart>::child_parts_by_relationship_type::<
P,
crate::parts::embedded_control_persistence_part::EmbeddedControlPersistencePart,
>(
self,
package,
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/control",
)
}
pub fn control_properties_parts<'a, P: crate::sdk::SdkPackage>(
&'a self,
package: &'a P,
) -> impl Iterator<Item = crate::parts::control_properties_part::ControlPropertiesPart> + 'a {
<Self as crate::sdk::SdkPart>::child_parts_by_relationship_type::<
P,
crate::parts::control_properties_part::ControlPropertiesPart,
>(
self,
package,
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/ctrlProp",
)
}
pub fn embedded_object_parts<'a, P: crate::sdk::SdkPackage>(
&'a self,
package: &'a P,
) -> impl Iterator<Item = crate::parts::embedded_object_part::EmbeddedObjectPart> + 'a {
<Self as crate::sdk::SdkPart>::child_parts_by_relationship_type::<
P,
crate::parts::embedded_object_part::EmbeddedObjectPart,
>(
self,
package,
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/oleObject",
)
}
pub fn embedded_package_parts<'a, P: crate::sdk::SdkPackage>(
&'a self,
package: &'a P,
) -> impl Iterator<Item = crate::parts::embedded_package_part::EmbeddedPackagePart> + 'a {
<Self as crate::sdk::SdkPart>::child_parts_by_relationship_type::<
P,
crate::parts::embedded_package_part::EmbeddedPackagePart,
>(
self,
package,
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/package",
)
}
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_property_parts<'a, P: crate::sdk::SdkPackage>(
&'a self,
package: &'a P,
) -> impl Iterator<Item = crate::parts::custom_property_part::CustomPropertyPart> + 'a {
<Self as crate::sdk::SdkPart>::child_parts_by_relationship_type::<
P,
crate::parts::custom_property_part::CustomPropertyPart,
>(
self,
package,
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customProperty",
)
}
pub fn worksheet_sort_map_part<P: crate::sdk::SdkPackage>(
&self,
package: &P,
) -> Option<crate::parts::worksheet_sort_map_part::WorksheetSortMapPart> {
<Self as crate::sdk::SdkPart>::child_part_by_relationship_type::<
P,
crate::parts::worksheet_sort_map_part::WorksheetSortMapPart,
>(
self,
package,
"http://schemas.microsoft.com/office/2006/relationships/wsSortMap",
)
}
pub fn query_table_parts<'a, P: crate::sdk::SdkPackage>(
&'a self,
package: &'a P,
) -> impl Iterator<Item = crate::parts::query_table_part::QueryTablePart> + 'a {
<Self as crate::sdk::SdkPart>::child_parts_by_relationship_type::<
P,
crate::parts::query_table_part::QueryTablePart,
>(
self,
package,
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/queryTable",
)
}
pub fn embedded_control_persistence_binary_data_parts<'a, P: crate::sdk::SdkPackage>(
&'a self,
package: &'a P,
) -> impl Iterator<
Item = crate::parts::embedded_control_persistence_binary_data_part::EmbeddedControlPersistenceBinaryDataPart,
> + 'a{
<Self as crate::sdk::SdkPart>::child_parts_by_relationship_type::<
P,
crate::parts::embedded_control_persistence_binary_data_part::EmbeddedControlPersistenceBinaryDataPart,
>(
self,
package,
"http://schemas.microsoft.com/office/2006/relationships/activeXControlBinary",
)
}
pub fn slicers_parts<'a, P: crate::sdk::SdkPackage>(
&'a self,
package: &'a P,
) -> impl Iterator<Item = crate::parts::slicers_part::SlicersPart> + 'a {
<Self as crate::sdk::SdkPart>::child_parts_by_relationship_type::<
P,
crate::parts::slicers_part::SlicersPart,
>(
self,
package,
"http://schemas.microsoft.com/office/2007/relationships/slicer",
)
}
pub fn time_line_parts<'a, P: crate::sdk::SdkPackage>(
&'a self,
package: &'a P,
) -> impl Iterator<Item = crate::parts::time_line_part::TimeLinePart> + 'a {
<Self as crate::sdk::SdkPart>::child_parts_by_relationship_type::<
P,
crate::parts::time_line_part::TimeLinePart,
>(
self,
package,
"http://schemas.microsoft.com/office/2011/relationships/timeline",
)
}
pub fn worksheet_threaded_comments_parts<'a, P: crate::sdk::SdkPackage>(
&'a self,
package: &'a P,
) -> impl Iterator<
Item = crate::parts::worksheet_threaded_comments_part::WorksheetThreadedCommentsPart,
> + 'a {
<Self as crate::sdk::SdkPart>::child_parts_by_relationship_type::<
P,
crate::parts::worksheet_threaded_comments_part::WorksheetThreadedCommentsPart,
>(
self,
package,
"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",
)
}
pub fn model3_d_reference_relationship_parts<'a, P: crate::sdk::SdkPackage>(
&'a self,
package: &'a P,
) -> impl Iterator<
Item = crate::parts::model3_d_reference_relationship_part::Model3DReferenceRelationshipPart,
> + 'a {
<Self as crate::sdk::SdkPart>::child_parts_by_relationship_type::<
P,
crate::parts::model3_d_reference_relationship_part::Model3DReferenceRelationshipPart,
>(
self,
package,
"http://schemas.microsoft.com/office/2017/06/relationships/model3d",
)
}
pub fn named_sheet_views_parts<'a, P: crate::sdk::SdkPackage>(
&'a self,
package: &'a P,
) -> impl Iterator<Item = crate::parts::named_sheet_views_part::NamedSheetViewsPart> + 'a {
<Self as crate::sdk::SdkPart>::child_parts_by_relationship_type::<
P,
crate::parts::named_sheet_views_part::NamedSheetViewsPart,
>(
self,
package,
"http://schemas.microsoft.com/office/2019/04/relationships/namedSheetView",
)
}
}