|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.slides.Presentation
public final class Presentation
Represents the Microsoft PowerPoint presentation.
Constructor Summary | |
---|---|
Presentation()
This constructor creates new presentation from scratch. |
|
Presentation(java.io.InputStream stream)
This constructor is the primary mechanism for reading an existing Presentation. |
Method Summary | |
---|---|
Slide |
addBodySlide()
Adds the new Slide with header and body placeholders to a presentation. |
Slide |
addDoubleBodySlide()
Adds the new Slide with header and two body placeholders to a presentation. |
Slide |
addEmptySlide()
Adds the new empty Slide to a presentation. |
Slide |
addHeaderSlide()
Adds the new Slide with header placeholder to a presentation. |
Slide |
addTitleSlide()
Adds the new Slide with header and subheader placeholders to a presentation. |
Slide |
cloneSlide(Slide srcSlide,
int position)
Makes the copy of a slide. |
Slide |
cloneSlide(Slide srcSlide,
int position,
Presentation pres,
java.util.TreeMap idList)
Makes a copy of a slide with master slides and inserts it to another presentation. |
void |
deleteHandout()
Deletes Handout object from a presentation. |
void |
deleteUnusedMasters()
Deletes all unused masters from a presentation. |
protected Shape |
findShape(int id)
|
protected Shape |
findShape(int id,
GroupShape group)
|
long |
getActiveSlideId()
Returns the Id of the active slide in a presentation. |
protected java.util.TreeMap |
getAllShapes()
|
protected void |
getAllShapes(java.util.TreeMap slist,
GroupShape group)
|
java.lang.String |
getAuthor()
Returns the author of a presentation. |
java.lang.String |
getCategory()
Returns the category property of a presentation. |
java.lang.String |
getComments()
Returns the comments of a presentation. |
java.lang.String |
getCompany()
Company where presentation was created. |
java.util.Date |
getCreateTime()
Returns the time when presentation was created. |
DocumentProperties |
getCustomDocumentProperties()
Returns the custom properties of a presentation. |
java.util.Date |
getEditTime()
Returns the edit time of a presentation. |
short |
getFirstSlideNumber()
Returns the number of the first slide in a presentation. |
Fonts |
getFonts()
Returns the list of all fonts in a presentation. |
java.lang.String |
getKeywords()
Returns the keywords of a presentation. |
java.lang.String |
getLastAuthor()
Returns the last author of a presentation. |
java.util.Date |
getLastPrintTime()
Returns the last time when presentation was printed. |
java.util.Date |
getLastSaveTime()
Returns the last time when presentation was saved. |
MainMaster |
getMainMaster()
Returns the first main master of a presentation. |
java.lang.String |
getManager()
Returns the manager of a presentation. |
Slides |
getMasters()
Returns the list of all masters in a presentation. |
protected LevelStyle |
getMasterStyle(long masterID,
int txType,
int level)
|
protected LevelStyle |
getMasterStyle(long masterID,
int txType,
int level,
boolean table)
|
protected long |
getNextMasterSlideId()
|
protected long |
getNextSlideId()
|
java.awt.Point |
getNotesSize()
Returns the size of a notes in a presentation. |
PictureBullets |
getPictureBullets()
Returns a list of all pictures used for a bullets that are defined in the presentation. |
Pictures |
getPictures()
Returns the list of all pictures in a presentation. |
protected PPTPresentation |
getPPTPresentation()
|
Slide |
getSlideById(long id)
Returns the slide by Id. |
Slide |
getSlideByPosition(int position)
Returns the slide by SlidePosition. |
Slides |
getSlides()
Returns the list of all slides in a presentation. |
SlideShowSettings |
getSlideShowSettings()
Returns the settings of a slide show in a presentation. |
java.awt.Point |
getSlideSize()
Returns the size of a slides in a presentation. |
int |
getSlideSizeType()
Returns the size type of a slides in a presentation. |
java.lang.String |
getSubject()
Returns the subject of a presentation. |
java.lang.String |
getTitle()
Returns the title of a presentation. |
boolean |
hasVBAMacros()
Determines whether a presentation contains any VBA macros. |
void |
setActiveSlideId(long value)
Sets the Id of the active slide in a presentation. |
void |
setAuthor(java.lang.String value)
Sets the author of a presentation. |
void |
setCategory(java.lang.String value)
Sets the category property of a presentation. |
void |
setComments(java.lang.String value)
Sets the comments of a presentation. |
void |
setCompany(java.lang.String value)
Sets the company of a presentation. |
void |
setCreateTime(java.util.Date value)
Sets the time when presentation was created. |
void |
setEditTime(java.util.Date value)
Sets the edit time of a presentation. |
void |
setFirstSlideNumber(short value)
Sets the number of the first slide in a presentation. |
void |
setKeywords(java.lang.String value)
Sets the keywords of a presentation. |
void |
setLastAuthor(java.lang.String value)
Sets the last author of a presentation. |
void |
setLastPrintTime(java.util.Date value)
Sets the last time when presentation was printed. |
void |
setLastSaveTime(java.util.Date value)
Sets the last time when presentation was saved. |
void |
setManager(java.lang.String value)
Sets the manager of a presentation. |
void |
setSlideSize(java.awt.Point value)
Sets the size of a slides in a presentation. |
void |
setSlideSizeType(int value)
Sets the SizeType of a slides in a presentation. |
void |
setSubject(java.lang.String value)
Sets the subject of a presentation. |
void |
setTitle(java.lang.String value)
Sets the title of a presentation. |
void |
write(java.io.OutputStream stream)
Writes the contents of the Presentation to an output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Presentation() throws PptReadException
PptReadException
public Presentation(java.io.InputStream stream) throws PptException
stream
- the input stream.
PptException
- on presentation reading errors.Method Detail |
---|
public void write(java.io.OutputStream stream) throws PptWriteException
stream
- the output stream.
PptWriteException
- on presentation writing errors.public void deleteHandout()
public void deleteUnusedMasters()
public Slides getSlides()
public Slides getMasters()
public MainMaster getMainMaster()
public Slide getSlideById(long id)
id
- the Id of a slide.
public Slide getSlideByPosition(int position)
position
- the position of a slide.
protected LevelStyle getMasterStyle(long masterID, int txType, int level)
protected LevelStyle getMasterStyle(long masterID, int txType, int level, boolean table)
public Slide cloneSlide(Slide srcSlide, int position) throws PptEditException
srcSlide
- the source slide to clone.position
- the position where new slide should be inserted.
PptEditException
- on slide cloning errors.public Slide cloneSlide(Slide srcSlide, int position, Presentation pres, java.util.TreeMap idList) throws PptEditException
srcSlide
- the source slide.position
- the position where new slide should be inserted.pres
- the presentation where new slide will be inserted.idList
- TreeMap object to store temporary information about ppt's masters.
PptEditException
- on slide cloning errors.public Slide addEmptySlide() throws PptReadException, PptEditException
PptReadException
PptEditException
public Slide addBodySlide() throws PptReadException, PptEditException
PptReadException
PptEditException
public Slide addDoubleBodySlide() throws PptReadException, PptEditException
PptReadException
PptEditException
public Slide addTitleSlide() throws PptReadException, PptEditException
PptReadException
PptEditException
public Slide addHeaderSlide() throws PptReadException, PptEditException
PptReadException
PptEditException
public Pictures getPictures()
public Fonts getFonts()
public java.awt.Point getSlideSize()
public void setSlideSize(java.awt.Point value)
value
- The size of a slides.public java.awt.Point getNotesSize()
public int getSlideSizeType()
SlideSizeType
.public void setSlideSizeType(int value)
value
- The size type of a slides. See SlideSizeType
.protected PPTPresentation getPPTPresentation()
protected long getNextSlideId()
protected long getNextMasterSlideId()
public java.lang.String getTitle()
public void setTitle(java.lang.String value) throws PptReadException
value
- the presentation title.
PptReadException
- if SummaryInformation not found in a presentation.public java.lang.String getSubject()
public void setSubject(java.lang.String value) throws PptReadException
value
- the presentation subject.
PptReadException
- if SummaryInformation not found in a presentation.public java.lang.String getAuthor()
public void setAuthor(java.lang.String value) throws PptReadException
value
- the presentation author.
PptReadException
- if SummaryInformation not found in a presentation.public java.lang.String getKeywords()
public void setKeywords(java.lang.String value) throws PptReadException
value
- the presentation keywords.
PptReadException
- if SummaryInformation not found in a presentation.public java.lang.String getComments()
public void setComments(java.lang.String value) throws PptReadException
value
- the presentation comments.
PptReadException
- if SummaryInformation not found in a presentation.public java.lang.String getLastAuthor()
public void setLastAuthor(java.lang.String value) throws PptReadException
value
- the last author of a presentation.
PptReadException
- if SummaryInformation not found in a presentation.public java.util.Date getLastPrintTime()
public void setLastPrintTime(java.util.Date value) throws PptReadException
value
- the last printing time.
PptReadException
- if SummaryInformation not found in a presentation.public java.util.Date getEditTime()
public void setEditTime(java.util.Date value) throws PptReadException
value
- the edit time.
PptReadException
- if SummaryInformation not found in a presentation.public java.util.Date getCreateTime()
public void setCreateTime(java.util.Date value) throws PptReadException
value
- the time when presentation was created.
PptReadException
- if SummaryInformation not found in a presentation.public java.util.Date getLastSaveTime()
public void setLastSaveTime(java.util.Date value) throws PptReadException
value
- the last time when presentation was saved.
PptReadException
- if SummaryInformation not found in a presentation.public java.lang.String getManager()
public void setManager(java.lang.String value) throws PptReadException
value
- the manager of a presentation.
PptReadException
- if DocumentSummaryInformation not found in a presentation.public java.lang.String getCompany()
public void setCompany(java.lang.String value) throws PptReadException
value
- the company of a presentation.
PptReadException
- if DocumentSummaryInformation not found in a presentation.public java.lang.String getCategory()
public void setCategory(java.lang.String value) throws PptReadException
value
- the category of a presentation.
PptReadException
- if DocumentSummaryInformation not found in a presentation.public DocumentProperties getCustomDocumentProperties()
public short getFirstSlideNumber()
public void setFirstSlideNumber(short value)
value
- the number of the first slide in a presentation.public long getActiveSlideId()
public void setActiveSlideId(long value) throws java.lang.Exception
value
- the Id of the active slide.
PptPropertyException
java.lang.Exception
public boolean hasVBAMacros()
public SlideShowSettings getSlideShowSettings()
SlideShowSettings
.protected Shape findShape(int id)
protected Shape findShape(int id, GroupShape group)
protected java.util.TreeMap getAllShapes()
protected void getAllShapes(java.util.TreeMap slist, GroupShape group)
public PictureBullets getPictureBullets()
PictureBullets
object.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |