Package org.docx4j.convert.out.fo
Class FOPictWriterAbstract
java.lang.Object
org.docx4j.convert.out.common.writer.AbstractSimpleWriter
org.docx4j.convert.out.common.writer.AbstractPictWriter
org.docx4j.convert.out.fo.FOPictWriterAbstract
- All Implemented Interfaces:
Writer
- Direct Known Subclasses:
FOPictWriterNoWrapImpl
Note that despite its name, this currently only handles v:textbox.
Images (ie ./v:shape/v:imagedata) are handled differently, by legacy code.
Microsoft Word supports 5 "wrapping styles" for text box.
1. "in line with text": (this is a TODO here)
2,3. square, tight: (these we handle with fo:float)
4,5. behind, in front: (these we handle with position=absolute|fixed and z-index
(There are some additional wrapping styles for images, eg top and bottom, which
is straightforward, and through, as to which see https://wordribbon.tips.net/T009382_Understanding_Through_Text_Wrapping.html
- Author:
- jharrop
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.docx4j.convert.out.common.Writer
Writer.TransformState
-
Field Summary
Fields inherited from class org.docx4j.convert.out.common.writer.AbstractPictWriter
WRITER_ID
Fields inherited from class org.docx4j.convert.out.common.writer.AbstractSimpleWriter
writerId
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Node
handleVTextBoxNoWrap
(AbstractWmlConversionContext context, Node modelContent, Document doc, org.docx4j.vml.VmlShapeElements shape, Map<String, String> props) abstract Node
handleVTextBoxWrapped
(AbstractWmlConversionContext context, Node modelContent, Document doc, org.docx4j.vml.VmlShapeElements shape, Map<String, String> props) protected float
parsePtsVal
(String pts) protected void
setBorders
(Element ret) toNode
(AbstractWmlConversionContext context, Object unmarshalledNode, Node modelContent, Writer.TransformState state, Document doc) Methods inherited from class org.docx4j.convert.out.common.writer.AbstractSimpleWriter
createTransformState, getID
-
Field Details
-
log
protected static org.slf4j.Logger log -
XSL_FO
-
-
Constructor Details
-
FOPictWriterAbstract
public FOPictWriterAbstract()
-
-
Method Details
-
toNode
public Node toNode(AbstractWmlConversionContext context, Object unmarshalledNode, Node modelContent, Writer.TransformState state, Document doc) throws TransformerException - Throws:
TransformerException
-
handleVTextBoxNoWrap
-
handleVTextBoxWrapped
-
setBorders
-
parsePtsVal
-