/[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 87 Revision 94
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 */
48typedef psiconv_u32 psiconv_S_t; 49typedef psiconv_u32 psiconv_S_t;
49typedef psiconv_u32 psiconv_X_t; 50typedef psiconv_u32 psiconv_X_t;
60typedef enum psiconv_bool 61typedef 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
67typedef enum psiconv_triple
68{
69 psiconv_triple_on,
70 psiconv_triple_off,
71 psiconv_triple_auto
72} psiconv_triple_t;
65 73
66typedef enum psiconv_super_sub 74typedef enum psiconv_super_sub
67{ psiconv_normalscript, 75{ psiconv_normalscript,
68 psiconv_superscript, 76 psiconv_superscript,
69 psiconv_subscript 77 psiconv_subscript
90 psiconv_border_dashed, 98 psiconv_border_dashed,
91 psiconv_border_dotdashed, 99 psiconv_border_dotdashed,
92 psiconv_border_dotdotdashed 100 psiconv_border_dotdotdashed
93} psiconv_border_kind_t; 101} psiconv_border_kind_t;
94 102
103typedef enum psiconv_screenfont
104{
105 psiconv_font_misc,
106 psiconv_font_sansserif,
107 psiconv_font_nonprop,
108 psiconv_font_serif
109} psiconv_screenfont_t;
110
95/* Colors. 111/* Colors.
96 black: 0x00 0x00 0x00 112 black: 0x00 0x00 0x00
97 white: 0xff 0xff 0xff */ 113 white: 0xff 0xff 0xff */
98typedef struct psiconv_color_s 114typedef struct psiconv_color_s
99{ 115{
103} * psiconv_color; 119} * psiconv_color;
104 120
105typedef struct psiconv_font_s 121typedef struct psiconv_font_s
106{ 122{
107 char *name; 123 char *name;
108 psiconv_u8 screenfont; 124 psiconv_screenfont_t screenfont;
109} *psiconv_font; 125} *psiconv_font;
110 126
111typedef struct psiconv_border_s 127typedef struct psiconv_border_s
112{ 128{
113 psiconv_border_kind_t kind; 129 psiconv_border_kind_t kind;
387typedef struct psiconv_clipart_f_s 403typedef struct psiconv_clipart_f_s
388{ 404{
389 psiconv_cliparts sections; 405 psiconv_cliparts sections;
390} *psiconv_clipart_f; 406} *psiconv_clipart_f;
391 407
408typedef 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
423typedef 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
392typedef struct psiconv_file_s 429typedef struct psiconv_file_s
393{ 430{
394 psiconv_file_type_t type; 431 psiconv_file_type_t type;
395 void *file; 432 void *file;
396} *psiconv_file; 433} *psiconv_file;
404#define PSICONV_ID_MBM_FILE 0x10000042 441#define PSICONV_ID_MBM_FILE 0x10000042
405/* UID3 */ 442/* UID3 */
406#define PSICONV_ID_WORD 0x1000007F 443#define PSICONV_ID_WORD 0x1000007F
407#define PSICONV_ID_TEXTED 0x10000085 444#define PSICONV_ID_TEXTED 0x10000085
408#define PSICONV_ID_SKETCH 0x1000007D 445#define PSICONV_ID_SKETCH 0x1000007D
446#define PSICONV_ID_SHEET 0x10000088
409 447
410/* Section table ids */ 448/* Section table ids */
411#define PSICONV_ID_WORD_STATUS_SECTION 0x10000243 449#define PSICONV_ID_WORD_STATUS_SECTION 0x10000243
412#define PSICONV_ID_APPL_ID_SECTION 0x10000089 450#define PSICONV_ID_APPL_ID_SECTION 0x10000089
413#define PSICONV_ID_TEXT_SECTION 0x10000106 451#define PSICONV_ID_TEXT_SECTION 0x10000106
414#define PSICONV_ID_LAYOUT_SECTION 0x10000143 452#define PSICONV_ID_LAYOUT_SECTION 0x10000143
415#define PSICONV_ID_WORD_STYLES_SECTION 0x10000104 453#define PSICONV_ID_WORD_STYLES_SECTION 0x10000104
416#define PSICONV_ID_PAGE_LAYOUT_SECTION 0x10000105 454#define PSICONV_ID_PAGE_LAYOUT_SECTION 0x10000105
417#define PSICONV_ID_PASSWORD_SECTION 0x100000CD 455#define PSICONV_ID_PASSWORD_SECTION 0x100000CD
418#define PSICONV_ID_SKETCH_SECTION 0x1000007D 456#define PSICONV_ID_SKETCH_SECTION 0x1000007D
457#define PSICONV_ID_SHEET_STATUS_SECTION 0x1000011F
419 458
420/* Other ids */ 459/* Other ids */
421#define PSICONV_ID_PAGE_DIMENSIONS1 0x100000fd 460#define PSICONV_ID_PAGE_DIMENSIONS1 0x100000fd
422#define PSICONV_ID_PAGE_DIMENSIONS2 0x1000010e 461#define PSICONV_ID_PAGE_DIMENSIONS2 0x1000010e
423#define PSICONV_ID_TEXTED_BODY 0x1000005c 462#define PSICONV_ID_TEXTED_BODY 0x1000005c
458extern void psiconv_free_paragraph_layout(psiconv_paragraph_layout layout); 497extern void psiconv_free_paragraph_layout(psiconv_paragraph_layout layout);
459extern void psiconv_free_character_layout(psiconv_character_layout layout); 498extern void psiconv_free_character_layout(psiconv_character_layout layout);
460extern void psiconv_free_word_style(psiconv_word_style style); 499extern void psiconv_free_word_style(psiconv_word_style style);
461extern void psiconv_free_word_styles_section 500extern void psiconv_free_word_styles_section
462 (psiconv_word_styles_section styles); 501 (psiconv_word_styles_section styles);
502extern void psiconv_free_sheet_status_section
503 (psiconv_sheet_status_section section);
504extern void psiconv_free_sheet_f(psiconv_sheet_f file);
463extern void psiconv_free_header_section(psiconv_header_section header); 505extern void psiconv_free_header_section(psiconv_header_section header);
464extern void psiconv_free_section_table_entry(psiconv_section_table_entry entry); 506extern void psiconv_free_section_table_entry(psiconv_section_table_entry entry);
465extern void psiconv_free_section_table_section 507extern void psiconv_free_section_table_section
466 (psiconv_section_table_section section); 508 (psiconv_section_table_section section);
467extern void psiconv_free_application_id_section 509extern void psiconv_free_application_id_section

Legend:
Removed from v.87  
changed lines
  Added in v.94

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