org.apache.poi.hslf.model
Class Slide

java.lang.Object
  extended byorg.apache.poi.hslf.model.Sheet
      extended byorg.apache.poi.hslf.model.Slide

public class Slide
extends Sheet

This class represents a slide in a PowerPoint Document. It allows access to the text within, and the layout. For now, it only does the text side of things though

Author:
Nick Burch

Constructor Summary
Slide(Slide slide, Notes notes, SlideListWithText.SlideAtomsSet atomSet)
          Constructs a Slide from the Slide record, and the SlideAtomsSet containing the text.
 
Method Summary
 Notes getNotesSheet()
          Returns the Notes Sheet for this slide, or null if there isn't one
 int getSheetNumber()
          Returns the sheet number
 Slide getSlideRecord()
          Returns the underlying slide record
 TextRun[] getTextRuns()
          Returns an array of all the TextRuns found
 void setNotes(Notes notes)
          Sets the Notes that are associated with this.
 
Methods inherited from class org.apache.poi.hslf.model.Sheet
findTextRuns, findTextRuns
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Slide

public Slide(Slide slide,
             Notes notes,
             SlideListWithText.SlideAtomsSet atomSet)
Constructs a Slide from the Slide record, and the SlideAtomsSet containing the text. Initialises TextRuns, to provide easier access to the text

Parameters:
slide - the Slide record we're based on
notes - the Notes sheet attached to us
atomSet - the SlideAtomsSet to get the text from
Method Detail

setNotes

public void setNotes(Notes notes)
Sets the Notes that are associated with this. Updates the references in the records to point to the new ID


getTextRuns

public TextRun[] getTextRuns()
Returns an array of all the TextRuns found

Specified by:
getTextRuns in class Sheet

getSheetNumber

public int getSheetNumber()
Returns the sheet number

Specified by:
getSheetNumber in class Sheet

getSlideRecord

public Slide getSlideRecord()
Returns the underlying slide record


getNotesSheet

public Notes getNotesSheet()
Returns the Notes Sheet for this slide, or null if there isn't one



Copyright 2005 The Apache Software Foundation or its licensors, as applicable.