/[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 41 Revision 55
27#include "general.h" 27#include "general.h"
28#include "list.h" 28#include "list.h"
29 29
30/* All types which end on _t are plain types; all other types are pointers 30/* All types which end on _t are plain types; all other types are pointers
31 to structs */ 31 to structs */
32
33#ifdef __cplusplus
34extern "C" {
35#endif /* __cplusplus */
36
32 37
33typedef enum psiconv_file_type { 38typedef enum psiconv_file_type {
34 psiconv_unknown_file, 39 psiconv_unknown_file,
35 psiconv_word_file, 40 psiconv_word_file,
36 psiconv_texted_file, 41 psiconv_texted_file,
315typedef struct psiconv_texted_f { 320typedef struct psiconv_texted_f {
316 psiconv_page_layout_section page_sec; 321 psiconv_page_layout_section page_sec;
317 psiconv_texted_section texted_sec; 322 psiconv_texted_section texted_sec;
318} *psiconv_texted_f; 323} *psiconv_texted_f;
319 324
320typedef psiconv_list psiconv_mbm_jumptable_section; /* of psiconv_u32 */ 325typedef psiconv_list psiconv_jumptable_section; /* of psiconv_u32 */
321 326
322/* Normalized values [0..1] for each component 327/* Normalized values [0..1] for each component
323 Origin is (x,y)=(0,0), to get pixel at (X,Y) use index [Y*xsize+X] */ 328 Origin is (x,y)=(0,0), to get pixel at (X,Y) use index [Y*xsize+X] */
324typedef struct psiconv_paint_data_section { 329typedef struct psiconv_paint_data_section {
325 psiconv_u32 xsize; 330 psiconv_u32 xsize;
409#define PSICONV_ID_TEXTED_UNKNOWN 0x10000065 414#define PSICONV_ID_TEXTED_UNKNOWN 0x10000065
410#define PSICONV_ID_TEXTED_LAYOUT 0x10000066 415#define PSICONV_ID_TEXTED_LAYOUT 0x10000066
411#define PSICONV_ID_TEXTED_TEXT 0x10000064 416#define PSICONV_ID_TEXTED_TEXT 0x10000064
412#define PSICONV_ID_STYLE_REMOVABLE 0x1000004F 417#define PSICONV_ID_STYLE_REMOVABLE 0x1000004F
413#define PSICONV_ID_STYLE_BUILT_IN 0x1000004C 418#define PSICONV_ID_STYLE_BUILT_IN 0x1000004C
419#define PSICONV_ID_CLIPART_ITEM 0x10000040
414 420
415 421
416/* Return a clean layout_status. You can modify it at will */ 422/* Return a clean layout_status. You can modify it at will */
417extern psiconv_character_layout psiconv_basic_character_layout(void); 423extern psiconv_character_layout psiconv_basic_character_layout(void);
418 424
461 (psiconv_word_status_section section); 467 (psiconv_word_status_section section);
462extern void psiconv_free_word_f(psiconv_word_f file); 468extern void psiconv_free_word_f(psiconv_word_f file);
463extern void psiconv_free_texted_f(psiconv_texted_f file); 469extern void psiconv_free_texted_f(psiconv_texted_f file);
464extern void psiconv_free_paint_data_section(psiconv_paint_data_section section); 470extern void psiconv_free_paint_data_section(psiconv_paint_data_section section);
465extern void psiconv_free_pictures(psiconv_pictures section); 471extern void psiconv_free_pictures(psiconv_pictures section);
466extern void psiconv_free_mbm_jumptable_section 472extern void psiconv_free_jumptable_section
467 (psiconv_mbm_jumptable_section section); 473 (psiconv_jumptable_section section);
468extern void psiconv_free_mbm_f(psiconv_mbm_f file); 474extern void psiconv_free_mbm_f(psiconv_mbm_f file);
469extern void psiconv_free_sketch_section(psiconv_sketch_section sec); 475extern void psiconv_free_sketch_section(psiconv_sketch_section sec);
470extern void psiconv_free_sketch_f(psiconv_sketch_f file); 476extern void psiconv_free_sketch_f(psiconv_sketch_f file);
471extern void psiconv_free_clipart_section(psiconv_clipart_section section); 477extern void psiconv_free_clipart_section(psiconv_clipart_section section);
472extern void psiconv_free_cliparts(psiconv_cliparts section); 478extern void psiconv_free_cliparts(psiconv_cliparts section);
473extern void psiconv_free_clipart_f(psiconv_clipart_f file); 479extern void psiconv_free_clipart_f(psiconv_clipart_f file);
474 480
475 481
476extern void psiconv_free_file(psiconv_file file); 482extern void psiconv_free_file(psiconv_file file);
477 483
484#ifdef __cplusplus
485}
486#endif /* __cplusplus */
478 487
479#endif /* def PSICONV_DATA_H */ 488#endif /* def PSICONV_DATA_H */

Legend:
Removed from v.41  
changed lines
  Added in v.55

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