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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 24 - (hide annotations)
Fri Oct 29 21:14:58 1999 UTC (24 years, 5 months ago) by frodo
File MIME type: text/plain
File size: 9303 byte(s)
(Frodo) Sketch files are now supported. That is, they are parsed, and
        generated, but generating still needs a lot of work. Untested.

1 frodo 2 /*
2     parse_routines.h - Part of psiconv, a PSION 5 file formats converter
3     Copyright (c) 1999 Frodo Looijaard <frodol@dds.nl>
4    
5     This program is free software; you can redistribute it and/or modify
6     it under the terms of the GNU General Public License as published by
7     the Free Software Foundation; either version 2 of the License, or
8     (at your option) any later version.
9    
10     This program is distributed in the hope that it will be useful,
11     but WITHOUT ANY WARRANTY; without even the implied warranty of
12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13     GNU General Public License for more details.
14    
15     You should have received a copy of the GNU General Public License
16     along with this program; if not, write to the Free Software
17     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18     */
19    
20     #ifndef PSICONV_PARSE_ROUTINES_H
21     #define PSICONV_PARSE_ROUTINES_H
22    
23     #include "data.h"
24     #include "parse.h"
25    
26     /* ***************
27     * parse_aux.c *
28     *************** */
29    
30     /* These functions print error, warning, progress and debug information to
31     stderr */
32     extern void psiconv_fatal(int level, psiconv_u32 off, const char *format,...);
33     extern void psiconv_warn(int level, psiconv_u32 off, const char *format,...);
34     extern void psiconv_progress(int level, psiconv_u32 off,
35     const char *format,...);
36     extern void psiconv_debug(int level, psiconv_u32 off, const char *format,...);
37    
38     /* This function returns a copy of a string, that contains no ASCII codes
39     that are not printable. You should free this string yourself when you are
40     done with it. */
41     extern char *psiconv_make_printable(const char *s);
42    
43     /* **************
44     * checkuid.c *
45     ************** */
46    
47     extern psiconv_u32 psiconv_checkuid(psiconv_u32 uid1,
48     psiconv_u32 uid2,psiconv_u32 uid3);
49    
50     /* ******************
51     * parse_simple.c *
52     ****************** */
53    
54     extern psiconv_u8 psiconv_read_u8(const psiconv_buffer buf,int lev,
55     psiconv_u32 off);
56     extern psiconv_u16 psiconv_read_u16(const psiconv_buffer buf,int lev,
57     psiconv_u32 off);
58     extern psiconv_u32 psiconv_read_u32(const psiconv_buffer buf,int lev,
59     psiconv_u32 off);
60    
61     extern psiconv_S_t psiconv_read_S(const psiconv_buffer buf, int lev,
62     psiconv_u32 off, int *length);
63     extern psiconv_X_t psiconv_read_X(const psiconv_buffer buf, int lev,
64     psiconv_u32 off, int *length);
65     extern psiconv_length_t psiconv_read_length(const psiconv_buffer buf, int lev,
66     psiconv_u32 off, int *length);
67     extern psiconv_size_t psiconv_read_size (const psiconv_buffer buf, int lev,
68     psiconv_u32 off, int *length);
69     extern psiconv_string_t psiconv_read_string(const psiconv_buffer buf,int lev,
70     psiconv_u32 off,int *length);
71    
72     extern int psiconv_parse_bool(const psiconv_buffer buf, int lev,
73     psiconv_u32 off, int *length,
74     psiconv_bool_t *result);
75    
76    
77     /* ******************
78     * parse_layout.c *
79     ****************** */
80    
81     extern int psiconv_parse_color(const psiconv_buffer buf, int lev,
82     psiconv_u32 off, int *length,
83     psiconv_color *result);
84    
85     extern int psiconv_parse_font(const psiconv_buffer buf, int lev,
86     psiconv_u32 off, int *length,
87     psiconv_font *result);
88    
89     extern int psiconv_parse_border(const psiconv_buffer buf,int lev,
90     psiconv_u32 off, int *length,
91     psiconv_border *result);
92    
93     extern int psiconv_parse_bullet(const psiconv_buffer buf,int lev,
94     psiconv_u32 off, int *length,
95     psiconv_bullet *result);
96    
97     extern int psiconv_parse_tab(const psiconv_buffer buf, int lev,
98     psiconv_u32 off, int *length,
99     psiconv_tab *result);
100    
101     extern int psiconv_parse_paragraph_layout_list(const psiconv_buffer buf,
102     int lev, psiconv_u32 off, int *length,
103     psiconv_paragraph_layout result);
104    
105     extern int psiconv_parse_character_layout_list(const psiconv_buffer buf,
106     int lev, psiconv_u32 off, int *length,
107     psiconv_character_layout result);
108    
109    
110     /* ****************
111     * parse_page.c *
112     **************** */
113    
114     extern int psiconv_parse_page_header(const psiconv_buffer buf,int lev,
115     psiconv_u32 off, int *length,
116     psiconv_page_header *result);
117    
118     extern int psiconv_parse_page_layout_section(const psiconv_buffer buf,int lev,
119     psiconv_u32 off, int *length,
120     psiconv_page_layout_section *result);
121    
122     /* ******************
123     * parse_common.c *
124     ****************** */
125    
126     extern int psiconv_parse_header_section(const psiconv_buffer buf,int lev,
127     psiconv_u32 off, int *length,
128     psiconv_header_section *result);
129    
130     extern int psiconv_parse_section_table_section(const psiconv_buffer buf,
131     int lev, psiconv_u32 off,
132     int *length,
133     psiconv_section_table_section *result);
134    
135     extern int psiconv_parse_application_id_section(const psiconv_buffer buf,
136     int lev, psiconv_u32 off, int *length,
137     psiconv_application_id_section *result);
138    
139     extern int psiconv_parse_text_section(const psiconv_buffer buf,int lev,
140     psiconv_u32 off, int *length,
141     psiconv_text_and_layout *result);
142    
143     extern int psiconv_parse_styled_layout_section(const psiconv_buffer buf,
144     int lev,psiconv_u32 off,
145     int *length,
146     psiconv_text_and_layout result,
147     psiconv_word_styles_section styles);
148     extern int psiconv_parse_styleless_layout_section(const psiconv_buffer buf,
149     int lev,psiconv_u32 off,
150     int *length,
151     psiconv_text_and_layout result,
152     psiconv_character_layout base_char,
153     psiconv_paragraph_layout base_para);
154    
155    
156     /* ******************
157     * parse_texted.c *
158     ****************** */
159    
160     extern int psiconv_parse_texted_section(const psiconv_buffer buf,int lev,
161     psiconv_u32 off, int *length,
162     psiconv_texted_section *result,
163     psiconv_character_layout base_char,
164     psiconv_paragraph_layout base_para);
165    
166    
167     /* ****************
168     * parse_word.c *
169     **************** */
170    
171     extern int psiconv_parse_word_status_section(const psiconv_buffer buf, int lev,
172     psiconv_u32 off, int *length,
173     psiconv_word_status_section *result);
174    
175     extern int psiconv_parse_word_styles_section(const psiconv_buffer buf, int lev,
176     psiconv_u32 off, int *length,
177     psiconv_word_styles_section *result);
178    
179 frodo 11
180     /* *****************
181     * parse_image.c *
182     ***************** */
183    
184     extern int psiconv_parse_paint_data_section(const psiconv_buffer buf,int lev,
185     psiconv_u32 off, int *length,
186     psiconv_paint_data_section *result);
187    
188 frodo 12 extern int psiconv_parse_mbm_jumptable_section(const psiconv_buffer buf,int lev,
189     psiconv_u32 off, int *length,
190     psiconv_mbm_jumptable_section *result);
191 frodo 24 extern int psiconv_parse_sketch_section(const psiconv_buffer buf, int lev,
192     psiconv_u32 off, int *length, int is_object,
193     psiconv_sketch_section *result);
194 frodo 11
195 frodo 12
196    
197 frodo 24
198 frodo 2 /* ****************
199     * parse_driver.c *
200     **************** */
201    
202     extern int psiconv_parse_texted_file(const psiconv_buffer buf,int lev,
203     psiconv_u32 off, psiconv_texted_f *result);
204    
205     extern int psiconv_parse_word_file(const psiconv_buffer buf,int lev,
206     psiconv_u32 off, psiconv_word_f *result);
207    
208 frodo 12 extern int psiconv_parse_mbm_file(const psiconv_buffer buf,int lev,
209     psiconv_u32 off, psiconv_mbm_f *result);
210 frodo 2
211 frodo 24 extern int psiconv_parse_sketch_file(const psiconv_buffer buf,int lev,
212     psiconv_u32 off, psiconv_sketch_f *result);
213    
214 frodo 2 #endif /* PSICONV_PARSE_ROUTINES_H */

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