public class BookmarkHelper extends Object
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
log |
Modifier and Type | Method and Description |
---|---|
protected org.docx4j.wml.CTMarkupRange |
anchorToBookmark(Element e,
String bookmarkNamePrefix,
org.docx4j.wml.P currentP,
org.docx4j.wml.ContentAccessor contentContext)
Convert a destination anchor given by @id or a/@name, to a bookmark start,
and return the corresponding bookmark end.
|
protected String |
anchorToBookmarkName(String bookmarkNamePrefix,
String href)
Convert a/@name to w:hyperlink/@w:anchor
|
protected void |
attachBookmarkEnd(org.docx4j.wml.CTMarkupRange markuprange,
org.docx4j.wml.P currentP,
org.docx4j.wml.ContentAccessor contentContext) |
protected AtomicInteger |
getBookmarkId() |
protected String |
idToBookmarkName(String bookmarkNamePrefix,
String id)
Convert @id or a/@name to w:hyperlink/@w:anchor
|
protected void |
setBookmarkId(AtomicInteger bookmarkId) |
protected void setBookmarkId(AtomicInteger bookmarkId)
protected AtomicInteger getBookmarkId()
protected org.docx4j.wml.CTMarkupRange anchorToBookmark(Element e, String bookmarkNamePrefix, org.docx4j.wml.P currentP, org.docx4j.wml.ContentAccessor contentContext)
e
- protected void attachBookmarkEnd(org.docx4j.wml.CTMarkupRange markuprange, org.docx4j.wml.P currentP, org.docx4j.wml.ContentAccessor contentContext)
protected String idToBookmarkName(String bookmarkNamePrefix, String id)
href
- Copyright © 2013-2019. All Rights Reserved.