/[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 58 Revision 87
1/* 1/*
2 data.h - Part of psiconv, a PSION 5 file formats converter 2 data.h - Part of psiconv, a PSION 5 file formats converter
3 Copyright (c) 1999 Frodo Looijaard <frodol@dds.nl> 3 Copyright (c) 1999, 2000 Frodo Looijaard <frodol@dds.nl>
4 4
5 This program is free software; you can redistribute it and/or modify 5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or 7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version. 8 (at your option) any later version.
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 94
95/* Colors. 95/* Colors.
96 black: 0x00 0x00 0x00 96 black: 0x00 0x00 0x00
97 white: 0xff 0xff 0xff */ 97 white: 0xff 0xff 0xff */
154 psiconv_size_t font_size; 154 psiconv_size_t font_size;
155 psiconv_bool_t italic; 155 psiconv_bool_t italic;
156 psiconv_bool_t bold; 156 psiconv_bool_t bold;
157 psiconv_super_sub_t super_sub; 157 psiconv_super_sub_t super_sub;
158 psiconv_bool_t underline; 158 psiconv_bool_t underline;
159 psiconv_bool_t strike_out; 159 psiconv_bool_t strikethrough;
160 psiconv_font font; 160 psiconv_font font;
161} *psiconv_character_layout; 161} *psiconv_character_layout;
162 162
163typedef struct psiconv_paragraph_layout_s 163typedef struct psiconv_paragraph_layout_s
164{ 164{
166 psiconv_length_t indent_left; 166 psiconv_length_t indent_left;
167 psiconv_length_t indent_right; 167 psiconv_length_t indent_right;
168 psiconv_length_t indent_first; 168 psiconv_length_t indent_first;
169 psiconv_justify_hor_t justify_hor; 169 psiconv_justify_hor_t justify_hor;
170 psiconv_justify_ver_t justify_ver; 170 psiconv_justify_ver_t justify_ver;
171 psiconv_size_t interline; 171 psiconv_size_t linespacing;
172 psiconv_bool_t interline_exact; 172 psiconv_bool_t linespacing_exact;
173 psiconv_size_t top_space; 173 psiconv_size_t space_above;
174 psiconv_size_t bottom_space; 174 psiconv_size_t space_below;
175 psiconv_bool_t on_one_page; 175 psiconv_bool_t keep_together;
176 psiconv_bool_t together_with; /* What the heck is this? */ 176 psiconv_bool_t keep_with_next;
177 psiconv_bool_t on_next_page; 177 psiconv_bool_t on_next_page;
178 psiconv_bool_t no_widow_protection; 178 psiconv_bool_t no_widow_protection;
179 psiconv_length_t border_distance; 179 psiconv_length_t border_distance;
180 psiconv_bullet bullet; 180 psiconv_bullet bullet;
181 psiconv_border left_border; 181 psiconv_border left_border;
271 psiconv_length_t bottom_margin; 271 psiconv_length_t bottom_margin;
272 psiconv_length_t page_width; 272 psiconv_length_t page_width;
273 psiconv_length_t page_height; 273 psiconv_length_t page_height;
274 psiconv_page_header header; 274 psiconv_page_header header;
275 psiconv_page_header footer; 275 psiconv_page_header footer;
276 psiconv_bool_t landscape;
276} * psiconv_page_layout_section; 277} * psiconv_page_layout_section;
277 278
278typedef struct psiconv_word_status_section_s 279typedef struct psiconv_word_status_section_s
279{ 280{
280 psiconv_bool_t show_tabs; 281 psiconv_bool_t show_tabs;
415#define PSICONV_ID_PAGE_LAYOUT_SECTION 0x10000105 416#define PSICONV_ID_PAGE_LAYOUT_SECTION 0x10000105
416#define PSICONV_ID_PASSWORD_SECTION 0x100000CD 417#define PSICONV_ID_PASSWORD_SECTION 0x100000CD
417#define PSICONV_ID_SKETCH_SECTION 0x1000007D 418#define PSICONV_ID_SKETCH_SECTION 0x1000007D
418 419
419/* Other ids */ 420/* Other ids */
420#define PSICONV_ID_PAGE_DIMENSIONS 0x100000fd 421#define PSICONV_ID_PAGE_DIMENSIONS1 0x100000fd
422#define PSICONV_ID_PAGE_DIMENSIONS2 0x1000010e
421#define PSICONV_ID_TEXTED_BODY 0x1000005c 423#define PSICONV_ID_TEXTED_BODY 0x1000005c
422#define PSICONV_ID_TEXTED_REPLACEMENT 0x10000063 424#define PSICONV_ID_TEXTED_REPLACEMENT 0x10000063
423#define PSICONV_ID_TEXTED_UNKNOWN 0x10000065 425#define PSICONV_ID_TEXTED_UNKNOWN 0x10000065
424#define PSICONV_ID_TEXTED_LAYOUT 0x10000066 426#define PSICONV_ID_TEXTED_LAYOUT 0x10000066
425#define PSICONV_ID_TEXTED_TEXT 0x10000064 427#define PSICONV_ID_TEXTED_TEXT 0x10000064
426#define PSICONV_ID_STYLE_REMOVABLE 0x1000004F 428#define PSICONV_ID_STYLE_REMOVABLE 0x1000004F
427#define PSICONV_ID_STYLE_BUILT_IN 0x1000004C 429#define PSICONV_ID_STYLE_BUILT_IN 0x1000004C
428#define PSICONV_ID_CLIPART_ITEM 0x10000040 430#define PSICONV_ID_CLIPART_ITEM 0x10000040
429 431
430 432
431/* Return a clean layout_status. You can modify it at will */ 433/* Return a clean layout_status. You can modify it at will. Returns NULL
434 if there is not enough memory. */
432extern psiconv_character_layout psiconv_basic_character_layout(void); 435extern psiconv_character_layout psiconv_basic_character_layout(void);
433 436
434/* Return a clean layout_status. You can modify it at will */ 437/* Return a clean layout_status. You can modify it at will. Returns NULL
438 if there is not enough memory. */
435extern psiconv_paragraph_layout psiconv_basic_paragraph_layout(void); 439extern psiconv_paragraph_layout psiconv_basic_paragraph_layout(void);
436 440
437/* Clone a layout_status: the new copy is completely independent of the 441/* Clone a layout_status: the new copy is completely independent of the
438 original one */ 442 original one. Returns NULL if there is not enough memory. */
439extern psiconv_paragraph_layout psiconv_clone_paragraph_layout 443extern psiconv_paragraph_layout psiconv_clone_paragraph_layout
440 (psiconv_paragraph_layout ls); 444 (psiconv_paragraph_layout ls);
441 445
442extern psiconv_character_layout psiconv_clone_character_layout 446extern psiconv_character_layout psiconv_clone_character_layout
443 (psiconv_character_layout ls); 447 (psiconv_character_layout ls);
444 448
445/* Get a numbered style */ 449/* Get a numbered style. Returns NULL if the style is unknown. */
446extern psiconv_word_style psiconv_get_style (psiconv_word_styles_section ss, int nr); 450extern psiconv_word_style psiconv_get_style (psiconv_word_styles_section ss, int nr);
447 451
448extern void psiconv_free_color(psiconv_color color); 452extern void psiconv_free_color(psiconv_color color);
449extern void psiconv_free_border(psiconv_border border); 453extern void psiconv_free_border(psiconv_border border);
450extern void psiconv_free_bullet(psiconv_bullet bullet); 454extern void psiconv_free_bullet(psiconv_bullet bullet);
485extern void psiconv_free_sketch_f(psiconv_sketch_f file); 489extern void psiconv_free_sketch_f(psiconv_sketch_f file);
486extern void psiconv_free_clipart_section(psiconv_clipart_section section); 490extern void psiconv_free_clipart_section(psiconv_clipart_section section);
487extern void psiconv_free_cliparts(psiconv_cliparts section); 491extern void psiconv_free_cliparts(psiconv_cliparts section);
488extern void psiconv_free_clipart_f(psiconv_clipart_f file); 492extern void psiconv_free_clipart_f(psiconv_clipart_f file);
489 493
490
491extern void psiconv_free_file(psiconv_file file); 494extern void psiconv_free_file(psiconv_file file);
495
496extern int psiconv_compare_color(const psiconv_color value1,
497 const psiconv_color value2);
498extern int psiconv_compare_font(const psiconv_font value1,
499 const psiconv_font value2);
500extern int psiconv_compare_border(const psiconv_border value1,
501 const psiconv_border value2);
502extern int psiconv_compare_bullet(const psiconv_bullet value1,
503 const psiconv_bullet value2);
504extern int psiconv_compare_tab(const psiconv_tab value1,
505 const psiconv_tab value2);
506extern int psiconv_compare_all_tabs(const psiconv_all_tabs value1,
507 const psiconv_all_tabs value2);
508extern int psiconv_compare_paragraph_layout
509 (const psiconv_paragraph_layout value1,
510 const psiconv_paragraph_layout value2);
511
512extern int psiconv_compare_character_layout
513 (const psiconv_character_layout value1,
514 const psiconv_character_layout value2);
515
516/* Get a newly allocated file with sensible defaults, ready to generate. */
517extern psiconv_file psiconv_empty_file(psiconv_file_type_t type);
518
492 519
493#ifdef __cplusplus 520#ifdef __cplusplus
494} 521}
495#endif /* __cplusplus */ 522#endif /* __cplusplus */
496 523

Legend:
Removed from v.58  
changed lines
  Added in v.87

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