|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.hslf.usermodel.SlideShow
public class SlideShow
This class is a friendly wrapper on top of the more scary HSLFSlideShow. TODO: - figure out how to match notes to their correct sheet (will involve understanding DocSlideList and DocNotesList) - handle Slide creation cleaner
Constructor Summary | |
---|---|
SlideShow()
Constructs a new, empty, Powerpoint document. |
|
SlideShow(HSLFSlideShow hslfSlideShow)
Constructs a Powerpoint document from the underlying HSLFSlideShow object. |
|
SlideShow(java.io.InputStream inputStream)
Constructs a Powerpoint document from an input stream. |
Method Summary | |
---|---|
int |
addFont(PPFont font)
Add a font in this presentation |
int |
addPicture(byte[] data,
int format)
Adds a picture to this presentation and returns the associated index. |
int |
addPicture(java.io.File pict,
int format)
Adds a picture to this presentation and returns the associated index. |
Slide |
createSlide()
Create a blank Slide . |
Document |
getDocumentRecord()
Helper method for usermodel and model: Get the document record |
ObjectData[] |
getEmbeddedObjects()
Returns the data of all the embedded OLE object in the SlideShow |
PPFont |
getFont(int idx)
Get a font by index |
protected FontCollection |
getFontCollection()
Helper method for usermodel: Get the font collection |
Record[] |
getMostRecentCoreRecords()
Returns an array of the most recent version of all the interesting records |
Notes[] |
getNotes()
Returns an array of all the normal Notes found in the slideshow |
int |
getNumberOfFonts()
get the number of fonts in the presentation |
java.awt.Dimension |
getPageSize()
Return the current page size |
PictureData[] |
getPictureData()
Returns the data of all the pictures attached to the SlideShow |
Slide[] |
getSlides()
Returns an array of all the normal Slides found in the slideshow |
SlideMaster[] |
getSlidesMasters()
Returns an array of all the normal Slide Masters found in the slideshow |
SoundData[] |
getSoundData()
Returns the data of all the embedded sounds in the SlideShow |
TitleMaster[] |
getTitleMasters()
Returns an array of all the normal Title Masters found in the slideshow |
void |
reorderSlide(int oldSlideNumer,
int newSlideNumber)
Re-orders a slide, to a new position. |
void |
setPageSize(java.awt.Dimension pgsize)
Change the current page size |
void |
write(java.io.OutputStream out)
Writes out the slideshow file the is represented by an instance of this class |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SlideShow(HSLFSlideShow hslfSlideShow) throws java.io.IOException
hslfSlideShow
- the HSLFSlideShow to base on
java.io.IOException
public SlideShow() throws java.io.IOException
java.io.IOException
public SlideShow(java.io.InputStream inputStream) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public void write(java.io.OutputStream out) throws java.io.IOException
out
- The OutputStream to write to.
java.io.IOException
- If there is an unexpected IOException from the passed
in OutputStreampublic Record[] getMostRecentCoreRecords()
public Slide[] getSlides()
public Notes[] getNotes()
public SlideMaster[] getSlidesMasters()
public TitleMaster[] getTitleMasters()
public PictureData[] getPictureData()
public ObjectData[] getEmbeddedObjects()
public SoundData[] getSoundData()
public java.awt.Dimension getPageSize()
public void setPageSize(java.awt.Dimension pgsize)
pgsize
- page size (in points)protected FontCollection getFontCollection()
public Document getDocumentRecord()
public void reorderSlide(int oldSlideNumer, int newSlideNumber)
oldSlideNumer
- The old slide number (1 based)newSlideNumber
- The new slide number (1 based)public Slide createSlide() throws java.io.IOException
Slide
.
Slide
java.io.IOException
public int addPicture(byte[] data, int format) throws java.io.IOException
data
- picture dataformat
- the format of the picture. One of constans defined in the Picture
class.
java.io.IOException
public int addPicture(java.io.File pict, int format) throws java.io.IOException
pict
- the file containing the image to addformat
- the format of the picture. One of constans defined in the Picture
class.
java.io.IOException
public int addFont(PPFont font)
font
- the font to add
public PPFont getFont(int idx)
idx
- 0-based index of the font
PPFont
or null
if not foundpublic int getNumberOfFonts()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |