/[public]/psiconv/trunk/lib/psiconv/parse_word.c
ViewVC logotype

Diff of /psiconv/trunk/lib/psiconv/parse_word.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 184 Revision 196
1/* 1/*
2 parse_word.c - Part of psiconv, a PSION 5 file formats converter 2 parse_word.c - Part of psiconv, a PSION 5 file formats converter
3 Copyright (c) 1999, 2000 Frodo Looijaard <frodol@dds.nl> 3 Copyright (c) 1999-2004 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.
211 psiconv_warn(config,lev+3,off+len, 211 psiconv_warn(config,lev+3,off+len,
212 "Normal style hotkey has unknown value (ignored)"); 212 "Normal style hotkey has unknown value (ignored)");
213 psiconv_debug(config,lev+3,off+len,"Hotkey value %08x",temp); 213 psiconv_debug(config,lev+3,off+len,"Hotkey value %08x",temp);
214 temp = 0; 214 temp = 0;
215 } 215 }
216 style->hotkey = temp & 0x000000ff; 216 style->hotkey = psiconv_unicode_from_char(config,temp);
217 if ((style->hotkey >= 32) && (style->hotkey < 127))
218 psiconv_debug(config,lev+3,off+len,"Hotkey: %c",style->hotkey);
219 else if (style->hotkey == 0x00)
220 psiconv_debug(config,lev+3,off+len,"Hotkey: <none>");
221 else
222 psiconv_debug(config,lev+3,off+len,"Hotkey: %02x",style->hotkey);
223 (*result)->normal = style; 217 (*result)->normal = style;
224 len += 0x04; 218 len += 0x04;
225 219
226 psiconv_progress(config,lev+2,off+len,"Going to read hotkeys list"); 220 psiconv_progress(config,lev+2,off+len,"Going to read hotkeys list");
227 if (!((*result)->styles = psiconv_list_new(sizeof(*style)))) 221 if (!((*result)->styles = psiconv_list_new(sizeof(*style))))

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

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