… | |
… | |
33 | typedef enum psiconv_file_type { |
33 | typedef enum psiconv_file_type { |
34 | psiconv_unknown_file, |
34 | psiconv_unknown_file, |
35 | psiconv_word_file, |
35 | psiconv_word_file, |
36 | psiconv_texted_file, |
36 | psiconv_texted_file, |
37 | psiconv_mbm_file, |
37 | psiconv_mbm_file, |
38 | psiconv_sketch_file |
38 | psiconv_sketch_file, |
|
|
39 | psiconv_clipart_file |
39 | } psiconv_file_type_t; |
40 | } psiconv_file_type_t; |
40 | |
41 | |
41 | /* Length indicators */ |
42 | /* Length indicators */ |
42 | typedef psiconv_u32 psiconv_S_t; |
43 | typedef psiconv_u32 psiconv_S_t; |
43 | typedef psiconv_u32 psiconv_X_t; |
44 | typedef psiconv_u32 psiconv_X_t; |
… | |
… | |
291 | psiconv_character_layout character; |
292 | psiconv_character_layout character; |
292 | psiconv_paragraph_layout paragraph; |
293 | psiconv_paragraph_layout paragraph; |
293 | psiconv_u8 hotkey; |
294 | psiconv_u8 hotkey; |
294 | psiconv_string_t name; |
295 | psiconv_string_t name; |
295 | psiconv_bool_t built_in; |
296 | psiconv_bool_t built_in; |
|
|
297 | psiconv_u32 outline_level; |
296 | } *psiconv_word_style; |
298 | } *psiconv_word_style; |
297 | |
299 | |
298 | typedef psiconv_list psiconv_word_style_list; /* Of style */ |
300 | typedef psiconv_list psiconv_word_style_list; /* Of style */ |
299 | |
301 | |
300 | typedef struct psiconv_word_styles_section |
302 | typedef struct psiconv_word_styles_section |
… | |
… | |
320 | /* Normalized values [0..1] for each component |
322 | /* Normalized values [0..1] for each component |
321 | Origin is (x,y)=(0,0), to get pixel at (X,Y) use index [Y*xsize+X] */ |
323 | Origin is (x,y)=(0,0), to get pixel at (X,Y) use index [Y*xsize+X] */ |
322 | typedef struct psiconv_paint_data_section { |
324 | typedef struct psiconv_paint_data_section { |
323 | psiconv_u32 xsize; |
325 | psiconv_u32 xsize; |
324 | psiconv_u32 ysize; |
326 | psiconv_u32 ysize; |
|
|
327 | psiconv_length_t pic_xsize; /* 0 if not specified */ |
|
|
328 | psiconv_length_t pic_ysize; /* 0 if not specified */ |
325 | float *red; |
329 | float *red; |
326 | float *green; |
330 | float *green; |
327 | float *blue; |
331 | float *blue; |
328 | } *psiconv_paint_data_section; |
332 | } *psiconv_paint_data_section; |
329 | |
333 | |
… | |
… | |
358 | |
362 | |
359 | typedef struct psiconv_sketch_f { |
363 | typedef struct psiconv_sketch_f { |
360 | psiconv_sketch_section sketch_sec; |
364 | psiconv_sketch_section sketch_sec; |
361 | } *psiconv_sketch_f; |
365 | } *psiconv_sketch_f; |
362 | |
366 | |
|
|
367 | typedef struct psiconv_clipart_section { |
|
|
368 | /* Perhaps later on some currently unknown stuff. */ |
|
|
369 | psiconv_paint_data_section picture; |
|
|
370 | } * psiconv_clipart_section; |
|
|
371 | |
|
|
372 | typedef psiconv_list psiconv_cliparts; /* of struct psiconv_clipart_section */ |
|
|
373 | |
|
|
374 | typedef struct psiconv_clipart_f { |
|
|
375 | psiconv_cliparts sections; |
|
|
376 | } *psiconv_clipart_f; |
|
|
377 | |
363 | typedef struct psiconv_file { |
378 | typedef struct psiconv_file { |
364 | psiconv_file_type_t type; |
379 | psiconv_file_type_t type; |
365 | void *file; |
380 | void *file; |
366 | } *psiconv_file; |
381 | } *psiconv_file; |
367 | |
382 | |
368 | |
383 | |
369 | /* UID1 */ |
384 | /* UID1 */ |
370 | #define PSICONV_ID_PSION5 0x10000037 |
385 | #define PSICONV_ID_PSION5 0x10000037 |
|
|
386 | #define PSICONV_ID_CLIPART 0x10000041 |
371 | /* UID2 */ |
387 | /* UID2 */ |
372 | #define PSICONV_ID_DATA_FILE 0x1000006D |
388 | #define PSICONV_ID_DATA_FILE 0x1000006D |
373 | #define PSICONV_ID_MBM_FILE 0x10000042 |
389 | #define PSICONV_ID_MBM_FILE 0x10000042 |
374 | /* UID3 */ |
390 | /* UID3 */ |
375 | #define PSICONV_ID_WORD 0x1000007F |
391 | #define PSICONV_ID_WORD 0x1000007F |
… | |
… | |
450 | extern void psiconv_free_mbm_jumptable_section |
466 | extern void psiconv_free_mbm_jumptable_section |
451 | (psiconv_mbm_jumptable_section section); |
467 | (psiconv_mbm_jumptable_section section); |
452 | extern void psiconv_free_mbm_f(psiconv_mbm_f file); |
468 | extern void psiconv_free_mbm_f(psiconv_mbm_f file); |
453 | extern void psiconv_free_sketch_section(psiconv_sketch_section sec); |
469 | extern void psiconv_free_sketch_section(psiconv_sketch_section sec); |
454 | extern void psiconv_free_sketch_f(psiconv_sketch_f file); |
470 | extern void psiconv_free_sketch_f(psiconv_sketch_f file); |
|
|
471 | extern void psiconv_free_clipart_section(psiconv_clipart_section section); |
|
|
472 | extern void psiconv_free_cliparts(psiconv_cliparts section); |
|
|
473 | extern void psiconv_free_clipart_f(psiconv_clipart_f file); |
|
|
474 | |
455 | |
475 | |
456 | extern void psiconv_free_file(psiconv_file file); |
476 | extern void psiconv_free_file(psiconv_file file); |
457 | |
477 | |
458 | |
478 | |
459 | #endif /* def PSICONV_DATA_H */ |
479 | #endif /* def PSICONV_DATA_H */ |