--- psiconv/trunk/lib/psiconv/data.h 2004/03/04 21:55:40 239 +++ psiconv/trunk/lib/psiconv/data.h 2005/11/15 15:52:34 270 @@ -1,6 +1,6 @@ /* data.h - Part of psiconv, a PSION 5 file formats converter - Copyright (c) 1999-2004 Frodo Looijaard + Copyright (c) 1999-2005 Frodo Looijaard This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -1065,6 +1065,12 @@ /* Get a numbered style. Returns NULL if the style is unknown. */ extern psiconv_word_style psiconv_get_style (psiconv_word_styles_section ss, int nr); + +/* Return the number corresponding to the stylename. Returns 0 on success, + an error code on failure. */ +extern int psiconv_find_style(const psiconv_word_styles_section ss, + const psiconv_ucs2 *name,int *nr); + /* Get a numbered formula. Returns NULL if the style is unknown. */ extern psiconv_formula psiconv_get_formula (psiconv_formula_list ss, int nr); @@ -1084,6 +1090,7 @@ extern void psiconv_free_paragraph_layout(psiconv_paragraph_layout layout); extern void psiconv_free_character_layout(psiconv_character_layout layout); extern void psiconv_free_word_style(psiconv_word_style style); +extern void psiconv_free_word_style_list(psiconv_word_style_list style_list); extern void psiconv_free_word_styles_section (psiconv_word_styles_section styles); extern void psiconv_free_formula(psiconv_formula formula);