Package org.pptx4j.pml

Examples of org.pptx4j.pml.Presentation$SldMasterIdLst$SldMasterId


   * @since 2.7
   */ 
  public static Presentation createJaxbPresentationElement(SlideSizesWellKnown sz, boolean landscape) throws JAXBException {

    ObjectFactory factory = Context.getpmlObjectFactory();
    Presentation presentation = factory.createPresentation();

    // Create empty lists
    Presentation.SldMasterIdLst masterIds = factory.createPresentationSldMasterIdLst();
    Presentation.SldIdLst slideIds = factory.createPresentationSldIdLst();   
    presentation.setSldMasterIdLst(masterIds);
    presentation.setSldIdLst(slideIds);
   
    presentation.setNotesSz(
        (CTPositiveSize2D)XmlUtils.unmarshalString(DEFAULT_NOTES_SIZE, Context.jcPML, CTPositiveSize2D.class) );
   
    if (sz==null) {
      presentation.setSldSz(
          (Presentation.SldSz)XmlUtils.unmarshalString(DEFAULT_SLIDE_SIZE, Context.jcPML, Presentation.SldSz.class));
    } else {
      presentation.setSldSzMainPresentationPart.createSlideSize(sz, landscape) );   
    }
    return presentation;
  }
View Full Code Here

TOP

Related Classes of org.pptx4j.pml.Presentation$SldMasterIdLst$SldMasterId

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.