File: swdisprtf_h-source.html

package info (click to toggle)
sword 1.5.3-3woody2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 20,484 kB
  • ctags: 11,105
  • sloc: cpp: 49,665; ansic: 13,335; sh: 8,730; pascal: 3,433; tcl: 1,602; makefile: 988; perl: 565; sed: 93
file content (128 lines) | stat: -rw-r--r-- 9,165 bytes parent folder | download
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
117
118
119
120
121
122
123
124
125
126
127
128
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta name="robots" content="noindex">
<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 bgcolor="#ffffff">
<!-- Generated by Doxygen 1.2.6 -->
<center>
<a class="qindex" href="index.html">Main Page</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_h-source.html,v 1.4 2001/10/05 20:45:22 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_swmodule.html">SWModule</a> &amp; imodule);
00087     __published:__property System::AnsiString RTFHeader =
00088   {
00089   read = FRTFHeader, write = FRTFHeader};
00090   __property System::AnsiString RTFHeadMargin = { read =
00091       FRTFHeadMargin, write = FRTFHeadMargin };
00092   __property System::AnsiString RTFChapterMarkPre = { read =
00093       FRTFChapterMarkPre, write = FRTFChapterMarkPre };
00094   __property System::AnsiString RTFChapterMarkPost = { read =
00095       FRTFChapterMarkPost, write = FRTFChapterMarkPost };
00096   __property System::AnsiString RTFVerseMarkPre = { read =
00097       FRTFVerseMarkPre, write = FRTFVerseMarkPre };
00098   __property System::AnsiString RTFVerseMarkPost = { read =
00099       FRTFVerseMarkPost, write = FRTFVerseMarkPost };
00100   __property System::AnsiString RTFVersePre = { read = FRTFVersePre, write =
00101       FRTFVersePre };
00102   __property System::AnsiString RTFVersePost = { read = FRTFVersePost, write =
00103       FRTFVersePost };
00104   __property System::AnsiString RTFTrailer = { read = FRTFTrailer, write =
00105       FRTFTrailer };
00106   __property <font class="keywordtype">bool</font> ExpandNewLine = { read = FExpandNewLine, write =
00107       FExpandNewLine };
00108   __property <font class="keywordtype">int</font> FontSize = { read = getFontSize, write = setFontSize };
00109 };
00110 
00111 <font class="comment">//---------------------------------------------------------------------------</font>
00112 <font class="preprocessor">#endif</font>
</font></pre></div><hr><address><small>Generated at Fri Oct 5 22:45:33 2001 for The Sword Project by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.gif" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.6 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>,
 &copy;&nbsp;1997-2001</small></address>
</body>
</html>