html.h revision 114472
1/* html.h -- declarations for html-related utilities.
2   $Id: html.h,v 1.4 2002/10/31 22:08:23 karl Exp $
3
4   Copyright (C) 1999, 2000, 2002 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 Foundation,
18   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
19
20#ifndef HTML_H
21#define HTML_H
22
23/* A stack of font tags.  */
24typedef struct hstack
25{
26  struct hstack *next;
27  char *tag;
28} HSTACK;
29
30/* Nonzero if we have output the <head>.  */
31extern int html_output_head_p;
32
33/* Nonzero if we have output a title, from @titlefont or @settitle.  */
34extern int html_title_written;
35
36/* Perform the <head> output.  */
37extern void html_output_head ();
38
39/* Escape &<>.  */
40extern char *escape_string (/* char * */);
41
42/* Open or close TAG according to START_OR_END.  */
43extern void insert_html_tag (/* int start_or_end, char *tag */);
44
45/* Output HTML <link> to NODE, plus extra ATTRIBUTES.  */
46extern void add_link (/* char *node, char *attributes */);
47
48/* Escape URL-special characters as %xy.  */
49extern void add_escaped_anchor_name (/* char *name */);
50
51/* See html.c.  */
52extern void add_anchor_name (/* nodename, href */);
53extern void add_url_name ( /* nodename, href */ );
54extern char* nodename_to_filename ( /* nodename */ );
55extern void add_nodename_to_filename ( /*nodename, href */ );
56
57#endif /* !HTML_H */
58