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

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

#ifndef RvppHPP
#define RvppHPP

#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 <Classes.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Rvscroll.hpp>	// Pascal unit
#include <Ptblrv.hpp>	// Pascal unit
#include <Printers.hpp>	// Pascal unit
#include <Crvpp.hpp>	// Pascal unit
#include <Types.hpp>	// Pascal unit
#include <Menus.hpp>	// Pascal unit

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

namespace Rvpp
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TRVPrintPreview;
class PASCALIMPLEMENTATION TRVPrintPreview : public Crvpp::TCustomRVPrintPreview
{
	typedef Crvpp::TCustomRVPrintPreview inherited;
	
private:
	Ptblrv::TCustomRVPrint* FRVPrint;
	int FStoredPageNo;
	Types::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 Types::TRect &R);
	virtual void __fastcall DrawMargins(Graphics::TCanvas* Canvas, const Types::TRect &R, int PageNo);
	DYNAMIC int __fastcall GetPreview100PercentWidth(void);
	DYNAMIC int __fastcall GetPreview100PercentHeight(void);
	DYNAMIC Types::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 Types::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 = {default=102};
	__property ZoomOutCursor = {default=103};
	__property OnZoomChanged;
	__property MarginsPen;
	__property PrintableAreaPen;
	__property ClickMode = {default=1};
	__property PageBorderColor = {default=-16777203};
	__property PageBorderWidth = {default=2};
	__property ShadowColor = {default=-16777195};
	__property ShadowWidth = {default=4};
	__property BackgroundMargin = {default=20};
	__property Align = {default=0};
	__property Anchors = {default=3};
	__property Constraints;
	__property Ctl3D;
	__property DragKind = {default=0};
	__property DragMode = {default=0};
	__property Enabled = {default=1};
	__property HelpContext = {default=0};
	__property ParentCtl3D = {default=1};
	__property PopupMenu;
	__property ShowHint;
	__property TabOrder = {default=-1};
	__property TabStop = {default=1};
	__property Visible = {default=1};
	__property OnClick;
	__property OnContextPopup;
	__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 = {default=1};
	__property Tracking = {default=1};
	__property UseXPThemes = {default=1};
	__property VScrollVisible = {default=1};
	__property WheelStep = {default=2};
public:
	/* TWinControl.CreateParented */ inline __fastcall TRVPrintPreview(HWND ParentWindow) : Crvpp::TCustomRVPrintPreview(ParentWindow) { }
	
};


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

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

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