// CodeGear C++Builder
// Copyright (c) 1995, 2009 by Embarcadero Technologies, Inc.
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Anypreview.pas' rev: 21.00

#ifndef AnypreviewHPP
#define AnypreviewHPP

#pragma delphiheader begin
#pragma option push
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp>	// Pascal unit
#include <Sysinit.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Sysutils.hpp>	// Pascal unit
#include <Variants.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Dialogs.hpp>	// Pascal unit
#include <Menus.hpp>	// Pascal unit
#include <Stdctrls.hpp>	// Pascal unit
#include <Printers.hpp>	// Pascal unit
#include <Extctrls.hpp>	// Pascal unit
#include <Buttons.hpp>	// Pascal unit
#include <Anyprint.hpp>	// Pascal unit
#include <Anymetafile.hpp>	// Pascal unit
#include <Commdlg.hpp>	// Pascal unit
#include <Anyflatcombo.hpp>	// Pascal unit
#include <Anyflatedit.hpp>	// Pascal unit
#include <Anygrids.hpp>	// Pascal unit
#include <Types.hpp>	// Pascal unit

//-- user supplied -----------------------------------------------------------

namespace Anypreview
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TPagePaint;
class DELPHICLASS TfrmAnyPreview;
class PASCALIMPLEMENTATION TPagePaint : public Extctrls::TPanel
{
	typedef Extctrls::TPanel inherited;
	
private:
	int FOffx;
	int FOffy;
	TfrmAnyPreview* FPreview;
	int FPageNo;
	int FViewWidth;
	int FViewHeight;
	bool FDown;
	Types::TPoint FDownPoint;
	Types::TPoint FDownPos;
	bool FCanPaint;
	bool FShowing;
	void __fastcall SetOffX(const int Value);
	void __fastcall SetOffY(const int Value);
	void __fastcall SetPageNo(const int Value);
	MESSAGE void __fastcall WMGetDlgCode(Messages::TWMNoParams &Msg);
	
protected:
	virtual void __fastcall Paint(void);
	DYNAMIC bool __fastcall DoMouseWheelDown(Classes::TShiftState Shift, const Types::TPoint &MousePos);
	DYNAMIC bool __fastcall DoMouseWheelUp(Classes::TShiftState Shift, const Types::TPoint &MousePos);
	
public:
	DYNAMIC void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
	DYNAMIC void __fastcall MouseMove(Classes::TShiftState Shift, int X, int Y);
	DYNAMIC void __fastcall MouseUp(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
	DYNAMIC void __fastcall KeyDown(System::Word &Key, Classes::TShiftState Shift);
	__fastcall virtual TPagePaint(Classes::TComponent* AOwner);
	__fastcall virtual ~TPagePaint(void);
	__property int ViewWidth = {read=FViewWidth, write=FViewWidth, nodefault};
	__property int ViewHeight = {read=FViewHeight, write=FViewHeight, nodefault};
	__property int Offx = {read=FOffx, write=SetOffX, nodefault};
	__property int Offy = {read=FOffy, write=SetOffY, nodefault};
	__property int PageNo = {read=FPageNo, write=SetPageNo, nodefault};
public:
	/* TWinControl.CreateParented */ inline __fastcall TPagePaint(HWND ParentWindow) : Extctrls::TPanel(ParentWindow) { }
	
};


class PASCALIMPLEMENTATION TfrmAnyPreview : public Forms::TForm
{
	typedef Forms::TForm inherited;
	
__published:
	Extctrls::TPanel* TPanel;
	Extctrls::TBevel* Bevel2;
	Extctrls::TPanel* pnlToolbar;
	Buttons::TSpeedButton* btnZoom;
	Buttons::TSpeedButton* btnPrint;
	Buttons::TSpeedButton* btnExit;
	Buttons::TSpeedButton* btnPageSetup;
	Extctrls::TPanel* PreviewPanel;
	Forms::TScrollBox* ScrollBox1;
	Extctrls::TPanel* RPanel;
	Buttons::TSpeedButton* PgUp;
	Buttons::TSpeedButton* PgDown;
	Stdctrls::TScrollBar* VScrollBar;
	Extctrls::TPanel* BPanel;
	Extctrls::TBevel* Bevel1;
	Stdctrls::TLabel* lblPage;
	Stdctrls::TScrollBar* HScrollBar;
	Menus::TPopupMenu* ScaleMenu;
	Menus::TMenuItem* N2001;
	Menus::TMenuItem* N1501;
	Menus::TMenuItem* N1001;
	Menus::TMenuItem* N501;
	Menus::TMenuItem* N101;
	Menus::TMenuItem* N1;
	Menus::TMenuItem* N2;
	Dialogs::TOpenDialog* OpenDialog;
	Dialogs::TSaveDialog* SaveDialog;
	Buttons::TSpeedButton* btnFirst;
	Buttons::TSpeedButton* btnPrior;
	Buttons::TSpeedButton* btnNext;
	Buttons::TSpeedButton* btnLast;
	Buttons::TSpeedButton* btnZoomFlag;
	Extctrls::TBevel* Bevel3;
	Extctrls::TBevel* Bevel4;
	Extctrls::TBevel* Line1;
	Extctrls::TBevel* Line2;
	Extctrls::TBevel* Bevel5;
	Extctrls::TTimer* Timer1;
	Buttons::TSpeedButton* btnGo;
	Extctrls::TTimer* WheelTimer;
	void __fastcall FormCreate(System::TObject* Sender);
	void __fastcall FormShow(System::TObject* Sender);
	void __fastcall btnExitClick(System::TObject* Sender);
	void __fastcall FormResize(System::TObject* Sender);
	void __fastcall VScrollBarChange(System::TObject* Sender);
	void __fastcall HScrollBarChange(System::TObject* Sender);
	void __fastcall PgDownClick(System::TObject* Sender);
	void __fastcall PgUpClick(System::TObject* Sender);
	void __fastcall btnZoomClick(System::TObject* Sender);
	void __fastcall N2Click(System::TObject* Sender);
	void __fastcall btnPrintClick(System::TObject* Sender);
	void __fastcall btnPageSetupClick(System::TObject* Sender);
	void __fastcall btnFirstClick(System::TObject* Sender);
	void __fastcall btnLastClick(System::TObject* Sender);
	void __fastcall FormActivate(System::TObject* Sender);
	void __fastcall FormClose(System::TObject* Sender, Forms::TCloseAction &Action);
	void __fastcall ScrollBox1Resize(System::TObject* Sender);
	void __fastcall btnZoomFlagClick(System::TObject* Sender);
	void __fastcall FormDestroy(System::TObject* Sender);
	void __fastcall pnlToolbarMouseMove(System::TObject* Sender, Classes::TShiftState Shift, int X, int Y);
	void __fastcall Timer1Timer(System::TObject* Sender);
	void __fastcall btnGoClick(System::TObject* Sender);
	void __fastcall edtPageKeyPress(System::TObject* Sender, System::WideChar &Key);
	void __fastcall FormMouseWheel(System::TObject* Sender, Classes::TShiftState Shift, int WheelDelta, const Types::TPoint &MousePos, bool &Handled);
	void __fastcall WheelTimerTimer(System::TObject* Sender);
	
private:
	StaticArray<System::WideChar, 32> FDevice;
	StaticArray<System::WideChar, 260> FDriver;
	StaticArray<System::WideChar, 33> FPort;
	unsigned FDeviceMode;
	TPagePaint* FPaintBox;
	Anyprint::TAnyCompositePrint* FCompositeReport;
	Anyprint::TAnyPrint* FReport;
	HICON ZoomInHandle;
	HICON ZoomOutHandle;
	System::UnicodeString Pages;
	int Copies;
	bool Collate;
	int Bin;
	double Scale;
	bool Updating;
	int PageCount;
	Anyflatcombo::TAnyFlatComboBox* FZoomCombo;
	Anyflatedit::TAnyFlatEdit* FedtPage;
	int FWheelCount;
	bool FWheeled;
	void __fastcall SetPageNo(int PageNo);
	void __fastcall SetCompositeReport(const Anyprint::TAnyCompositePrint* Value);
	void __fastcall SetReport(const Anyprint::TAnyPrint* Value);
	Anyprint::TAnyPrint* __fastcall GetPrint(int PageNo);
	int __fastcall GetPageCount(void);
	void __fastcall ZoomKeyPress(System::TObject* Sender, System::WideChar &Key);
	void __fastcall ZoomSelect(System::TObject* Sender);
	
public:
	__property Anyprint::TAnyPrint* Report = {read=FReport, write=SetReport};
	__property Anyprint::TAnyCompositePrint* CompositeReport = {read=FCompositeReport, write=SetCompositeReport};
public:
	/* TCustomForm.Create */ inline __fastcall virtual TfrmAnyPreview(Classes::TComponent* AOwner) : Forms::TForm(AOwner) { }
	/* TCustomForm.CreateNew */ inline __fastcall virtual TfrmAnyPreview(Classes::TComponent* AOwner, int Dummy) : Forms::TForm(AOwner, Dummy) { }
	/* TCustomForm.Destroy */ inline __fastcall virtual ~TfrmAnyPreview(void) { }
	
public:
	/* TWinControl.CreateParented */ inline __fastcall TfrmAnyPreview(HWND ParentWindow) : Forms::TForm(ParentWindow) { }
	
};


//-- var, const, procedure ---------------------------------------------------
extern PACKAGE TfrmAnyPreview* frmAnyPreview;

}	/* namespace Anypreview */
using namespace Anypreview;
#pragma pack(pop)
#pragma option pop

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// AnypreviewHPP
