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
FieldsModifier and TypeFieldDescriptionstatic final AbstractVisitorExporterDelegate.AbstractVisitorExporterGeneratorFactory<FOConversionContext>Fields 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 TypeMethodDescriptionprotected static voidapplyFoAttributes(List<Property> properties, Element foElement) protected voidconvertTabToNode(FOConversionContext conversionContext, Document document) protected voidcreateFoAttributes(FOConversionContext conversionContext, org.docx4j.wml.PPr pPr, Element foBlockElement, boolean inList, boolean ignoreBorders) protected static voidcreateFoAttributes(WordprocessingMLPackage wmlPackage, org.docx4j.wml.RPr rPr, Element foInlineElement) protected static voidcreateFoAttributes(org.docx4j.wml.TcPr tcPr, Element foBlockElement) protected static voidcreateFoAttributes(org.docx4j.wml.TrPr trPr, Element foBlockElement) protected DocumentFragmentcreateImage(int imgType, FOConversionContext conversionContext, Object anchorOrInline) protected ElementcreateNode(Document doc, int nodeType) protected AbstractVisitorExporterDelegate.AbstractVisitorExporterGeneratorFactory<FOConversionContext>protected voidhandleBr(org.docx4j.wml.Br br) protected ElementhandlePPr(FOConversionContext conversionContext, org.docx4j.wml.PPr pPrDirect, boolean sdt, Element currentParent) protected voidhandleRPr(FOConversionContext conversionContext, org.docx4j.wml.PPr pPrDirect, org.docx4j.wml.RPr rPrDirect, Element currentParent) On a block representing a run, we just put run properties from this rPr node.protected voidrtlAwareAppendChildToCurrentP(Element spanEl) Methods inherited from class org.docx4j.convert.out.common.AbstractVisitorExporterGenerator
apply, convertToNode, getCurrentParent, getLog, getPos, shouldTraverse, walkJAXBElementsMethods inherited from class org.docx4j.TraversalUtil.CallbackImpl
getChildren
-
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 DocumentFragment createImage(int imgType, FOConversionContext conversionContext, Object anchorOrInline) - Specified by:
createImagein classAbstractVisitorExporterGenerator<FOConversionContext>
-
createNode
- 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, Document document) throws DOMException - Overrides:
convertTabToNodein classAbstractVisitorExporterGenerator<FOConversionContext>- Throws:
DOMException
-
handlePPr
protected Element handlePPr(FOConversionContext conversionContext, org.docx4j.wml.PPr pPrDirect, boolean sdt, Element currentParent) - Specified by:
handlePPrin classAbstractVisitorExporterGenerator<FOConversionContext>
-
createFoAttributes
protected void createFoAttributes(FOConversionContext conversionContext, org.docx4j.wml.PPr pPr, Element foBlockElement, boolean inList, boolean ignoreBorders) -
applyFoAttributes
-
createFoAttributes
-
createFoAttributes
-
handleRPr
protected void handleRPr(FOConversionContext conversionContext, org.docx4j.wml.PPr pPrDirect, org.docx4j.wml.RPr rPrDirect, 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, Element foInlineElement) -
rtlAwareAppendChildToCurrentP
- Overrides:
rtlAwareAppendChildToCurrentPin classAbstractVisitorExporterGenerator<FOConversionContext>
-