Imported Robodoc.
[robodoc.git] / Source / rtf_generator.h
1 #ifndef ROBODOC_RTF_GENERATOR_H
2 #define ROBODOC_RTF_GENERATOR_H
3
4 /*
5 Copyright (C) 1994-2007  Frans Slothouber, Jacco van Weert, Petteri Kettunen,
6 Bernd Koesling, Thomas Aglassinger, Anthon Pang, Stefan Kost, David Druffner,
7 Sasha Vasko, Kai Hofmann, Thierry Pierron, Friedrich Haase, and Gergely Budai.
8
9 This file is part of ROBODoc
10
11 ROBODoc is free software; you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation; either version 3 of the License, or
14 (at your option) any later version.
15
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 GNU General Public License for more details.
20
21 You should have received a copy of the GNU General Public License
22 along with this program.  If not, see <http://www.gnu.org/licenses/>.
23
24 */
25
26
27 #include "headers.h"
28
29 void                RB_RTF_Generate_TOC_2(
30     FILE *dest_doc,
31     struct RB_header **headers,
32     int count );
33 void                RB_RTF_Generate_Doc_Start(
34     FILE *dest_doc,
35     char *src_name,
36     char *name,
37     char toc );
38 void                RB_RTF_Generate_Doc_End(
39     FILE *dest_doc,
40     char *name );
41 void                RB_RTF_Generate_Header_Start(
42     FILE *dest_doc,
43     struct RB_header *cur_header );
44 void                RB_RTF_Generate_Header_End(
45     FILE *dest_doc,
46     struct RB_header *cur_header );
47 void                RB_RTF_Generate_Empty_Item(
48     FILE *dest_doc );
49 void                RB_RTF_Generate_Link(
50     FILE *dest_doc,
51     char *dest_name,
52     char *filename,
53     char *labelname,
54     char *linkname );
55 void                RB_RTF_Generate_Char(
56     FILE *dest_doc,
57     int c );
58 void                RB_RTF_Generate_EndSection(
59     FILE *dest_doc,
60     int depth,
61     char *name );
62 void                RB_RTF_Generate_BeginSection(
63     FILE *dest_doc,
64     int depth,
65     char *name );
66
67 /* size_t RB_RTF_Get_Len_Extension(); */
68 /* void RB_RTF_Add_Extension(char* name); */
69 char               *RB_RTF_Get_Default_Extension(
70     void );
71 void                RB_RTF_Generate_Item_Name(
72     FILE *dest_doc,
73     char *name );
74
75 void                RB_RTF_Generate_Item_Begin(
76     FILE *dest_doc );
77 void                RB_RTF_Generate_Item_End(
78     FILE *dest_doc );
79 void                RB_RTF_Generate_Label(
80     FILE *dest_doc,
81     char *name );
82 void                RB_RTF_Generate_False_Link(
83     FILE *dest_doc,
84     char *name );
85 void                RB_RTF_Generate_String(
86     FILE *dest_doc,
87     char *a_string );
88
89 #endif /* ROBODOC_RTF_GENERATOR_H */