pub struct Slide<'d> {
pub index: usize,
pub part: String,
pub content: SlideContent,
pub report: SlideReport,
/* private fields */
}Expand description
One parsed slide, bound to its document.
Fields§
§index: usize§part: StringThe Slide part name.
content: SlideContent§report: SlideReportImplementations§
Source§impl<'d> Slide<'d>
impl<'d> Slide<'d>
pub fn document(&self) -> &'d Document
True for slides marked hidden.
Sourcepub fn rels(&self) -> Result<Rc<Relationships>>
pub fn rels(&self) -> Result<Rc<Relationships>>
The slide’s relationships.
Sourcepub fn chart(&self, rel_id: &str) -> Result<ChartData>
pub fn chart(&self, rel_id: &str) -> Result<ChartData>
The chart part behind relationship rel_id, parsed.
Sourcepub fn diagram(&self, rel_id: &str) -> Result<DiagramData>
pub fn diagram(&self, rel_id: &str) -> Result<DiagramData>
The diagram data part behind relationship rel_id, parsed.
Sourcepub fn charts(&self) -> Result<Vec<(u32, ChartData)>>
pub fn charts(&self) -> Result<Vec<(u32, ChartData)>>
Every chart on the slide with the id of its graphic frame, in z-order.
Sourcepub fn diagrams(&self) -> Result<Vec<(u32, DiagramData)>>
pub fn diagrams(&self) -> Result<Vec<(u32, DiagramData)>>
Every diagram on the slide with the id of its graphic frame, in z-order.
Sourcepub fn text_reporting(
&self,
options: &TextOptions,
report: &mut ExtractReport,
) -> String
pub fn text_reporting( &self, options: &TextOptions, report: &mut ExtractReport, ) -> String
The slide text with options, recording problems in report.
Sourcepub fn notes_part(&self) -> Result<Option<String>>
pub fn notes_part(&self) -> Result<Option<String>>
The Notes Slide part, if the slide has one.
Sourcepub fn comments_part(&self) -> Result<Option<String>>
pub fn comments_part(&self) -> Result<Option<String>>
The comments part of either flavour, if the slide has one.
Sourcepub fn comments(&self) -> Result<Vec<Comment>>
pub fn comments(&self) -> Result<Vec<Comment>>
The slide’s comments in document order, replies after their parent.
Sourcepub fn objects(&self) -> Result<Vec<ObjectRef>>
pub fn objects(&self) -> Result<Vec<ObjectRef>>
Every embedded object on the slide with its part resolved.
Sourcepub fn object_bytes(&self, object: &ObjectRef) -> Result<Vec<u8>>
pub fn object_bytes(&self, object: &ObjectRef) -> Result<Vec<u8>>
The bytes of an embedded object’s part.
Sourcepub fn layout_part(&self) -> Result<Option<String>>
pub fn layout_part(&self) -> Result<Option<String>>
The Slide Layout part.
Sourcepub fn notes(&self) -> Result<Option<TextBody>>
pub fn notes(&self) -> Result<Option<TextBody>>
The speaker notes: the body placeholder of the notes slide, or, when there is none, every text shape on it other than the slide image and furniture.
Sourcepub fn notes_text(&self) -> Result<Option<String>>
pub fn notes_text(&self) -> Result<Option<String>>
The speaker notes as plain text, if any.
Sourcepub fn images(&self) -> Result<Vec<ImageRef>>
pub fn images(&self) -> Result<Vec<ImageRef>>
Every picture on the slide with its image part resolved.
Source§impl Slide<'_>
impl Slide<'_>
Sourcepub fn markdown(
&self,
options: &MarkdownOptions,
report: &mut ExtractReport,
) -> String
pub fn markdown( &self, options: &MarkdownOptions, report: &mut ExtractReport, ) -> String
This slide as Markdown, without a trailing newline; empty for a hidden slide left out.