… | |
… | |
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; |
514 | |
514 | |
515 | typedef psiconv_list psiconv_sheet_cell_list; |
515 | typedef psiconv_list psiconv_sheet_cell_list; |
516 | /* Of struct psiconv_sheet_cell_s */ |
|
|
517 | |
516 | |
518 | typedef struct psiconv_sheet_status_section_s |
517 | typedef struct psiconv_sheet_status_section_s |
519 | { |
518 | { |
520 | psiconv_bool_t show_graph; |
519 | psiconv_bool_t show_graph; |
521 | psiconv_u32 cursor_row; |
520 | psiconv_u32 cursor_row; |
… | |
… | |
678 | double dat_float; |
677 | double dat_float; |
679 | char *dat_string; |
678 | char *dat_string; |
680 | psiconv_sheet_cell_reference_t dat_cellref; |
679 | psiconv_sheet_cell_reference_t dat_cellref; |
681 | psiconv_sheet_cell_block_t dat_cellblock; |
680 | psiconv_sheet_cell_block_t dat_cellblock; |
682 | psiconv_formula_list fun_operands; |
681 | psiconv_formula_list fun_operands; |
|
|
682 | psiconv_u32 dat_variable; |
683 | } data; |
683 | } data; |
684 | } *psiconv_formula; |
684 | } *psiconv_formula; |
|
|
685 | |
|
|
686 | typedef struct psiconv_sheet_line_s |
|
|
687 | { |
|
|
688 | psiconv_u32 position; |
|
|
689 | psiconv_sheet_cell_layout layout; |
|
|
690 | } *psiconv_sheet_line; |
|
|
691 | |
|
|
692 | typedef psiconv_list psiconv_sheet_line_list; |
|
|
693 | /* Of struct psiconv_sheet_line_s */ |
685 | |
694 | |
686 | typedef struct psiconv_sheet_worksheet_s |
695 | typedef struct psiconv_sheet_worksheet_s |
687 | { |
696 | { |
688 | psiconv_sheet_cell_layout default_layout; |
697 | psiconv_sheet_cell_layout default_layout; |
689 | psiconv_sheet_cell_list cells; |
698 | psiconv_sheet_cell_list cells; |
690 | psiconv_bool_t show_zeros; |
699 | psiconv_bool_t show_zeros; |
|
|
700 | psiconv_sheet_line_list row_default_layouts; |
|
|
701 | psiconv_sheet_line_list col_default_layouts; |
691 | } *psiconv_sheet_worksheet; |
702 | } *psiconv_sheet_worksheet; |
692 | |
703 | |
693 | typedef psiconv_list psiconv_sheet_worksheet_list; |
704 | typedef psiconv_list psiconv_sheet_worksheet_list; |
694 | /* 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; |
695 | |
742 | |
696 | typedef struct psiconv_sheet_workbook_section_s |
743 | typedef struct psiconv_sheet_workbook_section_s |
697 | { |
744 | { |
698 | psiconv_formula_list formulas; |
745 | psiconv_formula_list formulas; |
699 | 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; |
700 | } *psiconv_sheet_workbook_section; |
750 | } *psiconv_sheet_workbook_section; |
701 | |
751 | |
702 | typedef struct psiconv_sheet_f_s |
752 | typedef struct psiconv_sheet_f_s |
703 | { |
753 | { |
704 | psiconv_page_layout_section page_sec; |
754 | psiconv_page_layout_section page_sec; |
… | |
… | |
767 | extern psiconv_character_layout psiconv_clone_character_layout |
817 | extern psiconv_character_layout psiconv_clone_character_layout |
768 | (psiconv_character_layout ls); |
818 | (psiconv_character_layout ls); |
769 | |
819 | |
770 | /* Get a numbered style. Returns NULL if the style is unknown. */ |
820 | /* Get a numbered style. Returns NULL if the style is unknown. */ |
771 | extern psiconv_word_style psiconv_get_style (psiconv_word_styles_section ss, int nr); |
821 | extern psiconv_word_style psiconv_get_style (psiconv_word_styles_section ss, int nr); |
|
|
822 | /* Get a numbered formula. Returns NULL if the style is unknown. */ |
772 | extern psiconv_formula psiconv_get_formula (psiconv_formula_list ss, int nr); |
823 | extern psiconv_formula psiconv_get_formula (psiconv_formula_list ss, int nr); |
|
|
824 | |
|
|
825 | /* Return the default layout */ |
|
|
826 | extern psiconv_sheet_cell_layout psiconv_get_default_layout |
|
|
827 | (psiconv_sheet_line_list row_defaults, |
|
|
828 | psiconv_sheet_line_list col_defaults, |
|
|
829 | psiconv_sheet_cell_layout cell_default, |
|
|
830 | int row,int col); |
773 | |
831 | |
774 | extern void psiconv_free_color(psiconv_color color); |
832 | extern void psiconv_free_color(psiconv_color color); |
775 | extern void psiconv_free_border(psiconv_border border); |
833 | extern void psiconv_free_border(psiconv_border border); |
776 | extern void psiconv_free_bullet(psiconv_bullet bullet); |
834 | extern void psiconv_free_bullet(psiconv_bullet bullet); |
777 | extern void psiconv_free_font(psiconv_font font); |
835 | extern void psiconv_free_font(psiconv_font font); |
… | |
… | |
794 | extern void psiconv_free_sheet_f(psiconv_sheet_f file); |
852 | extern void psiconv_free_sheet_f(psiconv_sheet_f file); |
795 | extern void psiconv_free_sheet_cell(psiconv_sheet_cell cell); |
853 | extern void psiconv_free_sheet_cell(psiconv_sheet_cell cell); |
796 | 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); |
797 | extern void psiconv_free_sheet_numberformat |
855 | extern void psiconv_free_sheet_numberformat |
798 | (psiconv_sheet_numberformat numberformat); |
856 | (psiconv_sheet_numberformat numberformat); |
|
|
857 | extern void psiconv_free_sheet_line_list(psiconv_sheet_line_list list); |
|
|
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); |
799 | extern void psiconv_free_header_section(psiconv_header_section header); |
863 | extern void psiconv_free_header_section(psiconv_header_section header); |
800 | 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); |
801 | extern void psiconv_free_section_table_section |
865 | extern void psiconv_free_section_table_section |
802 | (psiconv_section_table_section section); |
866 | (psiconv_section_table_section section); |
803 | extern void psiconv_free_application_id_section |
867 | extern void psiconv_free_application_id_section |