Class OdfSlide
java.lang.Object
org.odftoolkit.odfdom.doc.presentation.OdfSlide
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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumA slide layout is a slide with some predefine placeholder. -
Method Summary
Modifier and TypeMethodDescriptionstatic OdfSlidegetInstance(DrawPageElement pageElement) Get a presentation slide instance by an instance ofDrawPageElement.Get the Notes page of this slideReturn an instance ofDrawPageElementwhich represents presentation slide feature.intGet the current slide index in the owner document.Get the current slide name.voidsetSlideName(String name) Set the current slide name.
-
Method Details
-
getInstance
Get a presentation slide instance by an instance ofDrawPageElement.- Parameters:
pageElement- an instance ofDrawPageElement- Returns:
- an instance of
OdfSlidethat can representpageElement
-
getOdfElement
Return an instance ofDrawPageElementwhich represents presentation slide feature.- Returns:
- an instance of
DrawPageElement
-
getSlideIndex
public int getSlideIndex()Get the current slide index in the owner document.- Returns:
- the slide index in the owner document
-1, if the odf element which can represent this slide is not in the document DOM tree
-
getSlideName
Get the current slide name.If the "draw:name" attribute is not present there, create an unique name for this slide
- Returns:
- the name of the current slide
-
setSlideName
Set the current slide 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.
- Parameters:
name- the new name of the current slide- Throws:
IllegalArgumentException- if the given name is null or it is not unique in the current presentation.
-
getNotesPage
Get the Notes page of this slide- Returns:
- the instance of
OdfPresentationNoteswhich represent the notes page of the current slide
-