1 | /* html.h -- declarations for html-related utilities. |
---|
2 | $Id: html.h,v 1.1.1.2 2003-02-28 17:44:26 amb 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. */ |
---|
24 | typedef struct hstack |
---|
25 | { |
---|
26 | struct hstack *next; |
---|
27 | char *tag; |
---|
28 | } HSTACK; |
---|
29 | |
---|
30 | /* Nonzero if we have output the <head>. */ |
---|
31 | extern int html_output_head_p; |
---|
32 | |
---|
33 | /* Nonzero if we have output a title, from @titlefont or @settitle. */ |
---|
34 | extern int html_title_written; |
---|
35 | |
---|
36 | /* Perform the <head> output. */ |
---|
37 | extern void html_output_head (); |
---|
38 | |
---|
39 | /* Escape &<>. */ |
---|
40 | extern char *escape_string (/* char * */); |
---|
41 | |
---|
42 | /* Open or close TAG according to START_OR_END. */ |
---|
43 | extern void insert_html_tag (/* int start_or_end, char *tag */); |
---|
44 | |
---|
45 | /* Output HTML <link> to NODE, plus extra ATTRIBUTES. */ |
---|
46 | extern void add_link (/* char *node, char *attributes */); |
---|
47 | |
---|
48 | /* Escape URL-special characters as %xy. */ |
---|
49 | extern void add_escaped_anchor_name (/* char *name */); |
---|
50 | |
---|
51 | /* See html.c. */ |
---|
52 | extern void add_anchor_name (/* nodename, href */); |
---|
53 | extern void add_url_name ( /* nodename, href */ ); |
---|
54 | extern char* nodename_to_filename ( /* nodename */ ); |
---|
55 | extern void add_nodename_to_filename ( /*nodename, href */ ); |
---|
56 | |
---|
57 | #endif /* !HTML_H */ |
---|