/[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 351 - (show annotations)
Wed Oct 22 19:53:40 2014 UTC (5 years, 3 months ago) by frodo
File MIME type: text/plain
File size: 10329 byte(s)
(Frodo) Update copyright year in all source files

1 /*
2 generate_routines.h - Part of psiconv, a PSION 5 file formats converter
3 Copyright (c) 2000-2014 Frodo Looijaard <frodo@frodo.looijaard.name>
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,int lev,const psiconv_u8 value);
42 extern int psiconv_write_u16(const psiconv_config config,
43 psiconv_buffer buf,int lev,const psiconv_u16 value);
44 extern int psiconv_write_u32(const psiconv_config config,
45 psiconv_buffer buf,int lev,const psiconv_u32 value);
46 extern int psiconv_write_S(const psiconv_config config,
47 psiconv_buffer buf, int lev,const psiconv_u32 value);
48 extern int psiconv_write_X(const psiconv_config config,
49 psiconv_buffer buf, int lev,const psiconv_u32 value);
50 extern int psiconv_write_length(const psiconv_config config,
51 psiconv_buffer buf, int lev,
52 const psiconv_length_t value);
53 extern int psiconv_write_size(const psiconv_config config, psiconv_buffer buf,
54 int lev,const psiconv_size_t value);
55 extern int psiconv_write_bool(const psiconv_config config,
56 psiconv_buffer buf, int lev,
57 const psiconv_bool_t value);
58 extern int psiconv_write_short_string(const psiconv_config config,
59 psiconv_buffer buf, int lev,
60 const psiconv_string_t value);
61 extern int psiconv_write_string(const psiconv_config config,
62 psiconv_buffer buf, int lev,
63 const psiconv_string_t value);
64 int psiconv_write_charlist(const psiconv_config config,psiconv_buffer buf,
65 int lev,const psiconv_string_t value);
66 extern int psiconv_write_offset(const psiconv_config config,
67 psiconv_buffer buf,int lev, const psiconv_u32 id);
68
69 /* *********************
70 * generate_layout.c *
71 ********************* */
72
73 extern int psiconv_write_color(const psiconv_config config,
74 psiconv_buffer buf,int lev, const psiconv_color value);
75 extern int psiconv_write_font(const psiconv_config config,
76 psiconv_buffer buf,int lev, const psiconv_font value);
77 extern int psiconv_write_border(const psiconv_config config,
78 psiconv_buffer buf,int lev, const psiconv_border value);
79 extern int psiconv_write_bullet(const psiconv_config config,
80 psiconv_buffer buf,int lev, const psiconv_bullet value);
81 extern int psiconv_write_tab(const psiconv_config config,
82 psiconv_buffer buf,int lev,const psiconv_tab value);
83 extern int psiconv_write_paragraph_layout_list(const psiconv_config config,
84 psiconv_buffer buf,int lev,
85 const psiconv_paragraph_layout value,
86 const psiconv_paragraph_layout base);
87 extern int psiconv_write_character_layout_list(const psiconv_config config,
88 psiconv_buffer buf,int lev,
89 const psiconv_character_layout value,
90 const psiconv_character_layout base);
91
92 /* *******************
93 * generate_page.c *
94 ******************* */
95
96 extern int psiconv_write_page_header(const psiconv_config config,
97 psiconv_buffer buf,int lev,
98 const psiconv_page_header value,
99 psiconv_buffer *extra_buf);
100 extern int psiconv_write_page_layout_section(const psiconv_config config,
101 psiconv_buffer buf,int lev,
102 const psiconv_page_layout_section value);
103
104 /* *********************
105 * generate_common.c *
106 ********************* */
107
108 extern int psiconv_write_header_section(const psiconv_config config,
109 psiconv_buffer buf,int lev,psiconv_u32 uid1,
110 psiconv_u32 uid2, psiconv_u32 uid3);
111 extern int psiconv_write_section_table_section(const psiconv_config config,
112 psiconv_buffer buf,int lev,
113 const psiconv_section_table_section value);
114 extern int psiconv_write_application_id_section(const psiconv_config config,
115 psiconv_buffer buf,int lev,
116 psiconv_u32 id, const psiconv_string_t text);
117 extern int psiconv_write_text_section(const psiconv_config config,
118 psiconv_buffer buf,int lev,
119 const psiconv_text_and_layout value);
120 extern int psiconv_write_styled_layout_section(const psiconv_config config,
121 psiconv_buffer buf,int lev,
122 const psiconv_text_and_layout value,
123 const psiconv_word_styles_section styles);
124 extern int psiconv_write_styleless_layout_section(const psiconv_config config,
125 psiconv_buffer buf,int lev,
126 const psiconv_text_and_layout value,
127 const psiconv_character_layout base_char,
128 const psiconv_paragraph_layout base_para);
129 extern int psiconv_write_embedded_object_section(const psiconv_config config,
130 psiconv_buffer buf,int lev,
131 const psiconv_embedded_object_section value);
132 extern int psiconv_write_object_display_section(const psiconv_config config,
133 psiconv_buffer buf,int lev,
134 const psiconv_object_display_section value);
135 extern int psiconv_write_object_icon_section(const psiconv_config config,
136 psiconv_buffer buf,int lev,
137 const psiconv_object_icon_section value);
138
139
140
141
142 /* ********************
143 * generate_image.c *
144 ******************** */
145
146 extern int psiconv_write_sketch_section(const psiconv_config config,
147 psiconv_buffer buf,int lev,
148 const psiconv_sketch_section value);
149
150 extern int psiconv_write_paint_data_section(const psiconv_config config,
151 psiconv_buffer buf,int lev,
152 const psiconv_paint_data_section value,
153 int is_clipart);
154
155 extern int psiconv_write_jumptable_section(const psiconv_config config,
156 psiconv_buffer buf,int lev,
157 const psiconv_jumptable_section value);
158
159 extern int psiconv_write_clipart_section(const psiconv_config config,
160 psiconv_buffer buf,int lev,
161 const psiconv_clipart_section value);
162
163
164 /* *********************
165 * generate_texted.c *
166 ********************* */
167
168 extern int psiconv_write_texted_section(const psiconv_config config,
169 psiconv_buffer buf,int lev,
170 const psiconv_texted_section value,
171 const psiconv_character_layout base_char,
172 const psiconv_paragraph_layout base_para,
173 psiconv_buffer *extra_buf);
174
175 /* *******************
176 * generate_word.c *
177 ******************* */
178
179 extern int psiconv_write_word_status_section(const psiconv_config config,
180 psiconv_buffer buf,int lev,
181 const psiconv_word_status_section value);
182 extern int psiconv_write_word_styles_section(const psiconv_config config,
183 psiconv_buffer buf,int lev,
184 const psiconv_word_styles_section value);
185
186
187 /* *********************
188 * generate_driver.c *
189 ********************* */
190
191 extern int psiconv_write_word_file(const psiconv_config config,
192 psiconv_buffer buf,int lev,const psiconv_word_f value);
193
194 extern int psiconv_write_texted_file(const psiconv_config config,
195 psiconv_buffer buf,int lev,
196 psiconv_texted_f value);
197
198 extern int psiconv_write_sketch_file(const psiconv_config config,
199 psiconv_buffer buf,int lev,const psiconv_sketch_f value);
200
201 extern int psiconv_write_mbm_file(const psiconv_config config,
202 psiconv_buffer buf,int lev,psiconv_mbm_f value);
203
204 extern int psiconv_write_clipart_file(const psiconv_config config,
205 psiconv_buffer buf,int lev,psiconv_clipart_f value);
206
207
208
209 #ifdef __cplusplus
210 }
211 #endif /* __cplusplus */
212
213 #endif /* PSICONV_GENERATE_ROUTINES_H */

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