--- psiconv/trunk/lib/psiconv/data.h 2000/12/13 16:30:21 63 +++ psiconv/trunk/lib/psiconv/data.h 2001/01/10 16:39:30 90 @@ -87,11 +87,19 @@ psiconv_border_solid, psiconv_border_double, psiconv_border_dotted, - psiconv_border_striped, - psiconv_border_dotstripe, - psiconv_border_dotdotstripe + psiconv_border_dashed, + psiconv_border_dotdashed, + psiconv_border_dotdotdashed } psiconv_border_kind_t; +typedef enum psiconv_screenfont +{ + psiconv_font_misc, + psiconv_font_sansserif, + psiconv_font_nonprop, + psiconv_font_serif +} psiconv_screenfont_t; + /* Colors. black: 0x00 0x00 0x00 white: 0xff 0xff 0xff */ @@ -105,7 +113,7 @@ typedef struct psiconv_font_s { char *name; - psiconv_u8 screenfont; + psiconv_screenfont_t screenfont; } *psiconv_font; typedef struct psiconv_border_s @@ -156,7 +164,7 @@ psiconv_bool_t bold; psiconv_super_sub_t super_sub; psiconv_bool_t underline; - psiconv_bool_t strike_out; + psiconv_bool_t strikethrough; psiconv_font font; } *psiconv_character_layout; @@ -168,12 +176,12 @@ psiconv_length_t indent_first; psiconv_justify_hor_t justify_hor; psiconv_justify_ver_t justify_ver; - psiconv_size_t interline; - psiconv_bool_t interline_exact; - psiconv_size_t top_space; - psiconv_size_t bottom_space; - psiconv_bool_t on_one_page; - psiconv_bool_t together_with; /* What the heck is this? */ + psiconv_size_t linespacing; + psiconv_bool_t linespacing_exact; + psiconv_size_t space_above; + psiconv_size_t space_below; + psiconv_bool_t keep_together; + psiconv_bool_t keep_with_next; psiconv_bool_t on_next_page; psiconv_bool_t no_widow_protection; psiconv_length_t border_distance; @@ -273,6 +281,7 @@ psiconv_length_t page_height; psiconv_page_header header; psiconv_page_header footer; + psiconv_bool_t landscape; } * psiconv_page_layout_section; typedef struct psiconv_word_status_section_s @@ -417,7 +426,8 @@ #define PSICONV_ID_SKETCH_SECTION 0x1000007D /* Other ids */ -#define PSICONV_ID_PAGE_DIMENSIONS 0x100000fd +#define PSICONV_ID_PAGE_DIMENSIONS1 0x100000fd +#define PSICONV_ID_PAGE_DIMENSIONS2 0x1000010e #define PSICONV_ID_TEXTED_BODY 0x1000005c #define PSICONV_ID_TEXTED_REPLACEMENT 0x10000063 #define PSICONV_ID_TEXTED_UNKNOWN 0x10000065 @@ -489,9 +499,32 @@ extern void psiconv_free_cliparts(psiconv_cliparts section); extern void psiconv_free_clipart_f(psiconv_clipart_f file); - extern void psiconv_free_file(psiconv_file file); +extern int psiconv_compare_color(const psiconv_color value1, + const psiconv_color value2); +extern int psiconv_compare_font(const psiconv_font value1, + const psiconv_font value2); +extern int psiconv_compare_border(const psiconv_border value1, + const psiconv_border value2); +extern int psiconv_compare_bullet(const psiconv_bullet value1, + const psiconv_bullet value2); +extern int psiconv_compare_tab(const psiconv_tab value1, + const psiconv_tab value2); +extern int psiconv_compare_all_tabs(const psiconv_all_tabs value1, + const psiconv_all_tabs value2); +extern int psiconv_compare_paragraph_layout + (const psiconv_paragraph_layout value1, + const psiconv_paragraph_layout value2); + +extern int psiconv_compare_character_layout + (const psiconv_character_layout value1, + const psiconv_character_layout value2); + +/* Get a newly allocated file with sensible defaults, ready to generate. */ +extern psiconv_file psiconv_empty_file(psiconv_file_type_t type); + + #ifdef __cplusplus } #endif /* __cplusplus */