pub struct Presentation {
pub document: Document,
}Expand description
An OpenDocument presentation.
Fields§
§document: DocumentThe package and everything shared with the other two formats.
Implementations§
Source§impl Presentation
impl Presentation
Sourcepub fn background(&self, slide: &Slide<'_>) -> Fill
pub fn background(&self, slide: &Slide<'_>) -> Fill
What fills the ground behind a slide.
The slide’s own drawing-page style first, then its master’s, which is
where a template puts the colour or gradient every slide shares. A slide
that turns presentation:background-visible off gets neither.
Sourcepub fn background_objects(&self, slide: &Slide<'_>) -> Vec<&Element>
pub fn background_objects(&self, slide: &Slide<'_>) -> Vec<&Element>
The master page’s decorations: what is drawn behind a slide before anything on the slide itself.
A child carrying a presentation:class is left out, because that
attribute is what makes a frame a slot rather than a decoration: the
slide’s own frame of that class takes its place, and what the master
holds is either a prompt or a field. Left in, a slide gains the words
Click to edit Master title style and a literal <number>.
The class and not presentation:placeholder, which would be the obvious
test and is not written reliably: the title frame on deck.odp’s master
carries the prompt text and no such attribute. Measured, not read.
Empty for a slide whose style turns presentation:background-objects-visible
off, which is how a template offers a plain slide.
Sourcepub fn page_layout(&self, slide: &Slide<'_>) -> PageLayout
pub fn page_layout(&self, slide: &Slide<'_>) -> PageLayout
The page geometry a slide is drawn in: the size of its master page’s layout.
Every shape’s position is in this space, so a renderer needs it before it can place anything.