From: Hubert Figuiere (hfiguiere_at_teaser.fr)
Date: Tue Apr 13 2004 - 18:47:36 EDT
New generation keyword parser.
CVS: Modified Files:
CVS: Makefile xp/GNUmakefile.am xp/Makefile xp/ie_imp_RTF.cpp
CVS: xp/ie_imp_RTF.h
CVS: Added Files:
CVS: xp/ie_imp_RTFKeywordIDs.h xp/ie_imp_RTFKeywords.h
CVS: xp/ie_imp_RTFParse.cpp xp/ie_imp_RTFParse.h
xp/ie_imp_RTFKeywordIDs.h xp/ie_imp_RTFKeywords.h are generated files.
Look in src/tools/rtfgen/generate-rtf.pl
If you want to add an RTF keyword, edit
src/tools/rtfgen/rtf-keywords.txt and re-run the generator.
The main feature is IE_Imp_RTF::KeywordToID()
Once you get a char* RTF keyword, pass it to this method and get a
numeral ID. That way you can parse any keyword from anywhere with a
switch() construct dispatch and handle all that stuff.
I'll rationnalize the parser and importer a little bit more with time to
follow RTF 1.7 spec.
If you have questions, ask me.
Hub
This archive was generated by hypermail 2.1.4 : Tue Apr 13 2004 - 18:50:28 EDT