[sword-svn] r415 - trunk

scribe at crosswire.org scribe at crosswire.org
Tue May 3 03:50:22 MST 2005


Author: scribe
Date: 2005-05-03 03:50:22 -0700 (Tue, 03 May 2005)
New Revision: 415

Added:
   trunk/swdisprtf.h
   trunk/swdisprtfchap.h
   trunk/tbdisp.h
Log:
Moved windows specific headers to BibleCS


Added: trunk/swdisprtf.h
===================================================================
--- trunk/swdisprtf.h	2005-05-03 10:23:16 UTC (rev 414)
+++ trunk/swdisprtf.h	2005-05-03 10:50:22 UTC (rev 415)
@@ -0,0 +1,74 @@
+/******************************************************************************
+ *  swdisprtf.h   - definition of Class SWDispRTF-- an SWDisplay used to display
+ *				a verse in Rich Text Format.
+ *
+ * $Id: swdisprtf.h 1688 2005-01-01 04:42:26Z scribe $
+ *
+ * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org)
+ *	CrossWire Bible Society
+ *	P. O. Box 2528
+ *	Tempe, AZ  85280-2528
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation version 2.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ */
+
+//---------------------------------------------------------------------------
+#ifndef SWDispRTFH
+#define SWDispRTFH
+//---------------------------------------------------------------------------
+#include <vcl\SysUtils.hpp>
+#include <vcl\Controls.hpp>
+#include <vcl\Classes.hpp>
+#include <vcl\Forms.hpp>
+#include <vcl\ComCtrls.hpp>
+#include <vcl\StdCtrls.hpp>
+#include <swtext.h>
+#include "RxRichEditX.h"
+//---------------------------------------------------------------------------
+
+#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;} "
+#define	defRTFHeadMargin	  "{\\fs8\\cf1\\par\\pard} "
+#define	defRTFTrailer         "{\\fs%d \\par }}"	// 24
+
+#define	defRTFChapterMarkPre  "\\pard \\qc\\nowidctlpar{\\f1\\cf7\\fs%d\\b Chapter "	// 30
+#define	defRTFChapterMarkPost "\\par\\fs%d\\par}"	// 10
+
+#define	defRTFVerseMarkPre    "{\\fs%d\\cf1\\super "	//20
+#define	defRTFVerseMarkPost   "}"
+
+#define	defRTFVersePre        "{\\fs%d"	// 24
+#define	defRTFVersePost       " }"
+
+class SWDispRTF : public TRxRichEditX {
+protected:
+
+  bool FExpandNewLine;
+  CHARRANGE FCharRange;
+  int fontSize;
+
+  int __fastcall GetMySelStart ();
+  void __fastcall SetMySelStart (int iselstart);
+  int __fastcall getFontSize ();
+  void __fastcall setFontSize (int iFontSize);
+protected:
+    TMemoryStream * RTFStream;
+
+  virtual void __fastcall Loaded (void);
+public:
+    __fastcall SWDispRTF (TWinControl *Owner);
+    __fastcall ~ SWDispRTF ();
+
+  virtual char Display (SWModule & imodule);
+  __property bool ExpandNewLine = { read = FExpandNewLine, write = FExpandNewLine };
+};
+
+//---------------------------------------------------------------------------
+#endif


Property changes on: trunk/swdisprtf.h
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/swdisprtfchap.h
===================================================================
--- trunk/swdisprtfchap.h	2005-05-03 10:23:16 UTC (rev 414)
+++ trunk/swdisprtfchap.h	2005-05-03 10:50:22 UTC (rev 415)
@@ -0,0 +1,51 @@
+/******************************************************************************
+ *  swdisprtfchap.h	- definition of class SWDispRTFChap, an SWDisplay used to
+ *				display an entire chapter in Rich Text Format
+ *
+ * $Id: swdisprtfchap.h 1688 2005-01-01 04:42:26Z scribe $
+ *
+ * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org)
+ *	CrossWire Bible Society
+ *	P. O. Box 2528
+ *	Tempe, AZ  85280-2528
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation version 2.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ */
+
+//---------------------------------------------------------------------------
+#ifndef swdisprtfchapH
+#define swdisprtfchapH
+//---------------------------------------------------------------------------
+#include <vcl\SysUtils.hpp>
+#include <vcl\Controls.hpp>
+#include <vcl\Classes.hpp>
+#include <vcl\Forms.hpp>
+#include <vcl\ComCtrls.hpp>
+#include <vcl\StdCtrls.hpp>
+#include <swtext.h>
+#include "swdisprtf.h"
+//---------------------------------------------------------------------------
+class SWDispRTFChap_init;
+class SWDispRTFChap:public SWDispRTF {
+protected:
+	virtual void __fastcall Loaded (void);
+public:
+	static char platformID;
+	static SWDispRTFChap_init _init;
+	
+    __fastcall SWDispRTFChap(TWinControl *Owner);
+    __fastcall ~ SWDispRTFChap();
+
+	virtual char Display(SWModule & imodule);
+};
+
+//---------------------------------------------------------------------------
+#endif


Property changes on: trunk/swdisprtfchap.h
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/tbdisp.h
===================================================================
--- trunk/tbdisp.h	2005-05-03 10:23:16 UTC (rev 414)
+++ trunk/tbdisp.h	2005-05-03 10:50:22 UTC (rev 415)
@@ -0,0 +1,45 @@
+/******************************************************************************
+ *  tbdisp.cpp  - code for class 'tbdisp'.  tbdisp writes module output to a
+ *			MSWindows TextBox (or any other control that takes a
+ *			SetDialogItemText
+ *
+ * $Id: tbdisp.h 1688 2005-01-01 04:42:26Z scribe $
+ *
+ * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org)
+ *	CrossWire Bible Society
+ *	P. O. Box 2528
+ *	Tempe, AZ  85280-2528
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation version 2.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ */
+
+#ifndef TBDISP_H
+#define TBDISP_H
+
+#include <windows.h>
+
+SWORD_NAMESPACE_START
+
+class SWModule;
+
+class TBDisp:public SWDisplay
+{
+protected:
+  HWND wnd;
+  int ctrlid;
+public:
+    TBDisp (HWND iwnd, int ictrlid);
+  virtual char Display (SWModule & imodule);
+};
+
+SWORD_NAMESPACE_END
+
+#endif


Property changes on: trunk/tbdisp.h
___________________________________________________________________
Name: svn:executable
   + *



More information about the sword-cvs mailing list