Class XSLFSlideMaster

  • All Implemented Interfaces:
    java.lang.Iterable<XSLFShape>, MasterSheet<XSLFShape,​XSLFTextParagraph>, ShapeContainer<XSLFShape,​XSLFTextParagraph>, Sheet<XSLFShape,​XSLFTextParagraph>, XSLFShapeContainer

    @Beta
    public class XSLFSlideMaster
    extends XSLFSheet
    implements MasterSheet<XSLFShape,​XSLFTextParagraph>
    Slide master object associated with this layout.

    Within a slide master slide are contained all elements that describe the objects and their corresponding formatting for within a presentation slide.

    Within a slide master slide are two main elements. The cSld element specifies the common slide elements such as shapes and their attached text bodies. Then the txStyles element specifies the formatting for the text within each of these shapes. The other properties within a slide master slide specify other properties for within a presentation slide such as color information, headers and footers, as well as timing and transition information for all corresponding presentation slides.

    • Constructor Detail

      • XSLFSlideMaster

        protected XSLFSlideMaster​(PackagePart part)
                           throws java.io.IOException,
                                  org.apache.xmlbeans.XmlException
        Throws:
        java.io.IOException
        org.apache.xmlbeans.XmlException
        Since:
        POI 3.14-Beta1
    • Method Detail

      • getXmlObject

        public org.openxmlformats.schemas.presentationml.x2006.main.CTSlideMaster getXmlObject()
        Specified by:
        getXmlObject in class XSLFSheet
        Returns:
        top-level Xml bean representing this sheet
      • getSlideLayouts

        public XSLFSlideLayout[] getSlideLayouts()
        Returns:
        all slide layouts referencing this master
      • getLayout

        public XSLFSlideLayout getLayout​(SlideLayout type)
        Get the slide layout by type.
        Parameters:
        type - The layout type. Cannot be null.
        Returns:
        the layout found or null on failure
      • getLayout

        public XSLFSlideLayout getLayout​(java.lang.String name)
        Get the slide layout by name.
        Parameters:
        name - The layout name (case-insensitive). Cannot be null.
        Returns:
        the layout found or null on failure
      • getTextProperties

        protected org.openxmlformats.schemas.drawingml.x2006.main.CTTextListStyle getTextProperties​(Placeholder textType)