toc.h revision 146515
156160Sru/* toc.h -- table of contents handling. 2146515Sru $Id: toc.h,v 1.2 2004/04/11 17:56:47 karl Exp $ 356160Sru 456160Sru Copyright (C) 1999 Free Software Foundation, Inc. 556160Sru 656160Sru This program is free software; you can redistribute it and/or modify 756160Sru it under the terms of the GNU General Public License as published by 856160Sru the Free Software Foundation; either version 2, or (at your option) 956160Sru any later version. 1056160Sru 1156160Sru This program is distributed in the hope that it will be useful, 1256160Sru but WITHOUT ANY WARRANTY; without even the implied warranty of 1356160Sru MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1456160Sru GNU General Public License for more details. 1556160Sru 1656160Sru You should have received a copy of the GNU General Public License 1756160Sru along with this program; if not, write to the Free Software 1856160Sru Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 1956160Sru 2056160Sru Written by Karl Heinz Marbaise <kama@hippo.fido.de>. */ 2156160Sru 2256160Sru#ifndef TOC_H 2356160Sru#define TOC_H 2456160Sru 2556160Sru/* Structure to hold one entry for the toc. */ 2656160Srutypedef struct toc_entry_elt { 2756160Sru char *name; 2856160Sru char *containing_node; /* Name of node containing this section. */ 2993139Sru char *html_file; /* Name of HTML node-file in split-HTML mode */ 3056160Sru int number; /* counting number from 0...n independent from 3156160Sru chapter/section can be used for anchors or 3256160Sru references to it. */ 3356160Sru int level; /* level: chapter, section, subsection... */ 3456160Sru} TOC_ENTRY_ELT; 3556160Sru 3656160Sru/* all routines which have relationship with TOC should start with 3756160Sru toc_ (this is a kind of name-space) */ 38146515Sruextern int toc_add_entry (char *tocname, int level, 39146515Sru char *node_name, char *anchor); /* return the number for the toc-entry */ 40146515Sruextern void toc_free (void); 41146515Sruextern char *toc_find_section_of_node (char *node); 4256160Sru 43146515Sruextern void cm_contents (int arg); 4456160Sru 4556160Sru#endif /* not TOC_H */ 46