Package org.docx4j.convert.in.xhtml
Class BookmarkHelper
java.lang.Object
org.docx4j.convert.in.xhtml.BookmarkHelper
- Since:
- 3.2.1
- Author:
- jharrop
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected org.docx4j.wml.CTMarkupRangeanchorToBookmark(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 StringanchorToBookmarkName(String bookmarkNamePrefix, String href) Convert a/@name to w:hyperlink/@w:anchorprotected voidattachBookmarkEnd(org.docx4j.wml.CTMarkupRange markuprange, org.docx4j.wml.P currentP, org.docx4j.wml.ContentAccessor contentContext) protected AtomicIntegerprotected StringidToBookmarkName(String bookmarkNamePrefix, String id) Convert @id or a/@name to w:hyperlink/@w:anchorprotected voidsetBookmarkId(AtomicInteger bookmarkId)
-
Field Details
-
log
public static org.slf4j.Logger log
-
-
Method Details
-
setBookmarkId
-
getBookmarkId
-
anchorToBookmark
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.- Parameters:
e-- Returns:
-
attachBookmarkEnd
protected void attachBookmarkEnd(org.docx4j.wml.CTMarkupRange markuprange, org.docx4j.wml.P currentP, org.docx4j.wml.ContentAccessor contentContext) -
idToBookmarkName
Convert @id or a/@name to w:hyperlink/@w:anchor- Parameters:
href-- Returns:
-
anchorToBookmarkName
Convert a/@name to w:hyperlink/@w:anchor- Parameters:
href-- Returns:
-