Package org.pptx4j.pml

Examples of org.pptx4j.pml.ObjectFactory


    return resolvedLayout;
  }
 
  public static SldMaster createSldMaster() throws JAXBException {

    ObjectFactory factory = Context.getpmlObjectFactory();
    SldMaster sldMaster = factory.createSldMaster();
    sldMaster.setCSld(
        (CommonSlideData)XmlUtils.unmarshalString(COMMON_SLIDE_DATA, Context.jcPML,
            CommonSlideData.class) );
    sldMaster.setClrMap(
        (CTColorMapping)XmlUtils.unmarshalString(COLOR_MAPPING, Context.jcPML, CTColorMapping.class ) );
   
    SlideLayoutIdList slideLayoutIdList = factory.createSlideLayoutIdList();
    sldMaster.setSldLayoutIdLst(slideLayoutIdList);
   
    return sldMaster;   
  }
View Full Code Here


  }
 
 
  public static Sld createSld() throws JAXBException {

    ObjectFactory factory = Context.getpmlObjectFactory();
    Sld sld = factory.createSld();
    sld.setCSld(
        (CommonSlideData)XmlUtils.unmarshalString(COMMON_SLIDE_DATA, Context.jcPML, CommonSlideData.class) );
    // sld.setClrMapOvr(value)
   
    return sld;   
View Full Code Here

    return (Notes)XmlUtils.unmarshalString(COMMON_SLIDE_NOTES, Context.jcPML, Notes.class);
  }
 
  public static Notes createNotesMinimal() throws JAXBException {

    ObjectFactory factory = Context.getpmlObjectFactory();
    Notes notes = factory.createNotes();
    notes.setCSld(
        (CommonSlideData)XmlUtils.unmarshalString(COMMON_SLIDE_DATA, Context.jcPML, CommonSlideData.class) );
    // sld.setClrMapOvr(value)
   
    return notes;  
View Full Code Here

    return resolvedLayout;
 
 
  public static SldLayout createSldLayout() throws JAXBException {

    ObjectFactory factory = Context.getpmlObjectFactory();
    SldLayout sldLayout = factory.createSldLayout();
   
    CommonSlideData cSld = (CommonSlideData)XmlUtils.unmarshalString(COMMON_SLIDE_DATA,
        Context.jcPML,
        CommonSlideData.class);
    cSld.setName("Title Slide");
View Full Code Here

  /**
   * @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) );
View Full Code Here

TOP

Related Classes of org.pptx4j.pml.ObjectFactory

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.