--- psiconv/trunk/lib/psiconv/parse_routines.h 2000/12/22 22:31:50 71 +++ psiconv/trunk/lib/psiconv/parse_routines.h 2001/03/06 23:59:46 111 @@ -21,8 +21,9 @@ #define PSICONV_PARSE_ROUTINES_H #include -#include #include +#include +#include #ifdef __cplusplus extern "C" { @@ -53,11 +54,18 @@ extern psiconv_string_t psiconv_read_string(const psiconv_buffer buf,int lev, psiconv_u32 off,int *length, int *status); +extern psiconv_string_t psiconv_read_short_string(const psiconv_buffer buf, + int lev,psiconv_u32 off, + int *length,int *status); extern int psiconv_parse_bool(const psiconv_buffer buf, int lev, psiconv_u32 off, int *length, psiconv_bool_t *result); +extern psiconv_float_t psiconv_read_float(const psiconv_buffer buf, int lev, + psiconv_u32 off, int *length, int *status); + + /* ****************** * parse_layout.c * @@ -132,16 +140,16 @@ psiconv_text_and_layout *result); extern int psiconv_parse_styled_layout_section(const psiconv_buffer buf, - int lev,psiconv_u32 off, - int *length, - psiconv_text_and_layout result, - psiconv_word_styles_section styles); + int lev,psiconv_u32 off, + int *length, + psiconv_text_and_layout result, + const psiconv_word_styles_section styles); extern int psiconv_parse_styleless_layout_section(const psiconv_buffer buf, - int lev,psiconv_u32 off, - int *length, - psiconv_text_and_layout result, - psiconv_character_layout base_char, - psiconv_paragraph_layout base_para); + int lev,psiconv_u32 off, + int *length, + psiconv_text_and_layout result, + const psiconv_character_layout base_char, + const psiconv_paragraph_layout base_para); /* ****************** @@ -169,6 +177,53 @@ /* ***************** + * parse_sheet.c * + ***************** */ + +extern int psiconv_parse_sheet_status_section(const psiconv_buffer buf, int lev, + psiconv_u32 off, int *length, + psiconv_sheet_status_section *result); + +extern int psiconv_parse_sheet_formula_table(const psiconv_buffer buf, int lev, + psiconv_u32 off, int *length, + psiconv_formula_list *result); + +extern int psiconv_parse_formula(const psiconv_buffer buf, int lev, + psiconv_u32 off, int *length, + psiconv_formula *result); + +extern int psiconv_parse_sheet_workbook_section(const psiconv_buffer buf, + int lev, + psiconv_u32 off, int *length, + psiconv_sheet_workbook_section *result); +extern int psiconv_parse_sheet_cell(const psiconv_buffer buf, int lev, + psiconv_u32 off, int *length, + psiconv_sheet_cell *result); +extern int psiconv_parse_sheet_cell_list(const psiconv_buffer buf, int lev, + psiconv_u32 off, int *length, + psiconv_sheet_cell_list *result); +extern int psiconv_parse_sheet_worksheet_list( const psiconv_buffer buf, + int lev, + psiconv_u32 off, int *length, + psiconv_sheet_worksheet_list *result); +extern int psiconv_parse_sheet_worksheet(const psiconv_buffer buf, int lev, + psiconv_u32 off, int *length, + psiconv_sheet_worksheet *result); +extern int psiconv_parse_sheet_numberformat(const psiconv_buffer buf, int lev, + psiconv_u32 off, int *length, + psiconv_sheet_numberformat *result); +extern int psiconv_parse_sheet_cell_layout(const psiconv_buffer buf, int lev, + psiconv_u32 off, int *length, + psiconv_sheet_cell_layout *result); + + + + + + + + +/* ***************** * parse_image.c * ***************** */ @@ -209,6 +264,9 @@ extern int psiconv_parse_clipart_file(const psiconv_buffer buf,int lev, psiconv_u32 off, psiconv_clipart_f *result); +extern int psiconv_parse_sheet_file(const psiconv_buffer buf,int lev, + psiconv_u32 off, psiconv_sheet_f *result); + #ifdef __cplusplus } #endif /* __cplusplus */