public class RtfBefore extends RtfContainer
| Modifier and Type | Field and Description |
|---|---|
static String |
HEADER
RtfBefore attributes
|
static String[] |
HEADER_ATTR
String array of attribute names
|
attrib, parent, writer| Modifier and Type | Method and Description |
|---|---|
void |
closeAll() |
RtfAttributes |
getAttributes() |
RtfTextrun |
getTextrun()
Returns the current RtfTextrun object.
|
RtfExternalGraphic |
newImage()
Creates a new image on external graphic base.
|
RtfParagraph |
newParagraph()
Close current paragraph, if any, and start a new one with default
attributes.
|
RtfParagraph |
newParagraph(RtfAttributes attrs)
Close current paragraph, if any, and start a new one with specified
attributes
|
RtfTable |
newTable(ITableColumnsInfo tc)
close current table if any and start a new one
|
RtfTable |
newTable(RtfAttributes attrs,
ITableColumnsInfo tc)
close current table if any and start a new one
|
protected void |
writeMyAttributes()
Write the attributes for this element
|
protected void |
writeRtfPrefix()
Called before writeRtfContent()
|
protected void |
writeRtfSuffix()
Called after writeRtfContent()
|
addChild, findChildren, getChildCount, getChildren, isEmpty, okToWriteRtf, setChildren, setOptions, toString, writeRtfContentclose, getParentOfClass, getRtfAttributes, newLine, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeStarControlWord, writeStarControlWordNSpublic static final String HEADER
public static final String[] HEADER_ATTR
protected void writeMyAttributes()
throws IOException
IOException - for I/O problemspublic RtfParagraph newParagraph() throws IOException
IRtfParagraphContainernewParagraph in interface IRtfParagraphContainerIOException - for I/O problems.public RtfParagraph newParagraph(RtfAttributes attrs) throws IOException
IRtfParagraphContainernewParagraph in interface IRtfParagraphContainerattrs - attributes for new paragraphIOException - for I/O problems.public RtfExternalGraphic newImage() throws IOException
IRtfExternalGraphicContainernewImage in interface IRtfExternalGraphicContainerIOException - On errorprotected void writeRtfPrefix()
throws IOException
RtfElementwriteRtfPrefix in class RtfElementIOException - for I/O problemsprotected void writeRtfSuffix()
throws IOException
RtfElementwriteRtfSuffix in class RtfElementIOException - for I/O problemspublic RtfAttributes getAttributes()
public void closeAll()
throws IOException
IOExceptionpublic RtfTable newTable(RtfAttributes attrs, ITableColumnsInfo tc) throws IOException
newTable in interface IRtfTableContainertc - added by Boris Poudérous on july 2002 in order to process
number-columns-spanned attributeattrs - for the Table attributesIOException - for I/O problemspublic RtfTable newTable(ITableColumnsInfo tc) throws IOException
newTable in interface IRtfTableContainertc - Table Columns InfoIOException - for I/O problemspublic RtfTextrun getTextrun() throws IOException
IRtfTextrunContainergetTextrun in interface IRtfTextrunContainerIOException - Thrown when an IO-problem occursCopyright © 2023 Apache Software Foundation. All rights reserved.