1
-------------------------------------------------------------------------------
3
-- This file is part of AdaBrowse.
5
-- <STRONG>Copyright (c) 2002 by Thomas Wolf.</STRONG>
7
-- AdaBrowse is free software; you can redistribute it and/or modify it
8
-- under the terms of the GNU General Public License as published by the
9
-- Free Software Foundation; either version 2, or (at your option) any
10
-- later version. AdaBrowse is distributed in the hope that it will be
11
-- useful, but <EM>without any warranty</EM>; without even the implied
12
-- warranty of <EM>merchantability or fitness for a particular purpose.</EM>
13
-- See the GNU General Public License for more details. You should have
14
-- received a copy of the GNU General Public License with this distribution,
15
-- see file "<A HREF="GPL.txt">GPL.txt</A>". If not, write to the Free
16
-- Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
21
-- Author:</STRONG><DD>
23
-- <ADDRESS><A HREF="mailto:twolf@acm.org">twolf@acm.org</A></ADDRESS></DL>
26
-- Purpose:</STRONG><DD>
27
-- HTML output helper routines.</DL>
32
-- 02-FEB-2002 TW First release.
33
-- 04-FEB-2002 TW Added 'Get_Compile_Command' for V1.01.
34
-- 05-FEB-2002 TW Moved any configuration file thing to AD.Config.
35
-- 13-MAR-2002 TW Added 'Header' and 'Footer' with file parameter.
36
-- Also added key 'Index_XRef'.
37
-- 14-MAR-2002 TW Added key 'Index_Title'.
38
-- 03-APR-2002 TW Moved all items for indices to package AD.Indices.
39
-- 18-JUN-2002 TW Removed a bunch of unused operations.
40
-- 28-JUN-2002 TW Added function 'Attributes'.
42
-------------------------------------------------------------------------------
50
pragma Elaborate_Body;
53
(File : in Ada.Text_IO.File_Type;
57
(File : in Ada.Text_IO.File_Type);
60
(File : in Ada.Text_IO.File_Type;
65
Keep_Entities : in Boolean := True)
70
Is_End : in Boolean := False)
72
-- Assuming that S starts with a legal HTML tag, finds the closing ">" of
73
-- the tag. Do not use for comments! If no closing ">" can be found,
79
-- Strips leading and trailing white space and replaces all other white
82
function Character_Set
85
----------------------------------------------------------------------------
87
type HTML_Tag_Kind is (Before, After);
90
(What : in HTML_Tag_Kind)
93
function Get_Attribute
94
(What : in HTML_Tag_Kind)
97
function Get_Definition
98
(What : in HTML_Tag_Kind)
102
(What : in HTML_Tag_Kind)
106
(What : in HTML_Tag_Kind)
109
----------------------------------------------------------------------------
111
procedure Set_Char_Set
114
procedure Set_Style_Sheet
121
(What : in HTML_Tag_Kind;
124
procedure Set_Subtitle
125
(What : in HTML_Tag_Kind;
128
procedure Set_Keyword
129
(What : in HTML_Tag_Kind;
132
procedure Set_Attribute
133
(What : in HTML_Tag_Kind;
136
procedure Set_Definition
137
(What : in HTML_Tag_Kind;
140
procedure Set_Comment
141
(What : in HTML_Tag_Kind;
144
procedure Set_Literal
145
(What : in HTML_Tag_Kind;