/[public]/psiconv/trunk/lib/psiconv/generate_routines.h
ViewVC logotype

Contents of /psiconv/trunk/lib/psiconv/generate_routines.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 174 - (show annotations)
Thu Nov 27 12:08:13 2003 UTC (15 years, 10 months ago) by frodo
File MIME type: text/plain
File size: 9647 byte(s)
(Frodo) Clipart generation

1 /*
2 generate_routines.h - Part of psiconv, a PSION 5 file formats converter
3 Copyright (c) 2000 Frodo Looijaard <frodol@dds.nl>
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19
20 #ifndef PSICONV_GENERATE_ROUTINES_H
21 #define PSICONV_GENERATE_ROUTINES_H
22
23 #include <psiconv/configuration.h>
24 #include <psiconv/general.h>
25 #include <psiconv/data.h>
26 #include <psiconv/buffer.h>
27 #include <psiconv/common.h>
28 #include <psiconv/generate.h>
29
30 #ifdef __cplusplus
31 extern "C" {
32 #endif /* __cplusplus */
33
34
35
36 /* *********************
37 * generate_simple.c *
38 ********************* */
39
40 extern int psiconv_write_u8(const psiconv_config config,
41 psiconv_buffer buf,const psiconv_u8 value);
42 extern int psiconv_write_u16(const psiconv_config config,
43 psiconv_buffer buf,const psiconv_u16 value);
44 extern int psiconv_write_u32(const psiconv_config config,
45 psiconv_buffer buf,const psiconv_u32 value);
46 extern int psiconv_write_S(const psiconv_config config,
47 psiconv_buffer buf, const psiconv_u32 value);
48 extern int psiconv_write_X(const psiconv_config config,
49 psiconv_buffer buf, const psiconv_u32 value);
50 extern int psiconv_write_length(const psiconv_config config,
51 psiconv_buffer buf,
52 const psiconv_length_t value);
53 extern int psiconv_write_size(const psiconv_config config,
54 psiconv_buffer buf, const psiconv_size_t value);
55 extern int psiconv_write_bool(const psiconv_config config,
56 psiconv_buffer buf, const psiconv_bool_t value);
57 extern int psiconv_write_string(const psiconv_config config,
58 psiconv_buffer buf,
59 const psiconv_string_t value);
60 extern int psiconv_write_offset(const psiconv_config config,
61 psiconv_buffer buf, const psiconv_u32 id);
62
63 /* *********************
64 * generate_layout.c *
65 ********************* */
66
67 extern int psiconv_write_color(const psiconv_config config,
68 psiconv_buffer buf, const psiconv_color value);
69 extern int psiconv_write_font(const psiconv_config config,
70 psiconv_buffer buf, const psiconv_font value);
71 extern int psiconv_write_border(const psiconv_config config,
72 psiconv_buffer buf, const psiconv_border value);
73 extern int psiconv_write_bullet(const psiconv_config config,
74 psiconv_buffer buf, const psiconv_bullet value);
75 extern int psiconv_write_tab(const psiconv_config config,
76 psiconv_buffer buf,const psiconv_tab value);
77 extern int psiconv_write_paragraph_layout_list(const psiconv_config config,
78 psiconv_buffer buf,
79 const psiconv_paragraph_layout value,
80 const psiconv_paragraph_layout base);
81 extern int psiconv_write_character_layout_list(const psiconv_config config,
82 psiconv_buffer buf,
83 const psiconv_character_layout value,
84 const psiconv_character_layout base);
85
86 /* *******************
87 * generate_page.c *
88 ******************* */
89
90 extern int psiconv_write_page_header(const psiconv_config config,
91 psiconv_buffer buf,
92 const psiconv_page_header value,
93 psiconv_buffer *extra_buf);
94 extern int psiconv_write_page_layout_section(const psiconv_config config,
95 psiconv_buffer buf,
96 const psiconv_page_layout_section value);
97
98 /* *********************
99 * generate_common.c *
100 ********************* */
101
102 extern int psiconv_write_header_section(const psiconv_config config,
103 psiconv_buffer buf,psiconv_u32 uid1,
104 psiconv_u32 uid2, psiconv_u32 uid3);
105 extern int psiconv_write_section_table_section(const psiconv_config config,
106 psiconv_buffer buf,
107 const psiconv_section_table_section value);
108 extern int psiconv_write_application_id_section(const psiconv_config config,
109 psiconv_buffer buf,
110 psiconv_u32 id, const psiconv_string_t text);
111 extern int psiconv_write_text_section(const psiconv_config config,
112 psiconv_buffer buf,
113 const psiconv_text_and_layout value);
114 extern int psiconv_write_styled_layout_section(const psiconv_config config,
115 psiconv_buffer buf,
116 const psiconv_text_and_layout value,
117 const psiconv_word_styles_section styles);
118 extern int psiconv_write_styleless_layout_section(const psiconv_config config,
119 psiconv_buffer buf,
120 const psiconv_text_and_layout value,
121 const psiconv_character_layout base_char,
122 const psiconv_paragraph_layout base_para);
123 extern int psiconv_write_embedded_object_section(const psiconv_config config,
124 psiconv_buffer buf,
125 const psiconv_embedded_object_section value);
126 extern int psiconv_write_object_display_section(const psiconv_config config,
127 psiconv_buffer buf,
128 const psiconv_object_display_section value);
129 extern int psiconv_write_object_icon_section(const psiconv_config config,
130 psiconv_buffer buf,
131 const psiconv_object_icon_section value);
132
133
134
135
136 /* ********************
137 * generate_image.c *
138 ******************** */
139
140 extern int psiconv_write_sketch_section(const psiconv_config config,
141 psiconv_buffer buf,
142 const psiconv_sketch_section value);
143
144 extern int psiconv_write_paint_data_section(const psiconv_config config,
145 psiconv_buffer buf,
146 const psiconv_paint_data_section value,
147 int is_clipart);
148
149 extern int psiconv_write_jumptable_section(const psiconv_config config,
150 psiconv_buffer buf,
151 const psiconv_jumptable_section value);
152
153 extern int psiconv_write_clipart_section(const psiconv_config config,
154 psiconv_buffer buf,
155 const psiconv_clipart_section value);
156
157
158 /* *********************
159 * generate_texted.c *
160 ********************* */
161
162 extern int psiconv_write_texted_section(const psiconv_config config,
163 psiconv_buffer buf,
164 const psiconv_texted_section value,
165 const psiconv_character_layout base_char,
166 const psiconv_paragraph_layout base_para,
167 psiconv_buffer *extra_buf);
168
169 /* *******************
170 * generate_word.c *
171 ******************* */
172
173 extern int psiconv_write_word_status_section(const psiconv_config config,
174 psiconv_buffer buf,
175 const psiconv_word_status_section value);
176 extern int psiconv_write_word_styles_section(const psiconv_config config,
177 psiconv_buffer buf,
178 const psiconv_word_styles_section value);
179
180
181 /* *********************
182 * generate_driver.c *
183 ********************* */
184
185 extern int psiconv_write_word_file(const psiconv_config config,
186 psiconv_buffer buf,const psiconv_word_f value);
187
188 extern int psiconv_write_texted_file(const psiconv_config config,
189 psiconv_buffer buf,
190 psiconv_texted_f value);
191
192 extern int psiconv_write_sketch_file(const psiconv_config config,
193 psiconv_buffer buf,const psiconv_sketch_f value);
194
195 extern int psiconv_write_mbm_file(const psiconv_config config,
196 psiconv_buffer buf,psiconv_mbm_f value);
197
198 extern int psiconv_write_clipart_file(const psiconv_config config,
199 psiconv_buffer buf,psiconv_clipart_f value);
200
201
202
203 #ifdef __cplusplus
204 }
205 #endif /* __cplusplus */
206
207 #endif /* PSICONV_GENERATE_ROUTINES_H */

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26