/[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 163 Revision 183
32 32
33#ifdef __cplusplus 33#ifdef __cplusplus
34extern "C" { 34extern "C" {
35#endif /* __cplusplus */ 35#endif /* __cplusplus */
36 36
37/* Forward declaration (for psiconv_object) */ 37/* Forward declaration (for psiconv_embedded_object_section) */
38typedef struct psiconv_file_s *psiconv_file; 38typedef struct psiconv_file_s *psiconv_file;
39 39
40typedef double psiconv_float_t; 40typedef double psiconv_float_t;
41 41
42typedef enum psiconv_file_type { 42typedef enum psiconv_file_type {
122 psiconv_u8 blue; 122 psiconv_u8 blue;
123} * psiconv_color; 123} * psiconv_color;
124 124
125typedef struct psiconv_font_s 125typedef 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
131typedef struct psiconv_border_s 131typedef struct psiconv_border_s
132{ 132{
242 psiconv_bool_t show_icon; 242 psiconv_bool_t show_icon;
243 psiconv_length_t width; 243 psiconv_length_t width;
244 psiconv_length_t height; 244 psiconv_length_t height;
245} *psiconv_object_display_section; 245} *psiconv_object_display_section;
246 246
247typedef struct psiconv_object_s 247typedef struct psiconv_embedded_object_section_s
248{ 248{
249 psiconv_object_icon_section icon; 249 psiconv_object_icon_section icon;
250 psiconv_object_display_section display; 250 psiconv_object_display_section display;
251 psiconv_file object; 251 psiconv_file object;
252} *psiconv_object; 252} *psiconv_embedded_object_section;
253 253
254typedef struct psiconv_in_line_layout_s 254typedef struct psiconv_in_line_layout_s
255{ 255{
256 psiconv_character_layout layout; 256 psiconv_character_layout layout;
257 int length; 257 int length;
258 /* If object is NULL, this does not apply to an object */ 258 /* If object is NULL, this does not apply to an object */
259 psiconv_object object; 259 psiconv_embedded_object_section object;
260 psiconv_length_t object_width; 260 psiconv_length_t object_width;
261 psiconv_length_t object_height; 261 psiconv_length_t object_height;
262} *psiconv_in_line_layout; 262} *psiconv_in_line_layout;
263 263
264typedef psiconv_list psiconv_in_line_layouts; /* of struct in_line_layout */ 264typedef psiconv_list psiconv_in_line_layouts; /* of struct in_line_layout */
281 281
282typedef psiconv_list psiconv_replacements; /* of struct replacement */ 282typedef psiconv_list psiconv_replacements; /* of struct replacement */
283 283
284typedef struct psiconv_paragraph_s 284typedef 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
783typedef struct psiconv_sheet_variable_s 783typedef 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
797typedef psiconv_list psiconv_sheet_variable_list; 797typedef psiconv_list psiconv_sheet_variable_list;
798 /* of struct psiconv_sheet_variable_s */ 798 /* of struct psiconv_sheet_variable_s */
799 799
800typedef struct psiconv_sheet_name_section_s 800typedef 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
805typedef struct psiconv_sheet_info_section_s 805typedef struct psiconv_sheet_info_section_s
806{ 806{
807 psiconv_bool_t auto_recalc; 807 psiconv_bool_t auto_recalc;
936extern void psiconv_free_sheet_line(psiconv_sheet_line line); 936extern void psiconv_free_sheet_line(psiconv_sheet_line line);
937extern void psiconv_free_sheet_name_section(psiconv_sheet_name_section section); 937extern void psiconv_free_sheet_name_section(psiconv_sheet_name_section section);
938extern void psiconv_free_sheet_variable(psiconv_sheet_variable list); 938extern void psiconv_free_sheet_variable(psiconv_sheet_variable list);
939extern void psiconv_free_sheet_variable_list(psiconv_sheet_variable_list list); 939extern void psiconv_free_sheet_variable_list(psiconv_sheet_variable_list list);
940extern void psiconv_free_sheet_info_section(psiconv_sheet_info_section section); 940extern void psiconv_free_sheet_info_section(psiconv_sheet_info_section section);
941extern void psiconv_free_sheet_workbook_section
942 (psiconv_sheet_workbook_section section);
941extern void psiconv_free_header_section(psiconv_header_section header); 943extern void psiconv_free_header_section(psiconv_header_section header);
942extern void psiconv_free_section_table_entry(psiconv_section_table_entry entry); 944extern void psiconv_free_section_table_entry(psiconv_section_table_entry entry);
943extern void psiconv_free_section_table_section 945extern void psiconv_free_section_table_section
944 (psiconv_section_table_section section); 946 (psiconv_section_table_section section);
945extern void psiconv_free_application_id_section 947extern void psiconv_free_application_id_section
946 (psiconv_application_id_section section); 948 (psiconv_application_id_section section);
947extern void psiconv_free_object_display_section 949extern void psiconv_free_object_display_section
948 (psiconv_object_display_section section); 950 (psiconv_object_display_section section);
949extern void psiconv_free_object_icon_section 951extern void psiconv_free_object_icon_section
950 (psiconv_object_icon_section section); 952 (psiconv_object_icon_section section);
951extern void psiconv_free_object(psiconv_object object); 953extern void psiconv_free_embedded_object_section
954 (psiconv_embedded_object_section object);
952extern void psiconv_free_in_line_layout(psiconv_in_line_layout layout); 955extern void psiconv_free_in_line_layout(psiconv_in_line_layout layout);
953extern void psiconv_free_in_line_layouts(psiconv_in_line_layouts layouts); 956extern void psiconv_free_in_line_layouts(psiconv_in_line_layouts layouts);
954extern void psiconv_free_replacement(psiconv_replacement replacement); 957extern void psiconv_free_replacement(psiconv_replacement replacement);
955extern void psiconv_free_replacements(psiconv_replacements replacements); 958extern void psiconv_free_replacements(psiconv_replacements replacements);
956extern void psiconv_free_paragraph(psiconv_paragraph paragraph); 959extern void psiconv_free_paragraph(psiconv_paragraph paragraph);

Legend:
Removed from v.163  
changed lines
  Added in v.183

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