File: html_generator.h

package info (click to toggle)
robodoc 4.99.40-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,560 kB
  • ctags: 978
  • sloc: ansic: 14,067; sh: 3,711; perl: 155; makefile: 108
file content (171 lines) | stat: -rw-r--r-- 4,969 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
#ifndef ROBODOC_HTML_GENERATOR_H
#define ROBODOC_HTML_GENERATOR_H
/*
Copyright (C) 1994-2007  Frans Slothouber, Jacco van Weert, Petteri Kettunen,
Bernd Koesling, Thomas Aglassinger, Anthon Pang, Stefan Kost, David Druffner,
Sasha Vasko, Kai Hofmann, Thierry Pierron, Friedrich Haase, and Gergely Budai.

This file is part of ROBODoc

ROBODoc is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

*/


#include "headers.h"
#include "items.h"
#include "document.h"

#define MAX_SECTION_DEPTH 7

void                RB_HTML_Generate_Label(
    FILE *dest_doc,
    char *name );
void                RB_HTML_Generate_Item_Begin(
    FILE *dest_doc,
    char *name );
void                RB_HTML_Generate_Item_End(
    FILE *dest_doc,
    char *name );
void                RB_HTML_Generate_TOC_2(
    FILE *dest_doc,
    struct RB_header **headers,
    int count,
    struct RB_Part *owner,
    char *dest_name );
void                RB_HTML_Generate_BeginSection(
    FILE *dest_doc,
    int depth,
    char *name,
    struct RB_header *header );
void                RB_HTML_Generate_EndSection(
    FILE *dest_doc,
    int depth,
    char *name );
char               *RB_HTML_Get_Default_Extension(
    void );
void                RB_HTML_Generate_Doc_Start(
    FILE *dest_doc,
    char *src_name,
    char *name,
    char *dest_name,
    char *charset );
void                RB_HTML_Generate_Doc_End(
    FILE *dest_doc,
    char *name,
    char *src_name );
void                RB_HTML_Generate_Header_Start(
    FILE *dest_doc,
    struct RB_header *cur_header );
void                RB_HTML_Generate_Header_End(
    FILE *dest_doc,
    struct RB_header *cur_header );

void                RB_HTML_Generate_Index(
    struct RB_Document *document );

void                RB_HTML_Generate_Index_Table(
    FILE *dest,
    char *dest_name,
    struct RB_HeaderType *type,
    char *title );

void                RB_HTML_Generate_Empty_Item(
    FILE *dest );
void                RB_HTML_Generate_Link(
    FILE *cur_doc,
    char *cur_name,
    char *filename,
    char *labelname,
    char *linkname,
    char *classname );
void                RB_HTML_Generate_Char(
    FILE *dest_doc,
    int c );
void                RB_HTML_Generate_Item_Name(
    FILE *dest_doc,
    char *name );
char               *RB_HTML_RelativeAddress(
    char *thisname,
    char *thatname );

int                 RB_HTML_Generate_Extra(
    FILE *dest_doc,
    enum ItemType item_type,
    char *cur_char,
    char prev_char );

void                RB_HTML_Generate_False_Link(
    FILE *dest_doc,
    char *name );
void                RB_Create_CSS(
    struct RB_Document *document );
void                RB_InsertCSS(
    FILE *dest_doc,
    char *filename );
void                RB_HTML_Generate_Nav_Bar(
    struct RB_Document *document,
    FILE *current_doc,
    struct RB_header *current_header );

void                RB_HTML_Generate_Nav_Bar_One_File_Per_Header(
    struct RB_Document *document,
    FILE *current_doc,
    struct RB_header *current_header );

void                HTML_Generate_Begin_Paragraph(
    FILE *dest_doc );
void                HTML_Generate_End_Paragraph(
    FILE *dest_doc );

void                HTML_Generate_Begin_Preformatted(
    FILE *dest_doc,
    int source );
void                HTML_Generate_End_Preformatted(
    FILE *dest_doc );

void                HTML_Generate_Begin_List(
    FILE *dest_doc );
void                HTML_Generate_End_List(
    FILE *dest_doc );
void                HTML_Generate_Begin_List_Item(
    FILE *dest_doc );
void                HTML_Generate_End_List_Item(
    FILE *dest_doc );

void                HTML_Generate_Begin_Content(
    FILE *dest_doc );
void                HTML_Generate_End_Content(
    FILE *dest_doc );
void                HTML_Generate_Begin_Navigation(
    FILE *dest_doc );
void                HTML_Generate_End_Navigation(
    FILE *dest_doc );
void                HTML_Generate_Begin_Extra(
    FILE *dest_doc );
void                HTML_Generate_End_Extra(
    FILE *dest_doc );
void                RB_HTML_Generate_Line_Comment_End(
    FILE *dest_doc );
void                RB_HTML_Generate_IndexMenu(
    FILE *dest_doc,
    char *filename,
    struct RB_Document *document,
    struct RB_HeaderType *cur_type );

void                RB_HTML_Generate_Item_Line_Number(
    FILE *,
    char * );

#endif /* ROBODOC_HTML_GENERATOR_H */