fop 0.94 | |
Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
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.RtfBookmarkContainerImpl
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfParagraph
public class RtfParagraph
extends RtfBookmarkContainerImpl
Field Summary |
Fields inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement | |
attrib , parent , writer |
Method Summary | |
String |
|
RtfAttributes |
|
RtfAttributes |
|
RtfHyperLink |
|
RtfExternalGraphic |
|
void |
|
void |
|
RtfPageNumber |
|
RtfPageNumberCitation |
|
RtfText |
|
RtfText |
|
protected boolean |
|
void |
|
void |
|
protected void |
|
protected void |
|
Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfBookmarkContainerImpl | |
newBookmark |
Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer | |
addChild , getChildCount , getChildren , isEmpty , okToWriteRtf , setChildren , setOptions , toString , writeRtfContent |
Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement | |
close , getRtfAttributes , isEmpty , newLine , okToWriteRtf , toString , writeAttributes , writeControlWord , writeControlWordNS , writeExceptionInRtf , writeGroupMark , writeOneAttribute , writeOneAttributeNS , writeRtf , writeRtfContent , writeRtfPrefix , writeRtfSuffix , writeStarControlWord , writeStarControlWordNS |
public String getText()
Accessor for the paragraph text
- Returns:
- the paragraph text
public RtfAttributes getTextAttributes()
accessor for text attributes
- Returns:
- attributes of the text
public RtfAttributes getTextContainerAttributes()
IRtfTextContainer requirement: return a copy of our attributes
- Specified by:
- getTextContainerAttributes in interface IRtfTextContainer
- Returns:
- a copy of this paragraphs attributes
public RtfHyperLink newHyperLink(String str, RtfAttributes attr) throws IOException
Creates a new hyperlink.
- Specified by:
- newHyperLink in interface IRtfHyperLinkContainer
- Parameters:
str
- string containing the hyperlink textattr
- attributes of new hyperlink
- Returns:
- the new RtfHyperLink object
public RtfExternalGraphic newImage() throws IOException
Start a new external graphic after closing all other elements
- Specified by:
- newImage in interface IRtfExternalGraphicContainer
- Returns:
- the new RtfExternalGraphic
public void newLineBreak() throws IOException
add a line break
- Specified by:
- newLineBreak in interface IRtfTextContainer
public void newPageBreak() throws IOException
add a page break
- Specified by:
- newPageBreak in interface IRtfPageBreakContainer
public RtfPageNumber newPageNumber() throws IOException
Add a page number
- Specified by:
- newPageNumber in interface IRtfPageNumberContainer
- Returns:
- new RtfPageNumber object
public RtfPageNumberCitation newPageNumberCitation(String id) throws IOException
Added by Boris POUDEROUS on 2002/07/09
- Specified by:
- newPageNumberCitation in interface IRtfPageNumberCitationContainer
- Parameters:
id
- string containing the citation text
- Returns:
- the new RtfPageNumberCitation object
public RtfText newText(String str) throws IOException
Close current text run if any and start a new one with default attributes
- Specified by:
- newText in interface IRtfTextContainer
- Parameters:
str
- if not null, added to the RtfText created
- Returns:
- the new RtfText object
public RtfText newText(String str, RtfAttributes attr) throws IOException
Close current text run if any and start a new one
- Specified by:
- newText in interface IRtfTextContainer
- Parameters:
str
- if not null, added to the RtfText createdattr
- attributes of the text
- Returns:
- the new RtfText object
protected boolean okToWriteRtf()
Depending on RtfOptions, do not emit any RTF for empty paragraphs
- Overrides:
- okToWriteRtf in interface RtfContainer
- Returns:
- true if RTF should be written
public void setKeepn()
Set the keepn attribute for this paragraph
public void setResetProperties()
Force reset properties
protected void writeRtfPrefix() throws IOException
Overridden to write our attributes before our content
- Overrides:
- writeRtfPrefix in interface RtfElement
protected void writeRtfSuffix() throws IOException
Overridden to close paragraph
- Overrides:
- writeRtfSuffix in interface RtfElement
fop 0.94 |