Class ListHelper

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

public class ListHelper extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final int
    The indentation after the number, typically the same as the hanging indent, which lines up subsequent paragraphs.
    static org.slf4j.Logger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ListHelper(XHTMLImporterImpl importer, org.docx4j.openpackaging.parts.WordprocessingML.NumberingDefinitionsPart ndp)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.docx4j.wml.PPrBase.Ind
    createIndent(int twip, boolean hanging)
    Create an Ind object.
    protected org.docx4j.wml.Numbering.AbstractNum
    Creates a new empty abstract list.
    protected int
    getAbsoluteIndent(com.openhtmltopdf.layout.Styleable styleable)
    The indentation of this object, plus its ancestors in the list stack
    protected int
     
    protected int
     
    protected org.docx4j.convert.in.xhtml.ListHelper.ListItemContentState
     
    protected com.openhtmltopdf.render.BlockBox
     
    protected com.openhtmltopdf.render.BlockBox
     
    protected void
    pushListStack(com.openhtmltopdf.render.BlockBox ca)
     
    protected void
    setNumbering(org.docx4j.wml.PPr pPr, BigInteger numId)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • log

      public static org.slf4j.Logger log
    • INDENT_AFTER

      protected static final int INDENT_AFTER
      The indentation after the number, typically the same as the hanging indent, which lines up subsequent paragraphs.
      See Also:
  • Constructor Details

    • ListHelper

      public ListHelper(XHTMLImporterImpl importer, org.docx4j.openpackaging.parts.WordprocessingML.NumberingDefinitionsPart ndp)
  • Method Details

    • pushListStack

      protected void pushListStack(com.openhtmltopdf.render.BlockBox ca)
    • popListStack

      protected com.openhtmltopdf.render.BlockBox popListStack()
    • peekListStack

      protected com.openhtmltopdf.render.BlockBox peekListStack()
    • getDepth

      protected int getDepth()
    • peekListItemStateStack

      protected org.docx4j.convert.in.xhtml.ListHelper.ListItemContentState peekListItemStateStack()
    • createNewAbstractList

      protected org.docx4j.wml.Numbering.AbstractNum createNewAbstractList()
      Creates a new empty abstract list.
      Returns:
      Throws:
      jakarta.xml.bind.JAXBException
    • createIndent

      protected org.docx4j.wml.PPrBase.Ind createIndent(int twip, boolean hanging)
      Create an Ind object. For the list item itself, we'll want it hanging. For any additional paragraphs in the list item, it should be a simple indent (ie not hanging)
      Parameters:
      twip -
      Returns:
    • getSelfAndAncestorIndentation

      protected int getSelfAndAncestorIndentation()
    • getAbsoluteIndent

      protected int getAbsoluteIndent(com.openhtmltopdf.layout.Styleable styleable)
      The indentation of this object, plus its ancestors in the list stack
      Parameters:
      styleable -
      Returns:
    • setNumbering

      protected void setNumbering(org.docx4j.wml.PPr pPr, BigInteger numId)