aboutsummaryrefslogblamecommitdiffstats
path: root/apps/windoze/CBuilder5/BibleCS/PreviewForm.h
blob: d308b202a1c063797eb3fbb79229523d1d1727d4 (plain) (tree)





















































                                                                                                                                   
//---------------------------------------------------------------------------
#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