diff options
Diffstat (limited to 'doc/api-documentation/html/swdisprtf_8h-source.html')
-rw-r--r-- | doc/api-documentation/html/swdisprtf_8h-source.html | 180 |
1 files changed, 76 insertions, 104 deletions
diff --git a/doc/api-documentation/html/swdisprtf_8h-source.html b/doc/api-documentation/html/swdisprtf_8h-source.html index 9c34102..029c005 100644 --- a/doc/api-documentation/html/swdisprtf_8h-source.html +++ b/doc/api-documentation/html/swdisprtf_8h-source.html @@ -3,114 +3,86 @@ <title>swdisprtf.h Source File</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> -<!-- Generated by Doxygen 1.2.15 --> +<!-- Generated by Doxygen 1.2.17 --> <center> -<a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> </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> +<a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="namespacemembers.html">Namespace Members</a> <a class="qindex" href="functions.html">Compound Members</a> </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 <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 <vcl\SysUtils.hpp></font> -00028 <font class="preprocessor">#include <vcl\Controls.hpp></font> -00029 <font class="preprocessor">#include <vcl\Classes.hpp></font> -00030 <font class="preprocessor">#include <vcl\Forms.hpp></font> -00031 <font class="preprocessor">#include <vcl\ComCtrls.hpp></font> -00032 <font class="preprocessor">#include <vcl\StdCtrls.hpp></font> -00033 <font class="preprocessor">#include <swtext.h></font> -00034 <font class="preprocessor">#ifndef USEOLDRTF</font> -00035 <font class="preprocessor"></font><font class="preprocessor">#include <RxRichEdit.hpp></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; +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 <vcl\SysUtils.hpp></span> +00028 <span class="preprocessor">#include <vcl\Controls.hpp></span> +00029 <span class="preprocessor">#include <vcl\Classes.hpp></span> +00030 <span class="preprocessor">#include <vcl\Forms.hpp></span> +00031 <span class="preprocessor">#include <vcl\ComCtrls.hpp></span> +00032 <span class="preprocessor">#include <vcl\StdCtrls.hpp></span> +00033 <span class="preprocessor">#include <swtext.h></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 & imodule); +00070 __property <span class="keywordtype">bool</span> ExpandNewLine = { read = FExpandNewLine, write = FExpandNewLine }; +00071 }; 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> & 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 +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.15 </small></address> +width=110 height=53></a>1.2.17 </small></address> </body> </html> |