/** Get the image base name * * @param binaryPart * @return */ protected String getImageName(BinaryPart binaryPart) { String partname = null; int p = -1; if (binaryPart.getExternalTarget() != null) { partname = binaryPart.getExternalTarget().getValue(); p = partname.lastIndexOf('\\'); if (p == -1) { p = partname.lastIndexOf('/'); } } else { partname = binaryPart.getPartName().toString(); p = partname.lastIndexOf('/'); } return (p > -1 ? partname.substring(p + 1) : partname); }
+ " with name " + imagePart.getPartName().toString());
+ " with name " + imagePart.getPartName().toString());
+ " with name " + imagePart.getPartName().toString());
+ " with name " + imagePart.getPartName().toString());
+ " with name " + imagePart.getPartName().toString());
private Map<String, ShapeWrapper> indexPlaceHolders() { // All this for the 16 possible things defined in STPlaceholderType! indexedPlaceHolders = new HashMap<String, ShapeWrapper>(); List<Object> possiblyShapes = getJaxbElement().getCSld().getSpTree().getSpOrGrpSpOrGraphicFrame(); for (Object o : possiblyShapes) { 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() ); } } } return indexedPlaceHolders; }
log.debug("Indexed: " + sw.getPhType() + "(" + name + ") in " + sw.getOwner().getPartName().toString() );
/** Get the image base name * * @param binaryPart * @return */ protected String getImageName(BinaryPart binaryPart) { String partname = null; int p = -1; if (binaryPart.getExternalTarget() != null) { partname = binaryPart.getExternalTarget().getValue(); p = partname.lastIndexOf('\\'); if (p == -1) { p = partname.lastIndexOf('/'); } } else { partname = binaryPart.getPartName().toString(); p = partname.lastIndexOf('/'); } return (p > -1 ? partname.substring(p + 1) : partname); }
+ " with name " + imagePart.getPartName().toString());
+ " with name " + imagePart.getPartName().toString());
+ " with name " + imagePart.getPartName().toString());
+ " with name " + imagePart.getPartName().toString());
+ " with name " + imagePart.getPartName().toString());
private Map<String, ShapeWrapper> indexPlaceHolders() { // All this for the 16 possible things defined in STPlaceholderType! indexedPlaceHolders = new HashMap<String, ShapeWrapper>(); List<Object> possiblyShapes = getJaxbElement().getCSld().getSpTree().getSpOrGrpSpOrGraphicFrame(); for (Object o : possiblyShapes) { 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() ); } } } return indexedPlaceHolders; }
log.debug("Indexed: " + sw.getPhType() + "(" + name + ") in " + sw.getOwner().getPartName().toString() );