summaryrefslogtreecommitdiff
path: root/include/gbfheadings.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gbfheadings.h')
-rw-r--r--include/gbfheadings.h38
1 files changed, 9 insertions, 29 deletions
diff --git a/include/gbfheadings.h b/include/gbfheadings.h
index da86a33..f9f489f 100644
--- a/include/gbfheadings.h
+++ b/include/gbfheadings.h
@@ -1,6 +1,6 @@
-/*
+/***************************************************************************
*
- * $Id: gbfheadings.h,v 1.2 2001/12/11 22:35:10 scribe Exp $
+ * $Id: gbfheadings.h,v 1.6 2003/07/05 04:58:42 scribe Exp $
*
* Copyright 1998 CrossWire Bible Society (http://www.crosswire.org)
* CrossWire Bible Society
@@ -21,38 +21,18 @@
#ifndef GBFHEADINGS_H
#define GBFHEADINGS_H
-#include <swfilter.h>
+#include <swoptfilter.h>
-#include <defs.h>
+SWORD_NAMESPACE_START
/** This Filter shows/hides headings in a GBF text
*/
-class SWDLLEXPORT GBFHeadings:public SWFilter
-{
- bool option;
- static const char on[];
- static const char off[];
- static const char optName[];
- static const char optTip[];
- OptionsList options;
+class SWDLLEXPORT GBFHeadings : public SWOptionFilter {
public:
- GBFHeadings ();
- virtual ~ GBFHeadings ();
- virtual char ProcessText (char *text, int maxlen, const SWKey * key, const SWModule * = 0);
- virtual const char *getOptionName ()
- {
- return optName;
- }
- virtual const char *getOptionTip ()
- {
- return optTip;
- }
- virtual void setOptionValue (const char *ival);
- virtual const char *getOptionValue ();
- virtual OptionsList getOptionValues ()
- {
- return options;
- }
+ GBFHeadings();
+ virtual ~GBFHeadings();
+ virtual char processText (SWBuf &text, const SWKey * key = 0, const SWModule *module = 0);
};
+SWORD_NAMESPACE_END
#endif