Class RtfTOC

  • All Implemented Interfaces:
    Element, RtfField

    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.1 $Date: 2009/08/28 20:31:00 $
    Author:
    Steffen.Stundzig@smb-tec.com
    • Field Detail

      • defaultText

        private java.lang.String defaultText
        Deprecated.
      • addTOCAsTOCEntry

        private boolean addTOCAsTOCEntry
        Deprecated.
      • entryFont

        private Font entryFont
        Deprecated.
      • entryName

        private java.lang.String entryName
        Deprecated.
    • Constructor Detail

      • RtfTOC

        public RtfTOC​(java.lang.String tocName,
                      Font tocFont)
        Deprecated.
        Parameters:
        tocName - the headline of the table of contents
        tocFont - the font for the headline
    • Method Detail

      • addTOCAsTOCEntry

        public void addTOCAsTOCEntry​(java.lang.String entryName,
                                     Font entryFont)
        Deprecated.
        Add a toc entry
        Parameters:
        entryName - the name of the entry
        entryFont - the font to be used for the entry
      • setDefaultText

        public void setDefaultText​(java.lang.String text)
        Deprecated.
        Sets the default text of the Table of Contents
        Parameters:
        text - the default text