/[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 28 Revision 43
33typedef enum psiconv_file_type { 33typedef 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 */
42typedef psiconv_u32 psiconv_S_t; 43typedef psiconv_u32 psiconv_S_t;
43typedef psiconv_u32 psiconv_X_t; 44typedef psiconv_u32 psiconv_X_t;
314typedef struct psiconv_texted_f { 315typedef struct psiconv_texted_f {
315 psiconv_page_layout_section page_sec; 316 psiconv_page_layout_section page_sec;
316 psiconv_texted_section texted_sec; 317 psiconv_texted_section texted_sec;
317} *psiconv_texted_f; 318} *psiconv_texted_f;
318 319
319typedef psiconv_list psiconv_mbm_jumptable_section; /* of psiconv_u32 */ 320typedef psiconv_list psiconv_jumptable_section; /* of psiconv_u32 */
320 321
321/* Normalized values [0..1] for each component 322/* Normalized values [0..1] for each component
322 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] */
323typedef struct psiconv_paint_data_section { 324typedef struct psiconv_paint_data_section {
324 psiconv_u32 xsize; 325 psiconv_u32 xsize;
361 362
362typedef struct psiconv_sketch_f { 363typedef struct psiconv_sketch_f {
363 psiconv_sketch_section sketch_sec; 364 psiconv_sketch_section sketch_sec;
364} *psiconv_sketch_f; 365} *psiconv_sketch_f;
365 366
367typedef struct psiconv_clipart_section {
368 /* Perhaps later on some currently unknown stuff. */
369 psiconv_paint_data_section picture;
370} * psiconv_clipart_section;
371
372typedef psiconv_list psiconv_cliparts; /* of struct psiconv_clipart_section */
373
374typedef struct psiconv_clipart_f {
375 psiconv_cliparts sections;
376} *psiconv_clipart_f;
377
366typedef struct psiconv_file { 378typedef struct psiconv_file {
367 psiconv_file_type_t type; 379 psiconv_file_type_t type;
368 void *file; 380 void *file;
369} *psiconv_file; 381} *psiconv_file;
370 382
371 383
372/* UID1 */ 384/* UID1 */
373#define PSICONV_ID_PSION5 0x10000037 385#define PSICONV_ID_PSION5 0x10000037
386#define PSICONV_ID_CLIPART 0x10000041
374/* UID2 */ 387/* UID2 */
375#define PSICONV_ID_DATA_FILE 0x1000006D 388#define PSICONV_ID_DATA_FILE 0x1000006D
376#define PSICONV_ID_MBM_FILE 0x10000042 389#define PSICONV_ID_MBM_FILE 0x10000042
377/* UID3 */ 390/* UID3 */
378#define PSICONV_ID_WORD 0x1000007F 391#define PSICONV_ID_WORD 0x1000007F
396#define PSICONV_ID_TEXTED_UNKNOWN 0x10000065 409#define PSICONV_ID_TEXTED_UNKNOWN 0x10000065
397#define PSICONV_ID_TEXTED_LAYOUT 0x10000066 410#define PSICONV_ID_TEXTED_LAYOUT 0x10000066
398#define PSICONV_ID_TEXTED_TEXT 0x10000064 411#define PSICONV_ID_TEXTED_TEXT 0x10000064
399#define PSICONV_ID_STYLE_REMOVABLE 0x1000004F 412#define PSICONV_ID_STYLE_REMOVABLE 0x1000004F
400#define PSICONV_ID_STYLE_BUILT_IN 0x1000004C 413#define PSICONV_ID_STYLE_BUILT_IN 0x1000004C
414#define PSICONV_ID_CLIPART_ITEM 0x10000040
401 415
402 416
403/* Return a clean layout_status. You can modify it at will */ 417/* Return a clean layout_status. You can modify it at will */
404extern psiconv_character_layout psiconv_basic_character_layout(void); 418extern psiconv_character_layout psiconv_basic_character_layout(void);
405 419
448 (psiconv_word_status_section section); 462 (psiconv_word_status_section section);
449extern void psiconv_free_word_f(psiconv_word_f file); 463extern void psiconv_free_word_f(psiconv_word_f file);
450extern void psiconv_free_texted_f(psiconv_texted_f file); 464extern void psiconv_free_texted_f(psiconv_texted_f file);
451extern void psiconv_free_paint_data_section(psiconv_paint_data_section section); 465extern void psiconv_free_paint_data_section(psiconv_paint_data_section section);
452extern void psiconv_free_pictures(psiconv_pictures section); 466extern void psiconv_free_pictures(psiconv_pictures section);
453extern void psiconv_free_mbm_jumptable_section 467extern void psiconv_free_jumptable_section
454 (psiconv_mbm_jumptable_section section); 468 (psiconv_jumptable_section section);
455extern void psiconv_free_mbm_f(psiconv_mbm_f file); 469extern void psiconv_free_mbm_f(psiconv_mbm_f file);
456extern void psiconv_free_sketch_section(psiconv_sketch_section sec); 470extern void psiconv_free_sketch_section(psiconv_sketch_section sec);
457extern void psiconv_free_sketch_f(psiconv_sketch_f file); 471extern void psiconv_free_sketch_f(psiconv_sketch_f file);
472extern void psiconv_free_clipart_section(psiconv_clipart_section section);
473extern void psiconv_free_cliparts(psiconv_cliparts section);
474extern void psiconv_free_clipart_f(psiconv_clipart_f file);
475
458 476
459extern void psiconv_free_file(psiconv_file file); 477extern void psiconv_free_file(psiconv_file file);
460 478
461 479
462#endif /* def PSICONV_DATA_H */ 480#endif /* def PSICONV_DATA_H */

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

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