org.odftoolkit.simple.presentation.Slide in Simple API.public class OdfSlide extends Object
OdfSlide represents the presentation slide feature of the ODF document.
OdfSlide provides methods to get the slide index,get the content of the current slide, etc.| Modifier and Type | Class and Description |
|---|---|
static class |
OdfSlide.SlideLayout
Deprecated.
A slide layout is a slide with some predefine placeholder.
|
| Modifier and Type | Method and Description |
|---|---|
static OdfSlide |
getInstance(DrawPageElement pageElement)
Deprecated.
Get a presentation slide instance by an instance of
DrawPageElement. |
OdfPresentationNotes |
getNotesPage()
Deprecated.
Get the Notes page of this slide
|
DrawPageElement |
getOdfElement()
Deprecated.
Return an instance of
DrawPageElement which represents presentation slide feature. |
int |
getSlideIndex()
Deprecated.
Get the current slide index in the owner document.
|
String |
getSlideName()
Deprecated.
Get the current slide name.
|
void |
setSlideName(String name)
Deprecated.
Set the current slide name.
|
public static OdfSlide getInstance(DrawPageElement pageElement)
DrawPageElement.pageElement - an instance of DrawPageElementOdfSlide that can represent pageElementpublic DrawPageElement getOdfElement()
DrawPageElement which represents presentation slide feature.DrawPageElementpublic int getSlideIndex()
-1, if the odf element which can represent this slide is not in the document DOM tree
public String getSlideName()
If the "draw:name" attribute is not present there, create an unique name for this slide
public void setSlideName(String name)
It must be unique slide name in the current presentation. If not, an IllegalArgumentException will be thrown. If the given name is null, an IllegalArgumentException will also be thrown.
name - the new name of the current slideIllegalArgumentException - if the given name is null or it is not unique in the current presentation.public OdfPresentationNotes getNotesPage()
OdfPresentationNotes which represent the notes page of the current slideCopyright © 2008–2018 Apache Software Foundation; Copyright © 2018–2019 The Document Foundation. All rights reserved.