#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 () |
| virtual char | processText (SWBuf &text, const SWKey *key=0, const SWModule *module=0)=0 |
| virtual void | setOptionValue (const char *ival) |
| SWOptionFilter (const char *oName, const char *oTip, const StringList *oValues) | |
| SWOptionFilter () | |
| virtual | ~SWOptionFilter () |
Protected Attributes | |
| bool | option |
| SWBuf | optionValue |
| const char * | optName |
| const char * | optTip |
| const StringList * | optValues |
Base class for all option filters.
Definition at line 38 of file swoptfilter.h.
| SWORD_NAMESPACE_START SWOptionFilter::SWOptionFilter | ( | ) |
Definition at line 28 of file swoptfilter.cpp.
00028 { 00029 static StringList empty; 00030 static const char *empty2 = ""; 00031 optName = empty2; 00032 optTip = empty2; 00033 optValues = ∅ 00034 }
| SWOptionFilter::SWOptionFilter | ( | const char * | oName, | |
| const char * | oTip, | |||
| const StringList * | oValues | |||
| ) |
| SWOptionFilter::~SWOptionFilter | ( | ) | [virtual] |
Definition at line 43 of file swoptfilter.cpp.
| virtual const char* SWFilter::getHeader | ( | ) | const [inline, virtual, inherited] |
This method can supply a header associated with the processing done with this filter. A typical example is a suggested CSS style block for classed containers.
Reimplemented in GBFXHTML, OSISXHTML, and ThMLXHTML.
Definition at line 58 of file swfilter.h.
| virtual const char* SWOptionFilter::getOptionName | ( | ) | [inline, virtual] |
gets the name of the option of this filter
Reimplemented in OSISVariants, ThMLVariants, and UTF8Transliterator.
Definition at line 55 of file swoptfilter.h.
00055 { return optName; }
| virtual const char* SWOptionFilter::getOptionTip | ( | ) | [inline, virtual] |
gets a short explanation of the option of this filter; it could be presented to the user in frontend programs
Reimplemented in OSISVariants, ThMLVariants, and UTF8Transliterator.
Definition at line 61 of file swoptfilter.h.
00061 { return optTip; }
| const char * SWOptionFilter::getOptionValue | ( | ) | [virtual] |
Reimplemented in OSISVariants, ThMLVariants, and UTF8Transliterator.
Definition at line 57 of file swoptfilter.cpp.
00057 { 00058 return optionValue; 00059 }
| virtual StringList SWOptionFilter::getOptionValues | ( | ) | [inline, virtual] |
returns a list of the possible option values
Reimplemented in OSISVariants, ThMLVariants, and UTF8Transliterator.
Definition at line 67 of file swoptfilter.h.
00067 { return *optValues; }
| virtual char SWFilter::processText | ( | SWBuf & | text, | |
| const SWKey * | key = 0, |
|||
| const SWModule * | module = 0 | |||
| ) | [pure virtual, inherited] |
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 CipherFilter, GBFFootnotes, GBFHeadings, GBFMorph, GBFOSIS, GBFPlain, GBFRedLetterWords, GBFRTF, GBFStrongs, GBFThML, GBFWordJS, GreekLexAttribs, Latin1UTF16, Latin1UTF8, OSISFootnotes, OSISLemma, OSISMorph, OSISMorphSegmentation, OSISOSIS, OSISRedLetterWords, OSISRTF, OSISRuby, OSISScripref, OSISStrongs, OSISVariants, OSISWordJS, PapyriPlain, PLAINFootnotes, PLAINHTML, RTFHTML, SWBasicFilter, ThMLFootnotes, ThMLGBF, ThMLHeadings, ThMLLemma, ThMLMorph, ThMLOSIS, ThMLPlain, ThMLRTF, ThMLScripref, ThMLStrongs, ThMLVariants, ThMLWordJS, UnicodeRTF, UTF16UTF8, UTF8ArabicPoints, UTF8arShaping, UTF8BiDiReorder, UTF8Cantillation, UTF8GreekAccents, UTF8HebrewPoints, UTF8HTML, UTF8Latin1, UTF8NFC, UTF8NFKD, UTF8Transliterator, and UTF8UTF16.
| void SWOptionFilter::setOptionValue | ( | const char * | ival | ) | [virtual] |
sets the value of the option of this filter, e.g maybe a strong's filter mioght 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 OSISVariants, ThMLVariants, and UTF8Transliterator.
Definition at line 47 of file swoptfilter.cpp.
bool SWOptionFilter::option [protected] |
Reimplemented in OSISVariants, ThMLVariants, and UTF8Transliterator.
Definition at line 44 of file swoptfilter.h.
SWBuf SWOptionFilter::optionValue [protected] |
Definition at line 40 of file swoptfilter.h.
const char* SWOptionFilter::optName [protected] |
Reimplemented in OSISVariants, ThMLVariants, and UTF8Transliterator.
Definition at line 41 of file swoptfilter.h.
const char* SWOptionFilter::optTip [protected] |
Reimplemented in OSISVariants, ThMLVariants, and UTF8Transliterator.
Definition at line 42 of file swoptfilter.h.
const StringList* SWOptionFilter::optValues [protected] |
Definition at line 43 of file swoptfilter.h.
1.6.1