… | |
… | |
90 | psiconv_border_dashed, |
90 | psiconv_border_dashed, |
91 | psiconv_border_dotdashed, |
91 | psiconv_border_dotdashed, |
92 | psiconv_border_dotdotdashed |
92 | psiconv_border_dotdotdashed |
93 | } psiconv_border_kind_t; |
93 | } psiconv_border_kind_t; |
94 | |
94 | |
|
|
95 | typedef enum psiconv_screenfont |
|
|
96 | { |
|
|
97 | psiconv_font_misc, |
|
|
98 | psiconv_font_sansserif, |
|
|
99 | psiconv_font_nonprop, |
|
|
100 | psiconv_font_serif |
|
|
101 | } psiconv_screenfont_t; |
|
|
102 | |
95 | /* Colors. |
103 | /* Colors. |
96 | black: 0x00 0x00 0x00 |
104 | black: 0x00 0x00 0x00 |
97 | white: 0xff 0xff 0xff */ |
105 | white: 0xff 0xff 0xff */ |
98 | typedef struct psiconv_color_s |
106 | typedef struct psiconv_color_s |
99 | { |
107 | { |
… | |
… | |
103 | } * psiconv_color; |
111 | } * psiconv_color; |
104 | |
112 | |
105 | typedef struct psiconv_font_s |
113 | typedef struct psiconv_font_s |
106 | { |
114 | { |
107 | char *name; |
115 | char *name; |
108 | psiconv_u8 screenfont; |
116 | psiconv_screenfont_t screenfont; |
109 | } *psiconv_font; |
117 | } *psiconv_font; |
110 | |
118 | |
111 | typedef struct psiconv_border_s |
119 | typedef struct psiconv_border_s |
112 | { |
120 | { |
113 | psiconv_border_kind_t kind; |
121 | psiconv_border_kind_t kind; |
… | |
… | |
271 | psiconv_length_t bottom_margin; |
279 | psiconv_length_t bottom_margin; |
272 | psiconv_length_t page_width; |
280 | psiconv_length_t page_width; |
273 | psiconv_length_t page_height; |
281 | psiconv_length_t page_height; |
274 | psiconv_page_header header; |
282 | psiconv_page_header header; |
275 | psiconv_page_header footer; |
283 | psiconv_page_header footer; |
|
|
284 | psiconv_bool_t landscape; |
276 | } * psiconv_page_layout_section; |
285 | } * psiconv_page_layout_section; |
277 | |
286 | |
278 | typedef struct psiconv_word_status_section_s |
287 | typedef struct psiconv_word_status_section_s |
279 | { |
288 | { |
280 | psiconv_bool_t show_tabs; |
289 | psiconv_bool_t show_tabs; |
… | |
… | |
415 | #define PSICONV_ID_PAGE_LAYOUT_SECTION 0x10000105 |
424 | #define PSICONV_ID_PAGE_LAYOUT_SECTION 0x10000105 |
416 | #define PSICONV_ID_PASSWORD_SECTION 0x100000CD |
425 | #define PSICONV_ID_PASSWORD_SECTION 0x100000CD |
417 | #define PSICONV_ID_SKETCH_SECTION 0x1000007D |
426 | #define PSICONV_ID_SKETCH_SECTION 0x1000007D |
418 | |
427 | |
419 | /* Other ids */ |
428 | /* Other ids */ |
420 | #define PSICONV_ID_PAGE_DIMENSIONS 0x100000fd |
429 | #define PSICONV_ID_PAGE_DIMENSIONS1 0x100000fd |
|
|
430 | #define PSICONV_ID_PAGE_DIMENSIONS2 0x1000010e |
421 | #define PSICONV_ID_TEXTED_BODY 0x1000005c |
431 | #define PSICONV_ID_TEXTED_BODY 0x1000005c |
422 | #define PSICONV_ID_TEXTED_REPLACEMENT 0x10000063 |
432 | #define PSICONV_ID_TEXTED_REPLACEMENT 0x10000063 |
423 | #define PSICONV_ID_TEXTED_UNKNOWN 0x10000065 |
433 | #define PSICONV_ID_TEXTED_UNKNOWN 0x10000065 |
424 | #define PSICONV_ID_TEXTED_LAYOUT 0x10000066 |
434 | #define PSICONV_ID_TEXTED_LAYOUT 0x10000066 |
425 | #define PSICONV_ID_TEXTED_TEXT 0x10000064 |
435 | #define PSICONV_ID_TEXTED_TEXT 0x10000064 |
… | |
… | |
487 | extern void psiconv_free_sketch_f(psiconv_sketch_f file); |
497 | extern void psiconv_free_sketch_f(psiconv_sketch_f file); |
488 | extern void psiconv_free_clipart_section(psiconv_clipart_section section); |
498 | extern void psiconv_free_clipart_section(psiconv_clipart_section section); |
489 | extern void psiconv_free_cliparts(psiconv_cliparts section); |
499 | extern void psiconv_free_cliparts(psiconv_cliparts section); |
490 | extern void psiconv_free_clipart_f(psiconv_clipart_f file); |
500 | extern void psiconv_free_clipart_f(psiconv_clipart_f file); |
491 | |
501 | |
492 | |
|
|
493 | extern void psiconv_free_file(psiconv_file file); |
502 | extern void psiconv_free_file(psiconv_file file); |
|
|
503 | |
|
|
504 | extern int psiconv_compare_color(const psiconv_color value1, |
|
|
505 | const psiconv_color value2); |
|
|
506 | extern int psiconv_compare_font(const psiconv_font value1, |
|
|
507 | const psiconv_font value2); |
|
|
508 | extern int psiconv_compare_border(const psiconv_border value1, |
|
|
509 | const psiconv_border value2); |
|
|
510 | extern int psiconv_compare_bullet(const psiconv_bullet value1, |
|
|
511 | const psiconv_bullet value2); |
|
|
512 | extern int psiconv_compare_tab(const psiconv_tab value1, |
|
|
513 | const psiconv_tab value2); |
|
|
514 | extern int psiconv_compare_all_tabs(const psiconv_all_tabs value1, |
|
|
515 | const psiconv_all_tabs value2); |
|
|
516 | extern int psiconv_compare_paragraph_layout |
|
|
517 | (const psiconv_paragraph_layout value1, |
|
|
518 | const psiconv_paragraph_layout value2); |
|
|
519 | |
|
|
520 | extern int psiconv_compare_character_layout |
|
|
521 | (const psiconv_character_layout value1, |
|
|
522 | const psiconv_character_layout value2); |
|
|
523 | |
|
|
524 | /* Get a newly allocated file with sensible defaults, ready to generate. */ |
|
|
525 | extern psiconv_file psiconv_empty_file(psiconv_file_type_t type); |
|
|
526 | |
494 | |
527 | |
495 | #ifdef __cplusplus |
528 | #ifdef __cplusplus |
496 | } |
529 | } |
497 | #endif /* __cplusplus */ |
530 | #endif /* __cplusplus */ |
498 | |
531 | |