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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RtfTextrungetTextrun()Returns the current RtfTextrun.RtfAfternewAfter(RtfAttributes attrs)IRtfAfterContainerRtfBeforenewBefore(RtfAttributes attrs)IRtfBeforeContainerRtfExternalGraphicnewImage()Start a new external graphic after closing current paragraph, list and tableRtfJforCmdnewJforCmd(RtfAttributes attrs)RtfListnewList(RtfAttributes attrs)Start a new list after closing current paragraph, list and tableRtfParagraphnewParagraph()Close current paragraph if any and start a new one with default attributesRtfParagraphnewParagraph(RtfAttributes attrs)Start a new paragraph after closing current paragraph, list and tableRtfParagraphKeepTogethernewParagraphKeepTogether()Close current paragraph if any and start a new oneRtfTablenewTable(ITableColumnsInfo tc)Start a new table after closing current paragraph, list and tableRtfTablenewTable(RtfAttributes attrs, ITableColumnsInfo tc)Start a new table after closing current paragraph, list and tableprotected voidwriteRtfPrefix()Can be overridden to write RTF prefix code, what comes before our childrenprotected voidwriteRtfSuffix()Can be overridden to write RTF suffix code, what comes after our children-
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
-
-
-
-
Method Detail
-
newImage
public RtfExternalGraphic newImage() throws java.io.IOException
Start a new external graphic after closing current paragraph, list and table- Specified by:
newImagein interfaceIRtfExternalGraphicContainer- Returns:
- new RtfExternalGraphic object
- Throws:
java.io.IOException- for I/O problems
-
newParagraph
public RtfParagraph newParagraph(RtfAttributes attrs) throws java.io.IOException
Start a new paragraph after closing current paragraph, list and table- Specified by:
newParagraphin interfaceIRtfParagraphContainer- Parameters:
attrs- attributes for new RtfParagraph- Returns:
- new RtfParagraph object
- Throws:
java.io.IOException- for I/O problems
-
newParagraph
public RtfParagraph newParagraph() throws java.io.IOException
Close current paragraph if any and start a new one with default attributes- Specified by:
newParagraphin interfaceIRtfParagraphContainer- Returns:
- new RtfParagraph
- Throws:
java.io.IOException- for I/O problems
-
newParagraphKeepTogether
public RtfParagraphKeepTogether newParagraphKeepTogether() throws java.io.IOException
Close current paragraph if any and start a new one- Specified by:
newParagraphKeepTogetherin interfaceIRtfParagraphKeepTogetherContainer- Returns:
- new RtfParagraphKeepTogether
- Throws:
java.io.IOException- for I/O problems
-
newTable
public RtfTable newTable(ITableColumnsInfo tc) throws java.io.IOException
Start a new table after closing current paragraph, list and table- Specified by:
newTablein interfaceIRtfTableContainer- Parameters:
tc- Table context used for number-columns-spanned attribute (added by Boris Poudérous on july 2002)- Returns:
- new RtfTable object
- Throws:
java.io.IOException- for I/O problems
-
newTable
public RtfTable newTable(RtfAttributes attrs, ITableColumnsInfo tc) throws java.io.IOException
Start a new table after closing current paragraph, list and table- Specified by:
newTablein 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:
java.io.IOException- for I/O problems
-
newList
public RtfList newList(RtfAttributes attrs) throws java.io.IOException
Start a new list after closing current paragraph, list and table- Specified by:
newListin interfaceIRtfListContainer- Parameters:
attrs- attributes of new RftList object- Returns:
- new RtfList
- Throws:
java.io.IOException- for I/O problems
-
newBefore
public RtfBefore newBefore(RtfAttributes attrs) throws java.io.IOException
IRtfBeforeContainer- Specified by:
newBeforein interfaceIRtfBeforeContainer- Parameters:
attrs- attributes of new RtfBefore object- Returns:
- new RtfBefore object
- Throws:
java.io.IOException- for I/O problems
-
newAfter
public RtfAfter newAfter(RtfAttributes attrs) throws java.io.IOException
IRtfAfterContainer- Specified by:
newAfterin interfaceIRtfAfterContainer- Parameters:
attrs- attributes of new RtfAfter object- Returns:
- new RtfAfter object
- Throws:
java.io.IOException- for I/O problems
-
newJforCmd
public RtfJforCmd newJforCmd(RtfAttributes attrs) throws java.io.IOException
- Specified by:
newJforCmdin interfaceIRtfJforCmdContainer- Parameters:
attrs- attributes of new RtfJforCmd- Returns:
- the new RtfJforCmd
- Throws:
java.io.IOException- for I/O problems
-
writeRtfPrefix
protected void writeRtfPrefix() throws java.io.IOExceptionCan be overridden to write RTF prefix code, what comes before our children- Overrides:
writeRtfPrefixin classRtfElement- Throws:
java.io.IOException- for I/O problems
-
writeRtfSuffix
protected void writeRtfSuffix() throws java.io.IOExceptionCan be overridden to write RTF suffix code, what comes after our children- Overrides:
writeRtfSuffixin classRtfElement- Throws:
java.io.IOException- for I/O problems
-
getTextrun
public RtfTextrun getTextrun() throws java.io.IOException
Returns the current RtfTextrun.- Specified by:
getTextrunin interfaceIRtfTextrunContainer- Returns:
- Current RtfTextrun
- Throws:
java.io.IOException- Thrown when an IO-problem occurs.
-
-