aboutsummaryrefslogtreecommitdiffstats
path: root/doc/api-documentation/html/swdisprtf_8h-source.html
blob: 9c341027ba4c05d6889d84b72e5c1d4d92b23703 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!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>swdisprtf.h 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>swdisprtf.h</h1><div class="fragment"><pre>00001 <font class="comment">/******************************************************************************</font>
00002 <font class="comment"> *  swdisprtf.h   - definition of Class SWDispRTF-- an SWDisplay used to display</font>
00003 <font class="comment"> *                              a verse in Rich Text Format.</font>
00004 <font class="comment"> *</font>
00005 <font class="comment"> * $Id: swdisprtf_8h-source.html,v 1.7 2002/06/20 20:23:10 mgruner Exp $</font>
00006 <font class="comment"> *</font>
00007 <font class="comment"> * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org)</font>
00008 <font class="comment"> *      CrossWire Bible Society</font>
00009 <font class="comment"> *      P. O. Box 2528</font>
00010 <font class="comment"> *      Tempe, AZ  85280-2528</font>
00011 <font class="comment"> *</font>
00012 <font class="comment"> * This program is free software; you can redistribute it and/or modify it</font>
00013 <font class="comment"> * under the terms of the GNU General Public License as published by the</font>
00014 <font class="comment"> * Free Software Foundation version 2.</font>
00015 <font class="comment"> *</font>
00016 <font class="comment"> * This program is distributed in the hope that it will be useful, but</font>
00017 <font class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</font>
00018 <font class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</font>
00019 <font class="comment"> * General Public License for more details.</font>
00020 <font class="comment"> *</font>
00021 <font class="comment"> */</font>
00022 
00023 <font class="comment">//---------------------------------------------------------------------------</font>
00024 <font class="preprocessor">#ifndef SWDispRTFH</font>
00025 <font class="preprocessor"></font><font class="preprocessor">#define SWDispRTFH</font>
00026 <font class="preprocessor"></font><font class="comment">//---------------------------------------------------------------------------</font>
00027 <font class="preprocessor">#include &lt;vcl\SysUtils.hpp&gt;</font>
00028 <font class="preprocessor">#include &lt;vcl\Controls.hpp&gt;</font>
00029 <font class="preprocessor">#include &lt;vcl\Classes.hpp&gt;</font>
00030 <font class="preprocessor">#include &lt;vcl\Forms.hpp&gt;</font>
00031 <font class="preprocessor">#include &lt;vcl\ComCtrls.hpp&gt;</font>
00032 <font class="preprocessor">#include &lt;vcl\StdCtrls.hpp&gt;</font>
00033 <font class="preprocessor">#include &lt;swtext.h&gt;</font>
00034 <font class="preprocessor">#ifndef USEOLDRTF</font>
00035 <font class="preprocessor"></font><font class="preprocessor">#include &lt;RxRichEdit.hpp&gt;</font>
00036 <font class="preprocessor">#endif</font>
00037 <font class="preprocessor"></font><font class="comment">//---------------------------------------------------------------------------</font>
00038 
00039 <font class="preprocessor">#define defRTFHeader          "{\\rtf1\\ansi{\\fonttbl{\\f0\\froman\\fcharset0\\fprq2 Times New Roman;}{\\f1\\froman\\fcharset0\\fprq2 Times New Roman;}{\\f2\\froman\\fcharset0\\fprq2 Times New Roman;}{\\f3\\froman\\fcharset0\\fprq2 Times New Roman;}{\\f4\\froman\\fcharset0\\fprq2 Times New Roman;}{\\f7\\froman\\fcharset2\\fprq2 Symbol;}{\\f8\\froman\\fcharset2\\fprq2 Symbol;}}{\\colortbl;\\red0\\green0\\blue255;\\red0\\green200\\blue50;\\red0\\green0\\blue255;\\red0\\green200\\blue50;\\red0\\green0\\blue255;\\red255\\green0\\blue0;} "</font>
00040 <font class="preprocessor"></font><font class="preprocessor">#define defRTFHeadMargin          "{\\fs8\\cf1\\par\\pard} "</font>
00041 <font class="preprocessor"></font><font class="preprocessor">#define defRTFTrailer         "{\\fs%d \\par }}"        // 24</font>
00042 <font class="preprocessor"></font>
00043 <font class="preprocessor">#define defRTFChapterMarkPre  "\\pard \\qc\\nowidctlpar{\\f1\\cf7\\fs%d\\b Chapter "    // 30</font>
00044 <font class="preprocessor"></font><font class="preprocessor">#define defRTFChapterMarkPost "\\par\\fs%d\\par}"       // 10</font>
00045 <font class="preprocessor"></font>
00046 <font class="preprocessor">#define defRTFVerseMarkPre    "{\\fs%d\\cf1\\super "    //20</font>
00047 <font class="preprocessor"></font><font class="preprocessor">#define defRTFVerseMarkPost   "}"</font>
00048 <font class="preprocessor"></font>
00049 <font class="preprocessor">#define defRTFVersePre        "{\\fs%d" // 24</font>
00050 <font class="preprocessor"></font><font class="preprocessor">#define defRTFVersePost       " }"</font>
00051 <font class="preprocessor"></font>
00052 <font class="preprocessor">#ifndef USEOLDRTF</font>
00053 <font class="preprocessor"></font><font class="keyword">class </font>SWDispRTF:<font class="keyword">public</font> TRxRichEdit
00054 #else
00055 class SWDispRTF:<font class="keyword">public</font> TRichEdit
00056 #endif
00057 {
00058 <font class="keyword">protected</font>:
00059 
00060   System::AnsiString FRTFHeader;
00061   System::AnsiString FRTFHeadMargin;
00062   System::AnsiString FRTFTrailer;
00063   System::AnsiString FRTFChapterMarkPre;
00064   System::AnsiString FRTFChapterMarkPost;
00065   System::AnsiString FRTFVerseMarkPre;
00066   System::AnsiString FRTFVerseMarkPost;
00067   System::AnsiString FRTFVersePre;
00068   System::AnsiString FRTFVersePost;
00069   <font class="keywordtype">bool</font> FExpandNewLine;
00070   CHARRANGE FCharRange;
00071   <font class="keywordtype">int</font> fontSize;
00072 
00073   <font class="keywordtype">int</font> __fastcall GetMySelStart ();
00074   <font class="keywordtype">void</font> __fastcall SetMySelStart (<font class="keywordtype">int</font> iselstart);
00075   <font class="keywordtype">int</font> __fastcall getFontSize ();
00076   <font class="keywordtype">void</font> __fastcall setFontSize (<font class="keywordtype">int</font> iFontSize);
00077   <font class="keywordtype">void</font> recalcHeaders ();
00078 <font class="keyword">protected</font>:
00079     TMemoryStream * RTFStream;
00080 
00081   <font class="keyword">virtual</font> <font class="keywordtype">void</font> __fastcall Loaded (<font class="keywordtype">void</font>);
00082 <font class="keyword">public</font>:
00083     __fastcall SWDispRTF (TComponent * Owner);
00084     __fastcall ~ SWDispRTF ();
00085 
00086   <font class="keyword">virtual</font> <font class="keywordtype">char</font> Display (<a class="code" href="class_s_w_module.html">SWModule</a> &amp; imodule);
00087 __published:
00088   __property System::AnsiString RTFHeader = { read = FRTFHeader, write = FRTFHeader};
00089   __property System::AnsiString RTFHeadMargin = { read = FRTFHeadMargin, write = FRTFHeadMargin };
00090   __property System::AnsiString RTFChapterMarkPre = { read = FRTFChapterMarkPre, write = FRTFChapterMarkPre };
00091   __property System::AnsiString RTFChapterMarkPost = { read = FRTFChapterMarkPost, write = FRTFChapterMarkPost };
00092   __property System::AnsiString RTFVerseMarkPre = { read = FRTFVerseMarkPre, write = FRTFVerseMarkPre };
00093   __property System::AnsiString RTFVerseMarkPost = { read = FRTFVerseMarkPost, write = FRTFVerseMarkPost };
00094   __property System::AnsiString RTFVersePre = { read = FRTFVersePre, write = FRTFVersePre };
00095   __property System::AnsiString RTFVersePost = { read = FRTFVersePost, write = FRTFVersePost };
00096   __property System::AnsiString RTFTrailer = { read = FRTFTrailer, write = FRTFTrailer };
00097   __property <font class="keywordtype">bool</font> ExpandNewLine = { read = FExpandNewLine, write = FExpandNewLine };
00098   __property <font class="keywordtype">int</font> FontSize = { read = getFontSize, write = setFontSize };
00099 };
00100 
00101 <font class="comment">//---------------------------------------------------------------------------</font>
00102 <font class="preprocessor">#endif</font>
</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>