Class RtfBefore
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.RtfBefore
- All Implemented Interfaces:
IRtfExternalGraphicContainer
,IRtfParagraphContainer
,IRtfTableContainer
,IRtfTextrunContainer
The opposite of RtfAfter
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
RtfBefore attributesstatic final String[]
String array of attribute namesFields inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
attrib, parent, writer
-
Method Summary
Modifier and TypeMethodDescriptionvoid
closeAll()
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 void
Write the attributes for this elementprotected void
Called before writeRtfContent()protected void
Called after writeRtfContent()Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer
addChild, findChildren, getChildCount, getChildren, isEmpty, okToWriteRtf, setChildren, setOptions, toString, writeRtfContent
Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
close, getParentOfClass, getRtfAttributes, newLine, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeStarControlWord, writeStarControlWordNS
-
Field Details
-
HEADER
RtfBefore attributes- See Also:
-
HEADER_ATTR
String array of attribute names
-
-
Method Details
-
writeMyAttributes
Write the attributes for this element- Throws:
IOException
- for I/O problems
-
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
-
writeRtfPrefix
Description copied from class:RtfElement
Called before writeRtfContent()- Overrides:
writeRtfPrefix
in classRtfElement
- Throws:
IOException
- for I/O problems
-
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
-