summaryrefslogtreecommitdiff
path: root/include/thmlrtf.h
diff options
context:
space:
mode:
authorRoberto C. Sanchez <roberto@connexer.com>2014-03-29 10:53:49 -0400
committerRoberto C. Sanchez <roberto@connexer.com>2014-03-29 10:53:49 -0400
commit8c8aa6b07e595cfac56838b5964ab3e96051f1b2 (patch)
treeda38e2c1979148dbd3b0c7b87f930746f5ba7f44 /include/thmlrtf.h
parent8d3fc864d094eeadc721f8e93436b37a5fab173e (diff)
Imported Upstream version 1.5.7
Diffstat (limited to 'include/thmlrtf.h')
-rw-r--r--include/thmlrtf.h31
1 files changed, 22 insertions, 9 deletions
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 <swbasicfilter.h>
+#include <utilxml.h>
-#include <defs.h>
+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