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-2004 Frodo Looijaard <frodol@dds.nl> |
3 | Copyright (c) 1999-2005 Frodo Looijaard <frodo@frodo.looijaard.name> |
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. |
… | |
… | |
181 | psiconv_size_t thickness; /* Set to 1/20 for non-solid lines */ |
181 | psiconv_size_t thickness; /* Set to 1/20 for non-solid lines */ |
182 | psiconv_color color; /* Border color */ |
182 | psiconv_color color; /* Border color */ |
183 | } *psiconv_border; |
183 | } *psiconv_border; |
184 | |
184 | |
185 | /* Complete bullet information. |
185 | /* Complete bullet information. |
186 | If indent if off, the bullet is at the first line indentation level, |
186 | The interaction of left and first line indentation and bullets is quite |
187 | and the line text begins right after it. If it is on, the bullet is at |
187 | complicated. |
188 | the minimum of the first line and left indentation, and the text starts |
188 | |
189 | at the maximum of both. */ |
189 | BULLET FIRST BULLET FIRST LINE NEXT LINES |
|
|
190 | |
|
|
191 | None = 0 - Left+First Left |
|
|
192 | > 0 - Left+First Left |
|
|
193 | < 0 - Left+First Left |
|
|
194 | |
|
|
195 | Indent Off = 0 Left Left(+Bullet) Left |
|
|
196 | > 0 Left Left+First Left |
|
|
197 | < 0 Left+First Left+First(+Bullet) Left |
|
|
198 | |
|
|
199 | Indent On = 0 Left Left(+Bullet) Left |
|
|
200 | > 0 Left Left+First Left+First |
|
|
201 | < 0 Left+First Left Left |
|
|
202 | */ |
190 | typedef struct psiconv_bullet_s |
203 | typedef struct psiconv_bullet_s |
191 | { |
204 | { |
192 | psiconv_bool_t on; /* Whether the bullet is shown */ |
205 | psiconv_bool_t on; /* Whether the bullet is shown */ |
193 | psiconv_size_t font_size; /* Bullet font size */ |
206 | psiconv_size_t font_size; /* Bullet font size */ |
194 | psiconv_ucs2 character; /* Bullet character */ |
207 | psiconv_ucs2 character; /* Bullet character */ |
… | |
… | |
1050 | extern psiconv_character_layout psiconv_clone_character_layout |
1063 | extern psiconv_character_layout psiconv_clone_character_layout |
1051 | (psiconv_character_layout ls); |
1064 | (psiconv_character_layout ls); |
1052 | |
1065 | |
1053 | /* Get a numbered style. Returns NULL if the style is unknown. */ |
1066 | /* Get a numbered style. Returns NULL if the style is unknown. */ |
1054 | extern psiconv_word_style psiconv_get_style (psiconv_word_styles_section ss, int nr); |
1067 | extern psiconv_word_style psiconv_get_style (psiconv_word_styles_section ss, int nr); |
|
|
1068 | |
|
|
1069 | /* Return the number corresponding to the stylename. Returns 0 on success, |
|
|
1070 | an error code on failure. */ |
|
|
1071 | extern int psiconv_find_style(const psiconv_word_styles_section ss, |
|
|
1072 | const psiconv_ucs2 *name,int *nr); |
|
|
1073 | |
1055 | /* Get a numbered formula. Returns NULL if the style is unknown. */ |
1074 | /* Get a numbered formula. Returns NULL if the style is unknown. */ |
1056 | extern psiconv_formula psiconv_get_formula (psiconv_formula_list ss, int nr); |
1075 | extern psiconv_formula psiconv_get_formula (psiconv_formula_list ss, int nr); |
1057 | |
1076 | |
1058 | /* Return the default layout */ |
1077 | /* Return the default layout */ |
1059 | extern psiconv_sheet_cell_layout psiconv_get_default_layout |
1078 | extern psiconv_sheet_cell_layout psiconv_get_default_layout |
… | |
… | |
1069 | extern void psiconv_free_tab(psiconv_tab tab); |
1088 | extern void psiconv_free_tab(psiconv_tab tab); |
1070 | extern void psiconv_free_tabs(psiconv_all_tabs tabs); |
1089 | extern void psiconv_free_tabs(psiconv_all_tabs tabs); |
1071 | extern void psiconv_free_paragraph_layout(psiconv_paragraph_layout layout); |
1090 | extern void psiconv_free_paragraph_layout(psiconv_paragraph_layout layout); |
1072 | extern void psiconv_free_character_layout(psiconv_character_layout layout); |
1091 | extern void psiconv_free_character_layout(psiconv_character_layout layout); |
1073 | extern void psiconv_free_word_style(psiconv_word_style style); |
1092 | extern void psiconv_free_word_style(psiconv_word_style style); |
|
|
1093 | extern void psiconv_free_word_style_list(psiconv_word_style_list style_list); |
1074 | extern void psiconv_free_word_styles_section |
1094 | extern void psiconv_free_word_styles_section |
1075 | (psiconv_word_styles_section styles); |
1095 | (psiconv_word_styles_section styles); |
1076 | extern void psiconv_free_formula(psiconv_formula formula); |
1096 | extern void psiconv_free_formula(psiconv_formula formula); |
1077 | extern void psiconv_free_formula_list(psiconv_formula_list list); |
1097 | extern void psiconv_free_formula_list(psiconv_formula_list list); |
1078 | extern void psiconv_free_sheet_status_section |
1098 | extern void psiconv_free_sheet_status_section |