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 RtfExternalGraphicprivate RtfParagraphprivate RtfTableFields inherited from class RtfElement
attrib, parent, writer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcloseAll()private voidprivate voidprivate voidReturns 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 voidmust be implemented to write the header or footer attributesprotected voidCalled before writeRtfContent()protected voidCalled after writeRtfContent()Methods inherited from class RtfContainer
addChild, containsText, dump, findChildren, getChildCount, getChildren, getOptions, isEmpty, okToWriteRtf, setChildren, setOptions, toString, writeRtfContentMethods inherited from class 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:IRtfParagraphContainerClose current paragraph, if any, and start a new one with default attributes.- Specified by:
newParagraphin interfaceIRtfParagraphContainer- Returns:
- new paragraph object
- Throws:
IOException- for I/O problems.
-
newParagraph
Description copied from interface:IRtfParagraphContainerClose current paragraph, if any, and start a new one with specified attributes- Specified by:
newParagraphin interfaceIRtfParagraphContainer- Parameters:
attrs- attributes for new paragraph- Returns:
- new paragraph object
- Throws:
IOException- for I/O problems.
-
newImage
Description copied from interface:IRtfExternalGraphicContainerCreates a new image on external graphic base.- Specified by:
newImagein 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:RtfElementCalled before writeRtfContent()- Overrides:
writeRtfPrefixin 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:RtfElementCalled after writeRtfContent()- Overrides:
writeRtfSuffixin classRtfElement- Throws:
IOException- for I/O problems
-
getAttributes
-
closeAll
- Throws:
IOException
-
newTable
close current table if any and start a new one- Specified by:
newTablein interfaceIRtfTableContainer- Parameters:
attrs- for the Table attributestc- added by Boris Poudérous on july 2002 in order to process number-columns-spanned attribute- Returns:
- new table object
- Throws:
IOException- for I/O problems
-
newTable
close current table if any and start a new one- Specified by:
newTablein interfaceIRtfTableContainer- Parameters:
tc- Table Columns Info- Returns:
- new table object
- Throws:
IOException- for I/O problems
-
getTextrun
Description copied from interface:IRtfTextrunContainerReturns the current RtfTextrun object. Opens a new one if necessary.- Specified by:
getTextrunin interfaceIRtfTextrunContainer- Returns:
- The RtfTextrun object
- Throws:
IOException- Thrown when an IO-problem occurs
-