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 class  ListsToContentControls.ListSpec  
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static org.slf4j.Logger log  
  • Constructor Summary

    Constructors 
    Constructor Description
    ListsToContentControls​(WordprocessingMLPackage wmlPackage)  
  • Method Summary

    Modifier and Type Method Description
    static void process​(WordprocessingMLPackage wmlPackage)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait