Class RtfAfterBeforeBase
java.lang.Object
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfAfterBeforeBase
- All Implemented Interfaces:
IRtfExternalGraphicContainer
,IRtfParagraphContainer
,IRtfTableContainer
,IRtfTextrunContainer
abstract class RtfAfterBeforeBase
extends RtfContainer
implements IRtfParagraphContainer, IRtfExternalGraphicContainer, IRtfTableContainer, IRtfTextrunContainer
Common code for RtfAfter and RtfBefore.
This work was authored by Andreas Lambert (andreas.lambert@cronidesoft.com), Christopher Scott (scottc@westinghouse.com), and Christoph Zahm (zahm@jnet.ch) [support for tables in headers/footers].
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate RtfExternalGraphic
private RtfParagraph
private RtfTable
Fields inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
attrib, parent, writer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
closeAll()
private void
private void
private void
Returns the current RtfTextrun object.newImage()
Creates a new image on external graphic base.Close current paragraph, if any, and start a new one with default attributes.newParagraph
(RtfAttributes attrs) Close current paragraph, if any, and start a new one with specified attributesclose current table if any and start a new onenewTable
(RtfAttributes attrs, ITableColumnsInfo tc) close current table if any and start a new oneprotected abstract void
must be implemented to write the header or footer attributesprotected void
Called before writeRtfContent()protected void
Called after writeRtfContent()Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer
addChild, containsText, dump, findChildren, getChildCount, getChildren, getOptions, isEmpty, okToWriteRtf, setChildren, setOptions, toString, writeRtfContent
Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
close, getParentOfClass, getRtfAttributes, getRtfFile, isClosed, newLine, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeStarControlWord, writeStarControlWordNS
-
Field Details
-
para
-
externalGraphic
-
table
-
-
Constructor Details
-
RtfAfterBeforeBase
RtfAfterBeforeBase(RtfSection parent, Writer w, RtfAttributes attrs) throws IOException - Throws:
IOException
-
-
Method Details
-
newParagraph
Description copied from interface:IRtfParagraphContainer
Close current paragraph, if any, and start a new one with default attributes.- Specified by:
newParagraph
in interfaceIRtfParagraphContainer
- Returns:
- new paragraph object
- Throws:
IOException
- for I/O problems.
-
newParagraph
Description copied from interface:IRtfParagraphContainer
Close current paragraph, if any, and start a new one with specified attributes- Specified by:
newParagraph
in interfaceIRtfParagraphContainer
- Parameters:
attrs
- attributes for new paragraph- Returns:
- new paragraph object
- Throws:
IOException
- for I/O problems.
-
newImage
Description copied from interface:IRtfExternalGraphicContainer
Creates a new image on external graphic base.- Specified by:
newImage
in interfaceIRtfExternalGraphicContainer
- Returns:
- RtfExternalGraphic for the new image
- Throws:
IOException
- On error
-
closeCurrentParagraph
- Throws:
IOException
-
closeCurrentExternalGraphic
- Throws:
IOException
-
closeCurrentTable
- Throws:
IOException
-
writeRtfPrefix
Description copied from class:RtfElement
Called before writeRtfContent()- Overrides:
writeRtfPrefix
in classRtfElement
- Throws:
IOException
- for I/O problems
-
writeMyAttributes
must be implemented to write the header or footer attributes- Throws:
IOException
-
writeRtfSuffix
Description copied from class:RtfElement
Called after writeRtfContent()- Overrides:
writeRtfSuffix
in classRtfElement
- Throws:
IOException
- for I/O problems
-
getAttributes
-
closeAll
- Throws:
IOException
-
newTable
close current table if any and start a new one- Specified by:
newTable
in interfaceIRtfTableContainer
- Parameters:
tc
- added by Boris Poudérous on july 2002 in order to process number-columns-spanned attributeattrs
- for the Table attributes- Returns:
- new table object
- Throws:
IOException
- for I/O problems
-
newTable
close current table if any and start a new one- Specified by:
newTable
in interfaceIRtfTableContainer
- Parameters:
tc
- Table Columns Info- Returns:
- new table object
- Throws:
IOException
- for I/O problems
-
getTextrun
Description copied from interface:IRtfTextrunContainer
Returns the current RtfTextrun object. Opens a new one if necessary.- Specified by:
getTextrun
in interfaceIRtfTextrunContainer
- Returns:
- The RtfTextrun object
- Throws:
IOException
- Thrown when an IO-problem occurs
-