/[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 63 Revision 90
85typedef enum psiconv_border_kind 85typedef enum psiconv_border_kind
86{ psiconv_border_none, 86{ psiconv_border_none,
87 psiconv_border_solid, 87 psiconv_border_solid,
88 psiconv_border_double, 88 psiconv_border_double,
89 psiconv_border_dotted, 89 psiconv_border_dotted,
90 psiconv_border_striped, 90 psiconv_border_dashed,
91 psiconv_border_dotstripe, 91 psiconv_border_dotdashed,
92 psiconv_border_dotdotstripe 92 psiconv_border_dotdotdashed
93} psiconv_border_kind_t; 93} psiconv_border_kind_t;
94
95typedef enum psiconv_screenfont
96{
97 psiconv_font_misc,
98 psiconv_font_sansserif,
99 psiconv_font_nonprop,
100 psiconv_font_serif
101} psiconv_screenfont_t;
94 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 */
98typedef struct psiconv_color_s 106typedef struct psiconv_color_s
103} * psiconv_color; 111} * psiconv_color;
104 112
105typedef struct psiconv_font_s 113typedef 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
111typedef struct psiconv_border_s 119typedef struct psiconv_border_s
112{ 120{
113 psiconv_border_kind_t kind; 121 psiconv_border_kind_t kind;
154 psiconv_size_t font_size; 162 psiconv_size_t font_size;
155 psiconv_bool_t italic; 163 psiconv_bool_t italic;
156 psiconv_bool_t bold; 164 psiconv_bool_t bold;
157 psiconv_super_sub_t super_sub; 165 psiconv_super_sub_t super_sub;
158 psiconv_bool_t underline; 166 psiconv_bool_t underline;
159 psiconv_bool_t strike_out; 167 psiconv_bool_t strikethrough;
160 psiconv_font font; 168 psiconv_font font;
161} *psiconv_character_layout; 169} *psiconv_character_layout;
162 170
163typedef struct psiconv_paragraph_layout_s 171typedef struct psiconv_paragraph_layout_s
164{ 172{
166 psiconv_length_t indent_left; 174 psiconv_length_t indent_left;
167 psiconv_length_t indent_right; 175 psiconv_length_t indent_right;
168 psiconv_length_t indent_first; 176 psiconv_length_t indent_first;
169 psiconv_justify_hor_t justify_hor; 177 psiconv_justify_hor_t justify_hor;
170 psiconv_justify_ver_t justify_ver; 178 psiconv_justify_ver_t justify_ver;
171 psiconv_size_t interline; 179 psiconv_size_t linespacing;
172 psiconv_bool_t interline_exact; 180 psiconv_bool_t linespacing_exact;
173 psiconv_size_t top_space; 181 psiconv_size_t space_above;
174 psiconv_size_t bottom_space; 182 psiconv_size_t space_below;
175 psiconv_bool_t on_one_page; 183 psiconv_bool_t keep_together;
176 psiconv_bool_t together_with; /* What the heck is this? */ 184 psiconv_bool_t keep_with_next;
177 psiconv_bool_t on_next_page; 185 psiconv_bool_t on_next_page;
178 psiconv_bool_t no_widow_protection; 186 psiconv_bool_t no_widow_protection;
179 psiconv_length_t border_distance; 187 psiconv_length_t border_distance;
180 psiconv_bullet bullet; 188 psiconv_bullet bullet;
181 psiconv_border left_border; 189 psiconv_border left_border;
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
278typedef struct psiconv_word_status_section_s 287typedef 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
487extern void psiconv_free_sketch_f(psiconv_sketch_f file); 497extern void psiconv_free_sketch_f(psiconv_sketch_f file);
488extern void psiconv_free_clipart_section(psiconv_clipart_section section); 498extern void psiconv_free_clipart_section(psiconv_clipart_section section);
489extern void psiconv_free_cliparts(psiconv_cliparts section); 499extern void psiconv_free_cliparts(psiconv_cliparts section);
490extern void psiconv_free_clipart_f(psiconv_clipart_f file); 500extern void psiconv_free_clipart_f(psiconv_clipart_f file);
491 501
492
493extern void psiconv_free_file(psiconv_file file); 502extern void psiconv_free_file(psiconv_file file);
503
504extern int psiconv_compare_color(const psiconv_color value1,
505 const psiconv_color value2);
506extern int psiconv_compare_font(const psiconv_font value1,
507 const psiconv_font value2);
508extern int psiconv_compare_border(const psiconv_border value1,
509 const psiconv_border value2);
510extern int psiconv_compare_bullet(const psiconv_bullet value1,
511 const psiconv_bullet value2);
512extern int psiconv_compare_tab(const psiconv_tab value1,
513 const psiconv_tab value2);
514extern int psiconv_compare_all_tabs(const psiconv_all_tabs value1,
515 const psiconv_all_tabs value2);
516extern int psiconv_compare_paragraph_layout
517 (const psiconv_paragraph_layout value1,
518 const psiconv_paragraph_layout value2);
519
520extern 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. */
525extern 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

Legend:
Removed from v.63  
changed lines
  Added in v.90

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