aboutsummaryrefslogtreecommitdiffstats
path: root/doc/api-documentation/html/swdisprtf_8h-source.html
blob: 029c0059c05fff6dc7236150964a91764d89bdd4 (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
<!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.17 -->
<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="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </center>
<hr><h1>swdisprtf.h</h1><div class="fragment"><pre>00001 <span class="comment">/******************************************************************************</span>
00002 <span class="comment"> *  swdisprtf.h   - definition of Class SWDispRTF-- an SWDisplay used to display</span>
00003 <span class="comment"> *                              a verse in Rich Text Format.</span>
00004 <span class="comment"> *</span>
00005 <span class="comment"> * $Id: swdisprtf_8h-source.html,v 1.9 2002/10/31 11:30:16 joachim Exp $</span>
00006 <span class="comment"> *</span>
00007 <span class="comment"> * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org)</span>
00008 <span class="comment"> *      CrossWire Bible Society</span>
00009 <span class="comment"> *      P. O. Box 2528</span>
00010 <span class="comment"> *      Tempe, AZ  85280-2528</span>
00011 <span class="comment"> *</span>
00012 <span class="comment"> * This program is free software; you can redistribute it and/or modify it</span>
00013 <span class="comment"> * under the terms of the GNU General Public License as published by the</span>
00014 <span class="comment"> * Free Software Foundation version 2.</span>
00015 <span class="comment"> *</span>
00016 <span class="comment"> * This program is distributed in the hope that it will be useful, but</span>
00017 <span class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span>
00018 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
00019 <span class="comment"> * General Public License for more details.</span>
00020 <span class="comment"> *</span>
00021 <span class="comment"> */</span>
00022 
00023 <span class="comment">//---------------------------------------------------------------------------</span>
00024 <span class="preprocessor">#ifndef SWDispRTFH</span>
00025 <span class="preprocessor"></span><span class="preprocessor">#define SWDispRTFH</span>
00026 <span class="preprocessor"></span><span class="comment">//---------------------------------------------------------------------------</span>
00027 <span class="preprocessor">#include &lt;vcl\SysUtils.hpp&gt;</span>
00028 <span class="preprocessor">#include &lt;vcl\Controls.hpp&gt;</span>
00029 <span class="preprocessor">#include &lt;vcl\Classes.hpp&gt;</span>
00030 <span class="preprocessor">#include &lt;vcl\Forms.hpp&gt;</span>
00031 <span class="preprocessor">#include &lt;vcl\ComCtrls.hpp&gt;</span>
00032 <span class="preprocessor">#include &lt;vcl\StdCtrls.hpp&gt;</span>
00033 <span class="preprocessor">#include &lt;swtext.h&gt;</span>
00034 <span class="preprocessor">#include "RxRichEditX.h"</span>
00035 <span class="comment">//---------------------------------------------------------------------------</span>
00036 
00037 <span 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;} "</span>
00038 <span class="preprocessor"></span><span class="preprocessor">#define defRTFHeadMargin          "{\\fs8\\cf1\\par\\pard} "</span>
00039 <span class="preprocessor"></span><span class="preprocessor">#define defRTFTrailer         "{\\fs%d \\par }}"        // 24</span>
00040 <span class="preprocessor"></span>
00041 <span class="preprocessor">#define defRTFChapterMarkPre  "\\pard \\qc\\nowidctlpar{\\f1\\cf7\\fs%d\\b Chapter "    // 30</span>
00042 <span class="preprocessor"></span><span class="preprocessor">#define defRTFChapterMarkPost "\\par\\fs%d\\par}"       // 10</span>
00043 <span class="preprocessor"></span>
00044 <span class="preprocessor">#define defRTFVerseMarkPre    "{\\fs%d\\cf1\\super "    //20</span>
00045 <span class="preprocessor"></span><span class="preprocessor">#define defRTFVerseMarkPost   "}"</span>
00046 <span class="preprocessor"></span>
00047 <span class="preprocessor">#define defRTFVersePre        "{\\fs%d" // 24</span>
00048 <span class="preprocessor"></span><span class="preprocessor">#define defRTFVersePost       " }"</span>
00049 <span class="preprocessor"></span>
00050 <span class="keyword">class </span>SWDispRTF : <span class="keyword">public</span> TRxRichEditX {
00051 <span class="keyword">protected</span>:
00052 
00053   <span class="keywordtype">bool</span> FExpandNewLine;
00054   CHARRANGE FCharRange;
00055   <span class="keywordtype">int</span> fontSize;
00056 
00057   <span class="keywordtype">int</span> __fastcall GetMySelStart ();
00058   <span class="keywordtype">void</span> __fastcall SetMySelStart (<span class="keywordtype">int</span> iselstart);
00059   <span class="keywordtype">int</span> __fastcall getFontSize ();
00060   <span class="keywordtype">void</span> __fastcall setFontSize (<span class="keywordtype">int</span> iFontSize);
00061 <span class="keyword">protected</span>:
00062     TMemoryStream * RTFStream;
00063 
00064   <span class="keyword">virtual</span> <span class="keywordtype">void</span> __fastcall Loaded (<span class="keywordtype">void</span>);
00065 <span class="keyword">public</span>:
00066     __fastcall SWDispRTF (TWinControl *Owner);
00067     __fastcall ~ SWDispRTF ();
00068 
00069   <span class="keyword">virtual</span> <span class="keywordtype">char</span> Display (SWModule &amp; imodule);
00070   __property <span class="keywordtype">bool</span> ExpandNewLine = { read = FExpandNewLine, write = FExpandNewLine };
00071 };
00072 
00073 <span class="comment">//---------------------------------------------------------------------------</span>
00074 <span class="preprocessor">#endif</span>
</pre></div><hr><address style="align: right;"><small>Generated on Thu Oct 31 12:11:28 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.17 </small></address>
</body>
</html>