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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 351 - (hide annotations)
Wed Oct 22 19:53:40 2014 UTC (5 years, 4 months ago) by frodo
File MIME type: text/plain
File size: 10329 byte(s)
(Frodo) Update copyright year in all source files

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