/** * Workaround for the fact that Xalan doesn't let us pass an AtomicInteger into an extension * function. Instead, it converts it into an int, which means the object in our * bookmarkIdCounter parameter isn't updated. * * So here we wrap the AtomicInteger in a class, * * @author jharrop * */ public static class BookmarkCounter { protected AtomicInteger bookmarkId; BookmarkCounter(AtomicInteger bookmarkId) { this.bookmarkId = bookmarkId; } }
+ " with name " + imagePart.getPartName().toString());
log.debug("incrementally saving " + imagePart.getPartName().getName()); ((UnzippedPartStore)wmlPackage.getTargetPartStore()).saveBinaryPart(imagePart);
+ " with name " + imagePart.getPartName().toString());
+ " with name " + imagePart.getPartName().toString());
+ " with name " + imagePart.getPartName().toString());
+ " with name " + imagePart.getPartName().toString());
/** * Workaround for the fact that Xalan doesn't let us pass an AtomicInteger into an extension * function. Instead, it converts it into an int, which means the object in our * bookmarkIdCounter parameter isn't updated. * * So here we wrap the AtomicInteger in a class, * * @author jharrop * */ public static class BookmarkCounter { protected AtomicInteger bookmarkId; BookmarkCounter(AtomicInteger bookmarkId) { this.bookmarkId = bookmarkId; } }
+ " with name " + imagePart.getPartName().toString());
+ " with name " + imagePart.getPartName().toString());
log.debug("incrementally saving " + imagePart.getPartName().getName()); ((UnzippedPartStore)wmlPackage.getTargetPartStore()).saveBinaryPart(imagePart);
+ " with name " + imagePart.getPartName().toString());
+ " with name " + imagePart.getPartName().toString());
+ " with name " + imagePart.getPartName().toString());
private void putImage(WorksheetPart worksheetPart, SpreadsheetMLPackage pkg, BinaryPartAbstractImage imagePart, CTOneCellAnchor anchor) throws Docx4JException { PartName drawingPart = new PartName(worksheetPart.getPartName().getName().replace("worksheets/sheet", "drawings/drawing")); String imagePartName = imagePart.getPartName().getName(); Drawing drawing = (Drawing) pkg.getParts().get(drawingPart); int currentId = 0;
private void putImage(WorksheetPart worksheetPart, SpreadsheetMLPackage pkg, BinaryPartAbstractImage imagePart, CTOneCellAnchor anchor) throws Docx4JException { PartName drawingPart = new PartName(StringUtils.replaceIgnoreCase(worksheetPart.getPartName().getName(), "worksheets/sheet", "drawings/drawing")); String imagePartName = imagePart.getPartName().getName(); Part part = pkg.getParts().get(drawingPart); if (part != null && !(part instanceof Drawing))