… | |
… | |
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_workbook_section_s |
|
|
424 | { |
|
|
425 | int dummy; |
|
|
426 | } *psiconv_sheet_workbook_section; |
|
|
427 | |
|
|
428 | typedef struct psiconv_sheet_f_s |
|
|
429 | { |
|
|
430 | psiconv_page_layout_section page_sec; |
|
|
431 | psiconv_sheet_status_section status_sec; |
|
|
432 | psiconv_sheet_workbook_section workbook_sec; |
|
|
433 | } *psiconv_sheet_f; |
|
|
434 | |
400 | typedef struct psiconv_file_s |
435 | typedef struct psiconv_file_s |
401 | { |
436 | { |
402 | psiconv_file_type_t type; |
437 | psiconv_file_type_t type; |
403 | void *file; |
438 | void *file; |
404 | } *psiconv_file; |
439 | } *psiconv_file; |
… | |
… | |
412 | #define PSICONV_ID_MBM_FILE 0x10000042 |
447 | #define PSICONV_ID_MBM_FILE 0x10000042 |
413 | /* UID3 */ |
448 | /* UID3 */ |
414 | #define PSICONV_ID_WORD 0x1000007F |
449 | #define PSICONV_ID_WORD 0x1000007F |
415 | #define PSICONV_ID_TEXTED 0x10000085 |
450 | #define PSICONV_ID_TEXTED 0x10000085 |
416 | #define PSICONV_ID_SKETCH 0x1000007D |
451 | #define PSICONV_ID_SKETCH 0x1000007D |
|
|
452 | #define PSICONV_ID_SHEET 0x10000088 |
417 | |
453 | |
418 | /* Section table ids */ |
454 | /* Section table ids */ |
419 | #define PSICONV_ID_WORD_STATUS_SECTION 0x10000243 |
455 | #define PSICONV_ID_WORD_STATUS_SECTION 0x10000243 |
420 | #define PSICONV_ID_APPL_ID_SECTION 0x10000089 |
456 | #define PSICONV_ID_APPL_ID_SECTION 0x10000089 |
421 | #define PSICONV_ID_TEXT_SECTION 0x10000106 |
457 | #define PSICONV_ID_TEXT_SECTION 0x10000106 |
422 | #define PSICONV_ID_LAYOUT_SECTION 0x10000143 |
458 | #define PSICONV_ID_LAYOUT_SECTION 0x10000143 |
423 | #define PSICONV_ID_WORD_STYLES_SECTION 0x10000104 |
459 | #define PSICONV_ID_WORD_STYLES_SECTION 0x10000104 |
424 | #define PSICONV_ID_PAGE_LAYOUT_SECTION 0x10000105 |
460 | #define PSICONV_ID_PAGE_LAYOUT_SECTION 0x10000105 |
425 | #define PSICONV_ID_PASSWORD_SECTION 0x100000CD |
461 | #define PSICONV_ID_PASSWORD_SECTION 0x100000CD |
426 | #define PSICONV_ID_SKETCH_SECTION 0x1000007D |
462 | #define PSICONV_ID_SKETCH_SECTION 0x1000007D |
|
|
463 | #define PSICONV_ID_SHEET_STATUS_SECTION 0x1000011F |
|
|
464 | #define PSICONV_ID_SHEET_WORKBOOK_SECTION 0x1000011D |
427 | |
465 | |
428 | /* Other ids */ |
466 | /* Other ids */ |
429 | #define PSICONV_ID_PAGE_DIMENSIONS1 0x100000fd |
467 | #define PSICONV_ID_PAGE_DIMENSIONS1 0x100000fd |
430 | #define PSICONV_ID_PAGE_DIMENSIONS2 0x1000010e |
468 | #define PSICONV_ID_PAGE_DIMENSIONS2 0x1000010e |
431 | #define PSICONV_ID_TEXTED_BODY 0x1000005c |
469 | #define PSICONV_ID_TEXTED_BODY 0x1000005c |
… | |
… | |
466 | extern void psiconv_free_paragraph_layout(psiconv_paragraph_layout layout); |
504 | extern void psiconv_free_paragraph_layout(psiconv_paragraph_layout layout); |
467 | extern void psiconv_free_character_layout(psiconv_character_layout layout); |
505 | extern void psiconv_free_character_layout(psiconv_character_layout layout); |
468 | extern void psiconv_free_word_style(psiconv_word_style style); |
506 | extern void psiconv_free_word_style(psiconv_word_style style); |
469 | extern void psiconv_free_word_styles_section |
507 | extern void psiconv_free_word_styles_section |
470 | (psiconv_word_styles_section styles); |
508 | (psiconv_word_styles_section styles); |
|
|
509 | extern void psiconv_free_sheet_status_section |
|
|
510 | (psiconv_sheet_status_section section); |
|
|
511 | extern void psiconv_free_sheet_status_section |
|
|
512 | (psiconv_sheet_status_section section); |
|
|
513 | extern void psiconv_free_sheet_f(psiconv_sheet_f file); |
471 | extern void psiconv_free_header_section(psiconv_header_section header); |
514 | extern void psiconv_free_header_section(psiconv_header_section header); |
472 | extern void psiconv_free_section_table_entry(psiconv_section_table_entry entry); |
515 | extern void psiconv_free_section_table_entry(psiconv_section_table_entry entry); |
473 | extern void psiconv_free_section_table_section |
516 | extern void psiconv_free_section_table_section |
474 | (psiconv_section_table_section section); |
517 | (psiconv_section_table_section section); |
475 | extern void psiconv_free_application_id_section |
518 | extern void psiconv_free_application_id_section |