diff options
Diffstat (limited to 'include/thmllemma.h')
-rw-r--r-- | include/thmllemma.h | 42 |
1 files changed, 11 insertions, 31 deletions
diff --git a/include/thmllemma.h b/include/thmllemma.h index b2ab320..ce4e161 100644 --- a/include/thmllemma.h +++ b/include/thmllemma.h @@ -1,6 +1,6 @@ -/* +/****************************************************************************** * - * $Id: + * $Id: thmllemma.h,v 1.5 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 THMLLEMMA_H #define THMLLEMMA_H -#include <swfilter.h> +#include <swoptfilter.h> -#include <defs.h> +SWORD_NAMESPACE_START - /** This Filter shows/hides lemmas in a ThML text - */ -class SWDLLEXPORT ThMLLemma:public SWFilter -{ - bool option; - static const char on[]; - static const char off[]; - static const char optName[]; - static const char optTip[]; - OptionsList options; +/** This Filter shows/hides lemmas in a ThML text + */ +class SWDLLEXPORT ThMLLemma : public SWOptionFilter { public: - ThMLLemma (); - virtual ~ ThMLLemma (); - 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; - } + ThMLLemma(); + virtual ~ThMLLemma(); + virtual char processText(SWBuf &text, const SWKey *key = 0, const SWModule *module = 0); }; +SWORD_NAMESPACE_END #endif |