Class RtfSection
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.RtfSection
- All Implemented Interfaces:
IRtfAfterContainer
,IRtfBeforeContainer
,IRtfExternalGraphicContainer
,IRtfJforCmdContainer
,IRtfListContainer
,IRtfParagraphContainer
,IRtfParagraphKeepTogetherContainer
,IRtfTableContainer
,IRtfTextrunContainer
public class RtfSection
extends RtfContainer
implements IRtfParagraphContainer, IRtfTableContainer, IRtfListContainer, IRtfExternalGraphicContainer, IRtfBeforeContainer, IRtfParagraphKeepTogetherContainer, IRtfAfterContainer, IRtfJforCmdContainer, IRtfTextrunContainer
Models a section in an RTF document
This work was authored by Bertrand Delacretaz (bdelacretaz@codeconsult.ch).
-
Field Summary
Fields inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
attrib, parent, writer
-
Method Summary
Modifier and TypeMethodDescriptionReturns the current RtfTextrun.newAfter
(RtfAttributes attrs) IRtfAfterContainernewBefore
(RtfAttributes attrs) IRtfBeforeContainernewImage()
Start a new external graphic after closing current paragraph, list and tablenewJforCmd
(RtfAttributes attrs) newList
(RtfAttributes attrs) Start a new list after closing current paragraph, list and tableClose current paragraph if any and start a new one with default attributesnewParagraph
(RtfAttributes attrs) Start a new paragraph after closing current paragraph, list and tableClose current paragraph if any and start a new oneStart a new table after closing current paragraph, list and tablenewTable
(RtfAttributes attrs, ITableColumnsInfo tc) Start a new table after closing current paragraph, list and tableprotected void
Can be overridden to write RTF prefix code, what comes before our childrenprotected void
Can be overridden to write RTF suffix code, what comes after our childrenMethods 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
-
Method Details
-
newImage
Start a new external graphic after closing current paragraph, list and table- Specified by:
newImage
in interfaceIRtfExternalGraphicContainer
- Returns:
- new RtfExternalGraphic object
- Throws:
IOException
- for I/O problems
-
newParagraph
Start a new paragraph after closing current paragraph, list and table- Specified by:
newParagraph
in interfaceIRtfParagraphContainer
- Parameters:
attrs
- attributes for new RtfParagraph- Returns:
- new RtfParagraph object
- Throws:
IOException
- for I/O problems
-
newParagraph
Close current paragraph if any and start a new one with default attributes- Specified by:
newParagraph
in interfaceIRtfParagraphContainer
- Returns:
- new RtfParagraph
- Throws:
IOException
- for I/O problems
-
newParagraphKeepTogether
Close current paragraph if any and start a new one- Specified by:
newParagraphKeepTogether
in interfaceIRtfParagraphKeepTogetherContainer
- Returns:
- new RtfParagraphKeepTogether
- Throws:
IOException
- for I/O problems
-
newTable
Start a new table after closing current paragraph, list and table- Specified by:
newTable
in interfaceIRtfTableContainer
- Parameters:
tc
- Table context used for number-columns-spanned attribute (added by Boris Poudérous on july 2002)- Returns:
- new RtfTable object
- Throws:
IOException
- for I/O problems
-
newTable
Start a new table after closing current paragraph, list and table- Specified by:
newTable
in interfaceIRtfTableContainer
- Parameters:
attrs
- attributes of new RtfTabletc
- Table context used for number-columns-spanned attribute (added by Boris Poudérous on july 2002)- Returns:
- new RtfTable object
- Throws:
IOException
- for I/O problems
-
newList
Start a new list after closing current paragraph, list and table- Specified by:
newList
in interfaceIRtfListContainer
- Parameters:
attrs
- attributes of new RftList object- Returns:
- new RtfList
- Throws:
IOException
- for I/O problems
-
newBefore
IRtfBeforeContainer- Specified by:
newBefore
in interfaceIRtfBeforeContainer
- Parameters:
attrs
- attributes of new RtfBefore object- Returns:
- new RtfBefore object
- Throws:
IOException
- for I/O problems
-
newAfter
IRtfAfterContainer- Specified by:
newAfter
in interfaceIRtfAfterContainer
- Parameters:
attrs
- attributes of new RtfAfter object- Returns:
- new RtfAfter object
- Throws:
IOException
- for I/O problems
-
newJforCmd
- Specified by:
newJforCmd
in interfaceIRtfJforCmdContainer
- Parameters:
attrs
- attributes of new RtfJforCmd- Returns:
- the new RtfJforCmd
- Throws:
IOException
- for I/O problems
-
writeRtfPrefix
Can be overridden to write RTF prefix code, what comes before our children- Overrides:
writeRtfPrefix
in classRtfElement
- Throws:
IOException
- for I/O problems
-
writeRtfSuffix
Can be overridden to write RTF suffix code, what comes after our children- Overrides:
writeRtfSuffix
in classRtfElement
- Throws:
IOException
- for I/O problems
-
getTextrun
Returns the current RtfTextrun.- Specified by:
getTextrun
in interfaceIRtfTextrunContainer
- Returns:
- Current RtfTextrun
- Throws:
IOException
- Thrown when an IO-problem occurs.
-