toc.h revision 56160
1/* toc.h -- table of contents handling. 2 $Id: toc.h,v 1.4 1999/04/25 19:49:22 karl Exp $ 3 4 Copyright (C) 1999 Free Software Foundation, Inc. 5 6 This program is free software; you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation; either version 2, or (at your option) 9 any later version. 10 11 This program is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU General Public License for more details. 15 16 You should have received a copy of the GNU General Public License 17 along with this program; if not, write to the Free Software 18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 20 Written by Karl Heinz Marbaise <kama@hippo.fido.de>. */ 21 22#ifndef TOC_H 23#define TOC_H 24 25/* the file where we found the @contents directive */ 26extern char *contents_filename; 27 28/* the file where we found the @shortcontents directive */ 29extern char *shortcontents_filename; 30 31/* Structure to hold one entry for the toc. */ 32typedef struct toc_entry_elt { 33 char *name; 34 char *containing_node; /* Name of node containing this section. */ 35 int number; /* counting number from 0...n independent from 36 chapter/section can be used for anchors or 37 references to it. */ 38 int level; /* level: chapter, section, subsection... */ 39} TOC_ENTRY_ELT; 40 41/* all routines which have relationship with TOC should start with 42 toc_ (this is a kind of name-space) */ 43extern int toc_add_entry (); /* return the number for the toc-entry */ 44extern void toc_free (); 45extern char *toc_find_section_of_node (); 46 47extern void cm_contents (), cm_shortcontents (); 48 49#endif /* not TOC_H */ 50