Package org.docx4j.convert.out.html
Class HTMLExporterVisitorGenerator
java.lang.Object
org.docx4j.TraversalUtil.CallbackImpl
org.docx4j.convert.out.common.AbstractVisitorExporterGenerator<HTMLConversionContext>
org.docx4j.convert.out.html.HTMLExporterVisitorGenerator
- All Implemented Interfaces:
TraversalUtil.Callback
public class HTMLExporterVisitorGenerator extends AbstractVisitorExporterGenerator<HTMLConversionContext>
-
Field Summary
Fields Modifier and Type Field Description static AbstractVisitorExporterDelegate.AbstractVisitorExporterGeneratorFactory<HTMLConversionContext>GENERATOR_FACTORYFields inherited from class org.docx4j.convert.out.common.AbstractVisitorExporterGenerator
anchorOrInline, conversionContext, currentP, currentSpan, document, IMAGE_E10, IMAGE_E20, NODE_BLOCK, NODE_INLINE, parentNode, pPr, rPr, TAB_DUMMY, tc, tr -
Method Summary
Modifier and Type Method Description protected org.w3c.dom.DocumentFragmentcreateImage(int imgType, HTMLConversionContext conversionContext, java.lang.Object anchorOrInline)protected org.w3c.dom.ElementcreateNode(org.w3c.dom.Document doc, int nodeType)protected AbstractVisitorExporterDelegate.AbstractVisitorExporterGeneratorFactory<HTMLConversionContext>getFactory()protected voidhandleBr(Br o)protected org.w3c.dom.ElementhandlePPr(HTMLConversionContext conversionContext, PPr pPrDirect, boolean sdt, org.w3c.dom.Element currentParent)protected voidhandleRPr(HTMLConversionContext conversionContext, PPr pPrDirect, RPr rPrDirect, org.w3c.dom.Element currentParent)On a block representing a run, we just put run properties from this rPr node.Methods inherited from class org.docx4j.convert.out.common.AbstractVisitorExporterGenerator
apply, convertTabToNode, convertToNode, getCurrentParent, getLog, getPos, rtlAwareAppendChildToCurrentP, shouldTraverse, walkJAXBElements
-
Field Details
-
GENERATOR_FACTORY
public static final AbstractVisitorExporterDelegate.AbstractVisitorExporterGeneratorFactory<HTMLConversionContext> GENERATOR_FACTORY
-
-
Method Details
-
getFactory
protected AbstractVisitorExporterDelegate.AbstractVisitorExporterGeneratorFactory<HTMLConversionContext> getFactory()- Specified by:
getFactoryin classAbstractVisitorExporterGenerator<HTMLConversionContext>
-
createNode
protected org.w3c.dom.Element createNode(org.w3c.dom.Document doc, int nodeType)- Specified by:
createNodein classAbstractVisitorExporterGenerator<HTMLConversionContext>
-
createImage
protected org.w3c.dom.DocumentFragment createImage(int imgType, HTMLConversionContext conversionContext, java.lang.Object anchorOrInline)- Specified by:
createImagein classAbstractVisitorExporterGenerator<HTMLConversionContext>
-
handlePPr
protected org.w3c.dom.Element handlePPr(HTMLConversionContext conversionContext, PPr pPrDirect, boolean sdt, org.w3c.dom.Element currentParent)- Specified by:
handlePPrin classAbstractVisitorExporterGenerator<HTMLConversionContext>
-
handleRPr
protected void handleRPr(HTMLConversionContext conversionContext, PPr pPrDirect, RPr rPrDirect, org.w3c.dom.Element currentParent)Description copied from class:AbstractVisitorExporterGeneratorOn a block representing a run, we just put run properties from this rPr node. The paragraph style rPr's have been taken care of on the fo block which represents the paragraph.- Specified by:
handleRPrin classAbstractVisitorExporterGenerator<HTMLConversionContext>
-
handleBr
- Specified by:
handleBrin classAbstractVisitorExporterGenerator<HTMLConversionContext>
-