blob: 5f6b42434da3a6c5baba8313287f577b4854cf11 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
/******************************************************************************
* swtext.cpp - code for base class 'SWText'- The basis for all text modules
*/
#include <swtext.h>
#include <listkey.h>
/******************************************************************************
* SWText Constructor - Initializes data for instance of SWText
*
* ENT: imodname - Internal name for module
* imoddesc - Name to display to user for module
* idisp - Display object to use for displaying
*/
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)
{
delete key;
key = CreateKey();
skipConsecutiveLinks = false;
}
/******************************************************************************
* SWText Destructor - Cleans up instance of SWText
*/
SWText::~SWText() {
}
/******************************************************************************
* SWText CreateKey - Create the correct key (VerseKey) for use with SWText
*/
SWKey *SWText::CreateKey()
{
return new VerseKey();
}
|