Package org.apache.poi.xslf.usermodel
Class XSLFSlideLayout
- java.lang.Object
-
- org.apache.poi.ooxml.POIXMLDocumentPart
-
- org.apache.poi.xslf.usermodel.XSLFSheet
-
- org.apache.poi.xslf.usermodel.XSLFSlideLayout
-
- All Implemented Interfaces:
java.lang.Iterable<XSLFShape>
,MasterSheet<XSLFShape,XSLFTextParagraph>
,ShapeContainer<XSLFShape,XSLFTextParagraph>
,Sheet<XSLFShape,XSLFTextParagraph>
,XSLFShapeContainer
@Beta public class XSLFSlideLayout extends XSLFSheet implements MasterSheet<XSLFShape,XSLFTextParagraph>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.poi.ooxml.POIXMLDocumentPart
POIXMLDocumentPart.RelationPart
-
-
Constructor Summary
Constructors Constructor Description XSLFSlideLayout(PackagePart part)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copyLayout(XSLFSlide slide)
Copy placeholders from this layout to the destination slideXSLFBackground
getBackground()
boolean
getFollowMasterGraphics()
XSLFSlideMaster
getMasterSheet()
java.lang.String
getName()
XSLFSlideMaster
getSlideMaster()
Slide master object associated with this layout.XSLFTheme
getTheme()
SlideLayout
getType()
CTSlideLayout
getXmlObject()
While developing only!-
Methods inherited from class org.apache.poi.xslf.usermodel.XSLFSheet
addShape, appendContent, clear, createAutoShape, createConnector, createFreeform, createGroup, createOleShape, createPicture, createTable, createTable, createTextBox, draw, getPlaceholder, getPlaceholder, getPlaceholderDetails, getPlaceholders, getShapes, getSlideShow, importContent, iterator, removeShape
-
Methods inherited from class org.apache.poi.ooxml.POIXMLDocumentPart
_invokeOnDocumentRead, addRelation, createRelationship, createRelationship, createRelationship, getPackagePart, getParent, getRelationById, getRelationId, getRelationPartById, getRelationParts, getRelations, isCommited, setCommited, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.poi.sl.usermodel.MasterSheet
getPlaceholder
-
Methods inherited from interface org.apache.poi.sl.usermodel.ShapeContainer
addShape, createOleShape, createTable, getShapes, removeShape
-
Methods inherited from interface org.apache.poi.sl.usermodel.Sheet
draw, getPlaceholderDetails, getSlideShow
-
-
-
-
Constructor Detail
-
XSLFSlideLayout
public XSLFSlideLayout(PackagePart part) throws java.io.IOException, XmlException
- Throws:
java.io.IOException
XmlException
- Since:
- POI 3.14-Beta1
-
-
Method Detail
-
getName
public java.lang.String getName()
-
getXmlObject
@Internal public CTSlideLayout getXmlObject()
While developing only!- Specified by:
getXmlObject
in classXSLFSheet
- Returns:
- top-level Xml bean representing this sheet
-
getSlideMaster
public XSLFSlideMaster getSlideMaster()
Slide master object associated with this layout.- Returns:
- slide master. Never null.
- Throws:
java.lang.IllegalStateException
- if slide master was not found
-
getMasterSheet
public XSLFSlideMaster getMasterSheet()
- Specified by:
getMasterSheet
in interfaceSheet<XSLFShape,XSLFTextParagraph>
-
getTheme
public XSLFTheme getTheme()
- Overrides:
getTheme
in classXSLFSheet
- Returns:
- theme (shared styles) associated with this theme.
By default returns
null
which means that this sheet is theme-less. Sheets that support the notion of themes (slides, masters, layouts, etc.) should override this method and return the corresponding package part.
-
getFollowMasterGraphics
public boolean getFollowMasterGraphics()
- Specified by:
getFollowMasterGraphics
in interfaceSheet<XSLFShape,XSLFTextParagraph>
- Overrides:
getFollowMasterGraphics
in classXSLFSheet
- Returns:
- whether shapes on the master sheet should be shown. By default master graphics is turned off. Sheets that support the notion of master (slide, slideLayout) should override it and check this setting in the sheet XML
-
getBackground
public XSLFBackground getBackground()
- Specified by:
getBackground
in interfaceSheet<XSLFShape,XSLFTextParagraph>
- Overrides:
getBackground
in classXSLFSheet
- Returns:
- background for this sheet
-
copyLayout
public void copyLayout(XSLFSlide slide)
Copy placeholders from this layout to the destination slide- Parameters:
slide
- destination slide
-
getType
public SlideLayout getType()
- Returns:
- type of this layout
-
-