00001 /****************************************************************************** 00002 * swtext.cpp - code for base class 'SWText'- The basis for all text modules 00003 */ 00004 00005 #include <swtext.h> 00006 #include <listkey.h> 00007 00008 00009 /****************************************************************************** 00010 * SWText Constructor - Initializes data for instance of SWText 00011 * 00012 * ENT: imodname - Internal name for module 00013 * imoddesc - Name to display to user for module 00014 * idisp - Display object to use for displaying 00015 */ 00016 00017 SWText::SWText(const char *imodname, const char *imoddesc, SWDisplay *idisp, SWTextEncoding enc, SWTextDirection dir, SWTextMarkup mark, const char* ilang): SWModule(imodname, imoddesc, idisp, "Biblical Texts", enc, dir, mark, ilang) 00018 { 00019 delete key; 00020 key = CreateKey(); 00021 } 00022 00023 00024 /****************************************************************************** 00025 * SWText Destructor - Cleans up instance of SWText 00026 */ 00027 00028 SWText::~SWText() { 00029 } 00030 00031 00032 /****************************************************************************** 00033 * SWText CreateKey - Create the correct key (VerseKey) for use with SWText 00034 */ 00035 00036 SWKey *SWText::CreateKey() 00037 { 00038 return new VerseKey(); 00039 }