// CodeGear C++Builder
// Copyright (c) 1995, 2008 by CodeGear
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Rvdocparams.pas' rev: 20.00

#ifndef RvdocparamsHPP
#define RvdocparamsHPP

#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 <Classes.hpp>	// Pascal unit
#include <Printers.hpp>	// Pascal unit
#include <Sysutils.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Rvfuncs.hpp>	// Pascal unit
#include <Rvstyle.hpp>	// Pascal unit
#include <Rvscroll.hpp>	// Pascal unit
#include <Rvfmisc.hpp>	// Pascal unit
#include <Rvtypes.hpp>	// Pascal unit

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

namespace Rvdocparams
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TRVDocParameters;
#pragma pack(push,2)
class PASCALIMPLEMENTATION TRVDocParameters : public Classes::TPersistent
{
	typedef Classes::TPersistent inherited;
	
private:
	System::Extended FPageWidth;
	System::Extended FPageHeight;
	System::Extended FLeftMargin;
	System::Extended FRightMargin;
	System::Extended FTopMargin;
	System::Extended FBottomMargin;
	System::Extended FHeaderY;
	System::Extended FFooterY;
	Rvstyle::TRVUnits FUnits;
	Printers::TPrinterOrientation FOrientation;
	int FZoomPercent;
	Rvscroll::TRVZoomMode FZoomMode;
	bool FMirrorMargins;
	bool __fastcall StorePageHeight(void);
	bool __fastcall StorePageWidth(void);
	bool __fastcall StoreBottomMargin(void);
	bool __fastcall StoreLeftMargin(void);
	bool __fastcall StoreRightMargin(void);
	bool __fastcall StoreTopMargin(void);
	bool __fastcall StoreHeaderY(void);
	bool __fastcall StoreFooterY(void);
	
public:
	__fastcall TRVDocParameters(void);
	void __fastcall Reset(void);
	void __fastcall ResetLayout(void);
	void __fastcall ConvertToUnits(Rvstyle::TRVUnits AUnits);
	virtual void __fastcall Assign(Classes::TPersistent* Source);
	bool __fastcall AreAllValuesDefault(void);
	int __fastcall GetRVFLineCount(void);
	void __fastcall SaveToRVF(Classes::TStream* Stream);
	void __fastcall ReadProperyFromString(const Rvtypes::TRVAnsiString s);
	void __fastcall SaveToRTF(Classes::TStream* Stream);
	int __fastcall ToTwips(System::Extended Value);
	System::Extended __fastcall FromTwips(int Value);
	System::Extended __fastcall UnitsPerInch(Rvstyle::TRVUnits Units);
	
__published:
	__property System::Extended PageWidth = {read=FPageWidth, write=FPageWidth, stored=StorePageWidth};
	__property System::Extended PageHeight = {read=FPageHeight, write=FPageHeight, stored=StorePageHeight};
	__property Rvstyle::TRVUnits Units = {read=FUnits, write=FUnits, default=0};
	__property Printers::TPrinterOrientation Orientation = {read=FOrientation, write=FOrientation, default=0};
	__property System::Extended LeftMargin = {read=FLeftMargin, write=FLeftMargin, stored=StoreLeftMargin};
	__property System::Extended RightMargin = {read=FRightMargin, write=FRightMargin, stored=StoreRightMargin};
	__property System::Extended TopMargin = {read=FTopMargin, write=FTopMargin, stored=StoreTopMargin};
	__property System::Extended BottomMargin = {read=FBottomMargin, write=FBottomMargin, stored=StoreBottomMargin};
	__property System::Extended HeaderY = {read=FHeaderY, write=FHeaderY, stored=StoreHeaderY};
	__property System::Extended FooterY = {read=FFooterY, write=FFooterY, stored=StoreFooterY};
	__property int ZoomPercent = {read=FZoomPercent, write=FZoomPercent, default=100};
	__property Rvscroll::TRVZoomMode ZoomMode = {read=FZoomMode, write=FZoomMode, default=2};
	__property bool MirrorMargins = {read=FMirrorMargins, write=FMirrorMargins, default=0};
public:
	/* TPersistent.Destroy */ inline __fastcall virtual ~TRVDocParameters(void) { }
	
};

#pragma pack(pop)

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

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

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