public AtomicInteger getBookmarkIdLast() // actually, this returns that incremented by 1. { return bookmarkHelper.getBookmarkId(); }
protected AtomicInteger getBookmarkId() { if (bookmarkId==null) { // Work out starting ID bookmarkId = new AtomicInteger(initBookmarkIdStart()); } return bookmarkId; }
public void setBookmarkIdNext(AtomicInteger val) { bookmarkHelper.setBookmarkId(val); }
CTMarkupRange markupRangeForID = bookmarkHelper.anchorToBookmark(inlineBox.getElement(), bookmarkNamePrefix, getCurrentParagraph(false), this.contentContextStack.peek()); bookmarkHelper.attachBookmarkEnd(markupRangeForID, getCurrentParagraph(false), this.contentContextStack.peek());
bookmark.setName( idToBookmarkName(bookmarkNamePrefix, name) ); bookmark.setId( BigInteger.valueOf( getBookmarkId().get()) ); return generateBookmarkEnd();
hpl = "<w:hyperlink w:anchor=\"" + bookmarkHelper.anchorToBookmarkName(bookmarkNamePrefix, url) + "\" xmlns:w=\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\" " + "xmlns:r=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\" >" + "<w:r>" +
contentContextStack.push(imports); bookmarkHelper = new BookmarkHelper(wordMLPackage);
CTMarkupRange inlineMarkupRange = bookmarkHelper.anchorToBookmark(s.getElement(), bookmarkNamePrefix, getCurrentParagraph(false), this.contentContextStack.peek()); if (inlineMarkupRange!=null) { bookmarkHelper.attachBookmarkEnd( inlineMarkupRange, getCurrentParagraph(false), this.contentContextStack.peek() ); markuprange = null; && !name.trim().equals("")) { markuprange = bookmarkHelper.anchorToBookmark(s.getElement(), bookmarkNamePrefix, getCurrentParagraph(false), this.contentContextStack.peek()); if (markuprange!=null) { bookmarkHelper.attachBookmarkEnd(markuprange, getCurrentParagraph(false), this.contentContextStack.peek()); markuprange = null; bookmarkHelper.attachBookmarkEnd(markuprange, getCurrentParagraph(false), this.contentContextStack.peek()); markuprange = null; bookmarkHelper.attachBookmarkEnd(markuprange, getCurrentParagraph(false), this.contentContextStack.peek()); markuprange = null;
markupRangeForID = bookmarkHelper.anchorToBookmark(e, bookmarkNamePrefix, null, this.contentContextStack.peek()); markupRangeForID = bookmarkHelper.anchorToBookmark(e, bookmarkNamePrefix, getCurrentParagraph(false), this.contentContextStack.peek()); bookmarkHelper.attachBookmarkEnd(markupRangeForID, getCurrentParagraph(false), this.contentContextStack.peek()); markupRangeForID = null;
private CTMarkupRange generateBookmarkEnd() { CTMarkupRange markuprange = Context.getWmlObjectFactory().createCTMarkupRange(); markuprange.setId( BigInteger.valueOf(getBookmarkId().getAndIncrement() ) ); return markuprange; }