aboutsummaryrefslogtreecommitdiffstats
path: root/doc/api-documentation/html/swtext_8cpp-source.html
blob: e70b58f83e33f793361673acb0fdb528a3680e23 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>swtext.cpp Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.15 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </center>
<hr><h1>swtext.cpp</h1><div class="fragment"><pre>00001 <font class="comment">/******************************************************************************</font>
00002 <font class="comment"> *  swtext.cpp  - code for base class 'SWText'- The basis for all text modules</font>
00003 <font class="comment"> */</font>
00004 
00005 <font class="preprocessor">#include &lt;swtext.h&gt;</font>
00006 <font class="preprocessor">#include &lt;listkey.h&gt;</font>
00007 
00008 
00009 <font class="comment">/******************************************************************************</font>
00010 <font class="comment"> * SWText Constructor - Initializes data for instance of SWText</font>
00011 <font class="comment"> *</font>
00012 <font class="comment"> * ENT: imodname - Internal name for module</font>
00013 <font class="comment"> *      imoddesc - Name to display to user for module</font>
00014 <font class="comment"> *      idisp    - Display object to use for displaying</font>
00015 <font class="comment"> */</font>
00016 
<a name="l00017"></a><a class="code" href="class_s_w_text.html#a0">00017</a> <a class="code" href="class_s_w_text.html#a0">SWText::SWText</a>(<font class="keyword">const</font> <font class="keywordtype">char</font> *imodname, <font class="keyword">const</font> <font class="keywordtype">char</font> *imoddesc, <a class="code" href="class_s_w_display.html">SWDisplay</a> *idisp, SWTextEncoding enc, SWTextDirection dir, SWTextMarkup mark, <font class="keyword">const</font> <font class="keywordtype">char</font>* ilang): <a class="code" href="class_s_w_module.html">SWModule</a>(imodname, imoddesc, idisp, "Biblical Texts", enc, dir, mark, ilang)
00018 {
00019         <font class="keyword">delete</font> <a class="code" href="class_s_w_module.html#n6">key</a>;
00020         <a class="code" href="class_s_w_module.html#n6">key</a> = <a class="code" href="class_s_w_text.html#a2">CreateKey</a>();
00021 }
00022 
00023 
00024 <font class="comment">/******************************************************************************</font>
00025 <font class="comment"> * SWText Destructor - Cleans up instance of SWText</font>
00026 <font class="comment"> */</font>
00027 
00028 SWText::~SWText() {
00029 }
00030 
00031 
00032 <font class="comment">/******************************************************************************</font>
00033 <font class="comment"> * SWText CreateKey - Create the correct key (VerseKey) for use with SWText</font>
00034 <font class="comment"> */</font>
00035 
<a name="l00036"></a><a class="code" href="class_s_w_text.html#a2">00036</a> <a class="code" href="class_s_w_key.html">SWKey</a> *<a class="code" href="class_s_w_text.html#a2">SWText::CreateKey</a>()
00037 {
00038         <font class="keywordflow">return</font> <font class="keyword">new</font> <a class="code" href="class_verse_key.html">VerseKey</a>();
00039 }
</pre></div><hr><address align="right"><small>Generated on Thu Jun 20 22:13:00 2002 for The Sword Project by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.15 </small></address>
</body>
</html>