com.lowagie.text.rtf
public class RtfTOC extends Chunk implements RtfField
Deprecated: Please move to the RtfWriter2 and associated classes. com.lowagie.text.rtf.field.RtfTableOfContents replaces the functionality of this class.
This class can be used to insert a table of contents into the RTF document. Therefore the field TOC is used. It works great in Word 2000. StarOffice doesn't support such fields. Other word version are not tested yet. ONLY FOR USE WITH THE RtfWriter NOT with the RtfWriter2. This class is based on the RtfWriter-package from Mark Hall.Version: $Revision: 1.25 $Date: 2006/09/14 23:10:54 $
Field Summary | |
---|---|
boolean | addTOCAsTOCEntry |
String | defaultText |
Font | entryFont |
String | entryName |
Constructor Summary | |
---|---|
RtfTOC(String tocName, Font tocFont) |
Method Summary | |
---|---|
void | addTOCAsTOCEntry(String entryName, Font entryFont)
Add a toc entry |
void | setDefaultText(String text)
Sets the default text of the Table of Contents |
void | write(RtfWriter writer, OutputStream out) |
Parameters: tocName the headline of the table of contents tocFont the font for the headline
Parameters: entryName the name of the entry entryFont the font to be used for the entry
Parameters: text the default text
See Also: RtfField