diff options
Diffstat (limited to 'doc/api-documentation/html/swdisprtf.h-source.html')
-rw-r--r-- | doc/api-documentation/html/swdisprtf.h-source.html | 121 |
1 files changed, 121 insertions, 0 deletions
diff --git a/doc/api-documentation/html/swdisprtf.h-source.html b/doc/api-documentation/html/swdisprtf.h-source.html new file mode 100644 index 0000000..8920279 --- /dev/null +++ b/doc/api-documentation/html/swdisprtf.h-source.html @@ -0,0 +1,121 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<html><head><meta name="robots" content="noindex"> +<title>swdisprtf.h Source File</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +</head><body bgcolor="#ffffff"> +<!-- Generated by Doxygen 1.1.5 on Thu May 24 19:50:26 2001 --> +<center> +<a class="qindex" href="index.html">Main Page</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.h-source.html,v 1.10 2001/05/25 10:44:22 jansorg 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 <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="comment">//---------------------------------------------------------------------------</font> +00035 +00036 <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>00037 <font class="preprocessor"></font><font class="preprocessor">#define defRTFHeadMargin "{\\fs8\\cf1\\par\\pard} " +</font>00038 <font class="preprocessor"></font><font class="preprocessor">#define defRTFTrailer "{\\fs%d \\par }}" // 24 +</font>00039 <font class="preprocessor"></font> +00040 <font class="preprocessor">#define defRTFChapterMarkPre "\\pard \\qc\\nowidctlpar{\\f1\\fs%d\\b Chapter " // 30 +</font>00041 <font class="preprocessor"></font><font class="preprocessor">#define defRTFChapterMarkPost "\\par\\fs%d\\par}" // 10 +</font>00042 <font class="preprocessor"></font> +00043 <font class="preprocessor">#define defRTFVerseMarkPre "{\\fs%d\\cf1\\super " //20 +</font>00044 <font class="preprocessor"></font><font class="preprocessor">#define defRTFVerseMarkPost "}" +</font>00045 <font class="preprocessor"></font> +00046 <font class="preprocessor">#define defRTFVersePre "{\\fs%d" // 24 +</font>00047 <font class="preprocessor"></font><font class="preprocessor">#define defRTFVersePost " }" +</font>00048 <font class="preprocessor"></font> +00049 +00050 <font class="keyword">class </font>SWDispRTF:<font class="keyword">public</font> TRichEdit +00051 { +00052 <font class="keyword">protected</font>: +00053 +00054 System::AnsiString FRTFHeader; +00055 System::AnsiString FRTFHeadMargin; +00056 System::AnsiString FRTFTrailer; +00057 System::AnsiString FRTFChapterMarkPre; +00058 System::AnsiString FRTFChapterMarkPost; +00059 System::AnsiString FRTFVerseMarkPre; +00060 System::AnsiString FRTFVerseMarkPost; +00061 System::AnsiString FRTFVersePre; +00062 System::AnsiString FRTFVersePost; +00063 <font class="keywordtype">bool</font> FExpandNewLine; +00064 CHARRANGE FCharRange; +00065 <font class="keywordtype">int</font> fontSize; +00066 +00067 <font class="keywordtype">int</font> __fastcall GetMySelStart (); +00068 <font class="keywordtype">void</font> __fastcall SetMySelStart (<font class="keywordtype">int</font> iselstart); +00069 <font class="keywordtype">int</font> __fastcall getFontSize (); +00070 <font class="keywordtype">void</font> __fastcall setFontSize (<font class="keywordtype">int</font> iFontSize); +00071 <font class="keywordtype">void</font> recalcHeaders (); +00072 <font class="keyword">protected</font>: +00073 TMemoryStream * RTFStream; +00074 +00075 <font class="keyword">virtual</font> <font class="keywordtype">void</font> __fastcall Loaded (<font class="keywordtype">void</font>); +00076 <font class="keyword">public</font>: +00077 __fastcall SWDispRTF (TComponent * Owner); +00078 __fastcall ~ SWDispRTF (); +00079 +00080 <font class="keyword">virtual</font> <font class="keywordtype">char</font> Display (<a class="code" href="class_swmodule.html">SWModule</a> & imodule); +00081 __published:__property System::AnsiString RTFHeader = +00082 { +00083 read = FRTFHeader, write = FRTFHeader}; +00084 __property System::AnsiString RTFHeadMargin = { read = +00085 FRTFHeadMargin, write = FRTFHeadMargin }; +00086 __property System::AnsiString RTFChapterMarkPre = { read = +00087 FRTFChapterMarkPre, write = FRTFChapterMarkPre }; +00088 __property System::AnsiString RTFChapterMarkPost = { read = +00089 FRTFChapterMarkPost, write = FRTFChapterMarkPost }; +00090 __property System::AnsiString RTFVerseMarkPre = { read = +00091 FRTFVerseMarkPre, write = FRTFVerseMarkPre }; +00092 __property System::AnsiString RTFVerseMarkPost = { read = +00093 FRTFVerseMarkPost, write = FRTFVerseMarkPost }; +00094 __property System::AnsiString RTFVersePre = { read = FRTFVersePre, write = +00095 FRTFVersePre }; +00096 __property System::AnsiString RTFVersePost = { read = FRTFVersePost, write = +00097 FRTFVersePost }; +00098 __property System::AnsiString RTFTrailer = { read = FRTFTrailer, write = +00099 FRTFTrailer }; +00100 __property <font class="keywordtype">bool</font> ExpandNewLine = { read = FExpandNewLine, write = +00101 FExpandNewLine }; +00102 __property <font class="keywordtype">int</font> FontSize = { read = getFontSize, write = setFontSize }; +00103 }; +00104 +00105 <font class="comment">//---------------------------------------------------------------------------</font> +00106 <font class="preprocessor">#endif +</font></div></pre><hr><address><small>Generated at Thu May 24 19:50:26 2001 for The Sword Project by +<a href="http://www.stack.nl/~dimitri/doxygen/index.html"> +<img src="doxygen.gif" alt="doxygen" align=center border=0 +width=110 height=53></a>1.1.5 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, + © 1997-2000</small></address> +</body> +</html> |