Package org.docx4j.convert.in.xhtml
Class ListHelper
java.lang.Object
org.docx4j.convert.in.xhtml.ListHelper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intThe indentation after the number, typically the same as the hanging indent, which lines up subsequent paragraphs.static org.slf4j.Logger -
Constructor Summary
ConstructorsConstructorDescriptionListHelper(XHTMLImporterImpl importer, org.docx4j.openpackaging.parts.WordprocessingML.NumberingDefinitionsPart ndp) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.docx4j.wml.PPrBase.IndcreateIndent(int twip, boolean hanging) Create an Ind object.protected org.docx4j.wml.Numbering.AbstractNumCreates a new empty abstract list.protected intgetAbsoluteIndent(com.openhtmltopdf.layout.Styleable styleable) The indentation of this object, plus its ancestors in the list stackprotected intgetDepth()protected intprotected org.docx4j.convert.in.xhtml.ListHelper.ListItemContentStateprotected com.openhtmltopdf.render.BlockBoxprotected com.openhtmltopdf.render.BlockBoxprotected voidpushListStack(com.openhtmltopdf.render.BlockBox ca) protected voidsetNumbering(org.docx4j.wml.PPr pPr, BigInteger numId)
-
Field Details
-
log
public static org.slf4j.Logger log -
INDENT_AFTER
protected static final int INDENT_AFTERThe 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
-