summaryrefslogtreecommitdiff
path: root/src/basehandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/basehandler.h')
-rw-r--r--src/basehandler.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/basehandler.h b/src/basehandler.h
new file mode 100644
index 0000000..33cfe61
--- /dev/null
+++ b/src/basehandler.h
@@ -0,0 +1,29 @@
+// BaseHandler
+// Implements an RtfHandler for other classes (LevelHandler
+// and RtfParser) to override.
+
+#ifndef _BASEHANDLER_H_
+#define _BASEHANDLER_H_
+
+#include "RtfReader.h"
+
+class BaseHandler :
+ public RtfHandler
+{
+public:
+ BaseHandler();
+ virtual ~BaseHandler();
+
+ virtual void startDocument(RtfReader* reader);
+ virtual void endDocument();
+ virtual void controlWord(const string& cw, int flags, int param);
+ virtual void groupStart();
+ virtual void groupEnd();
+ virtual void charData(wstring data);
+
+protected:
+ virtual void clear();
+ RtfReader* m_reader;
+};
+
+#endif // _BASEHANDLER_H_