@Beta public class XMLSlideShow extends POIXMLDocument
DOCUMENT_CREATOR, OLE_OBJECT_REL_TYPE, PACK_OBJECT_REL_TYPEDEFAULT_XML_OPTIONS| Constructor and Description |
|---|
XMLSlideShow() |
XMLSlideShow(InputStream is) |
XMLSlideShow(OPCPackage pkg) |
| Modifier and Type | Method and Description |
|---|---|
XSLFSlideShow |
_getXSLFSlideShow()
Deprecated.
|
int |
addPicture(byte[] pictureData,
int format)
Adds a picture to the workbook.
|
protected void |
commit()
Save the content in the underlying package part.
|
XSLFSlide |
createSlide()
Create a blank slide.
|
XSLFSlide |
createSlide(XSLFSlideLayout layout)
Create a slide and initialize it from the specified layout.
|
List<PackagePart> |
getAllEmbedds()
Get the document's embedded files.
|
List<XSLFPictureData> |
getAllPictures()
Returns all Pictures, which are referenced from the document itself.
|
XSLFCommentAuthors |
getCommentAuthors()
Returns the list of comment authors, if there is one.
|
org.openxmlformats.schemas.presentationml.x2006.main.CTPresentation |
getCTPresentation() |
XSLFNotesMaster |
getNotesMaster()
Return the Notes Master, if there is one.
|
Dimension |
getPageSize()
Returns the current page size
|
XSLFSlideMaster[] |
getSlideMasters() |
XSLFSlide[] |
getSlides()
Return all the slides in the slideshow
|
XSLFTableStyles |
getTableStyles() |
protected void |
onDocumentRead()
Fired when a package part is read
|
XSLFSlide |
removeSlide(int index) |
void |
setPageSize(Dimension pgSize)
Sets the page size to the given
Dimension object. |
void |
setSlideOrder(XSLFSlide slide,
int newIndex) |
getCorePart, getPackage, getProperties, getRelatedByType, hasOOXMLHeader, load, openPackage, writeaddRelation, clearMemoryPackagePart, createRelationship, createRelationship, createRelationship, getPackagePart, getPackageRelationship, getParent, getRelationById, getRelationCounter, getRelationId, getRelations, getTargetPart, onDocumentCreate, onDocumentRemove, onSave, read, rebase, removeRelation, removeRelation, toStringpublic XMLSlideShow()
public XMLSlideShow(OPCPackage pkg)
public XMLSlideShow(InputStream is) throws IOException
IOException@Deprecated public XSLFSlideShow _getXSLFSlideShow() throws OpenXML4JException, IOException, org.apache.xmlbeans.XmlException
OpenXML4JExceptionIOExceptionorg.apache.xmlbeans.XmlExceptionprotected void onDocumentRead()
throws IOException
POIXMLDocumentPartonDocumentRead in class POIXMLDocumentPartIOExceptionprotected void commit()
throws IOException
POIXMLDocumentPart
protected void commit() throws IOException {
PackagePart part = getPackagePart();
OutputStream out = part.getOutputStream();
XmlObject bean = getXmlBean(); //the "model" which holds changes in memory
bean.save(out, DEFAULT_XML_OPTIONS);
out.close();
}
commit in class POIXMLDocumentPartIOExceptionpublic List<PackagePart> getAllEmbedds() throws OpenXML4JException
getAllEmbedds in class POIXMLDocumentOpenXML4JExceptionpublic List<XSLFPictureData> getAllPictures()
List of PackagePart.
The returned List is unmodifiable.public XSLFSlide createSlide(XSLFSlideLayout layout)
layout - public XSLFSlide createSlide()
public XSLFNotesMaster getNotesMaster()
public XSLFSlideMaster[] getSlideMasters()
public XSLFSlide[] getSlides()
public XSLFCommentAuthors getCommentAuthors()
public void setSlideOrder(XSLFSlide slide, int newIndex)
newIndex - 0-based index of the slidepublic XSLFSlide removeSlide(int index)
public Dimension getPageSize()
public void setPageSize(Dimension pgSize)
Dimension object.pgSize - page size@Internal public org.openxmlformats.schemas.presentationml.x2006.main.CTPresentation getCTPresentation()
public int addPicture(byte[] pictureData,
int format)
pictureData - The bytes of the pictureformat - The format of the picture.XSLFPictureData.PICTURE_TYPE_EMF,
XSLFPictureData.PICTURE_TYPE_WMF,
XSLFPictureData.PICTURE_TYPE_PICT,
XSLFPictureData.PICTURE_TYPE_JPEG,
XSLFPictureData.PICTURE_TYPE_PNG,
XSLFPictureData.PICTURE_TYPE_DIBpublic XSLFTableStyles getTableStyles()
Copyright © 2020. All rights reserved.