Back to index

tetex-bin  3.0
html.h
Go to the documentation of this file.
00001 /* html.h -- declarations for html-related utilities.
00002    $Id: html.h,v 1.6 2004/11/30 02:03:23 karl Exp $
00003 
00004    Copyright (C) 1999, 2000, 2002, 2004 Free Software Foundation, Inc.
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 2, or (at your option)
00009    any later version.
00010 
00011    This program is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014    GNU General Public License for more details.
00015 
00016    You should have received a copy of the GNU General Public License
00017    along with this program; if not, write to the Free Software Foundation,
00018    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
00019 
00020 #ifndef HTML_H
00021 #define HTML_H
00022 
00023 /* A stack of font tags.  */
00024 typedef struct hstack
00025 {
00026   struct hstack *next;
00027   char *tag;
00028   char *attribs;
00029 } HSTACK;
00030 
00031 /* Nonzero if we have output the <head>.  */
00032 extern int html_output_head_p;
00033 
00034 /* Nonzero if we have output a title, from @titlefont or @settitle.  */
00035 extern int html_title_written;
00036 
00037 /* Perform the <head> output.  */
00038 extern void html_output_head (void);
00039 
00040 /* Escape &<>.  */
00041 extern char *escape_string (char *);
00042 
00043 /* Open or close TAG according to START_OR_END.  */
00044 extern void insert_html_tag (int start_or_end, char *tag);
00045 
00046 /* Output HTML <link> to NODE, plus extra ATTRIBUTES.  */
00047 extern void add_link (char *nodename, char *attributes);
00048 
00049 /* Escape URL-special characters.  */
00050 extern void add_escaped_anchor_name (char *name, int old);
00051 
00052 /* See html.c.  */
00053 extern void add_anchor_name (char *nodename, int href);
00054 extern void add_url_name (char *nodename, int href);
00055 extern void add_nodename_to_filename (char *nodename, int href);
00056 extern char *nodename_to_filename (char *nodename);
00057 extern int rollback_empty_tag (char *tag);
00058 
00059 #if defined (VA_FPRINTF) && __STDC__
00060 extern void insert_html_tag_with_attribute (int start_or_end, char *tag, char *format, ...);
00061 #else
00062 extern void insert_html_tag_with_attribute ();
00063 #endif
00064 
00065 #endif /* !HTML_H */