Save This Page
Home » iText-src-2.1.3 » com.lowagie » text » rtf » [javadoc | source]
com.lowagie.text.rtf
public class: RtfTOC [javadoc | source]
java.lang.Object
   com.lowagie.text.Chunk
      com.lowagie.text.rtf.RtfTOC

All Implemented Interfaces:
    RtfField, Element

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.
Fields inherited from com.lowagie.text.Chunk:
OBJECT_REPLACEMENT_CHARACTER,  NEWLINE,  NEXTPAGE,  content,  font,  attributes,  SEPARATOR,  TAB,  HSCALE,  UNDERLINE,  SUBSUPSCRIPT,  SKEW,  BACKGROUND,  TEXTRENDERMODE,  SPLITCHARACTER,  HYPHENATION,  REMOTEGOTO,  LOCALGOTO,  LOCALDESTINATION,  GENERICTAG,  IMAGE,  ACTION,  NEWPAGE,  PDFANNOTATION,  COLOR,  ENCODING
Constructor:
 public RtfTOC(String tocName,
    Font tocFont) 
    Parameters:
    tocName - the headline of the table of contents
    tocFont - the font for the headline
Method from com.lowagie.text.rtf.RtfTOC Summary:
addTOCAsTOCEntry,   setDefaultText,   write
Methods from com.lowagie.text.Chunk:
append,   getAttributes,   getChunks,   getContent,   getFont,   getHorizontalScaling,   getHyphenation,   getImage,   getTextRise,   getWidthPoint,   hasAttributes,   isContent,   isEmpty,   isNestable,   process,   setAction,   setAnchor,   setAnchor,   setAnnotation,   setAttributes,   setBackground,   setBackground,   setFont,   setGenericTag,   setHorizontalScaling,   setHyphenation,   setLocalDestination,   setLocalGoto,   setNewPage,   setRemoteGoto,   setRemoteGoto,   setSkew,   setSplitCharacter,   setTextRenderMode,   setTextRise,   setUnderline,   setUnderline,   toString,   type
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.lowagie.text.rtf.RtfTOC Detail:
 public  void addTOCAsTOCEntry(String entryName,
    Font entryFont) 
    Add a toc entry
 public  void setDefaultText(String text) 
    Sets the default text of the Table of Contents
 public  void write(RtfWriter writer,
    OutputStream out) throws IOException