Search in sources :

Example 1 with SldMasterDocument

use of org.openxmlformats.schemas.presentationml.x2006.main.SldMasterDocument in project poi by apache.

the class XSLFSlideShow method getSlideMaster.

/**
	 * Returns the low level slide master object from
	 *  the supplied slide master reference
	 */
@Internal
public CTSlideMaster getSlideMaster(CTSlideMasterIdListEntry master) throws IOException, XmlException {
    PackagePart masterPart = getSlideMasterPart(master);
    SldMasterDocument masterDoc = SldMasterDocument.Factory.parse(masterPart.getInputStream(), DEFAULT_XML_OPTIONS);
    return masterDoc.getSldMaster();
}
Also used : PackagePart(org.apache.poi.openxml4j.opc.PackagePart) SldMasterDocument(org.openxmlformats.schemas.presentationml.x2006.main.SldMasterDocument) Internal(org.apache.poi.util.Internal)

Aggregations

PackagePart (org.apache.poi.openxml4j.opc.PackagePart)1 Internal (org.apache.poi.util.Internal)1 SldMasterDocument (org.openxmlformats.schemas.presentationml.x2006.main.SldMasterDocument)1