Package org.docx4j.openpackaging.parts.PresentationML

Examples of org.docx4j.openpackaging.parts.PresentationML.SlideMasterPart


  public static ResolvedLayout resolveSlideLayout(SlideLayoutPart slideLayoutPart)  {

    ResolvedLayout resolvedLayout = new ResolvedLayout();
   
    // Get the master layout
    SlideMasterPart master = slideLayoutPart.getSlideMasterPart();
    ResolvedLayout masterLayout = master.getResolvedLayout();   
    Map<String, ShapeWrapper> masterPlaceholders = master.getIndexedPlaceHolders();
   
    // Assume the slide layout doesn't itself have a bg
    if (masterLayout.getBg() != null) {
        resolvedLayout.bg =
            XmlUtils.deepCopy(
View Full Code Here


      layoutPart.setJaxbElement( SlideLayoutPart.createSldLayout() );
     
//      slidePart.addTargetPart(layoutPart);
     
      // Slide Master part
      SlideMasterPart masterPart = new SlideMasterPart();
      pp.addSlideMasterIdListEntry(masterPart);

      masterPart.setJaxbElement(masterPart.createSldMaster() );
      masterPart.addSlideLayoutIdListEntry(layoutPart);
     
      layoutPart.addTargetPart(masterPart);
     
      // Theme part
      ThemePart themePart = new ThemePart(new PartName("/ppt/theme/theme1.xml"));
      java.io.InputStream is = ResourceUtils.getResourceViaProperty(
          "pptx4j.openpackaging.packages.PresentationMLPackage.DefaultTheme",
            "org/docx4j/openpackaging/parts/PresentationML/theme.xml");
      themePart.unmarshal(is);
     
      // .. add it in 2 places ..
      masterPart.addTargetPart(themePart);
      pp.addTargetPart(themePart);
     
     
    } catch (Exception e) {
      e.printStackTrace();
View Full Code Here

        TextStyles.generateWordStylesFromPresentationPart(
            pp.getJaxbElement().getDefaultTextStyle(),
            "", fontScheme));

    // master
    SlideMasterPart master = (SlideMasterPart)presentationMLPackage.getParts().getParts().get(
        new PartName("/ppt/slideMasters/slideMaster1.xml"));
    styles.addAll(
        TextStyles.generateWordStylesForMaster(
            master.getJaxbElement().getTxStyles(),
            1, fontScheme));
       
    return styles;
   
 
View Full Code Here

TOP

Related Classes of org.docx4j.openpackaging.parts.PresentationML.SlideMasterPart

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.