getPackage().getParts().remove(partName); removedParts.add(partName);
this.getPackage().getParts().remove(this.getPartName() );
log.warn(this.getPartName().getName() + " not attached to any package"); } else { this.getPackage().getParts().remove(getPartName());
/** * @param index * @throws Pptx4jException * @since 3.0 */ public void removeSlide(int index) throws Pptx4jException { List<SldId> sldIds = this.getJaxbElement().getSldIdLst().getSldId(); int zeroBasedCount = sldIds.size() -1; if (index< 0 || index>zeroBasedCount) { throw new Pptx4jException("No slide at index " + index + ". (There are " + sldIds.size() + " slides) "); } Presentation.SldIdLst.SldId entry = this.getJaxbElement().getSldIdLst().getSldId().remove(index); Relationship rel = this.getRelationshipsPart().getRelationshipByID(entry.getRid()); Part part = this.getRelationshipsPart().getPart(rel); this.getPackage().getParts().remove(part.getPartName()); this.getRelationshipsPart().removeRelationship(rel); }
this.getPackage().getParts().remove(this.getPartName() );
getPackage().getParts().remove(partName); removedParts.add(partName);
log.warn(this.getPartName().getName() + " not attached to any package"); } else { this.getPackage().getParts().remove(getPartName());
/** * @param index * @throws Pptx4jException * @since 3.0 */ public void removeSlide(int index) throws Pptx4jException { List<SldId> sldIds = this.getJaxbElement().getSldIdLst().getSldId(); int zeroBasedCount = sldIds.size() -1; if (index< 0 || index>zeroBasedCount) { throw new Pptx4jException("No slide at index " + index + ". (There are " + sldIds.size() + " slides) "); } Presentation.SldIdLst.SldId entry = this.getJaxbElement().getSldIdLst().getSldId().remove(index); Relationship rel = this.getRelationshipsPart().getRelationshipByID(entry.getRid()); Part part = this.getRelationshipsPart().getPart(rel); this.getPackage().getParts().remove(part.getPartName()); this.getRelationshipsPart().removeRelationship(rel); }