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

Diff of /psiconv/trunk/lib/psiconv/data.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 43 Revision 159
1/* 1/*
2 data.h - Part of psiconv, a PSION 5 file formats converter 2 data.h - Part of psiconv, a PSION 5 file formats converter
3 Copyright (c) 1999 Frodo Looijaard <frodol@dds.nl> 3 Copyright (c) 1999, 2000 Frodo Looijaard <frodol@dds.nl>
4 4
5 This program is free software; you can redistribute it and/or modify 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 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 7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version. 8 (at your option) any later version.
22 parse routines, and read by the generation routines. */ 22 parse routines, and read by the generation routines. */
23 23
24#ifndef PSICONV_DATA_H 24#ifndef PSICONV_DATA_H
25#define PSICONV_DATA_H 25#define PSICONV_DATA_H
26 26
27#include "general.h" 27#include <psiconv/general.h>
28#include "list.h" 28#include <psiconv/list.h>
29 29
30/* All types which end on _t are plain types; all other types are pointers 30/* All types which end on _t are plain types; all other types are pointers
31 to structs */ 31 to structs */
32
33#ifdef __cplusplus
34extern "C" {
35#endif /* __cplusplus */
36
37/* Forward declaration (for psiconv_object) */
38typedef struct psiconv_file_s *psiconv_file;
39
40typedef double psiconv_float_t;
32 41
33typedef enum psiconv_file_type { 42typedef enum psiconv_file_type {
34 psiconv_unknown_file, 43 psiconv_unknown_file,
35 psiconv_word_file, 44 psiconv_word_file,
36 psiconv_texted_file, 45 psiconv_texted_file,
37 psiconv_mbm_file, 46 psiconv_mbm_file,
38 psiconv_sketch_file, 47 psiconv_sketch_file,
39 psiconv_clipart_file 48 psiconv_clipart_file,
49 psiconv_sheet_file
40} psiconv_file_type_t; 50} psiconv_file_type_t;
41 51
42/* Length indicators */ 52/* Length indicators */
43typedef psiconv_u32 psiconv_S_t; 53typedef psiconv_u32 psiconv_S_t;
44typedef psiconv_u32 psiconv_X_t; 54typedef psiconv_u32 psiconv_X_t;
55typedef enum psiconv_bool 65typedef enum psiconv_bool
56{ 66{
57 psiconv_bool_false, 67 psiconv_bool_false,
58 psiconv_bool_true 68 psiconv_bool_true
59} psiconv_bool_t; 69} psiconv_bool_t;
70
71typedef enum psiconv_triple
72{
73 psiconv_triple_on,
74 psiconv_triple_off,
75 psiconv_triple_auto
76} psiconv_triple_t;
60 77
61typedef enum psiconv_super_sub 78typedef enum psiconv_super_sub
62{ psiconv_normalscript, 79{ psiconv_normalscript,
63 psiconv_superscript, 80 psiconv_superscript,
64 psiconv_subscript 81 psiconv_subscript
80typedef enum psiconv_border_kind 97typedef enum psiconv_border_kind
81{ psiconv_border_none, 98{ psiconv_border_none,
82 psiconv_border_solid, 99 psiconv_border_solid,
83 psiconv_border_double, 100 psiconv_border_double,
84 psiconv_border_dotted, 101 psiconv_border_dotted,
85 psiconv_border_striped, 102 psiconv_border_dashed,
86 psiconv_border_dotstripe, 103 psiconv_border_dotdashed,
87 psiconv_border_dotdotstripe 104 psiconv_border_dotdotdashed
88} psiconv_border_kind_t; 105} psiconv_border_kind_t;
106
107typedef enum psiconv_screenfont
108{
109 psiconv_font_misc,
110 psiconv_font_sansserif,
111 psiconv_font_nonprop,
112 psiconv_font_serif
113} psiconv_screenfont_t;
89 114
90/* Colors. 115/* Colors.
91 black: 0x00 0x00 0x00 116 black: 0x00 0x00 0x00
92 white: 0xff 0xff 0xff */ 117 white: 0xff 0xff 0xff */
93typedef struct psiconv_color 118typedef struct psiconv_color_s
94{ 119{
95 psiconv_u8 red; 120 psiconv_u8 red;
96 psiconv_u8 green; 121 psiconv_u8 green;
97 psiconv_u8 blue; 122 psiconv_u8 blue;
98} * psiconv_color; 123} * psiconv_color;
99 124
100typedef struct psiconv_font 125typedef struct psiconv_font_s
101{ 126{
102 char *name; 127 char *name;
103 psiconv_u8 screenfont; 128 psiconv_screenfont_t screenfont;
104} *psiconv_font; 129} *psiconv_font;
105 130
106typedef struct psiconv_border 131typedef struct psiconv_border_s
107{ 132{
108 psiconv_border_kind_t kind; 133 psiconv_border_kind_t kind;
109 psiconv_size_t thickness; /* Set to 1/20 for non-solid lines */ 134 psiconv_size_t thickness; /* Set to 1/20 for non-solid lines */
110 psiconv_color color; 135 psiconv_color color;
111} *psiconv_border; 136} *psiconv_border;
112 137
113typedef struct psiconv_bullet 138typedef struct psiconv_bullet_s
114{ 139{
115 psiconv_bool_t on; 140 psiconv_bool_t on;
116 psiconv_size_t font_size; 141 psiconv_size_t font_size;
117 psiconv_u8 character; 142 psiconv_u8 character;
118 psiconv_bool_t indent; 143 psiconv_bool_t indent;
125 psiconv_tab_left, 150 psiconv_tab_left,
126 psiconv_tab_centre, 151 psiconv_tab_centre,
127 psiconv_tab_right 152 psiconv_tab_right
128} psiconv_tab_kind_t; 153} psiconv_tab_kind_t;
129 154
130typedef struct psiconv_tab 155typedef struct psiconv_tab_s
131{ 156{
132 psiconv_length_t location; 157 psiconv_length_t location;
133 psiconv_tab_kind_t kind; 158 psiconv_tab_kind_t kind;
134} *psiconv_tab; 159} *psiconv_tab;
135 160
136 161
137typedef psiconv_list psiconv_tab_list; /* of struct psiconv_tab */ 162typedef psiconv_list psiconv_tab_list; /* of struct psiconv_tab */
138 163
139typedef struct psiconv_all_tabs 164typedef struct psiconv_all_tabs_s
140{ 165{
141 psiconv_length_t normal; 166 psiconv_length_t normal;
142 psiconv_tab_list extras; 167 psiconv_tab_list extras;
143} *psiconv_all_tabs; 168} *psiconv_all_tabs;
144 169
145typedef struct psiconv_character_layout 170typedef struct psiconv_character_layout_s
146{ 171{
147 psiconv_color color; 172 psiconv_color color;
148 psiconv_color back_color; 173 psiconv_color back_color;
149 psiconv_size_t font_size; 174 psiconv_size_t font_size;
150 psiconv_bool_t italic; 175 psiconv_bool_t italic;
151 psiconv_bool_t bold; 176 psiconv_bool_t bold;
152 psiconv_super_sub_t super_sub; 177 psiconv_super_sub_t super_sub;
153 psiconv_bool_t underline; 178 psiconv_bool_t underline;
154 psiconv_bool_t strike_out; 179 psiconv_bool_t strikethrough;
155 psiconv_font font; 180 psiconv_font font;
156} *psiconv_character_layout; 181} *psiconv_character_layout;
157 182
158typedef struct psiconv_paragraph_layout 183typedef struct psiconv_paragraph_layout_s
159{ 184{
160 psiconv_color back_color; 185 psiconv_color back_color;
161 psiconv_length_t indent_left; 186 psiconv_length_t indent_left;
162 psiconv_length_t indent_right; 187 psiconv_length_t indent_right;
163 psiconv_length_t indent_first; 188 psiconv_length_t indent_first;
164 psiconv_justify_hor_t justify_hor; 189 psiconv_justify_hor_t justify_hor;
165 psiconv_justify_ver_t justify_ver; 190 psiconv_justify_ver_t justify_ver;
166 psiconv_size_t interline; 191 psiconv_size_t linespacing;
167 psiconv_bool_t interline_exact; 192 psiconv_bool_t linespacing_exact;
168 psiconv_size_t top_space; 193 psiconv_size_t space_above;
169 psiconv_size_t bottom_space; 194 psiconv_size_t space_below;
170 psiconv_bool_t on_one_page; 195 psiconv_bool_t keep_together;
171 psiconv_bool_t together_with; /* What the heck is this? */ 196 psiconv_bool_t keep_with_next;
172 psiconv_bool_t on_next_page; 197 psiconv_bool_t on_next_page;
173 psiconv_bool_t no_widow_protection; 198 psiconv_bool_t no_widow_protection;
199 psiconv_bool_t wrap_to_fit_cell;
174 psiconv_length_t border_distance; 200 psiconv_length_t border_distance;
175 psiconv_bullet bullet; 201 psiconv_bullet bullet;
176 psiconv_border left_border; 202 psiconv_border left_border;
177 psiconv_border right_border; 203 psiconv_border right_border;
178 psiconv_border top_border; 204 psiconv_border top_border;
179 psiconv_border bottom_border; 205 psiconv_border bottom_border;
180 psiconv_all_tabs tabs; 206 psiconv_all_tabs tabs;
181} *psiconv_paragraph_layout; 207} *psiconv_paragraph_layout;
182 208
183typedef struct psiconv_header_section 209typedef struct psiconv_header_section_s
184{ 210{
185 psiconv_u32 uid1; 211 psiconv_u32 uid1;
186 psiconv_u32 uid2; 212 psiconv_u32 uid2;
187 psiconv_u32 uid3; 213 psiconv_u32 uid3;
188 psiconv_u32 checksum; 214 psiconv_u32 checksum;
189 psiconv_file_type_t file; 215 psiconv_file_type_t file;
190} *psiconv_header_section; 216} *psiconv_header_section;
191 217
192typedef struct psiconv_section_table_entry 218typedef struct psiconv_section_table_entry_s
193{ 219{
194 psiconv_u32 id; 220 psiconv_u32 id;
195 psiconv_u32 offset; 221 psiconv_u32 offset;
196} *psiconv_section_table_entry; 222} *psiconv_section_table_entry;
197 223
198typedef psiconv_list psiconv_section_table_section; 224typedef psiconv_list psiconv_section_table_section;
199/* Of struct sectiontable_entry */ 225/* Of struct sectiontable_entry */
200 226
201typedef struct psiconv_application_id_section 227typedef struct psiconv_application_id_section_s
202{ 228{
203 psiconv_u32 id; 229 psiconv_u32 id;
204 psiconv_string_t name; 230 psiconv_string_t name;
205} *psiconv_application_id_section; 231} *psiconv_application_id_section;
206 232
233typedef struct psiconv_object_icon_section_s
234{
235 psiconv_length_t icon_width;
236 psiconv_length_t icon_height;
237 psiconv_string_t icon_name;
238} *psiconv_object_icon_section;
239
240typedef struct psiconv_object_display_section_s
241{
242 psiconv_bool_t show_icon;
243 psiconv_length_t width;
244 psiconv_length_t height;
245} *psiconv_object_display_section;
246
247typedef struct psiconv_object_s
248{
249 psiconv_object_icon_section icon;
250 psiconv_object_display_section display;
251 psiconv_file object;
252} *psiconv_object;
253
207typedef struct psiconv_in_line_layout 254typedef struct psiconv_in_line_layout_s
208{ 255{
209 psiconv_character_layout layout; 256 psiconv_character_layout layout;
210 int length; 257 int length;
258 /* If object is NULL, this does not apply to an object */
259 psiconv_object object;
260 psiconv_length_t object_width;
261 psiconv_length_t object_height;
211} *psiconv_in_line_layout; 262} *psiconv_in_line_layout;
212 263
213typedef psiconv_list psiconv_in_line_layouts; /* of struct in_line_layout */ 264typedef psiconv_list psiconv_in_line_layouts; /* of struct in_line_layout */
214 265
215typedef enum psiconv_replacement_type 266typedef enum psiconv_replacement_type
219 psiconv_replace_pagenr, 270 psiconv_replace_pagenr,
220 psiconv_replace_nr_of_pages, 271 psiconv_replace_nr_of_pages,
221 psiconv_replace_filename 272 psiconv_replace_filename
222} psiconv_replacement_type_t; 273} psiconv_replacement_type_t;
223 274
224typedef struct psiconv_replacement 275typedef struct psiconv_replacement_s
225{ 276{
226 int offset; 277 int offset;
227 int cur_len; 278 int cur_len;
228 psiconv_replacement_type_t type; 279 psiconv_replacement_type_t type;
229} *psiconv_replacement; 280} *psiconv_replacement;
230 281
231typedef psiconv_list psiconv_replacements; /* of struct replacement */ 282typedef psiconv_list psiconv_replacements; /* of struct replacement */
232 283
233typedef struct psiconv_paragraph 284typedef struct psiconv_paragraph_s
234{ 285{
235 char *text; 286 char *text;
236 psiconv_character_layout base_character; 287 psiconv_character_layout base_character;
237 psiconv_paragraph_layout base_paragraph; 288 psiconv_paragraph_layout base_paragraph;
238 psiconv_s16 base_style; 289 psiconv_s16 base_style;
240 psiconv_replacements replacements; 291 psiconv_replacements replacements;
241} *psiconv_paragraph; 292} *psiconv_paragraph;
242 293
243typedef psiconv_list psiconv_text_and_layout; /* Of struct paragraphs */ 294typedef psiconv_list psiconv_text_and_layout; /* Of struct paragraphs */
244 295
245typedef struct psiconv_texted_section 296typedef struct psiconv_texted_section_s
246{ 297{
247 psiconv_text_and_layout paragraphs; 298 psiconv_text_and_layout paragraphs;
248} *psiconv_texted_section; 299} *psiconv_texted_section;
249 300
250typedef struct psiconv_page_header 301typedef struct psiconv_page_header_s
251{ 302{
252 psiconv_bool_t on_first_page; 303 psiconv_bool_t on_first_page;
253 psiconv_paragraph_layout base_paragraph_layout; 304 psiconv_paragraph_layout base_paragraph_layout;
254 psiconv_character_layout base_character_layout; 305 psiconv_character_layout base_character_layout;
255 psiconv_texted_section text; 306 psiconv_texted_section text;
256} *psiconv_page_header; 307} *psiconv_page_header;
257 308
258typedef struct psiconv_page_layout_section 309typedef struct psiconv_page_layout_section_s
259{ 310{
260 psiconv_u32 first_page_nr; 311 psiconv_u32 first_page_nr;
261 psiconv_length_t header_dist; 312 psiconv_length_t header_dist;
262 psiconv_length_t footer_dist; 313 psiconv_length_t footer_dist;
263 psiconv_length_t left_margin; 314 psiconv_length_t left_margin;
266 psiconv_length_t bottom_margin; 317 psiconv_length_t bottom_margin;
267 psiconv_length_t page_width; 318 psiconv_length_t page_width;
268 psiconv_length_t page_height; 319 psiconv_length_t page_height;
269 psiconv_page_header header; 320 psiconv_page_header header;
270 psiconv_page_header footer; 321 psiconv_page_header footer;
322 psiconv_bool_t landscape;
271} * psiconv_page_layout_section; 323} * psiconv_page_layout_section;
272 324
273typedef struct psiconv_word_status_section 325typedef struct psiconv_word_status_section_s
274{ 326{
275 psiconv_bool_t show_tabs; 327 psiconv_bool_t show_tabs;
276 psiconv_bool_t show_spaces; 328 psiconv_bool_t show_spaces;
277 psiconv_bool_t show_paragraph_ends; 329 psiconv_bool_t show_paragraph_ends;
278 psiconv_bool_t show_line_breaks; 330 psiconv_bool_t show_line_breaks;
285 psiconv_bool_t fit_lines_to_screen; 337 psiconv_bool_t fit_lines_to_screen;
286 psiconv_u32 cursor_position; 338 psiconv_u32 cursor_position;
287 psiconv_u32 display_size; 339 psiconv_u32 display_size;
288} *psiconv_word_status_section; 340} *psiconv_word_status_section;
289 341
290typedef struct psiconv_word_style 342typedef struct psiconv_word_style_s
291{ 343{
292 psiconv_character_layout character; 344 psiconv_character_layout character;
293 psiconv_paragraph_layout paragraph; 345 psiconv_paragraph_layout paragraph;
294 psiconv_u8 hotkey; 346 psiconv_u8 hotkey;
295 psiconv_string_t name; 347 psiconv_string_t name;
297 psiconv_u32 outline_level; 349 psiconv_u32 outline_level;
298} *psiconv_word_style; 350} *psiconv_word_style;
299 351
300typedef psiconv_list psiconv_word_style_list; /* Of style */ 352typedef psiconv_list psiconv_word_style_list; /* Of style */
301 353
302typedef struct psiconv_word_styles_section 354typedef struct psiconv_word_styles_section_s
303{ 355{
304 psiconv_word_style normal; 356 psiconv_word_style normal;
305 psiconv_word_style_list styles; 357 psiconv_word_style_list styles;
306} *psiconv_word_styles_section; 358} *psiconv_word_styles_section;
307 359
308typedef struct psiconv_word_f { 360typedef struct psiconv_word_f_s
361{
309 psiconv_page_layout_section page_sec; 362 psiconv_page_layout_section page_sec;
310 psiconv_text_and_layout paragraphs; 363 psiconv_text_and_layout paragraphs;
311 psiconv_word_status_section status_sec; 364 psiconv_word_status_section status_sec;
312 psiconv_word_styles_section styles_sec; 365 psiconv_word_styles_section styles_sec;
313} *psiconv_word_f; 366} *psiconv_word_f;
314 367
315typedef struct psiconv_texted_f { 368typedef struct psiconv_texted_f_s
369{
316 psiconv_page_layout_section page_sec; 370 psiconv_page_layout_section page_sec;
317 psiconv_texted_section texted_sec; 371 psiconv_texted_section texted_sec;
318} *psiconv_texted_f; 372} *psiconv_texted_f;
319 373
320typedef psiconv_list psiconv_jumptable_section; /* of psiconv_u32 */ 374typedef psiconv_list psiconv_jumptable_section; /* of psiconv_u32 */
321 375
322/* Normalized values [0..1] for each component 376/* Normalized values [0..1] for each component
323 Origin is (x,y)=(0,0), to get pixel at (X,Y) use index [Y*xsize+X] */ 377 Origin is (x,y)=(0,0), to get pixel at (X,Y) use index [Y*xsize+X] */
324typedef struct psiconv_paint_data_section { 378typedef struct psiconv_paint_data_section_s
379{
325 psiconv_u32 xsize; 380 psiconv_u32 xsize;
326 psiconv_u32 ysize; 381 psiconv_u32 ysize;
327 psiconv_length_t pic_xsize; /* 0 if not specified */ 382 psiconv_length_t pic_xsize; /* 0 if not specified */
328 psiconv_length_t pic_ysize; /* 0 if not specified */ 383 psiconv_length_t pic_ysize; /* 0 if not specified */
329 float *red; 384 float *red;
332} *psiconv_paint_data_section; 387} *psiconv_paint_data_section;
333 388
334typedef psiconv_list psiconv_pictures; 389typedef psiconv_list psiconv_pictures;
335 /* of struct psiconv_paint_data_section */ 390 /* of struct psiconv_paint_data_section */
336 391
337typedef struct psiconv_mbm_f { 392typedef struct psiconv_mbm_f_s
393{
338 psiconv_pictures sections; 394 psiconv_pictures sections;
339} *psiconv_mbm_f; 395} *psiconv_mbm_f;
340 396
341/* This is a little intricated. A picture may be embedded in a larger form. 397/* This is a little intricated. A picture may be embedded in a larger form.
342 A form is empty, except for the picture. The form has size form_{x,y}size, 398 A form is empty, except for the picture. The form has size form_{x,y}size,
343 and the picture is at offset picture_{x,y}_offset within the form. The 399 and the picture is at offset picture_{x,y}_offset within the form. The
344 picture itself has size picture_{x,y}size. 400 picture itself has size picture_{x,y}size.
345 Cuts are always <= 1.0; a cut of 0.0 cuts nothing away, a cut of 1.0 401 Cuts are always <= 1.0; a cut of 0.0 cuts nothing away, a cut of 1.0
346 cuts everything away. */ 402 cuts everything away. */
347typedef struct psiconv_sketch_section { 403typedef struct psiconv_sketch_section_s
404{
348 psiconv_u16 form_xsize; 405 psiconv_u16 form_xsize;
349 psiconv_u16 form_ysize; 406 psiconv_u16 form_ysize;
350 psiconv_u16 picture_x_offset; 407 psiconv_u16 picture_x_offset;
351 psiconv_u16 picture_y_offset; 408 psiconv_u16 picture_y_offset;
352 psiconv_u16 picture_xsize; 409 psiconv_u16 picture_xsize;
358 float cut_top; /* computed relative to first six values */ 415 float cut_top; /* computed relative to first six values */
359 float cut_bottom; /* computed relative to first six values */ 416 float cut_bottom; /* computed relative to first six values */
360 psiconv_paint_data_section picture; 417 psiconv_paint_data_section picture;
361} *psiconv_sketch_section; 418} *psiconv_sketch_section;
362 419
363typedef struct psiconv_sketch_f { 420typedef struct psiconv_sketch_f_s
421{
364 psiconv_sketch_section sketch_sec; 422 psiconv_sketch_section sketch_sec;
365} *psiconv_sketch_f; 423} *psiconv_sketch_f;
366 424
367typedef struct psiconv_clipart_section { 425typedef struct psiconv_clipart_section_s
426{
368 /* Perhaps later on some currently unknown stuff. */ 427 /* Perhaps later on some currently unknown stuff. */
369 psiconv_paint_data_section picture; 428 psiconv_paint_data_section picture;
370} * psiconv_clipart_section; 429} * psiconv_clipart_section;
371 430
372typedef psiconv_list psiconv_cliparts; /* of struct psiconv_clipart_section */ 431typedef psiconv_list psiconv_cliparts; /* of struct psiconv_clipart_section */
373 432
374typedef struct psiconv_clipart_f { 433typedef struct psiconv_clipart_f_s
434{
375 psiconv_cliparts sections; 435 psiconv_cliparts sections;
376} *psiconv_clipart_f; 436} *psiconv_clipart_f;
377 437
438typedef struct psiconv_sheet_ref_s
439{
440 psiconv_s16 offset;
441 psiconv_bool_t absolute;
442} psiconv_sheet_ref_t;
443
444typedef struct psiconv_sheet_cell_reference_s
445{
446 psiconv_sheet_ref_t row;
447 psiconv_sheet_ref_t column;
448} psiconv_sheet_cell_reference_t;
449
450typedef struct psiconv_sheet_cell_block_s
451{
452 psiconv_sheet_cell_reference_t first;
453 psiconv_sheet_cell_reference_t last;
454} psiconv_sheet_cell_block_t;
455
456typedef enum psiconv_cell_type
457{
458 psiconv_cell_blank,
459 psiconv_cell_int,
460 psiconv_cell_bool,
461 psiconv_cell_error,
462 psiconv_cell_float,
463 psiconv_cell_string
464} psiconv_cell_type_t;
465
466typedef enum psiconv_sheet_errorcode
467{
468 psiconv_sheet_error_none,
469 psiconv_sheet_error_null,
470 psiconv_sheet_error_divzero,
471 psiconv_sheet_error_value,
472 psiconv_sheet_error_reference,
473 psiconv_sheet_error_name,
474 psiconv_sheet_error_number,
475 psiconv_sheet_error_notavail
476} psiconv_sheet_errorcode_t;
477
478typedef enum psiconv_sheet_numberformat_code
479{
480 psiconv_numberformat_general,
481 psiconv_numberformat_fixeddecimal,
482 psiconv_numberformat_scientific,
483 psiconv_numberformat_currency,
484 psiconv_numberformat_percent,
485 psiconv_numberformat_triads,
486 psiconv_numberformat_boolean,
487 psiconv_numberformat_text,
488 psiconv_numberformat_date_dmm,
489 psiconv_numberformat_date_mmd,
490 psiconv_numberformat_date_ddmmyy,
491 psiconv_numberformat_date_mmddyy,
492 psiconv_numberformat_date_yymmdd,
493 psiconv_numberformat_date_dmmm,
494 psiconv_numberformat_date_dmmmyy,
495 psiconv_numberformat_date_ddmmmyy,
496 psiconv_numberformat_date_mmm,
497 psiconv_numberformat_date_monthname,
498 psiconv_numberformat_date_mmmyy,
499 psiconv_numberformat_date_monthnameyy,
500 psiconv_numberformat_date_monthnamedyyyy,
501 psiconv_numberformat_datetime_ddmmyyyyhhii,
502 psiconv_numberformat_datetime_ddmmyyyyHHii,
503 psiconv_numberformat_datetime_mmddyyyyhhii,
504 psiconv_numberformat_datetime_mmddyyyyHHii,
505 psiconv_numberformat_datetime_yyyymmddhhii,
506 psiconv_numberformat_datetime_yyyymmddHHii,
507 psiconv_numberformat_time_hhii,
508 psiconv_numberformat_time_hhiiss,
509 psiconv_numberformat_time_HHii,
510 psiconv_numberformat_time_HHiiss
511} psiconv_sheet_numberformat_code_t;
512
513typedef struct psiconv_sheet_numberformat_s
514{
515 psiconv_sheet_numberformat_code_t code;
516 psiconv_u8 decimal;
517} *psiconv_sheet_numberformat;
518
519typedef struct psiconv_sheet_cell_layout_s
520{
521 psiconv_character_layout character;
522 psiconv_paragraph_layout paragraph;
523 psiconv_sheet_numberformat numberformat;
524} * psiconv_sheet_cell_layout;
525
526typedef struct psiconv_sheet_cell_s
527{
528 psiconv_u16 column;
529 psiconv_u16 row;
530 psiconv_cell_type_t type;
531 union {
532 psiconv_u32 dat_int;
533 double dat_float;
534 char *dat_string;
535 psiconv_bool_t dat_bool;
536 psiconv_sheet_errorcode_t dat_error;
537 } data;
538 psiconv_sheet_cell_layout layout;
539 psiconv_bool_t calculated;
540 psiconv_u32 ref_formula;
541} *psiconv_sheet_cell;
542
543typedef psiconv_list psiconv_sheet_cell_list;
544
545typedef struct psiconv_sheet_status_section_s
546{
547 psiconv_bool_t show_graph;
548 psiconv_u32 cursor_row;
549 psiconv_u32 cursor_column;
550 psiconv_bool_t show_top_sheet_toolbar;
551 psiconv_bool_t show_side_sheet_toolbar;
552 psiconv_bool_t show_top_graph_toolbar;
553 psiconv_bool_t show_side_graph_toolbar;
554 psiconv_u32 sheet_display_size;
555 psiconv_u32 graph_display_size;
556 psiconv_triple_t show_horizontal_scrollbar;
557 psiconv_triple_t show_vertical_scrollbar;
558} *psiconv_sheet_status_section;
559
560typedef enum psiconv_formula_type
561{
562 psiconv_formula_unknown,
563 psiconv_formula_op_lt,
564 psiconv_formula_op_le,
565 psiconv_formula_op_gt,
566 psiconv_formula_op_ge,
567 psiconv_formula_op_ne,
568 psiconv_formula_op_eq,
569 psiconv_formula_op_add,
570 psiconv_formula_op_sub,
571 psiconv_formula_op_mul,
572 psiconv_formula_op_div,
573 psiconv_formula_op_pow,
574 psiconv_formula_op_pos,
575 psiconv_formula_op_neg,
576 psiconv_formula_op_not,
577 psiconv_formula_op_and,
578 psiconv_formula_op_or,
579 psiconv_formula_op_con,
580 psiconv_formula_op_bra,
581 psiconv_formula_mark_eof,
582 psiconv_formula_dat_float,
583 psiconv_formula_dat_int,
584 psiconv_formula_dat_var,
585 psiconv_formula_dat_string,
586 psiconv_formula_dat_cellref,
587 psiconv_formula_dat_cellblock,
588 psiconv_formula_dat_vcellblock,
589 psiconv_formula_mark_opsep,
590 psiconv_formula_mark_opend,
591 psiconv_formula_fun_false,
592 psiconv_formula_fun_if,
593 psiconv_formula_fun_true,
594 psiconv_formula_fun_cell,
595 psiconv_formula_fun_errortype,
596 psiconv_formula_fun_isblank,
597 psiconv_formula_fun_iserr,
598 psiconv_formula_fun_iserror,
599 psiconv_formula_fun_islogical,
600 psiconv_formula_fun_isna,
601 psiconv_formula_fun_isnontext,
602 psiconv_formula_fun_isnumber,
603 psiconv_formula_fun_istext,
604 psiconv_formula_fun_n,
605 psiconv_formula_fun_type,
606 psiconv_formula_fun_address,
607 psiconv_formula_fun_column,
608 psiconv_formula_fun_columns,
609 psiconv_formula_fun_hlookup,
610 psiconv_formula_fun_index,
611 psiconv_formula_fun_indirect,
612 psiconv_formula_fun_lookup,
613 psiconv_formula_fun_offset,
614 psiconv_formula_fun_row,
615 psiconv_formula_fun_rows,
616 psiconv_formula_fun_vlookup,
617 psiconv_formula_fun_char,
618 psiconv_formula_fun_code,
619 psiconv_formula_fun_exact,
620 psiconv_formula_fun_find,
621 psiconv_formula_fun_left,
622 psiconv_formula_fun_len,
623 psiconv_formula_fun_lower,
624 psiconv_formula_fun_mid,
625 psiconv_formula_fun_proper,
626 psiconv_formula_fun_replace,
627 psiconv_formula_fun_rept,
628 psiconv_formula_fun_right,
629 psiconv_formula_fun_string,
630 psiconv_formula_fun_t,
631 psiconv_formula_fun_trim,
632 psiconv_formula_fun_upper,
633 psiconv_formula_fun_value,
634 psiconv_formula_fun_date,
635 psiconv_formula_fun_datevalue,
636 psiconv_formula_fun_day,
637 psiconv_formula_fun_hour,
638 psiconv_formula_fun_minute,
639 psiconv_formula_fun_month,
640 psiconv_formula_fun_now,
641 psiconv_formula_fun_second,
642 psiconv_formula_fun_today,
643 psiconv_formula_fun_time,
644 psiconv_formula_fun_timevalue,
645 psiconv_formula_fun_year,
646 psiconv_formula_fun_abs,
647 psiconv_formula_fun_acos,
648 psiconv_formula_fun_asin,
649 psiconv_formula_fun_atan,
650 psiconv_formula_fun_atan2,
651 psiconv_formula_fun_cos,
652 psiconv_formula_fun_degrees,
653 psiconv_formula_fun_exp,
654 psiconv_formula_fun_fact,
655 psiconv_formula_fun_int,
656 psiconv_formula_fun_ln,
657 psiconv_formula_fun_log10,
658 psiconv_formula_fun_mod,
659 psiconv_formula_fun_pi,
660 psiconv_formula_fun_radians,
661 psiconv_formula_fun_rand,
662 psiconv_formula_fun_round,
663 psiconv_formula_fun_sign,
664 psiconv_formula_fun_sin,
665 psiconv_formula_fun_sqrt,
666 psiconv_formula_fun_sumproduct,
667 psiconv_formula_fun_tan,
668 psiconv_formula_fun_trunc,
669 psiconv_formula_fun_cterm,
670 psiconv_formula_fun_ddb,
671 psiconv_formula_fun_fv,
672 psiconv_formula_fun_irr,
673 psiconv_formula_fun_npv,
674 psiconv_formula_fun_pmt,
675 psiconv_formula_fun_pv,
676 psiconv_formula_fun_rate,
677 psiconv_formula_fun_sln,
678 psiconv_formula_fun_syd,
679 psiconv_formula_fun_term,
680 psiconv_formula_fun_combin,
681 psiconv_formula_fun_permut,
682 psiconv_formula_vfn_average,
683 psiconv_formula_vfn_choose,
684 psiconv_formula_vfn_count,
685 psiconv_formula_vfn_counta,
686 psiconv_formula_vfn_countblank,
687 psiconv_formula_vfn_max,
688 psiconv_formula_vfn_min,
689 psiconv_formula_vfn_product,
690 psiconv_formula_vfn_stdevp,
691 psiconv_formula_vfn_stdev,
692 psiconv_formula_vfn_sum,
693 psiconv_formula_vfn_sumsq,
694 psiconv_formula_vfn_varp,
695 psiconv_formula_vfn_var
696} psiconv_formula_type_t;
697
698typedef psiconv_list psiconv_formula_list; /* Of struct psiconv_formula_s */
699
378typedef struct psiconv_file { 700typedef struct psiconv_formula_s
701{
702 psiconv_formula_type_t type;
703 union {
704 psiconv_u32 dat_int;
705 double dat_float;
706 char *dat_string;
707 psiconv_sheet_cell_reference_t dat_cellref;
708 psiconv_sheet_cell_block_t dat_cellblock;
709 psiconv_formula_list fun_operands;
710 psiconv_u32 dat_variable;
711 } data;
712} *psiconv_formula;
713
714typedef struct psiconv_sheet_line_s
715{
716 psiconv_u32 position;
717 psiconv_sheet_cell_layout layout;
718} *psiconv_sheet_line;
719
720typedef psiconv_list psiconv_sheet_line_list;
721 /* Of struct psiconv_sheet_line_s */
722
723typedef struct psiconv_sheet_grid_size_s
724{
725 psiconv_u32 line_number;
726 psiconv_length_t size;
727} *psiconv_sheet_grid_size;
728
729typedef psiconv_list psiconv_sheet_grid_size_list;
730 /* Of struct psiconv_sheet_grid_size_s */
731
732typedef psiconv_list psiconv_sheet_grid_break_list; /* of psiconv_u32 */
733
734typedef struct psiconv_sheet_grid_section_s
735{
736 psiconv_bool_t show_column_titles;
737 psiconv_bool_t show_row_titles;
738 psiconv_bool_t show_vertical_grid;
739 psiconv_bool_t show_horizontal_grid;
740 psiconv_bool_t freeze_rows;
741 psiconv_bool_t freeze_columns;
742 psiconv_u32 frozen_rows;
743 psiconv_u32 frozen_columns;
744 psiconv_u32 first_unfrozen_row_displayed;
745 psiconv_u32 first_unfrozen_column_displayed;
746 psiconv_bool_t show_page_breaks;
747 psiconv_u32 first_row;
748 psiconv_u32 first_column;
749 psiconv_u32 last_row;
750 psiconv_u32 last_column;
751 psiconv_length_t default_row_height;
752 psiconv_length_t default_column_width;
753 psiconv_sheet_grid_size_list row_heights;
754 psiconv_sheet_grid_size_list column_heights;
755 psiconv_sheet_grid_break_list row_page_breaks;
756 psiconv_sheet_grid_break_list column_page_breaks;
757} *psiconv_sheet_grid_section;
758
759typedef struct psiconv_sheet_worksheet_s
760{
761 psiconv_sheet_cell_layout default_layout;
762 psiconv_sheet_cell_list cells;
763 psiconv_bool_t show_zeros;
764 psiconv_sheet_line_list row_default_layouts;
765 psiconv_sheet_line_list col_default_layouts;
766 psiconv_sheet_grid_section grid;
767} *psiconv_sheet_worksheet;
768
769typedef psiconv_list psiconv_sheet_worksheet_list;
770 /* of struct psiconv_sheet_worksheet_s */
771
772typedef enum psiconv_variable_type
773{
774 psiconv_var_int,
775 psiconv_var_float,
776 psiconv_var_string,
777 psiconv_var_cellref,
778 psiconv_var_cellblock
779} psiconv_variable_type_t;
780
781typedef struct psiconv_sheet_variable_s
782{
783 psiconv_u32 number;
784 char *name;
785 psiconv_variable_type_t type;
786 union {
787 psiconv_s32 dat_int;
788 double dat_float;
789 char *dat_string;
790 psiconv_sheet_cell_reference_t dat_cellref;
791 psiconv_sheet_cell_block_t dat_cellblock;
792 } data;
793} *psiconv_sheet_variable;
794
795typedef psiconv_list psiconv_sheet_variable_list;
796 /* of struct psiconv_sheet_variable_s */
797
798typedef struct psiconv_sheet_name_section_s
799{
800 char *name;
801} *psiconv_sheet_name_section;
802
803typedef struct psiconv_sheet_info_section_s
804{
805 psiconv_bool_t auto_recalc;
806} *psiconv_sheet_info_section;
807
808typedef struct psiconv_sheet_workbook_section_s
809{
810 psiconv_formula_list formulas;
811 psiconv_sheet_worksheet_list worksheets;
812 psiconv_sheet_variable_list variables;
813 psiconv_sheet_info_section info;
814 psiconv_sheet_name_section name;
815} *psiconv_sheet_workbook_section;
816
817typedef struct psiconv_sheet_f_s
818{
819 psiconv_page_layout_section page_sec;
820 psiconv_sheet_status_section status_sec;
821 psiconv_sheet_workbook_section workbook_sec;
822} *psiconv_sheet_f;
823
824/* NB: psiconv_file is already defined above */
825struct psiconv_file_s
826{
379 psiconv_file_type_t type; 827 psiconv_file_type_t type;
380 void *file; 828 void *file;
381} *psiconv_file; 829};
382 830
383 831
384/* UID1 */ 832/* UID1 */
385#define PSICONV_ID_PSION5 0x10000037 833#define PSICONV_ID_PSION5 0x10000037
386#define PSICONV_ID_CLIPART 0x10000041 834#define PSICONV_ID_CLIPART 0x10000041
389#define PSICONV_ID_MBM_FILE 0x10000042 837#define PSICONV_ID_MBM_FILE 0x10000042
390/* UID3 */ 838/* UID3 */
391#define PSICONV_ID_WORD 0x1000007F 839#define PSICONV_ID_WORD 0x1000007F
392#define PSICONV_ID_TEXTED 0x10000085 840#define PSICONV_ID_TEXTED 0x10000085
393#define PSICONV_ID_SKETCH 0x1000007D 841#define PSICONV_ID_SKETCH 0x1000007D
842#define PSICONV_ID_SHEET 0x10000088
394 843
395/* Section table ids */ 844/* Section table ids */
396#define PSICONV_ID_WORD_STATUS_SECTION 0x10000243 845#define PSICONV_ID_WORD_STATUS_SECTION 0x10000243
397#define PSICONV_ID_APPL_ID_SECTION 0x10000089 846#define PSICONV_ID_APPL_ID_SECTION 0x10000089
398#define PSICONV_ID_TEXT_SECTION 0x10000106 847#define PSICONV_ID_TEXT_SECTION 0x10000106
399#define PSICONV_ID_LAYOUT_SECTION 0x10000143 848#define PSICONV_ID_LAYOUT_SECTION 0x10000143
400#define PSICONV_ID_WORD_STYLES_SECTION 0x10000104 849#define PSICONV_ID_WORD_STYLES_SECTION 0x10000104
401#define PSICONV_ID_PAGE_LAYOUT_SECTION 0x10000105 850#define PSICONV_ID_PAGE_LAYOUT_SECTION 0x10000105
402#define PSICONV_ID_PASSWORD_SECTION 0x100000CD 851#define PSICONV_ID_PASSWORD_SECTION 0x100000CD
403#define PSICONV_ID_SKETCH_SECTION 0x1000007D 852#define PSICONV_ID_SKETCH_SECTION 0x1000007D
853#define PSICONV_ID_SHEET_STATUS_SECTION 0x1000011F
854#define PSICONV_ID_SHEET_WORKBOOK_SECTION 0x1000011D
855#define PSICONV_ID_SHEET_GRAPH_SECTION 0x10000121
404 856
405/* Other ids */ 857/* Other ids */
406#define PSICONV_ID_PAGE_DIMENSIONS 0x100000fd 858#define PSICONV_ID_PAGE_DIMENSIONS1 0x100000fd
859#define PSICONV_ID_PAGE_DIMENSIONS2 0x1000010e
407#define PSICONV_ID_TEXTED_BODY 0x1000005c 860#define PSICONV_ID_TEXTED_BODY 0x1000005c
408#define PSICONV_ID_TEXTED_REPLACEMENT 0x10000063 861#define PSICONV_ID_TEXTED_REPLACEMENT 0x10000063
409#define PSICONV_ID_TEXTED_UNKNOWN 0x10000065 862#define PSICONV_ID_TEXTED_UNKNOWN 0x10000065
410#define PSICONV_ID_TEXTED_LAYOUT 0x10000066 863#define PSICONV_ID_TEXTED_LAYOUT 0x10000066
411#define PSICONV_ID_TEXTED_TEXT 0x10000064 864#define PSICONV_ID_TEXTED_TEXT 0x10000064
412#define PSICONV_ID_STYLE_REMOVABLE 0x1000004F 865#define PSICONV_ID_STYLE_REMOVABLE 0x1000004F
413#define PSICONV_ID_STYLE_BUILT_IN 0x1000004C 866#define PSICONV_ID_STYLE_BUILT_IN 0x1000004C
414#define PSICONV_ID_CLIPART_ITEM 0x10000040 867#define PSICONV_ID_CLIPART_ITEM 0x10000040
415 868
416 869
417/* Return a clean layout_status. You can modify it at will */ 870/* Return a clean layout_status. You can modify it at will. Returns NULL
871 if there is not enough memory. */
418extern psiconv_character_layout psiconv_basic_character_layout(void); 872extern psiconv_character_layout psiconv_basic_character_layout(void);
419 873
420/* Return a clean layout_status. You can modify it at will */ 874/* Return a clean layout_status. You can modify it at will. Returns NULL
875 if there is not enough memory. */
421extern psiconv_paragraph_layout psiconv_basic_paragraph_layout(void); 876extern psiconv_paragraph_layout psiconv_basic_paragraph_layout(void);
422 877
423/* Clone a layout_status: the new copy is completely independent of the 878/* Clone a layout_status: the new copy is completely independent of the
424 original one */ 879 original one. Returns NULL if there is not enough memory. */
425extern psiconv_paragraph_layout psiconv_clone_paragraph_layout 880extern psiconv_paragraph_layout psiconv_clone_paragraph_layout
426 (psiconv_paragraph_layout ls); 881 (psiconv_paragraph_layout ls);
427 882
428extern psiconv_character_layout psiconv_clone_character_layout 883extern psiconv_character_layout psiconv_clone_character_layout
429 (psiconv_character_layout ls); 884 (psiconv_character_layout ls);
430 885
431/* Get a numbered style */ 886/* Get a numbered style. Returns NULL if the style is unknown. */
432extern psiconv_word_style psiconv_get_style (psiconv_word_styles_section ss, int nr); 887extern psiconv_word_style psiconv_get_style (psiconv_word_styles_section ss, int nr);
888/* Get a numbered formula. Returns NULL if the style is unknown. */
889extern psiconv_formula psiconv_get_formula (psiconv_formula_list ss, int nr);
890
891/* Return the default layout */
892extern psiconv_sheet_cell_layout psiconv_get_default_layout
893 (psiconv_sheet_line_list row_defaults,
894 psiconv_sheet_line_list col_defaults,
895 psiconv_sheet_cell_layout cell_default,
896 int row,int col);
433 897
434extern void psiconv_free_color(psiconv_color color); 898extern void psiconv_free_color(psiconv_color color);
435extern void psiconv_free_border(psiconv_border border); 899extern void psiconv_free_border(psiconv_border border);
436extern void psiconv_free_bullet(psiconv_bullet bullet); 900extern void psiconv_free_bullet(psiconv_bullet bullet);
437extern void psiconv_free_font(psiconv_font font); 901extern void psiconv_free_font(psiconv_font font);
440extern void psiconv_free_paragraph_layout(psiconv_paragraph_layout layout); 904extern void psiconv_free_paragraph_layout(psiconv_paragraph_layout layout);
441extern void psiconv_free_character_layout(psiconv_character_layout layout); 905extern void psiconv_free_character_layout(psiconv_character_layout layout);
442extern void psiconv_free_word_style(psiconv_word_style style); 906extern void psiconv_free_word_style(psiconv_word_style style);
443extern void psiconv_free_word_styles_section 907extern void psiconv_free_word_styles_section
444 (psiconv_word_styles_section styles); 908 (psiconv_word_styles_section styles);
909extern void psiconv_free_formula(psiconv_formula formula);
910extern void psiconv_free_formula_list(psiconv_formula_list list);
911extern void psiconv_free_sheet_status_section
912 (psiconv_sheet_status_section section);
913extern void psiconv_free_sheet_cell_layout(psiconv_sheet_cell_layout layout);
914extern void psiconv_free_sheet_grid_break_list
915 (psiconv_sheet_grid_break_list list);
916extern void psiconv_free_sheet_grid_size(psiconv_sheet_grid_size s);
917extern void psiconv_free_sheet_grid_size_list
918 (psiconv_sheet_grid_size_list list);
919extern void psiconv_free_sheet_grid_section(psiconv_sheet_grid_section sec);
920extern void psiconv_free_sheet_worksheet(psiconv_sheet_worksheet sheet);
921extern void psiconv_free_sheet_worksheet_list
922 (psiconv_sheet_worksheet_list list);
923
924extern void psiconv_free_sheet_f(psiconv_sheet_f file);
925extern void psiconv_free_sheet_cell(psiconv_sheet_cell cell);
926extern void psiconv_free_sheet_cell_list(psiconv_sheet_cell_list list);
927extern void psiconv_free_sheet_numberformat
928 (psiconv_sheet_numberformat numberformat);
929extern void psiconv_free_sheet_line_list(psiconv_sheet_line_list list);
930extern void psiconv_free_sheet_line(psiconv_sheet_line line);
931extern void psiconv_free_sheet_name_section(psiconv_sheet_name_section section);
932extern void psiconv_free_sheet_variable(psiconv_sheet_variable list);
933extern void psiconv_free_sheet_variable_list(psiconv_sheet_variable_list list);
934extern void psiconv_free_sheet_info_section(psiconv_sheet_info_section section);
445extern void psiconv_free_header_section(psiconv_header_section header); 935extern void psiconv_free_header_section(psiconv_header_section header);
446extern void psiconv_free_section_table_entry(psiconv_section_table_entry entry); 936extern void psiconv_free_section_table_entry(psiconv_section_table_entry entry);
447extern void psiconv_free_section_table_section 937extern void psiconv_free_section_table_section
448 (psiconv_section_table_section section); 938 (psiconv_section_table_section section);
449extern void psiconv_free_application_id_section 939extern void psiconv_free_application_id_section
450 (psiconv_application_id_section section); 940 (psiconv_application_id_section section);
941extern void psiconv_free_object_display_section
942 (psiconv_object_display_section section);
943extern void psiconv_free_object_icon_section
944 (psiconv_object_icon_section section);
945extern void psiconv_free_object(psiconv_object object);
451extern void psiconv_free_in_line_layout(psiconv_in_line_layout layout); 946extern void psiconv_free_in_line_layout(psiconv_in_line_layout layout);
452extern void psiconv_free_in_line_layouts(psiconv_in_line_layouts layouts); 947extern void psiconv_free_in_line_layouts(psiconv_in_line_layouts layouts);
453extern void psiconv_free_replacement(psiconv_replacement replacement); 948extern void psiconv_free_replacement(psiconv_replacement replacement);
454extern void psiconv_free_replacements(psiconv_replacements replacements); 949extern void psiconv_free_replacements(psiconv_replacements replacements);
455extern void psiconv_free_paragraph(psiconv_paragraph paragraph); 950extern void psiconv_free_paragraph(psiconv_paragraph paragraph);
471extern void psiconv_free_sketch_f(psiconv_sketch_f file); 966extern void psiconv_free_sketch_f(psiconv_sketch_f file);
472extern void psiconv_free_clipart_section(psiconv_clipart_section section); 967extern void psiconv_free_clipart_section(psiconv_clipart_section section);
473extern void psiconv_free_cliparts(psiconv_cliparts section); 968extern void psiconv_free_cliparts(psiconv_cliparts section);
474extern void psiconv_free_clipart_f(psiconv_clipart_f file); 969extern void psiconv_free_clipart_f(psiconv_clipart_f file);
475 970
476
477extern void psiconv_free_file(psiconv_file file); 971extern void psiconv_free_file(psiconv_file file);
478 972
973extern int psiconv_compare_color(const psiconv_color value1,
974 const psiconv_color value2);
975extern int psiconv_compare_font(const psiconv_font value1,
976 const psiconv_font value2);
977extern int psiconv_compare_border(const psiconv_border value1,
978 const psiconv_border value2);
979extern int psiconv_compare_bullet(const psiconv_bullet value1,
980 const psiconv_bullet value2);
981extern int psiconv_compare_tab(const psiconv_tab value1,
982 const psiconv_tab value2);
983extern int psiconv_compare_all_tabs(const psiconv_all_tabs value1,
984 const psiconv_all_tabs value2);
985extern int psiconv_compare_paragraph_layout
986 (const psiconv_paragraph_layout value1,
987 const psiconv_paragraph_layout value2);
988
989extern int psiconv_compare_character_layout
990 (const psiconv_character_layout value1,
991 const psiconv_character_layout value2);
992
993/* Get a newly allocated file with sensible defaults, ready to generate. */
994extern psiconv_file psiconv_empty_file(psiconv_file_type_t type);
995
996
997#ifdef __cplusplus
998}
999#endif /* __cplusplus */
479 1000
480#endif /* def PSICONV_DATA_H */ 1001#endif /* def PSICONV_DATA_H */

Legend:
Removed from v.43  
changed lines
  Added in v.159

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