/[public]/psiconv/trunk/lib/psiconv/parse_routines.h
ViewVC logotype

Diff of /psiconv/trunk/lib/psiconv/parse_routines.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 64 Revision 121
18*/ 18*/
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/parse.h> 24#include <psiconv/data.h>
25#include <psiconv/buffer.h>
26#include <psiconv/common.h>
24 27
25#ifdef __cplusplus 28#ifdef __cplusplus
26extern "C" { 29extern "C" {
27#endif /* __cplusplus */ 30#endif /* __cplusplus */
28 31
29
30/* ***************
31 * misc.c *
32 *************** */
33
34/* This function returns a copy of a string, that contains no ASCII codes
35 that are not printable. You should free this string yourself when you are
36 done with it. Returns NULL if there is not enough memory left. */
37extern char *psiconv_make_printable(const char *s);
38
39/* **************
40 * checkuid.c *
41 ************** */
42
43extern psiconv_u32 psiconv_checkuid(psiconv_u32 uid1,
44 psiconv_u32 uid2,psiconv_u32 uid3);
45 32
46/* ****************** 33/* ******************
47 * parse_simple.c * 34 * parse_simple.c *
48 ****************** */ 35 ****************** */
49 36
65 psiconv_u32 off, int *length, 52 psiconv_u32 off, int *length,
66 int *status); 53 int *status);
67extern psiconv_string_t psiconv_read_string(const psiconv_buffer buf,int lev, 54extern psiconv_string_t psiconv_read_string(const psiconv_buffer buf,int lev,
68 psiconv_u32 off,int *length, 55 psiconv_u32 off,int *length,
69 int *status); 56 int *status);
57extern psiconv_string_t psiconv_read_short_string(const psiconv_buffer buf,
58 int lev,psiconv_u32 off,
59 int *length,int *status);
70 60
71extern int psiconv_parse_bool(const psiconv_buffer buf, int lev, 61extern int psiconv_parse_bool(const psiconv_buffer buf, int lev,
72 psiconv_u32 off, int *length, 62 psiconv_u32 off, int *length,
73 psiconv_bool_t *result); 63 psiconv_bool_t *result);
64
65extern psiconv_float_t psiconv_read_float(const psiconv_buffer buf, int lev,
66 psiconv_u32 off, int *length, int *status);
67
74 68
75 69
76/* ****************** 70/* ******************
77 * parse_layout.c * 71 * parse_layout.c *
78 ****************** */ 72 ****************** */
144extern int psiconv_parse_text_section(const psiconv_buffer buf,int lev, 138extern int psiconv_parse_text_section(const psiconv_buffer buf,int lev,
145 psiconv_u32 off, int *length, 139 psiconv_u32 off, int *length,
146 psiconv_text_and_layout *result); 140 psiconv_text_and_layout *result);
147 141
148extern int psiconv_parse_styled_layout_section(const psiconv_buffer buf, 142extern int psiconv_parse_styled_layout_section(const psiconv_buffer buf,
149 int lev,psiconv_u32 off, 143 int lev,psiconv_u32 off,
150 int *length, 144 int *length,
151 psiconv_text_and_layout result, 145 psiconv_text_and_layout result,
152 psiconv_word_styles_section styles); 146 const psiconv_word_styles_section styles);
153extern int psiconv_parse_styleless_layout_section(const psiconv_buffer buf, 147extern int psiconv_parse_styleless_layout_section(const psiconv_buffer buf,
154 int lev,psiconv_u32 off, 148 int lev,psiconv_u32 off,
155 int *length, 149 int *length,
156 psiconv_text_and_layout result, 150 psiconv_text_and_layout result,
157 psiconv_character_layout base_char, 151 const psiconv_character_layout base_char,
158 psiconv_paragraph_layout base_para); 152 const psiconv_paragraph_layout base_para);
159 153
160 154
161/* ****************** 155/* ******************
162 * parse_texted.c * 156 * parse_texted.c *
163 ****************** */ 157 ****************** */
178 psiconv_word_status_section *result); 172 psiconv_word_status_section *result);
179 173
180extern int psiconv_parse_word_styles_section(const psiconv_buffer buf, int lev, 174extern int psiconv_parse_word_styles_section(const psiconv_buffer buf, int lev,
181 psiconv_u32 off, int *length, 175 psiconv_u32 off, int *length,
182 psiconv_word_styles_section *result); 176 psiconv_word_styles_section *result);
177
178
179/* *****************
180 * parse_sheet.c *
181 ***************** */
182
183extern 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
187extern int psiconv_parse_sheet_formula_table(const psiconv_buffer buf, int lev,
188 psiconv_u32 off, int *length,
189 psiconv_formula_list *result);
190
191extern int psiconv_parse_formula(const psiconv_buffer buf, int lev,
192 psiconv_u32 off, int *length,
193 psiconv_formula *result);
194
195extern 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);
199extern int psiconv_parse_sheet_cell(const psiconv_buffer buf, int lev,
200 psiconv_u32 off, int *length,
201 psiconv_sheet_cell *result,
202 const psiconv_sheet_cell_layout default_layout);
203extern int psiconv_parse_sheet_cell_list(const psiconv_buffer buf, int lev,
204 psiconv_u32 off, int *length,
205 psiconv_sheet_cell_list *result,
206 const psiconv_sheet_cell_layout default_layout);
207extern int psiconv_parse_sheet_worksheet_list( const psiconv_buffer buf,
208 int lev,
209 psiconv_u32 off, int *length,
210 psiconv_sheet_worksheet_list *result);
211extern int psiconv_parse_sheet_worksheet(const psiconv_buffer buf, int lev,
212 psiconv_u32 off, int *length,
213 psiconv_sheet_worksheet *result);
214extern int psiconv_parse_sheet_numberformat(const psiconv_buffer buf, int lev,
215 psiconv_u32 off, int *length,
216 psiconv_sheet_numberformat result);
217extern int psiconv_parse_sheet_cell_layout(const psiconv_buffer buf, int lev,
218 psiconv_u32 off, int *length,
219 psiconv_sheet_cell_layout result);
220
221
222
223
224
225
183 226
184 227
185/* ***************** 228/* *****************
186 * parse_image.c * 229 * parse_image.c *
187 ***************** */ 230 ***************** */
221extern int psiconv_parse_sketch_file(const psiconv_buffer buf,int lev, 264extern int psiconv_parse_sketch_file(const psiconv_buffer buf,int lev,
222 psiconv_u32 off, psiconv_sketch_f *result); 265 psiconv_u32 off, psiconv_sketch_f *result);
223 266
224extern int psiconv_parse_clipart_file(const psiconv_buffer buf,int lev, 267extern int psiconv_parse_clipart_file(const psiconv_buffer buf,int lev,
225 psiconv_u32 off, psiconv_clipart_f *result); 268 psiconv_u32 off, psiconv_clipart_f *result);
269extern int psiconv_parse_sheet_file(const psiconv_buffer buf,int lev,
270 psiconv_u32 off, psiconv_sheet_f *result);
271
226#ifdef __cplusplus 272#ifdef __cplusplus
227} 273}
228#endif /* __cplusplus */ 274#endif /* __cplusplus */
229 275
230#endif /* PSICONV_PARSE_ROUTINES_H */ 276#endif /* PSICONV_PARSE_ROUTINES_H */

Legend:
Removed from v.64  
changed lines
  Added in v.121

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