@Override public int getShapeId() { return (int)getCNvPr().getId(); }
/** * Gets the frame id. */ public long getId() { return graphicFrame.getNvGraphicFramePr().getCNvPr().getId(); }
@Override public int getShapeId() { return (int) ctShape.getNvSpPr().getCNvPr().getId(); }
/*package*/ XSLFDrawing(XSLFSheet sheet, CTGroupShape spTree){ _sheet = sheet; _spTree = spTree; XmlObject[] cNvPr = sheet.getSpTree().selectPath( "declare namespace p='http://schemas.openxmlformats.org/presentationml/2006/main' .//*/p:cNvPr"); for(XmlObject o : cNvPr) { // powerpoint generates AlternateContent elements which cNvPr elements aren't recognized // ignore them for now if (o instanceof CTNonVisualDrawingProps) { CTNonVisualDrawingProps p = (CTNonVisualDrawingProps)o; sheet.registerShapeId((int)p.getId()); } } }
/** * @return the CTOleObject associated with the shape */ public CTOleObject getOleObject() { if (oleObject == null) { long shapeId = getCTShape().getNvSpPr().getCNvPr().getId(); oleObject = getSheet().readOleObject(shapeId); if (oleObject == null) { throw new POIXMLException("Ole object not found in sheet container - it's probably a control element"); } } return oleObject; }
@Override public int getShapeId() { return (int)getCNvPr().getId(); }
@Override public int getShapeId() { return (int) getNvPr().getId(); }
/*package*/ XSLFDrawing(XSLFSheet sheet, CTGroupShape spTree){ _sheet = sheet; _spTree = spTree; XmlObject[] cNvPr = sheet.getSpTree().selectPath( "declare namespace p='http://schemas.openxmlformats.org/presentationml/2006/main' .//*/p:cNvPr"); for(XmlObject o : cNvPr) { CTNonVisualDrawingProps p = (CTNonVisualDrawingProps)o; _shapeId = (int)Math.max(_shapeId, p.getId()); } }
@Override public int getShapeId(){ return (int)_shape.getNvGrpSpPr().getCNvPr().getId(); }
/** * Gets the frame id. */ public long getId() { return graphicFrame.getNvGraphicFramePr().getCNvPr().getId(); }
/** * Gets the frame id. */ public long getId() { return graphicFrame.getNvGraphicFramePr().getCNvPr().getId(); }
@Override public int getShapeId() { return (int) ctShape.getNvSpPr().getCNvPr().getId(); }
public int getShapeId(){ return (int)_shape.getNvGraphicFramePr().getCNvPr().getId(); }
/*package*/ XSLFDrawing(XSLFSheet sheet, CTGroupShape spTree){ _sheet = sheet; _spTree = spTree; XmlObject[] cNvPr = sheet.getSpTree().selectPath( "declare namespace p='http://schemas.openxmlformats.org/presentationml/2006/main' .//*/p:cNvPr"); for(XmlObject o : cNvPr) { // powerpoint generates AlternateContent elements which cNvPr elements aren't recognized // ignore them for now if (o instanceof CTNonVisualDrawingProps) { CTNonVisualDrawingProps p = (CTNonVisualDrawingProps)o; sheet.registerShapeId((int)p.getId()); } } }
/** * @return the CTOleObject associated with the shape */ public CTOleObject getOleObject() { if (oleObject == null) { long shapeId = getCTShape().getNvSpPr().getCNvPr().getId(); oleObject = getSheet().readOleObject(shapeId); if (oleObject == null) { throw new POIXMLException("Ole object not found in sheet container - it's probably a control element"); } } return oleObject; }