Package org.docx4j.convert.out.fo
Class FOExporterVisitorGenerator
java.lang.Object
org.docx4j.TraversalUtil.CallbackImpl
org.docx4j.convert.out.common.AbstractVisitorExporterGenerator<FOConversionContext>
org.docx4j.convert.out.fo.FOExporterVisitorGenerator
- All Implemented Interfaces:
TraversalUtil.Callback
public class FOExporterVisitorGenerator extends AbstractVisitorExporterGenerator<FOConversionContext>
-
Field Summary
Fields Modifier and Type Field Description static AbstractVisitorExporterDelegate.AbstractVisitorExporterGeneratorFactory<FOConversionContext>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 static voidapplyFoAttributes(java.util.List<Property> properties, org.w3c.dom.Element foElement)protected voidconvertTabToNode(FOConversionContext conversionContext, org.w3c.dom.Document document)protected voidcreateFoAttributes(FOConversionContext conversionContext, org.docx4j.wml.PPr pPr, org.w3c.dom.Element foBlockElement, boolean inList, boolean ignoreBorders)protected static voidcreateFoAttributes(WordprocessingMLPackage wmlPackage, org.docx4j.wml.RPr rPr, org.w3c.dom.Element foInlineElement)protected static voidcreateFoAttributes(org.docx4j.wml.TcPr tcPr, org.w3c.dom.Element foBlockElement)protected static voidcreateFoAttributes(org.docx4j.wml.TrPr trPr, org.w3c.dom.Element foBlockElement)protected org.w3c.dom.DocumentFragmentcreateImage(int imgType, FOConversionContext conversionContext, java.lang.Object anchorOrInline)protected org.w3c.dom.ElementcreateNode(org.w3c.dom.Document doc, int nodeType)protected AbstractVisitorExporterDelegate.AbstractVisitorExporterGeneratorFactory<FOConversionContext>getFactory()protected voidhandleBr(org.docx4j.wml.Br br)protected org.w3c.dom.ElementhandlePPr(FOConversionContext conversionContext, org.docx4j.wml.PPr pPrDirect, boolean sdt, org.w3c.dom.Element currentParent)protected voidhandleRPr(FOConversionContext conversionContext, org.docx4j.wml.PPr pPrDirect, org.docx4j.wml.RPr rPrDirect, org.w3c.dom.Element currentParent)On a block representing a run, we just put run properties from this rPr node.protected voidrtlAwareAppendChildToCurrentP(org.w3c.dom.Element spanEl)Methods inherited from class org.docx4j.convert.out.common.AbstractVisitorExporterGenerator
apply, convertToNode, getCurrentParent, getLog, getPos, shouldTraverse, walkJAXBElements
-
Field Details
-
GENERATOR_FACTORY
public static final AbstractVisitorExporterDelegate.AbstractVisitorExporterGeneratorFactory<FOConversionContext> GENERATOR_FACTORY
-
-
Method Details
-
getFactory
protected AbstractVisitorExporterDelegate.AbstractVisitorExporterGeneratorFactory<FOConversionContext> getFactory()- Specified by:
getFactoryin classAbstractVisitorExporterGenerator<FOConversionContext>
-
createImage
protected org.w3c.dom.DocumentFragment createImage(int imgType, FOConversionContext conversionContext, java.lang.Object anchorOrInline)- Specified by:
createImagein classAbstractVisitorExporterGenerator<FOConversionContext>
-
createNode
protected org.w3c.dom.Element createNode(org.w3c.dom.Document doc, int nodeType)- Specified by:
createNodein classAbstractVisitorExporterGenerator<FOConversionContext>
-
handleBr
protected void handleBr(org.docx4j.wml.Br br)- Specified by:
handleBrin classAbstractVisitorExporterGenerator<FOConversionContext>
-
convertTabToNode
protected void convertTabToNode(FOConversionContext conversionContext, org.w3c.dom.Document document) throws org.w3c.dom.DOMException- Overrides:
convertTabToNodein classAbstractVisitorExporterGenerator<FOConversionContext>- Throws:
org.w3c.dom.DOMException
-
handlePPr
protected org.w3c.dom.Element handlePPr(FOConversionContext conversionContext, org.docx4j.wml.PPr pPrDirect, boolean sdt, org.w3c.dom.Element currentParent)- Specified by:
handlePPrin classAbstractVisitorExporterGenerator<FOConversionContext>
-
createFoAttributes
protected void createFoAttributes(FOConversionContext conversionContext, org.docx4j.wml.PPr pPr, org.w3c.dom.Element foBlockElement, boolean inList, boolean ignoreBorders) -
applyFoAttributes
protected static void applyFoAttributes(java.util.List<Property> properties, org.w3c.dom.Element foElement) -
createFoAttributes
protected static void createFoAttributes(org.docx4j.wml.TrPr trPr, org.w3c.dom.Element foBlockElement) -
createFoAttributes
protected static void createFoAttributes(org.docx4j.wml.TcPr tcPr, org.w3c.dom.Element foBlockElement) -
handleRPr
protected void handleRPr(FOConversionContext conversionContext, org.docx4j.wml.PPr pPrDirect, org.docx4j.wml.RPr rPrDirect, org.w3c.dom.Element currentParent)On 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<FOConversionContext>- Parameters:
wmlPackage-rPrNodeIt-childResults-
-
createFoAttributes
protected static void createFoAttributes(WordprocessingMLPackage wmlPackage, org.docx4j.wml.RPr rPr, org.w3c.dom.Element foInlineElement) -
rtlAwareAppendChildToCurrentP
protected void rtlAwareAppendChildToCurrentP(org.w3c.dom.Element spanEl)- Overrides:
rtlAwareAppendChildToCurrentPin classAbstractVisitorExporterGenerator<FOConversionContext>
-