Package org.docx4j.convert.out.html
Class ListsToContentControls
java.lang.Object
org.docx4j.convert.out.html.ListsToContentControls
public class ListsToContentControls
extends java.lang.Object
Create list items in OL or UL (as appropriate).
We can't just use a LinkedList (stack) of list contexts,
which we push and pop, since we have to write complete
XML elements (as opposed to opening and closing tags).
So this means either extending org.docx4j.model.structure.jaxb
beyond sections, or some other approach, like wrapping
list items in a content control. Let's try that.
That's like org.docx4j.convert.out.common.preprocess.Containerization
So we have a 2 step process:
1. insert the content controls
2. use an SdtWriter to turn these into UL or OL.
This class does step 1.
Step 2 is implemented by SdtToListSdtTagHandler; it will only be used if you invoke
SdtWriter.registerTagHandler("HTML_ELEMENT", new SdtToListSdtTagHandler())
- Author:
- jharrop
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classListsToContentControls.ListSpec -
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Loggerlog -
Constructor Summary
Constructors Constructor Description ListsToContentControls(WordprocessingMLPackage wmlPackage) -
Method Summary
Modifier and Type Method Description static voidprocess(WordprocessingMLPackage wmlPackage)
-
Field Details
-
log
public static org.slf4j.Logger log
-
-
Constructor Details
-
Method Details