aboutsummaryrefslogtreecommitdiffstats
path: root/apps/windoze/CBuilder5/BibleCS/PreviewForm.h
blob: d308b202a1c063797eb3fbb79229523d1d1727d4 (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
//---------------------------------------------------------------------------
#ifndef TestRichEditPnPPreviewFormH
#define TestRichEditPnPPreviewFormH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>

#include "PrintFrm.h"
#include <ComCtrls.hpp>
#include <ToolWin.hpp>
#include <Buttons.hpp>
#include <vector>	// for stl
//---------------------------------------------------------------------------
class TPreviewForm : public TForm
{
__published:	// IDE-managed Components;void __fastcall FormResize(TObject *Sender);;void __fastcall FormResize(TObject *Sender);
	TToolBar *ToolBar1;
	TBitBtn *btnEnd;
	TBitBtn *btnClose;
	TBitBtn *btnBack;
	TEdit *editPages;
	TBitBtn *btnPrint;
	TBitBtn *btnBegin;
	TBitBtn *btnFwd;
	TPanel *Panel1;
	TSplitter *Splitter1;
	TSplitter *Splitter2;
	
	void __fastcall FormResize(TObject *Sender);
	void __fastcall FormShow(TObject *Sender);
	void __fastcall btnFwdClick(TObject *Sender);
	void __fastcall btnBackClick(TObject *Sender);
	void __fastcall btnEndClick(TObject *Sender);
	void __fastcall btnBeginClick(TObject *Sender);
	void __fastcall btnCloseClick(TObject *Sender);
	void __fastcall btnPrintClick(TObject *Sender);
private:	// User declarations
public:		// User declarations
	__fastcall TPreviewForm(TComponent* Owner);
	__fastcall ~TPreviewForm(void);
	void DrawRichEdit(void);
	TPanel* PreviewPanel;
    TRxRichEdit* rtfPrint;
    int currPage;
    std::vector<TPageOffsets> FPageOffsets;
	void UpdatePageNums();
};
//---------------------------------------------------------------------------
extern PACKAGE TPreviewForm *PreviewForm;
//---------------------------------------------------------------------------
#endif