| … | |
… | |
| 39 | psiconv_unknown_file, |
39 | psiconv_unknown_file, |
| 40 | psiconv_word_file, |
40 | psiconv_word_file, |
| 41 | psiconv_texted_file, |
41 | psiconv_texted_file, |
| 42 | psiconv_mbm_file, |
42 | psiconv_mbm_file, |
| 43 | psiconv_sketch_file, |
43 | psiconv_sketch_file, |
| 44 | psiconv_clipart_file |
44 | psiconv_clipart_file, |
|
|
45 | psiconv_sheet_file |
| 45 | } psiconv_file_type_t; |
46 | } psiconv_file_type_t; |
| 46 | |
47 | |
| 47 | /* Length indicators */ |
48 | /* Length indicators */ |
| 48 | typedef psiconv_u32 psiconv_S_t; |
49 | typedef psiconv_u32 psiconv_S_t; |
| 49 | typedef psiconv_u32 psiconv_X_t; |
50 | typedef psiconv_u32 psiconv_X_t; |
| … | |
… | |
| 60 | typedef enum psiconv_bool |
61 | typedef enum psiconv_bool |
| 61 | { |
62 | { |
| 62 | psiconv_bool_false, |
63 | psiconv_bool_false, |
| 63 | psiconv_bool_true |
64 | psiconv_bool_true |
| 64 | } psiconv_bool_t; |
65 | } psiconv_bool_t; |
|
|
66 | |
|
|
67 | typedef enum psiconv_triple |
|
|
68 | { |
|
|
69 | psiconv_triple_on, |
|
|
70 | psiconv_triple_off, |
|
|
71 | psiconv_triple_auto |
|
|
72 | } psiconv_triple_t; |
| 65 | |
73 | |
| 66 | typedef enum psiconv_super_sub |
74 | typedef enum psiconv_super_sub |
| 67 | { psiconv_normalscript, |
75 | { psiconv_normalscript, |
| 68 | psiconv_superscript, |
76 | psiconv_superscript, |
| 69 | psiconv_subscript |
77 | psiconv_subscript |
| … | |
… | |
| 395 | typedef struct psiconv_clipart_f_s |
403 | typedef struct psiconv_clipart_f_s |
| 396 | { |
404 | { |
| 397 | psiconv_cliparts sections; |
405 | psiconv_cliparts sections; |
| 398 | } *psiconv_clipart_f; |
406 | } *psiconv_clipart_f; |
| 399 | |
407 | |
|
|
408 | typedef struct psiconv_sheet_status_section_s |
|
|
409 | { |
|
|
410 | psiconv_bool_t show_graph; |
|
|
411 | psiconv_u32 cursor_row; |
|
|
412 | psiconv_u32 cursor_column; |
|
|
413 | psiconv_bool_t show_top_sheet_toolbar; |
|
|
414 | psiconv_bool_t show_side_sheet_toolbar; |
|
|
415 | psiconv_bool_t show_top_graph_toolbar; |
|
|
416 | psiconv_bool_t show_side_graph_toolbar; |
|
|
417 | psiconv_u32 sheet_display_size; |
|
|
418 | psiconv_u32 graph_display_size; |
|
|
419 | psiconv_triple_t show_horizontal_scrollbar; |
|
|
420 | psiconv_triple_t show_vertical_scrollbar; |
|
|
421 | } *psiconv_sheet_status_section; |
|
|
422 | |
|
|
423 | typedef struct psiconv_sheet_f_s |
|
|
424 | { |
|
|
425 | psiconv_page_layout_section page_sec; |
|
|
426 | psiconv_sheet_status_section status_sec; |
|
|
427 | } *psiconv_sheet_f; |
|
|
428 | |
| 400 | typedef struct psiconv_file_s |
429 | typedef struct psiconv_file_s |
| 401 | { |
430 | { |
| 402 | psiconv_file_type_t type; |
431 | psiconv_file_type_t type; |
| 403 | void *file; |
432 | void *file; |
| 404 | } *psiconv_file; |
433 | } *psiconv_file; |
| … | |
… | |
| 412 | #define PSICONV_ID_MBM_FILE 0x10000042 |
441 | #define PSICONV_ID_MBM_FILE 0x10000042 |
| 413 | /* UID3 */ |
442 | /* UID3 */ |
| 414 | #define PSICONV_ID_WORD 0x1000007F |
443 | #define PSICONV_ID_WORD 0x1000007F |
| 415 | #define PSICONV_ID_TEXTED 0x10000085 |
444 | #define PSICONV_ID_TEXTED 0x10000085 |
| 416 | #define PSICONV_ID_SKETCH 0x1000007D |
445 | #define PSICONV_ID_SKETCH 0x1000007D |
|
|
446 | #define PSICONV_ID_SHEET 0x10000088 |
| 417 | |
447 | |
| 418 | /* Section table ids */ |
448 | /* Section table ids */ |
| 419 | #define PSICONV_ID_WORD_STATUS_SECTION 0x10000243 |
449 | #define PSICONV_ID_WORD_STATUS_SECTION 0x10000243 |
| 420 | #define PSICONV_ID_APPL_ID_SECTION 0x10000089 |
450 | #define PSICONV_ID_APPL_ID_SECTION 0x10000089 |
| 421 | #define PSICONV_ID_TEXT_SECTION 0x10000106 |
451 | #define PSICONV_ID_TEXT_SECTION 0x10000106 |
| 422 | #define PSICONV_ID_LAYOUT_SECTION 0x10000143 |
452 | #define PSICONV_ID_LAYOUT_SECTION 0x10000143 |
| 423 | #define PSICONV_ID_WORD_STYLES_SECTION 0x10000104 |
453 | #define PSICONV_ID_WORD_STYLES_SECTION 0x10000104 |
| 424 | #define PSICONV_ID_PAGE_LAYOUT_SECTION 0x10000105 |
454 | #define PSICONV_ID_PAGE_LAYOUT_SECTION 0x10000105 |
| 425 | #define PSICONV_ID_PASSWORD_SECTION 0x100000CD |
455 | #define PSICONV_ID_PASSWORD_SECTION 0x100000CD |
| 426 | #define PSICONV_ID_SKETCH_SECTION 0x1000007D |
456 | #define PSICONV_ID_SKETCH_SECTION 0x1000007D |
|
|
457 | #define PSICONV_ID_SHEET_STATUS_SECTION 0x1000011F |
| 427 | |
458 | |
| 428 | /* Other ids */ |
459 | /* Other ids */ |
| 429 | #define PSICONV_ID_PAGE_DIMENSIONS1 0x100000fd |
460 | #define PSICONV_ID_PAGE_DIMENSIONS1 0x100000fd |
| 430 | #define PSICONV_ID_PAGE_DIMENSIONS2 0x1000010e |
461 | #define PSICONV_ID_PAGE_DIMENSIONS2 0x1000010e |
| 431 | #define PSICONV_ID_TEXTED_BODY 0x1000005c |
462 | #define PSICONV_ID_TEXTED_BODY 0x1000005c |
| … | |
… | |
| 466 | extern void psiconv_free_paragraph_layout(psiconv_paragraph_layout layout); |
497 | extern void psiconv_free_paragraph_layout(psiconv_paragraph_layout layout); |
| 467 | extern void psiconv_free_character_layout(psiconv_character_layout layout); |
498 | extern void psiconv_free_character_layout(psiconv_character_layout layout); |
| 468 | extern void psiconv_free_word_style(psiconv_word_style style); |
499 | extern void psiconv_free_word_style(psiconv_word_style style); |
| 469 | extern void psiconv_free_word_styles_section |
500 | extern void psiconv_free_word_styles_section |
| 470 | (psiconv_word_styles_section styles); |
501 | (psiconv_word_styles_section styles); |
|
|
502 | extern void psiconv_free_sheet_status_section |
|
|
503 | (psiconv_sheet_status_section section); |
|
|
504 | extern void psiconv_free_sheet_f(psiconv_sheet_f file); |
| 471 | extern void psiconv_free_header_section(psiconv_header_section header); |
505 | extern void psiconv_free_header_section(psiconv_header_section header); |
| 472 | extern void psiconv_free_section_table_entry(psiconv_section_table_entry entry); |
506 | extern void psiconv_free_section_table_entry(psiconv_section_table_entry entry); |
| 473 | extern void psiconv_free_section_table_section |
507 | extern void psiconv_free_section_table_section |
| 474 | (psiconv_section_table_section section); |
508 | (psiconv_section_table_section section); |
| 475 | extern void psiconv_free_application_id_section |
509 | extern void psiconv_free_application_id_section |