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

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

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

Revision 12 Revision 24
183{ 183{
184 psiconv_u32 uid1; 184 psiconv_u32 uid1;
185 psiconv_u32 uid2; 185 psiconv_u32 uid2;
186 psiconv_u32 uid3; 186 psiconv_u32 uid3;
187 psiconv_u32 checksum; 187 psiconv_u32 checksum;
188 psiconv_u32 section_table_offset;
189 psiconv_file_type_t file; 188 psiconv_file_type_t file;
190} *psiconv_header_section; 189} *psiconv_header_section;
191 190
192typedef struct psiconv_section_table_entry 191typedef struct psiconv_section_table_entry
193{ 192{
333 332
334typedef struct psiconv_mbm_f { 333typedef struct psiconv_mbm_f {
335 psiconv_pictures sections; 334 psiconv_pictures sections;
336} *psiconv_mbm_f; 335} *psiconv_mbm_f;
337 336
337/* This is a little intricated. A picture may be embedded in a larger form.
338 A form is empty, except for the picture. The form has size form_{x,y}size,
339 and the picture is at offset picture_{x,y}_offset within the form. The
340 picture itself has size picture_{x,y}size.
341 Cuts are always <= 1.0; a cut of 0.0 cuts nothing away, a cut of 1.0
342 cuts everything away. */
343typedef struct psiconv_sketch_section {
344 psiconv_u16 form_xsize;
345 psiconv_u16 form_ysize;
346 psiconv_u16 picture_x_offset;
347 psiconv_u16 picture_y_offset;
348 psiconv_u16 picture_xsize;
349 psiconv_u16 picture_ysize;
350 float magnification_x; /* computed relative to first six values */
351 float magnification_y; /* computed relative to first six values */
352 float cut_left; /* computed relative to first six values */
353 float cut_right; /* computed relative to first six values */
354 float cut_top; /* computed relative to first six values */
355 float cut_bottom; /* computed relative to first six values */
356 psiconv_paint_data_section picture;
357} *psiconv_sketch_section;
358
359typedef struct psiconv_sketch_f {
360 psiconv_sketch_section sketch_sec;
361} *psiconv_sketch_f;
362
338typedef struct psiconv_file { 363typedef struct psiconv_file {
339 psiconv_file_type_t type; 364 psiconv_file_type_t type;
340 void *file; 365 void *file;
341} *psiconv_file; 366} *psiconv_file;
342 367
347#define PSICONV_ID_DATA_FILE 0x1000006D 372#define PSICONV_ID_DATA_FILE 0x1000006D
348#define PSICONV_ID_MBM_FILE 0x10000042 373#define PSICONV_ID_MBM_FILE 0x10000042
349/* UID3 */ 374/* UID3 */
350#define PSICONV_ID_WORD 0x1000007F 375#define PSICONV_ID_WORD 0x1000007F
351#define PSICONV_ID_TEXTED 0x10000085 376#define PSICONV_ID_TEXTED 0x10000085
377#define PSICONV_ID_SKETCH 0x1000007D
352 378
353/* Section table ids */ 379/* Section table ids */
354#define PSICONV_ID_WORD_STATUS_SECTION 0x10000243 380#define PSICONV_ID_WORD_STATUS_SECTION 0x10000243
355#define PSICONV_ID_APPL_ID_SECTION 0x10000089 381#define PSICONV_ID_APPL_ID_SECTION 0x10000089
356#define PSICONV_ID_TEXT_SECTION 0x10000106 382#define PSICONV_ID_TEXT_SECTION 0x10000106
357#define PSICONV_ID_LAYOUT_SECTION 0x10000143 383#define PSICONV_ID_LAYOUT_SECTION 0x10000143
358#define PSICONV_ID_WORD_STYLES_SECTION 0x10000104 384#define PSICONV_ID_WORD_STYLES_SECTION 0x10000104
359#define PSICONV_ID_PAGE_LAYOUT_SECTION 0x10000105 385#define PSICONV_ID_PAGE_LAYOUT_SECTION 0x10000105
360#define PSICONV_ID_PASSWORD_SECTION 0x100000CD 386#define PSICONV_ID_PASSWORD_SECTION 0x100000CD
387#define PSICONV_ID_SKETCH_SECTION 0x1000007D
361 388
362/* Other ids */ 389/* Other ids */
363#define PSICONV_ID_PAGE_DIMENSIONS 0x100000fd 390#define PSICONV_ID_PAGE_DIMENSIONS 0x100000fd
364#define PSICONV_ID_TEXTED_BODY 0x1000005c 391#define PSICONV_ID_TEXTED_BODY 0x1000005c
365#define PSICONV_ID_TEXTED_REPLACEMENT 0x10000063 392#define PSICONV_ID_TEXTED_REPLACEMENT 0x10000063
421extern void psiconv_free_paint_data_section(psiconv_paint_data_section section); 448extern void psiconv_free_paint_data_section(psiconv_paint_data_section section);
422extern void psiconv_free_pictures(psiconv_pictures section); 449extern void psiconv_free_pictures(psiconv_pictures section);
423extern void psiconv_free_mbm_jumptable_section 450extern void psiconv_free_mbm_jumptable_section
424 (psiconv_mbm_jumptable_section section); 451 (psiconv_mbm_jumptable_section section);
425extern void psiconv_free_mbm_f(psiconv_mbm_f file); 452extern void psiconv_free_mbm_f(psiconv_mbm_f file);
453extern void psiconv_free_sketch_section(psiconv_sketch_section sec);
454extern void psiconv_free_sketch_f(psiconv_sketch_f file);
455
426extern void psiconv_free_file(psiconv_file file); 456extern void psiconv_free_file(psiconv_file file);
427 457
428 458
429#endif /* def PSICONV_DATA_H */ 459#endif /* def PSICONV_DATA_H */

Legend:
Removed from v.12  
changed lines
  Added in v.24

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