From 8c8aa6b07e595cfac56838b5964ab3e96051f1b2 Mon Sep 17 00:00:00 2001 From: "Roberto C. Sanchez" Date: Sat, 29 Mar 2014 10:53:49 -0400 Subject: Imported Upstream version 1.5.7 --- include/thmlrtf.h | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) (limited to 'include/thmlrtf.h') diff --git a/include/thmlrtf.h b/include/thmlrtf.h index 319cf4e..094f6c4 100644 --- a/include/thmlrtf.h +++ b/include/thmlrtf.h @@ -1,6 +1,6 @@ -/* +/****************************************************************************** * - * thmlrtf.h + * $Id: thmlrtf.h,v 1.13 2003/12/22 06:30:44 scribe Exp $ * * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org) * CrossWire Bible Society @@ -22,17 +22,30 @@ #define THMLRTF_H #include +#include -#include +SWORD_NAMESPACE_START - /** this filter converts ThML text to RTF text - */ -class SWDLLEXPORT ThMLRTF:public SWBasicFilter -{ +/** this filter converts ThML text to RTF text + */ +class SWDLLEXPORT ThMLRTF : public SWBasicFilter { protected: - virtual bool handleToken(char **buf, const char *token, DualStringMap &userData); + class MyUserData : public BasicFilterUserData { + public: + MyUserData(const SWModule *module, const SWKey *key); + bool SecHead; + SWBuf version; + bool BiblicalText; + XMLTag startTag; + }; + virtual BasicFilterUserData *createUserData(const SWModule *module, const SWKey *key) { + return new MyUserData(module, key); + } + virtual bool handleToken(SWBuf &buf, const char *token, BasicFilterUserData *userData); + virtual char processText(SWBuf &text, const SWKey *key = 0, const SWModule *module = 0); public: - ThMLRTF (); + ThMLRTF(); }; +SWORD_NAMESPACE_END #endif -- cgit v1.2.3