… | |
… | |
19 | |
19 | |
20 | #ifndef PSICONV_PARSE_ROUTINES_H |
20 | #ifndef PSICONV_PARSE_ROUTINES_H |
21 | #define PSICONV_PARSE_ROUTINES_H |
21 | #define PSICONV_PARSE_ROUTINES_H |
22 | |
22 | |
23 | #include <psiconv/general.h> |
23 | #include <psiconv/general.h> |
|
|
24 | #include <psiconv/data.h> |
|
|
25 | #include <psiconv/buffer.h> |
24 | #include <psiconv/common.h> |
26 | #include <psiconv/common.h> |
25 | #include <psiconv/data.h> |
|
|
26 | |
27 | |
27 | #ifdef __cplusplus |
28 | #ifdef __cplusplus |
28 | extern "C" { |
29 | extern "C" { |
29 | #endif /* __cplusplus */ |
30 | #endif /* __cplusplus */ |
30 | |
31 | |
… | |
… | |
51 | psiconv_u32 off, int *length, |
52 | psiconv_u32 off, int *length, |
52 | int *status); |
53 | int *status); |
53 | extern psiconv_string_t psiconv_read_string(const psiconv_buffer buf,int lev, |
54 | extern psiconv_string_t psiconv_read_string(const psiconv_buffer buf,int lev, |
54 | psiconv_u32 off,int *length, |
55 | psiconv_u32 off,int *length, |
55 | int *status); |
56 | int *status); |
|
|
57 | extern psiconv_string_t psiconv_read_short_string(const psiconv_buffer buf, |
|
|
58 | int lev,psiconv_u32 off, |
|
|
59 | int *length,int *status); |
56 | |
60 | |
57 | extern int psiconv_parse_bool(const psiconv_buffer buf, int lev, |
61 | extern int psiconv_parse_bool(const psiconv_buffer buf, int lev, |
58 | psiconv_u32 off, int *length, |
62 | psiconv_u32 off, int *length, |
59 | psiconv_bool_t *result); |
63 | psiconv_bool_t *result); |
|
|
64 | |
|
|
65 | extern psiconv_float_t psiconv_read_float(const psiconv_buffer buf, int lev, |
|
|
66 | psiconv_u32 off, int *length, int *status); |
|
|
67 | |
60 | |
68 | |
61 | |
69 | |
62 | /* ****************** |
70 | /* ****************** |
63 | * parse_layout.c * |
71 | * parse_layout.c * |
64 | ****************** */ |
72 | ****************** */ |
… | |
… | |
130 | extern int psiconv_parse_text_section(const psiconv_buffer buf,int lev, |
138 | extern int psiconv_parse_text_section(const psiconv_buffer buf,int lev, |
131 | psiconv_u32 off, int *length, |
139 | psiconv_u32 off, int *length, |
132 | psiconv_text_and_layout *result); |
140 | psiconv_text_and_layout *result); |
133 | |
141 | |
134 | extern int psiconv_parse_styled_layout_section(const psiconv_buffer buf, |
142 | extern int psiconv_parse_styled_layout_section(const psiconv_buffer buf, |
135 | int lev,psiconv_u32 off, |
143 | int lev,psiconv_u32 off, |
136 | int *length, |
144 | int *length, |
137 | psiconv_text_and_layout result, |
145 | psiconv_text_and_layout result, |
138 | psiconv_word_styles_section styles); |
146 | const psiconv_word_styles_section styles); |
139 | extern int psiconv_parse_styleless_layout_section(const psiconv_buffer buf, |
147 | extern int psiconv_parse_styleless_layout_section(const psiconv_buffer buf, |
140 | int lev,psiconv_u32 off, |
148 | int lev,psiconv_u32 off, |
141 | int *length, |
149 | int *length, |
142 | psiconv_text_and_layout result, |
150 | psiconv_text_and_layout result, |
143 | psiconv_character_layout base_char, |
151 | const psiconv_character_layout base_char, |
144 | psiconv_paragraph_layout base_para); |
152 | const psiconv_paragraph_layout base_para); |
145 | |
153 | |
146 | |
154 | |
147 | /* ****************** |
155 | /* ****************** |
148 | * parse_texted.c * |
156 | * parse_texted.c * |
149 | ****************** */ |
157 | ****************** */ |
… | |
… | |
164 | psiconv_word_status_section *result); |
172 | psiconv_word_status_section *result); |
165 | |
173 | |
166 | extern int psiconv_parse_word_styles_section(const psiconv_buffer buf, int lev, |
174 | extern int psiconv_parse_word_styles_section(const psiconv_buffer buf, int lev, |
167 | psiconv_u32 off, int *length, |
175 | psiconv_u32 off, int *length, |
168 | psiconv_word_styles_section *result); |
176 | psiconv_word_styles_section *result); |
|
|
177 | |
|
|
178 | |
|
|
179 | /* ***************** |
|
|
180 | * parse_sheet.c * |
|
|
181 | ***************** */ |
|
|
182 | |
|
|
183 | extern int psiconv_parse_sheet_status_section(const psiconv_buffer buf, int lev, |
|
|
184 | psiconv_u32 off, int *length, |
|
|
185 | psiconv_sheet_status_section *result); |
|
|
186 | |
|
|
187 | extern int psiconv_parse_sheet_formula_table(const psiconv_buffer buf, int lev, |
|
|
188 | psiconv_u32 off, int *length, |
|
|
189 | psiconv_formula_list *result); |
|
|
190 | |
|
|
191 | extern int psiconv_parse_formula(const psiconv_buffer buf, int lev, |
|
|
192 | psiconv_u32 off, int *length, |
|
|
193 | psiconv_formula *result); |
|
|
194 | |
|
|
195 | extern int psiconv_parse_sheet_workbook_section(const psiconv_buffer buf, |
|
|
196 | int lev, |
|
|
197 | psiconv_u32 off, int *length, |
|
|
198 | psiconv_sheet_workbook_section *result); |
169 | |
199 | |
170 | |
200 | |
171 | /* ***************** |
201 | /* ***************** |
172 | * parse_image.c * |
202 | * parse_image.c * |
173 | ***************** */ |
203 | ***************** */ |
… | |
… | |
207 | extern int psiconv_parse_sketch_file(const psiconv_buffer buf,int lev, |
237 | extern int psiconv_parse_sketch_file(const psiconv_buffer buf,int lev, |
208 | psiconv_u32 off, psiconv_sketch_f *result); |
238 | psiconv_u32 off, psiconv_sketch_f *result); |
209 | |
239 | |
210 | extern int psiconv_parse_clipart_file(const psiconv_buffer buf,int lev, |
240 | extern int psiconv_parse_clipart_file(const psiconv_buffer buf,int lev, |
211 | psiconv_u32 off, psiconv_clipart_f *result); |
241 | psiconv_u32 off, psiconv_clipart_f *result); |
|
|
242 | extern int psiconv_parse_sheet_file(const psiconv_buffer buf,int lev, |
|
|
243 | psiconv_u32 off, psiconv_sheet_f *result); |
|
|
244 | |
212 | #ifdef __cplusplus |
245 | #ifdef __cplusplus |
213 | } |
246 | } |
214 | #endif /* __cplusplus */ |
247 | #endif /* __cplusplus */ |
215 | |
248 | |
216 | #endif /* PSICONV_PARSE_ROUTINES_H */ |
249 | #endif /* PSICONV_PARSE_ROUTINES_H */ |