--- psiconv/trunk/lib/psiconv/data.h 2004/03/08 23:20:41 240 +++ 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);