Package org.docx4j.convert.out.html
Class TagClass
java.lang.Object
org.docx4j.convert.out.html.SdtTagHandler
org.docx4j.convert.out.html.TagClass
If the content control has a tag containing @class=foo,
then create a div with that attribute and value.
If the value is the special case collapse, ie @class=collapse,
then make this a collapsible div using javascript.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate ElementtoNode(WordprocessingMLPackage wmlPackage, SdtPr sdtPr, HashMap<String, String> tagMap, Node resultSoFar) toNode(WordprocessingMLPackage wmlPackage, SdtPr sdtPr, HashMap<String, String> tagMap, NodeIterator childResults) Methods inherited from class org.docx4j.convert.out.html.SdtTagHandler
attachContents, attachContents, getAlias
-
Field Details
-
log
private static org.slf4j.Logger log
-
-
Constructor Details
-
TagClass
public TagClass()
-
-
Method Details
-
createDiv
private Element createDiv(Document document, DocumentFragment docfrag, SdtPr sdtPr, HashMap<String, String> tagMap) throws ParserConfigurationException, IOException, SAXException -
toNode
public Node toNode(WordprocessingMLPackage wmlPackage, SdtPr sdtPr, HashMap<String, String> tagMap, NodeIterator childResults) throws TransformerException- Specified by:
toNodein classSdtTagHandler- Throws:
TransformerException
-
toNode
public Node toNode(WordprocessingMLPackage wmlPackage, SdtPr sdtPr, HashMap<String, String> tagMap, Node resultSoFar) throws TransformerException- Specified by:
toNodein classSdtTagHandler- Throws:
TransformerException
-