… | |
… | |
52 | /* Length indicators */ |
52 | /* Length indicators */ |
53 | typedef psiconv_u32 psiconv_S_t; |
53 | typedef psiconv_u32 psiconv_S_t; |
54 | typedef psiconv_u32 psiconv_X_t; |
54 | typedef psiconv_u32 psiconv_X_t; |
55 | |
55 | |
56 | /* A string */ |
56 | /* A string */ |
57 | typedef char *psiconv_string_t; |
57 | typedef psiconv_ucs2 *psiconv_string_t; |
58 | |
58 | |
59 | /* In the Psion file, these are identical; but we translate them to more |
59 | /* In the Psion file, these are identical; but we translate them to more |
60 | human-readable quantities */ |
60 | human-readable quantities */ |
61 | typedef float psiconv_length_t; /* For offsets in centimeters */ |
61 | typedef float psiconv_length_t; /* For offsets in centimeters */ |
62 | typedef float psiconv_size_t; /* For sizes in points */ |
62 | typedef float psiconv_size_t; /* For sizes in points */ |
… | |
… | |
122 | psiconv_u8 blue; |
122 | psiconv_u8 blue; |
123 | } * psiconv_color; |
123 | } * psiconv_color; |
124 | |
124 | |
125 | typedef struct psiconv_font_s |
125 | typedef struct psiconv_font_s |
126 | { |
126 | { |
127 | char *name; |
127 | psiconv_string_t name; |
128 | psiconv_screenfont_t screenfont; |
128 | psiconv_screenfont_t screenfont; |
129 | } *psiconv_font; |
129 | } *psiconv_font; |
130 | |
130 | |
131 | typedef struct psiconv_border_s |
131 | typedef struct psiconv_border_s |
132 | { |
132 | { |
… | |
… | |
137 | |
137 | |
138 | typedef struct psiconv_bullet_s |
138 | typedef struct psiconv_bullet_s |
139 | { |
139 | { |
140 | psiconv_bool_t on; |
140 | psiconv_bool_t on; |
141 | psiconv_size_t font_size; |
141 | psiconv_size_t font_size; |
142 | psiconv_u8 character; |
142 | psiconv_ucs2 character; |
143 | psiconv_bool_t indent; |
143 | psiconv_bool_t indent; |
144 | psiconv_color color; |
144 | psiconv_color color; |
145 | psiconv_font font; |
145 | psiconv_font font; |
146 | } *psiconv_bullet; |
146 | } *psiconv_bullet; |
147 | |
147 | |
… | |
… | |
281 | |
281 | |
282 | typedef psiconv_list psiconv_replacements; /* of struct replacement */ |
282 | typedef psiconv_list psiconv_replacements; /* of struct replacement */ |
283 | |
283 | |
284 | typedef struct psiconv_paragraph_s |
284 | typedef struct psiconv_paragraph_s |
285 | { |
285 | { |
286 | char *text; |
286 | psiconv_string_t text; |
287 | psiconv_character_layout base_character; |
287 | psiconv_character_layout base_character; |
288 | psiconv_paragraph_layout base_paragraph; |
288 | psiconv_paragraph_layout base_paragraph; |
289 | psiconv_s16 base_style; |
289 | psiconv_s16 base_style; |
290 | psiconv_in_line_layouts in_lines; |
290 | psiconv_in_line_layouts in_lines; |
291 | psiconv_replacements replacements; |
291 | psiconv_replacements replacements; |
… | |
… | |
531 | psiconv_u16 row; |
531 | psiconv_u16 row; |
532 | psiconv_cell_type_t type; |
532 | psiconv_cell_type_t type; |
533 | union { |
533 | union { |
534 | psiconv_u32 dat_int; |
534 | psiconv_u32 dat_int; |
535 | double dat_float; |
535 | double dat_float; |
536 | char *dat_string; |
536 | psiconv_string_t dat_string; |
537 | psiconv_bool_t dat_bool; |
537 | psiconv_bool_t dat_bool; |
538 | psiconv_sheet_errorcode_t dat_error; |
538 | psiconv_sheet_errorcode_t dat_error; |
539 | } data; |
539 | } data; |
540 | psiconv_sheet_cell_layout layout; |
540 | psiconv_sheet_cell_layout layout; |
541 | psiconv_bool_t calculated; |
541 | psiconv_bool_t calculated; |
… | |
… | |
703 | { |
703 | { |
704 | psiconv_formula_type_t type; |
704 | psiconv_formula_type_t type; |
705 | union { |
705 | union { |
706 | psiconv_u32 dat_int; |
706 | psiconv_u32 dat_int; |
707 | double dat_float; |
707 | double dat_float; |
708 | char *dat_string; |
708 | psiconv_string_t dat_string; |
709 | psiconv_sheet_cell_reference_t dat_cellref; |
709 | psiconv_sheet_cell_reference_t dat_cellref; |
710 | psiconv_sheet_cell_block_t dat_cellblock; |
710 | psiconv_sheet_cell_block_t dat_cellblock; |
711 | psiconv_formula_list fun_operands; |
711 | psiconv_formula_list fun_operands; |
712 | psiconv_u32 dat_variable; |
712 | psiconv_u32 dat_variable; |
713 | } data; |
713 | } data; |
… | |
… | |
781 | } psiconv_variable_type_t; |
781 | } psiconv_variable_type_t; |
782 | |
782 | |
783 | typedef struct psiconv_sheet_variable_s |
783 | typedef struct psiconv_sheet_variable_s |
784 | { |
784 | { |
785 | psiconv_u32 number; |
785 | psiconv_u32 number; |
786 | char *name; |
786 | psiconv_string_t name; |
787 | psiconv_variable_type_t type; |
787 | psiconv_variable_type_t type; |
788 | union { |
788 | union { |
789 | psiconv_s32 dat_int; |
789 | psiconv_s32 dat_int; |
790 | double dat_float; |
790 | double dat_float; |
791 | char *dat_string; |
791 | psiconv_string_t dat_string; |
792 | psiconv_sheet_cell_reference_t dat_cellref; |
792 | psiconv_sheet_cell_reference_t dat_cellref; |
793 | psiconv_sheet_cell_block_t dat_cellblock; |
793 | psiconv_sheet_cell_block_t dat_cellblock; |
794 | } data; |
794 | } data; |
795 | } *psiconv_sheet_variable; |
795 | } *psiconv_sheet_variable; |
796 | |
796 | |
797 | typedef psiconv_list psiconv_sheet_variable_list; |
797 | typedef psiconv_list psiconv_sheet_variable_list; |
798 | /* of struct psiconv_sheet_variable_s */ |
798 | /* of struct psiconv_sheet_variable_s */ |
799 | |
799 | |
800 | typedef struct psiconv_sheet_name_section_s |
800 | typedef struct psiconv_sheet_name_section_s |
801 | { |
801 | { |
802 | char *name; |
802 | psiconv_string_t name; |
803 | } *psiconv_sheet_name_section; |
803 | } *psiconv_sheet_name_section; |
804 | |
804 | |
805 | typedef struct psiconv_sheet_info_section_s |
805 | typedef struct psiconv_sheet_info_section_s |
806 | { |
806 | { |
807 | psiconv_bool_t auto_recalc; |
807 | psiconv_bool_t auto_recalc; |
… | |
… | |
936 | extern void psiconv_free_sheet_line(psiconv_sheet_line line); |
936 | extern void psiconv_free_sheet_line(psiconv_sheet_line line); |
937 | extern void psiconv_free_sheet_name_section(psiconv_sheet_name_section section); |
937 | extern void psiconv_free_sheet_name_section(psiconv_sheet_name_section section); |
938 | extern void psiconv_free_sheet_variable(psiconv_sheet_variable list); |
938 | extern void psiconv_free_sheet_variable(psiconv_sheet_variable list); |
939 | extern void psiconv_free_sheet_variable_list(psiconv_sheet_variable_list list); |
939 | extern void psiconv_free_sheet_variable_list(psiconv_sheet_variable_list list); |
940 | extern void psiconv_free_sheet_info_section(psiconv_sheet_info_section section); |
940 | extern void psiconv_free_sheet_info_section(psiconv_sheet_info_section section); |
|
|
941 | extern void psiconv_free_sheet_workbook_section |
|
|
942 | (psiconv_sheet_workbook_section section); |
941 | extern void psiconv_free_header_section(psiconv_header_section header); |
943 | extern void psiconv_free_header_section(psiconv_header_section header); |
942 | extern void psiconv_free_section_table_entry(psiconv_section_table_entry entry); |
944 | extern void psiconv_free_section_table_entry(psiconv_section_table_entry entry); |
943 | extern void psiconv_free_section_table_section |
945 | extern void psiconv_free_section_table_section |
944 | (psiconv_section_table_section section); |
946 | (psiconv_section_table_section section); |
945 | extern void psiconv_free_application_id_section |
947 | extern void psiconv_free_application_id_section |