… | |
… | |
502 | psiconv_cell_type_t type; |
502 | psiconv_cell_type_t type; |
503 | union { |
503 | union { |
504 | psiconv_u32 dat_int; |
504 | psiconv_u32 dat_int; |
505 | double dat_float; |
505 | double dat_float; |
506 | char *dat_string; |
506 | char *dat_string; |
507 | psiconv_bool_t dat_bool; |
507 | psiconv_bool_t dat_bool; |
508 | psiconv_sheet_errorcode_t dat_error; |
508 | psiconv_sheet_errorcode_t dat_error; |
509 | } data; |
509 | } data; |
510 | psiconv_sheet_cell_layout layout; |
510 | psiconv_sheet_cell_layout layout; |
511 | psiconv_bool_t calculated; |
511 | psiconv_bool_t calculated; |
512 | psiconv_u32 ref_formula; |
512 | psiconv_u32 ref_formula; |
513 | } *psiconv_sheet_cell; |
513 | } *psiconv_sheet_cell; |
… | |
… | |
677 | double dat_float; |
677 | double dat_float; |
678 | char *dat_string; |
678 | char *dat_string; |
679 | psiconv_sheet_cell_reference_t dat_cellref; |
679 | psiconv_sheet_cell_reference_t dat_cellref; |
680 | psiconv_sheet_cell_block_t dat_cellblock; |
680 | psiconv_sheet_cell_block_t dat_cellblock; |
681 | psiconv_formula_list fun_operands; |
681 | psiconv_formula_list fun_operands; |
|
|
682 | psiconv_u32 dat_variable; |
682 | } data; |
683 | } data; |
683 | } *psiconv_formula; |
684 | } *psiconv_formula; |
684 | |
685 | |
685 | typedef struct psiconv_sheet_line_s |
686 | typedef struct psiconv_sheet_line_s |
686 | { |
687 | { |
… | |
… | |
699 | psiconv_sheet_line_list row_default_layouts; |
700 | psiconv_sheet_line_list row_default_layouts; |
700 | psiconv_sheet_line_list col_default_layouts; |
701 | psiconv_sheet_line_list col_default_layouts; |
701 | } *psiconv_sheet_worksheet; |
702 | } *psiconv_sheet_worksheet; |
702 | |
703 | |
703 | typedef psiconv_list psiconv_sheet_worksheet_list; |
704 | typedef psiconv_list psiconv_sheet_worksheet_list; |
704 | /* of struct psiconv_sheet_worksheet */ |
705 | /* of struct psiconv_sheet_worksheet_s */ |
|
|
706 | |
|
|
707 | typedef enum psiconv_variable_type |
|
|
708 | { |
|
|
709 | psiconv_var_int, |
|
|
710 | psiconv_var_float, |
|
|
711 | psiconv_var_string, |
|
|
712 | psiconv_var_cellref, |
|
|
713 | psiconv_var_cellblock |
|
|
714 | } psiconv_variable_type_t; |
|
|
715 | |
|
|
716 | typedef struct psiconv_sheet_variable_s |
|
|
717 | { |
|
|
718 | psiconv_u32 number; |
|
|
719 | char *name; |
|
|
720 | psiconv_variable_type_t type; |
|
|
721 | union { |
|
|
722 | psiconv_s32 dat_int; |
|
|
723 | double dat_float; |
|
|
724 | char *dat_string; |
|
|
725 | psiconv_sheet_cell_reference_t dat_cellref; |
|
|
726 | psiconv_sheet_cell_block_t dat_cellblock; |
|
|
727 | } data; |
|
|
728 | } *psiconv_sheet_variable; |
|
|
729 | |
|
|
730 | typedef psiconv_list psiconv_sheet_variable_list; |
|
|
731 | /* of struct psiconv_sheet_variable_s */ |
|
|
732 | |
|
|
733 | typedef struct psiconv_sheet_name_section_s |
|
|
734 | { |
|
|
735 | char *name; |
|
|
736 | } *psiconv_sheet_name_section; |
|
|
737 | |
|
|
738 | typedef struct psiconv_sheet_info_section_s |
|
|
739 | { |
|
|
740 | psiconv_bool_t auto_recalc; |
|
|
741 | } *psiconv_sheet_info_section; |
705 | |
742 | |
706 | typedef struct psiconv_sheet_workbook_section_s |
743 | typedef struct psiconv_sheet_workbook_section_s |
707 | { |
744 | { |
708 | psiconv_formula_list formulas; |
745 | psiconv_formula_list formulas; |
709 | psiconv_sheet_worksheet_list worksheets; |
746 | psiconv_sheet_worksheet_list worksheets; |
|
|
747 | psiconv_sheet_variable_list variables; |
|
|
748 | psiconv_sheet_info_section info; |
|
|
749 | psiconv_sheet_name_section name; |
710 | } *psiconv_sheet_workbook_section; |
750 | } *psiconv_sheet_workbook_section; |
711 | |
751 | |
712 | typedef struct psiconv_sheet_f_s |
752 | typedef struct psiconv_sheet_f_s |
713 | { |
753 | { |
714 | psiconv_page_layout_section page_sec; |
754 | psiconv_page_layout_section page_sec; |
… | |
… | |
814 | extern void psiconv_free_sheet_cell_list(psiconv_sheet_cell_list list); |
854 | extern void psiconv_free_sheet_cell_list(psiconv_sheet_cell_list list); |
815 | extern void psiconv_free_sheet_numberformat |
855 | extern void psiconv_free_sheet_numberformat |
816 | (psiconv_sheet_numberformat numberformat); |
856 | (psiconv_sheet_numberformat numberformat); |
817 | extern void psiconv_free_sheet_line_list(psiconv_sheet_line_list list); |
857 | extern void psiconv_free_sheet_line_list(psiconv_sheet_line_list list); |
818 | extern void psiconv_free_sheet_line(psiconv_sheet_line line); |
858 | extern void psiconv_free_sheet_line(psiconv_sheet_line line); |
|
|
859 | extern void psiconv_free_sheet_name_section(psiconv_sheet_name_section section); |
|
|
860 | extern void psiconv_free_sheet_variable(psiconv_sheet_variable list); |
|
|
861 | extern void psiconv_free_sheet_variable_list(psiconv_sheet_variable_list list); |
|
|
862 | extern void psiconv_free_sheet_info_section(psiconv_sheet_info_section section); |
819 | extern void psiconv_free_header_section(psiconv_header_section header); |
863 | extern void psiconv_free_header_section(psiconv_header_section header); |
820 | extern void psiconv_free_section_table_entry(psiconv_section_table_entry entry); |
864 | extern void psiconv_free_section_table_entry(psiconv_section_table_entry entry); |
821 | extern void psiconv_free_section_table_section |
865 | extern void psiconv_free_section_table_section |
822 | (psiconv_section_table_section section); |
866 | (psiconv_section_table_section section); |
823 | extern void psiconv_free_application_id_section |
867 | extern void psiconv_free_application_id_section |