public class RtfSection extends RtfContainer implements IRtfParagraphContainer, IRtfTableContainer, IRtfListContainer, IRtfExternalGraphicContainer, IRtfBeforeContainer, IRtfParagraphKeepTogetherContainer, IRtfAfterContainer, IRtfJforCmdContainer
m_attrib, m_parent, m_writer
Constructor and Description |
---|
RtfSection(RtfDocumentArea parent,
java.io.Writer w)
Create an RTF container as a child of given container
|
Modifier and Type | Method and Description |
---|---|
RtfAfter |
newAfter(RtfAttributes attrs)
IRtfAfterContainer
|
RtfBefore |
newBefore(RtfAttributes attrs)
IRtfBeforeContainer
|
RtfExternalGraphic |
newImage()
start a new external graphic after closing current paragraph, list and table
|
RtfJforCmd |
newJforCmd(RtfAttributes attrs) |
RtfList |
newList(RtfAttributes attrs)
start a new list after closing current paragraph, list and table
|
RtfParagraph |
newParagraph()
close current paragraph if any and start a new one with default attributes
|
RtfParagraph |
newParagraph(RtfAttributes attrs)
start a new paragraph after closing current paragraph, list and table
|
RtfParagraphKeepTogether |
newParagraphKeepTogether()
close current paragraph if any and start a new one
|
RtfTable |
newTable(ITableColumnsInfo tc)
start a new table after closing current paragraph, list and table
|
RtfTable |
newTable(RtfAttributes attrs,
ITableColumnsInfo tc)
start a new table after closing current paragraph, list and table
|
protected void |
writeRtfPrefix()
can be overridden to write RTF prefix code, what comes before our children
|
protected void |
writeRtfSuffix()
can be overridden to write RTF suffix code, what comes after our children
|
addChild, containsText, dump, getChildCount, getChildren, getOptions, isEmpty, okToWriteRtf, setChildren, setOptions, toString, writeRtfContent
close, getParentOfClass, getRtfAttributes, getRtfFile, isClosed, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeStarControlWord, writeStarControlWordNS
RtfSection(RtfDocumentArea parent, java.io.Writer w) throws java.io.IOException
java.io.IOException
public RtfExternalGraphic newImage() throws java.io.IOException
newImage
in interface IRtfExternalGraphicContainer
java.io.IOException
- On errorpublic RtfParagraph newParagraph(RtfAttributes attrs) throws java.io.IOException
newParagraph
in interface IRtfParagraphContainer
java.io.IOException
public RtfParagraph newParagraph() throws java.io.IOException
newParagraph
in interface IRtfParagraphContainer
java.io.IOException
public RtfParagraphKeepTogether newParagraphKeepTogether() throws java.io.IOException
newParagraphKeepTogether
in interface IRtfParagraphKeepTogetherContainer
java.io.IOException
public RtfTable newTable(ITableColumnsInfo tc) throws java.io.IOException
newTable
in interface IRtfTableContainer
tc
- Table context used for number-columns-spanned attribute (added by Boris Poud?rous on july 2002)java.io.IOException
public RtfTable newTable(RtfAttributes attrs, ITableColumnsInfo tc) throws java.io.IOException
newTable
in interface IRtfTableContainer
tc
- Table context used for number-columns-spanned attribute (added by Boris Poud?rous on july 2002)java.io.IOException
public RtfList newList(RtfAttributes attrs) throws java.io.IOException
newList
in interface IRtfListContainer
java.io.IOException
public RtfBefore newBefore(RtfAttributes attrs) throws java.io.IOException
newBefore
in interface IRtfBeforeContainer
java.io.IOException
public RtfAfter newAfter(RtfAttributes attrs) throws java.io.IOException
newAfter
in interface IRtfAfterContainer
java.io.IOException
public RtfJforCmd newJforCmd(RtfAttributes attrs) throws java.io.IOException
newJforCmd
in interface IRtfJforCmdContainer
java.io.IOException
protected void writeRtfPrefix() throws java.io.IOException
writeRtfPrefix
in class RtfElement
java.io.IOException
protected void writeRtfSuffix() throws java.io.IOException
writeRtfSuffix
in class RtfElement
java.io.IOException