Save This Page
Home » poi-src-3.2-FINAL-20081019 » org.apache » poi » hslf » usermodel » [javadoc | source]
org.apache.poi.hslf.usermodel
public class: SlideShow [javadoc | source]
java.lang.Object
   org.apache.poi.hslf.usermodel.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:
 public SlideShow() throws IOException 
    Constructs a new, empty, Powerpoint document.
 public SlideShow(HSLFSlideShow hslfSlideShow) throws IOException 
    Constructs a Powerpoint document from the underlying HSLFSlideShow object. Finds the model stuff from this
    Parameters:
    hslfSlideShow - the HSLFSlideShow to base on
 public SlideShow(InputStream inputStream) throws IOException 
    Constructs a Powerpoint document from an input stream.
Method from org.apache.poi.hslf.usermodel.SlideShow Summary:
addFont,   addPicture,   addPicture,   createSlide,   getDocumentRecord,   getEmbeddedObjects,   getFont,   getFontCollection,   getMostRecentCoreRecords,   getNotes,   getNumberOfFonts,   getPageSize,   getPictureData,   getSlides,   getSlidesMasters,   getSoundData,   getTitleMasters,   reorderSlide,   setPageSize,   write
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.poi.hslf.usermodel.SlideShow Detail:
 public int addFont(PPFont font) 
    Add a font in this presentation
 public int addPicture(byte[] data,
    int format) throws IOException 
    Adds a picture to this presentation and returns the associated index.
 public int addPicture(File pict,
    int format) throws IOException 
    Adds a picture to this presentation and returns the associated index.
 public Slide createSlide() throws IOException 
    Create a blank Slide.
 public Document getDocumentRecord() 
    Helper method for usermodel and model: Get the document record
 public ObjectData[] getEmbeddedObjects() 
    Returns the data of all the embedded OLE object in the SlideShow
 public PPFont getFont(int idx) 
    Get a font by index
 protected FontCollection getFontCollection() 
    Helper method for usermodel: Get the font collection
 public Record[] getMostRecentCoreRecords() 
    Returns an array of the most recent version of all the interesting records
 public Notes[] getNotes() 
    Returns an array of all the normal Notes found in the slideshow
 public int getNumberOfFonts() 
    get the number of fonts in the presentation
 public Dimension getPageSize() 
    Return the current page size
 public PictureData[] getPictureData() 
    Returns the data of all the pictures attached to the SlideShow
 public Slide[] getSlides() 
    Returns an array of all the normal Slides found in the slideshow
 public SlideMaster[] getSlidesMasters() 
    Returns an array of all the normal Slide Masters found in the slideshow
 public SoundData[] getSoundData() 
    Returns the data of all the embedded sounds in the SlideShow
 public TitleMaster[] getTitleMasters() 
    Returns an array of all the normal Title Masters found in the slideshow
 public  void reorderSlide(int oldSlideNumer,
    int newSlideNumber) 
    Re-orders a slide, to a new position.
 public  void setPageSize(Dimension pgsize) 
    Change the current page size
 public  void write(OutputStream out) throws IOException 
    Writes out the slideshow file the is represented by an instance of this class