The SWORD Project
1.9.0.svnversion
|
#include <swoptfilter.h>
Public Member Functions | |
virtual const char * | getHeader () const |
virtual const char * | getOptionName () |
virtual const char * | getOptionTip () |
virtual const char * | getOptionValue () |
virtual StringList | getOptionValues () |
bool | isBoolean () |
virtual char | processText (SWBuf &text, const SWKey *key=0, const SWModule *module=0)=0 |
virtual void | setOptionValue (const char *ival) |
SWOptionFilter () | |
SWOptionFilter (const char *oName, const char *oTip, const StringList *oValues) | |
virtual | ~SWOptionFilter () |
Protected Attributes | |
bool | isBooleanVal |
bool | option |
SWBuf | optionValue |
const char * | optName |
const char * | optTip |
const StringList * | optValues |
Base class for all option filters.
Definition at line 47 of file swoptfilter.h.
SWORD_NAMESPACE_START SWOptionFilter::SWOptionFilter | ( | ) |
Definition at line 30 of file swoptfilter.cpp.
SWOptionFilter::SWOptionFilter | ( | const char * | oName, |
const char * | oTip, | ||
const StringList * | oValues | ||
) |
Definition at line 39 of file swoptfilter.cpp.
|
virtual |
Definition at line 48 of file swoptfilter.cpp.
|
inlinevirtualinherited |
|
inlinevirtual |
gets the name of the option of this filter
Reimplemented in UTF8Transliterator.
Definition at line 72 of file swoptfilter.h.
|
inlinevirtual |
gets a short explanation of the option of this filter; it could be presented to the user in frontend programs
Reimplemented in UTF8Transliterator.
Definition at line 78 of file swoptfilter.h.
|
virtual |
Reimplemented in UTF8Transliterator.
Definition at line 62 of file swoptfilter.cpp.
|
inlinevirtual |
returns a list of the possible option values
Reimplemented in UTF8Transliterator.
Definition at line 84 of file swoptfilter.h.
|
inline |
many options are simple Off/On boolean type, and frontends may wish to show these with checkmarks or the like to the end user. This is a convenience method to allow a frontend to check if this filter has only Off/On values
Definition at line 67 of file swoptfilter.h.
|
pure virtualinherited |
This method processes and appropriately modifies the text given it for a particular filter task
text | The text to be filtered/converted |
key | Current key That was used. |
module | Current module. |
Implemented in UTF8Transliterator, SWBasicFilter, GBFOSIS, SCSUUTF8, OSISReferenceLinks, ThMLRTF, OSISOSIS, ThMLWordJS, UTF8SCSU, UTF8arShaping, UTF8BiDiReorder, UTF8NFC, OSISWordJS, GBFWordJS, OSISMorphSegmentation, UTF8Latin1, UTF8NFKD, GBFRedLetterWords, CipherFilter, OSISRTF, OSISVariants, OSISRedLetterWords, OSISStrongs, GBFFootnotes, GBFHeadings, GBFMorph, GBFStrongs, GreekLexAttribs, OSISEnum, OSISFootnotes, OSISGlosses, OSISLemma, OSISMorph, OSISScripref, OSISXlit, RTFHTML, ThMLFootnotes, ThMLHeadings, ThMLLemma, ThMLMorph, ThMLOSIS, ThMLScripref, ThMLStrongs, ThMLVariants, UTF8ArabicPoints, UTF8Cantillation, UTF8GreekAccents, UTF8HebrewPoints, GBFRTF, GBFThML, Latin1UTF16, Latin1UTF8, PapyriPlain, ThMLGBF, ThMLPlain, UnicodeRTF, UTF16UTF8, UTF8HTML, UTF8UTF16, and GBFPlain.
|
virtual |
sets the value of the option of this filter, e.g maybe a strong's filter might be set to "On" / "Off" - that would mean to show or not to show the strongs in the text, see also getOptionValues()
ival | the new option value |
Reimplemented in UTF8Transliterator.
Definition at line 52 of file swoptfilter.cpp.
|
protected |
Definition at line 55 of file swoptfilter.h.
|
protected |
Definition at line 54 of file swoptfilter.h.
|
protected |
Definition at line 50 of file swoptfilter.h.
|
protected |
Definition at line 51 of file swoptfilter.h.
|
protected |
Definition at line 52 of file swoptfilter.h.
|
protected |
Definition at line 53 of file swoptfilter.h.