aboutsummaryrefslogtreecommitdiffstats
path: root/include/gbfmorph.h
diff options
context:
space:
mode:
authordanglassey <danglassey>2002-08-14 09:57:17 +0000
committerdanglassey <danglassey>2002-08-14 09:57:17 +0000
commitc9458897ebbb739d8db83c80e06512d8a612f743 (patch)
treef8c5381045887e34388cc6b26cfccc254bf766dc /include/gbfmorph.h
downloadsword-sf-cvs-c9458897ebbb739d8db83c80e06512d8a612f743.tar.gz
*** empty log message ***
Diffstat (limited to 'include/gbfmorph.h')
-rw-r--r--include/gbfmorph.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/include/gbfmorph.h b/include/gbfmorph.h
new file mode 100644
index 0000000..f57b3cc
--- /dev/null
+++ b/include/gbfmorph.h
@@ -0,0 +1,57 @@
+/*
+ *
+ *
+ * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org)
+ * CrossWire Bible Society
+ * P. O. Box 2528
+ * Tempe, AZ 85280-2528
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation version 2.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ */
+
+#ifndef GBFMORPH_H
+#define GBFMORPH_H
+
+#include <swfilter.h>
+
+#include <defs.h>
+
+ /** This Filter shows/hides morph tags in a GBF text
+ */
+class SWDLLEXPORT GBFMorph:public SWFilter
+{
+ bool option;
+ static const char on[];
+ static const char off[];
+ static const char optName[];
+ static const char optTip[];
+ OptionsList options;
+public:
+ GBFMorph ();
+ virtual ~ GBFMorph ();
+ 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;
+ }
+};
+
+#endif