1 /* toc.h -- table of contents handling.
2 $Id: toc.h,v 1.2 2004/04/11 17:56:47 karl Exp $
4 Copyright (C) 1999 Free Software Foundation, Inc.
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)
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.
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.
20 Written by Karl Heinz Marbaise <kama@hippo.fido.de>. */
25 /* Structure to hold one entry for the toc. */
26 typedef struct toc_entry_elt
{
28 char *containing_node
; /* Name of node containing this section. */
29 char *html_file
; /* Name of HTML node-file in split-HTML mode */
30 int number
; /* counting number from 0...n independent from
31 chapter/section can be used for anchors or
33 int level
; /* level: chapter, section, subsection... */
36 /* all routines which have relationship with TOC should start with
37 toc_ (this is a kind of name-space) */
38 extern int toc_add_entry (char *tocname
, int level
,
39 char *node_name
, char *anchor
); /* return the number for the toc-entry */
40 extern void toc_free (void);
41 extern char *toc_find_section_of_node (char *node
);
43 extern void cm_contents (int arg
);
45 #endif /* not TOC_H */