Examples of CTPlaceholder


Examples of org.openxmlformats.schemas.presentationml.x2006.main.CTPlaceholder

        }
    }

    public Placeholder getPlaceholder(){
        CTShape sh =  (CTShape)getXmlObject();
        CTPlaceholder ph = sh.getNvSpPr().getNvPr().getPh();
        if(ph == null) return null;
        else {
            int val = ph.getType().intValue();
            return Placeholder.values()[val - 1];
        }
    }
View Full Code Here

Examples of org.pptx4j.pml.CTPlaceholder

        if (o instanceof Shape) {
          Shape sp = (Shape)o;
          if (sp.getNvSpPr()!=null
              && sp.getNvSpPr().getNvPr()!=null
                && sp.getNvSpPr().getNvPr().getPh() != null) {
            CTPlaceholder placeholder = sp.getNvSpPr().getNvPr().getPh();
            ShapeWrapper sw = new ShapeWrapper(sp, placeholder.getType().toString(),
                this);
            indexedPlaceHolders.put(sw.getPhType(), sw);
            log.debug("Indexed: " + sw.getPhType() + " in " + sw.getOwner().getPartName().toString() );
          }
        }
View Full Code Here

Examples of org.pptx4j.pml.CTPlaceholder

        if (o instanceof Shape) {
          Shape sp = (Shape)o;
          if (sp.getNvSpPr()!=null
              && sp.getNvSpPr().getNvPr()!=null
                && sp.getNvSpPr().getNvPr().getPh() != null) {
            CTPlaceholder placeholder = sp.getNvSpPr().getNvPr().getPh();
            ShapeWrapper sw = new ShapeWrapper(sp, placeholder.getType().toString(),
                this);
            indexedPlaceHolders.put(sw.getPhType(), sw);
           
            String name = "";
            if (sp.getNvSpPr().getCNvPr()!=null) {
View Full Code Here

Examples of org.pptx4j.pml.CTPlaceholder

        if (o instanceof Shape) {
          Shape sp = (Shape)o;
          if (sp.getNvSpPr()!=null
              && sp.getNvSpPr().getNvPr()!=null
                && sp.getNvSpPr().getNvPr().getPh() != null) {
            CTPlaceholder placeholder = sp.getNvSpPr().getNvPr().getPh();
          String placeholderType = placeholder.getType().toString();
            log.info("Handling placeholder: " + placeholderType );
            handle(placeholders, placeholderType, sp);
          }
        }
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.