Back to index

tetex-bin  3.0
toc.h
Go to the documentation of this file.
00001 /* toc.h -- table of contents handling.
00002    $Id: toc.h,v 1.2 2004/04/11 17:56:47 karl Exp $
00003 
00004    Copyright (C) 1999 Free Software Foundation, Inc.
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 2, or (at your option)
00009    any later version.
00010 
00011    This program is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014    GNU General Public License for more details.
00015 
00016    You should have received a copy of the GNU General Public License
00017    along with this program; if not, write to the Free Software
00018    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00019 
00020    Written by Karl Heinz Marbaise <kama@hippo.fido.de>.  */
00021 
00022 #ifndef TOC_H
00023 #define TOC_H
00024 
00025 /* Structure to hold one entry for the toc. */
00026 typedef struct toc_entry_elt {
00027   char *name;
00028   char *containing_node; /* Name of node containing this section.  */
00029   char *html_file;       /* Name of HTML node-file in split-HTML mode */
00030   int number;            /* counting number from 0...n independent from
00031                             chapter/section can be used for anchors or
00032                             references to it.  */
00033   int level;             /* level: chapter, section, subsection... */
00034 } TOC_ENTRY_ELT;
00035 
00036 /* all routines which have relationship with TOC should start with
00037    toc_ (this is a kind of name-space) */
00038 extern int toc_add_entry (char *tocname, int level,
00039     char *node_name, char *anchor); /* return the number for the toc-entry */
00040 extern void toc_free (void);
00041 extern char *toc_find_section_of_node (char *node);
00042 
00043 extern void cm_contents (int arg);
00044 
00045 #endif /* not TOC_H */