/[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 196 Revision 270
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*/
190typedef struct psiconv_bullet_s 203typedef 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 */
1050extern psiconv_character_layout psiconv_clone_character_layout 1063extern 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. */
1054extern psiconv_word_style psiconv_get_style (psiconv_word_styles_section ss, int nr); 1067extern 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. */
1071extern 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. */
1056extern psiconv_formula psiconv_get_formula (psiconv_formula_list ss, int nr); 1075extern psiconv_formula psiconv_get_formula (psiconv_formula_list ss, int nr);
1057 1076
1058/* Return the default layout */ 1077/* Return the default layout */
1059extern psiconv_sheet_cell_layout psiconv_get_default_layout 1078extern psiconv_sheet_cell_layout psiconv_get_default_layout
1069extern void psiconv_free_tab(psiconv_tab tab); 1088extern void psiconv_free_tab(psiconv_tab tab);
1070extern void psiconv_free_tabs(psiconv_all_tabs tabs); 1089extern void psiconv_free_tabs(psiconv_all_tabs tabs);
1071extern void psiconv_free_paragraph_layout(psiconv_paragraph_layout layout); 1090extern void psiconv_free_paragraph_layout(psiconv_paragraph_layout layout);
1072extern void psiconv_free_character_layout(psiconv_character_layout layout); 1091extern void psiconv_free_character_layout(psiconv_character_layout layout);
1073extern void psiconv_free_word_style(psiconv_word_style style); 1092extern void psiconv_free_word_style(psiconv_word_style style);
1093extern void psiconv_free_word_style_list(psiconv_word_style_list style_list);
1074extern void psiconv_free_word_styles_section 1094extern void psiconv_free_word_styles_section
1075 (psiconv_word_styles_section styles); 1095 (psiconv_word_styles_section styles);
1076extern void psiconv_free_formula(psiconv_formula formula); 1096extern void psiconv_free_formula(psiconv_formula formula);
1077extern void psiconv_free_formula_list(psiconv_formula_list list); 1097extern void psiconv_free_formula_list(psiconv_formula_list list);
1078extern void psiconv_free_sheet_status_section 1098extern void psiconv_free_sheet_status_section

Legend:
Removed from v.196  
changed lines
  Added in v.270

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