Class BookmarkHelper

java.lang.Object
org.docx4j.convert.in.xhtml.BookmarkHelper

public class BookmarkHelper extends Object
Since:
3.2.1
Author:
jharrop
  • Field Details

    • log

      public static org.slf4j.Logger log
  • Method Details

    • setBookmarkId

      protected void setBookmarkId(AtomicInteger bookmarkId)
    • getBookmarkId

      protected AtomicInteger 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

      protected String idToBookmarkName(String bookmarkNamePrefix, String id)
      Convert @id or a/@name to w:hyperlink/@w:anchor
      Parameters:
      href -
      Returns:
    • anchorToBookmarkName

      protected String anchorToBookmarkName(String bookmarkNamePrefix, String href)
      Convert a/@name to w:hyperlink/@w:anchor
      Parameters:
      href -
      Returns: