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