#include <swld.h>
Inheritance diagram for SWLD:


Public Methods | |
| SWLD (const char *imodname=0, const char *imoddesc=0, SWDisplay *idisp=0, SWTextEncoding encoding=ENC_UNKNOWN, SWTextDirection dir=DIRECTION_LTR, SWTextMarkup markup=FMT_UNKNOWN, const char *ilang=0) | |
| Initializes data for instance of SWLD. More... | |
| virtual | ~SWLD () |
| virtual SWKey * | CreateKey () |
| Allocates a key of specific type for module The different reimplementatiosn of SWModule (e.g. More... | |
| virtual const char * | KeyText (const char *ikeytext) |
| Sets/gets module KeyText, getting from saved text if key is persistent. More... | |
Protected Attributes | |
| char * | entkeytxt |
Definition at line 34 of file swld.h.
|
||||||||||||||||||||||||||||||||
|
Initializes data for instance of SWLD.
Definition at line 17 of file swld.cpp. References CreateKey(), and SWModule::key.
|
|
|
Allocates a key of specific type for module The different reimplementatiosn of SWModule (e.g. SWText) support SWKey implementations, which support special. This functions returns a SWKey object which works with the current implementation of SWModule. For example for the SWText class it returns a VerseKey object.
Reimplemented from SWModule. Definition at line 47 of file swld.h. Referenced by SWLD().
00048 {
00049 return new StrKey ();
00050 }
|
|
|
Sets/gets module KeyText, getting from saved text if key is persistent.
Reimplemented from SWModule. Definition at line 47 of file swld.cpp. References SWModule::getRawEntry(), SWModule::key, SWModule::KeyText(), and SWKey::Persist().
00048 {
00049 if (key->Persist() && !ikeytext) {
00050 getRawEntry(); // force module key to snap to entry
00051 return entkeytxt;
00052 }
00053 else return SWModule::KeyText(ikeytext);
00054 }
|
1.2.15