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

// (DO NOT EDIT: machine generated header) 'RVPP.pas' rev: 4.00

#ifndef RVPPHPP
#define RVPPHPP

#pragma delphiheader begin
#pragma option push -w-
#include <Menus.hpp>	// Pascal unit
#include <CRVPP.hpp>	// Pascal unit
#include <Printers.hpp>	// Pascal unit
#include <PtblRV.hpp>	// Pascal unit
#include <RVScroll.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 Rvpp
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TRVPrintPreview;
#pragma pack(push, 4)
class PASCALIMPLEMENTATION TRVPrintPreview : public Crvpp::TCustomRVPrintPreview 
{
	typedef Crvpp::TCustomRVPrintPreview inherited;
	
private:
	Ptblrv::TCustomRVPrint* FRVPrint;
	int FStoredPageNo;
	Windows::TRect FStoredRect;
	int FStoredDocID;
	Graphics::TMetafile* FMetafile;
	bool FCachePageImage;
	void __fastcall SetRVPrint(const Ptblrv::TCustomRVPrint* Value);
	
protected:
	virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
		);
	DYNAMIC bool __fastcall CanDrawContents(void);
	DYNAMIC void __fastcall DrawContents(Graphics::TCanvas* Canvas, const Windows::TRect &R);
	virtual void __fastcall DrawMargins(Graphics::TCanvas* Canvas, const Windows::TRect &R, int PageNo)
		;
	DYNAMIC int __fastcall GetPreview100PercentWidth(void);
	DYNAMIC int __fastcall GetPreview100PercentHeight(void);
	DYNAMIC Windows::TRect __fastcall GetPhysMargins(void);
	DYNAMIC int __fastcall GetPageCount(void);
	virtual void __fastcall SetPageNo(const int Value);
	virtual void __fastcall Loaded(void);
	void __fastcall UpdateImage(int PageNo, const Windows::TRect &R);
	
public:
	__fastcall virtual TRVPrintPreview(Classes::TComponent* AOwner);
	__fastcall virtual ~TRVPrintPreview(void);
	
__published:
	__property bool CachePageImage = {read=FCachePageImage, write=FCachePageImage, default=0};
	__property Ptblrv::TCustomRVPrint* RVPrint = {read=FRVPrint, write=SetRVPrint};
	__property ZoomInCursor ;
	__property ZoomOutCursor ;
	__property OnZoomChanged ;
	__property MarginsPen ;
	__property PrintableAreaPen ;
	__property ClickMode ;
	__property PageBorderColor ;
	__property PageBorderWidth ;
	__property ShadowColor ;
	__property ShadowWidth ;
	__property BackgroundMargin ;
	__property Align ;
	__property Anchors ;
	__property Constraints ;
	__property Ctl3D ;
	__property DragKind ;
	__property DragMode ;
	__property Enabled ;
	__property HelpContext ;
	__property ParentCtl3D ;
	__property PopupMenu ;
	__property ShowHint ;
	__property TabOrder ;
	__property TabStop ;
	__property Visible ;
	__property OnClick ;
	__property OnDragDrop ;
	__property OnDragOver ;
	__property OnEndDrag ;
	__property OnEnter ;
	__property OnExit ;
	__property OnKeyDown ;
	__property OnKeyPress ;
	__property OnKeyUp ;
	__property OnMouseWheel ;
	__property OnMouseWheelDown ;
	__property OnMouseWheelUp ;
	__property OnStartDrag ;
	__property BorderStyle ;
	__property HScrollVisible ;
	__property Tracking ;
	__property UseXPThemes ;
	__property VScrollVisible ;
	__property WheelStep ;
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TRVPrintPreview(HWND ParentWindow) : Crvpp::TCustomRVPrintPreview(
		ParentWindow) { }
	#pragma option pop
	
};

#pragma pack(pop)

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

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

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