org.apache.fop.render.rtf.rtflib.rtfdoc
Class RtfTextrun
Class which contains a linear text run. It has methods to add attributes,
text, paragraph breaks....
- Peter Herweg, pherweg@web.de
close, getRtfAttributes, isEmpty, newLine, okToWriteRtf, toString, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeRtfContent, writeRtfPrefix, writeRtfSuffix, writeStarControlWord, writeStarControlWordNS |
addBookmark
public void addBookmark(String id)
throws IOException Inserts a bookmark.
id - Id for the inserted bookmark
addFootnote
public RtfFootnote addFootnote()
throws IOException Inserts a footnote.
addHyperlink
public RtfHyperLink addHyperlink(RtfAttributes attr)
throws IOException Inserts a hyperlink.
attr - Attributes for the hyperlink to insert.
addPageNumber
public void addPageNumber(RtfAttributes attr)
throws IOException Inserts a page number.
attr - Attributes for the page number to insert.
addParagraphBreak
public void addParagraphBreak()
throws IOException Inserts paragraph break before all close group marks.
addString
public void addString(String s)
throws IOException Add string to children list.
getRtfListItem
public RtfListItem getRtfListItem()
Gets the parent list-item of the textrun.
- parent list-item of the textrun
getTextrun
public static RtfTextrun getTextrun(RtfContainer container,
Writer writer,
RtfAttributes attrs)
throws IOException Adds a new RtfTextrun to the given container if necessary, and returns it.
container - RtfContainer, which is the parent of the returned RtfTextrunwriter - Writer of the given RtfContainerattrs - RtfAttributes which are to write at the beginning of the RtfTextrun
- new or existing RtfTextrun object.
popBlockAttributes
public void popBlockAttributes()
throws IOException Pops block attributes, notifies all opened blocks about pushing block
attributes, adds CloseGroupMark as a child.
popInlineAttributes
public void popInlineAttributes()
throws IOException Pop inline attributes.
pushBlockAttributes
public void pushBlockAttributes(RtfAttributes attrs)
throws IOException Pushes block attributes, notifies all opened blocks about pushing block
attributes, adds OpenGroupMark as a child.
attrs - the block attributes to push
pushInlineAttributes
public void pushInlineAttributes(RtfAttributes attrs)
throws IOException Pushes inline attributes.
attrs - the inline attributes to push
setRtfListItem
public void setRtfListItem(RtfListItem listItem)
Set the parent list-item of the textrun.
listItem - parent list-item of the textrun
setSuppressLastPar
public void setSuppressLastPar(boolean bSuppress)
specify, if the last paragraph control word (\par) should be suppressed.
bSuppress - true, if the last \par should be suppressed
writeRtfContent
protected void writeRtfContent()
throws IOException write RTF code of all our children
- writeRtfContent in interface RtfContainer
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.