// Borland C++ Builder
// Copyright (c) 1995, 1999 by Borland International
// All rights reserved

// (DO NOT EDIT: machine generated header) 'UPreview.pas' rev: 5.00

#ifndef UPreviewHPP
#define UPreviewHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <MRViewer.hpp>	// Pascal unit
#include <ComCtrls.hpp>	// Pascal unit
#include <ActnList.hpp>	// Pascal unit
#include <ImgList.hpp>	// Pascal unit
#include <UBaseClass.hpp>	// Pascal unit
#include <Buttons.hpp>	// Pascal unit
#include <StdCtrls.hpp>	// Pascal unit
#include <ExtCtrls.hpp>	// Pascal unit
#include <Dialogs.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Upreview
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TPreviewPanel;
class PASCALIMPLEMENTATION TPreviewPanel : public Extctrls::TPanel 
{
	typedef Extctrls::TPanel inherited;
	
private:
	Ubaseclass::TPageProperties* PageDef;
	Graphics::TFont* EditorFont;
	Stdctrls::TLabel* LabelSample;
	int XGrid;
	int YGrid;
	Mrviewer::TPageData* PageData;
	
protected:
	virtual void __fastcall Paint(void);
	
public:
	__fastcall TPreviewPanel(Classes::TComponent* AOwner, Controls::TWinControl* AScrollBox, Graphics::TFont* 
		AEditorFont, Ubaseclass::TPageProperties* APageDef, Mrviewer::TPageData* APageData);
	__fastcall virtual ~TPreviewPanel(void);
	void __fastcall SetPreviewPaperSize(void);
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TPreviewPanel(HWND ParentWindow) : Extctrls::TPanel(
		ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TPreviewGraphicPanel;
class PASCALIMPLEMENTATION TPreviewGraphicPanel : public Extctrls::TPanel 
{
	typedef Extctrls::TPanel inherited;
	
private:
	int FMeasure;
	Mrviewer::TMRViewer* FViewer;
	Ubaseclass::TPageProperties* PageDef;
	void __fastcall Set_Measure(int Value);
	
protected:
	virtual void __fastcall Paint(void);
	
public:
	__fastcall TPreviewGraphicPanel(Classes::TComponent* AOwner, Controls::TWinControl* AScrollBox, Ubaseclass::TPageProperties* 
		APageDef, Mrviewer::TMRViewer* AViewer);
	__fastcall virtual ~TPreviewGraphicPanel(void);
	void __fastcall SetPreviewPaperSize(void);
	__property int Measure = {read=FMeasure, write=Set_Measure, nodefault};
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TPreviewGraphicPanel(HWND ParentWindow) : Extctrls::TPanel(
		ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TFormPreview;
class PASCALIMPLEMENTATION TFormPreview : public Forms::TForm 
{
	typedef Forms::TForm inherited;
	
__published:
	Extctrls::TPanel* Panel1;
	Forms::TScrollBox* ScrollBox;
	Buttons::TSpeedButton* SBClose;
	Buttons::TSpeedButton* SBPrint;
	Buttons::TSpeedButton* SBZoomIn;
	Buttons::TSpeedButton* SBZoomOut;
	Stdctrls::TStaticText* textPageNumber;
	Stdctrls::TStaticText* TextPageCount;
	Buttons::TSpeedButton* SBFirst;
	Buttons::TSpeedButton* SBPrev;
	Buttons::TSpeedButton* SBNext;
	Buttons::TSpeedButton* SBLast;
	Actnlist::TActionList* ActionList1;
	Actnlist::TAction* ActionClose;
	Controls::TImageList* ImageList1;
	Actnlist::TAction* ActionPrint;
	Actnlist::TAction* ActionZoomIn;
	Actnlist::TAction* ActionZoomOut;
	Actnlist::TAction* ActionFirst;
	Actnlist::TAction* ActionPrevious;
	Actnlist::TAction* ActionNext;
	Actnlist::TAction* ActionLast;
	Actnlist::TAction* ActionScrollBottom;
	Actnlist::TAction* ActionScrollTop;
	Actnlist::TAction* ActionScrollDown;
	Actnlist::TAction* ActionScrollUp;
	Comctrls::TProgressBar* ProgressBar;
	Buttons::TSpeedButton* SpeedButton1;
	Actnlist::TAction* ActionInfo;
	Stdctrls::TStaticText* TextMeasure;
	void __fastcall FormDestroy(System::TObject* Sender);
	void __fastcall FormCreate(System::TObject* Sender);
	void __fastcall ActionCloseExecute(System::TObject* Sender);
	void __fastcall ActionPrintExecute(System::TObject* Sender);
	void __fastcall ActionZoomInExecute(System::TObject* Sender);
	void __fastcall ActionZoomOutExecute(System::TObject* Sender);
	void __fastcall ActionFirstExecute(System::TObject* Sender);
	void __fastcall ActionPreviousExecute(System::TObject* Sender);
	void __fastcall ActionNextExecute(System::TObject* Sender);
	void __fastcall ActionLastExecute(System::TObject* Sender);
	void __fastcall ActionScrollBottomExecute(System::TObject* Sender);
	void __fastcall ActionScrollTopExecute(System::TObject* Sender);
	void __fastcall ActionScrollDownExecute(System::TObject* Sender);
	void __fastcall ActionScrollUpExecute(System::TObject* Sender);
	void __fastcall ActionInfoExecute(System::TObject* Sender);
	
private:
	bool GraphicPrint;
	TPreviewPanel* PreviewPanel;
	int FActualPage;
	Mrviewer::TPreviewData* PData;
	int GraphicPages;
	TPreviewGraphicPanel* PreviewGraphicPanel;
	void __fastcall Set_ActualPage(int Value);
	void __fastcall PreviewProgress(int Position);
	
public:
	__fastcall TFormPreview(Classes::TComponent* AOwner, AnsiString ReportCaption, Graphics::TFont* AEditorFont
		, Ubaseclass::TPageProperties* APageDef, Mrviewer::TPreviewData* APData)/* overload */;
	__fastcall TFormPreview(Classes::TComponent* AOwner, AnsiString ReportCaption, Ubaseclass::TPageProperties* 
		APageDef, int AGraphicPages)/* overload */;
	__property int ActualPage = {read=FActualPage, write=Set_ActualPage, nodefault};
public:
	#pragma option push -w-inl
	/* TCustomForm.CreateNew */ inline __fastcall virtual TFormPreview(Classes::TComponent* AOwner, int 
		Dummy) : Forms::TForm(AOwner, Dummy) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TCustomForm.Destroy */ inline __fastcall virtual ~TFormPreview(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TFormPreview(HWND ParentWindow) : Forms::TForm(ParentWindow
		) { }
	#pragma option pop
	
};


//-- var, const, procedure ---------------------------------------------------

}	/* namespace Upreview */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Upreview;
#endif
#pragma option pop	// -w-
#pragma option pop	// -Vx

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