aboutsummaryrefslogtreecommitdiffstats
path: root/apps/windoze/CBuilder5/BibleCS/PrintFrm.h
blob: 631db3e736fab9005c9817c80bfd076afaacec26 (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
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
//---------------------------------------------------------------------------

#ifndef PrintFrmH
#define PrintFrmH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include <ComCtrls.hpp>
#include <ExtCtrls.hpp>
#include <Menus.hpp>
#include "RxRichEditX.h"
#include <Dialogs.hpp>
#include "RxCombos.hpp"
#include <swmodule.h>

typedef struct tagTPageOffset {
        long int Start;
        long int End;
        RECT rendRect;
} TPageOffsets;

//---------------------------------------------------------------------------
class TPrintForm : public TForm
{
__published:	// IDE-managed Components
	TPanel *Panel1;
	TPageControl *PageControl1;
	TTabSheet *shtSelection;
	TTabSheet *shtSetup;
	TBitBtn *btnPrint;
	TBitBtn *btnSetup;
	TBitBtn *btnPreview;
	TBitBtn *btnClose;
	TGroupBox *GroupBox1;
	TRadioButton *radText;
	TRadioButton *radComm;
	TRadioButton *radLD;
	TGroupBox *GroupBox2;
	TEdit *editStart;
	TLabel *staticRange;
	TComboBox *cmbModule;
	TLabel *lblModName;
	TGroupBox *GroupBox3;
	TGroupBox *GroupBox4;
	TGroupBox *GroupBox5;
	TLabel *labelLeft;
	TLabel *labelBot;
	TLabel *labelRight;
	TLabel *labelTop;
	TEdit *editLeft;
	TUpDown *spinLeft;
	TEdit *editBottom;
	TUpDown *spinBottom;
	TEdit *editTop;
	TUpDown *spinTop;
	TEdit *editRight;
	TUpDown *spinRight;
	TLabel *labelHeader;
	TLabel *labelFooter;
	TEdit *editHeader;
	TEdit *editFooter;
	TLabel *Label10;
	TLabel *Label11;
	TLabel *Label12;
	TUpDown *UpDown5;
	TEdit *editHeading;
	TUpDown *UpDown6;
	TEdit *editBody;
	TUpDown *UpDown7;
	TEdit *editNumbers;
	TPrinterSetupDialog *PrinterSetupDialog;
	TLabel *labelFont;
	TPanel *pnlFontComboBox;
	TCheckBox *ckChHead;
	TCheckBox *ckPrefix;
	TCheckBox *ckParagraph;
	TCheckBox *ckPostfix;
	TCheckBox *ckVSNum;
	TCheckBox *ckSuperVS;
	TTabSheet *shtFormat;
	TCheckBox *ckBookHead;
	TCheckBox *ckHeader;
	TCheckBox *ckFooter;
	void __fastcall FormShow(TObject *Sender);
	void __fastcall btnCloseClick(TObject *Sender);
	void __fastcall radTextClick(TObject *Sender);
	void __fastcall radCommClick(TObject *Sender);
	void __fastcall radLDClick(TObject *Sender);
	void __fastcall spinLeftClick(TObject *Sender, TUDBtnType Button);
	void __fastcall spinRightClick(TObject *Sender, TUDBtnType Button);
	void __fastcall spinBottomClick(TObject *Sender, TUDBtnType Button);
	void __fastcall spinTopClick(TObject *Sender, TUDBtnType Button);
	void __fastcall btnPrintClick(TObject *Sender);
   	void __fastcall OnPrint(TRxRichEdit* rtfPrint);
	void __fastcall btnSetupClick(TObject *Sender);
	void __fastcall BitBtn5Click(TObject *Sender);
	void __fastcall btnPreviewClick(TObject *Sender);
	void __fastcall ckHeaderClick(TObject *Sender);
	void __fastcall ckFooterClick(TObject *Sender);
	void __fastcall ckVSNumClick(TObject *Sender);
private:	// User declarations
public:		// User declarations
	TFontComboBox *cmbFont;
	TRxRichEditX* rtfPrint;
	__fastcall TPrintForm(TComponent* Owner);
	void FillModuleCombo();
	void SetHint();
	void PrepareRTF();
	void SetDefaultOps();
	void print(ListKey *keys = 0, SWModule *module = 0);
};
//---------------------------------------------------------------------------
extern PACKAGE TPrintForm *PrintForm;
//---------------------------------------------------------------------------
#endif