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

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

#ifndef PtRVDataHPP
#define PtRVDataHPP

#pragma delphiheader begin
#pragma option push -w-
#include <RVClasses.hpp>	// Pascal unit
#include <RVUni.hpp>	// Pascal unit
#include <RichView.hpp>	// Pascal unit
#include <RVScroll.hpp>	// Pascal unit
#include <RVStyle.hpp>	// Pascal unit
#include <RVRVData.hpp>	// Pascal unit
#include <CRVFData.hpp>	// Pascal unit
#include <CRVData.hpp>	// Pascal unit
#include <RVBack.hpp>	// Pascal unit
#include <RVItem.hpp>	// Pascal unit
#include <RVFuncs.hpp>	// Pascal unit
#include <DLines.hpp>	// Pascal unit
#include <Printers.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Ptrvdata
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TRVMultiDrawItemInfo;
#pragma pack(push, 4)
class PASCALIMPLEMENTATION TRVMultiDrawItemInfo : public Dlines::TRVDrawLineInfo 
{
	typedef Dlines::TRVDrawLineInfo inherited;
	
public:
	Rvclasses::TRVList* FPartsList;
	__fastcall TRVMultiDrawItemInfo(void);
	__fastcall virtual ~TRVMultiDrawItemInfo(void);
	__property Rvclasses::TRVList* PartsList = {read=FPartsList};
public:
	#pragma option push -w-inl
	/* TRVDrawLineInfo.CreateEx */ inline __fastcall TRVMultiDrawItemInfo(int ALeft, int ATop, int AWidth
		, int AHeight, int AItemNo, Byte AFromNewLine) : Dlines::TRVDrawLineInfo(ALeft, ATop, AWidth, AHeight
		, AItemNo, AFromNewLine) { }
	#pragma option pop
	
};

#pragma pack(pop)

class DELPHICLASS TCustomPrintableRVData;
#pragma pack(push, 4)
class PASCALIMPLEMENTATION TCustomPrintableRVData : public Rvrvdata::TRichViewRVData 
{
	typedef Rvrvdata::TRichViewRVData inherited;
	
protected:
	virtual Rvback::TRVBackground* __fastcall GetBack(void);
	virtual int __fastcall GetTopCoord(int PageNo);
	virtual int __fastcall GetTopCoord2(int PageNo);
	virtual int __fastcall GetPrintableAreaTop(void);
	virtual void __fastcall DoPagePrepaint(Graphics::TCanvas* Canvas, int PageNo, bool Preview);
	virtual void __fastcall GetDrawItemsRange(int PageNo, int &StartNo, int &EndNo, int &Part);
	virtual void __fastcall CheckPageNo(int PageNo);
	DYNAMIC bool __fastcall ShareItems(void);
	DYNAMIC Graphics::TCanvas* __fastcall InitPrinterCanvas(void);
	DYNAMIC void __fastcall DonePrinterCanvas(Graphics::TCanvas* Canvas);
	
public:
	bool ParentDrawsBack;
	virtual int __fastcall GetPrintableAreaLeft(int PageNo);
	void __fastcall DrawPage(int pgNo, Graphics::TCanvas* Canvas, bool Preview, bool Correction);
public:
		
	#pragma option push -w-inl
	/* TRichViewRVData.Create */ inline __fastcall virtual TCustomPrintableRVData(Rvscroll::TRVScroller* 
		RichView) : Rvrvdata::TRichViewRVData(RichView) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TCustomRVFormattedData.Destroy */ inline __fastcall virtual ~TCustomPrintableRVData(void) { }
	#pragma option pop
	
};

#pragma pack(pop)

class DELPHICLASS TCustomMainPtblRVData;
#pragma pack(push, 4)
class PASCALIMPLEMENTATION TCustomMainPtblRVData : public TCustomPrintableRVData 
{
	typedef TCustomPrintableRVData inherited;
	
private:
	int TmpTMPix;
	int TmpBMPix;
	
protected:
	int StreamSavePage;
	Graphics::TCanvas* PrinterCanvas;
	DYNAMIC void __fastcall DoFormatting(int PageCompleted, Richview::TRVPrintingStep Step);
	virtual Rvback::TRVBackground* __fastcall GetBack(void);
	virtual int __fastcall GetTopCoord(int PageNo);
	virtual int __fastcall GetTopCoord2(int PageNo);
	virtual void __fastcall GetSADForFormatting(Graphics::TCanvas* Canvas, Rvfuncs::TRVScreenAndDevice 
		&sad);
	virtual int __fastcall GetPrintableAreaTop(void);
	virtual void __fastcall GetDrawItemsRange(int PageNo, int &StartNo, int &EndNo, int &Part);
	virtual void __fastcall CheckPageNo(int PageNo);
	DYNAMIC int __fastcall GetPageWidth(void);
	DYNAMIC int __fastcall GetPageHeight(void);
	DYNAMIC void __fastcall Prepare(void);
	DYNAMIC void __fastcall RVFGetLimits(Crvdata::TRVFSaveScope SaveScope, int &StartItem, int &EndItem
		, int &StartOffs, int &EndOffs, Rvitem::TRVMultiDrawItemPart* &StartPart, Rvitem::TRVMultiDrawItemPart* 
		&EndPart);
	
public:
	Classes::TCollection* PagesColl;
	Rvfuncs::TRVScreenAndDevice PrnSad;
	int FTopMarginPix;
	int FBottomMarginPix;
	bool Transparent;
	int TmpLM;
	int TmpTM;
	virtual int __fastcall GetPrintableAreaLeft(int PageNo);
	int __fastcall FormatPages(void);
	void __fastcall FormatNextPage(int &i, int &StartAt, int &StartY, int &Y, bool &Splitting, int MaxHeight
		);
	virtual Graphics::TColor __fastcall GetColor(void);
	bool __fastcall SavePageAsRVF(Classes::TStream* Stream, int PageNo, Graphics::TColor Color, Rvback::TRVBackground* 
		Background);
	__fastcall virtual TCustomMainPtblRVData(Rvscroll::TRVScroller* RichView);
	__fastcall virtual ~TCustomMainPtblRVData(void);
};

#pragma pack(pop)

class DELPHICLASS TPrintableRVData;
#pragma pack(push, 4)
class PASCALIMPLEMENTATION TPrintableRVData : public TCustomMainPtblRVData 
{
	typedef TCustomMainPtblRVData inherited;
	
protected:
	DYNAMIC void __fastcall DoFormatting(int PageCompleted, Richview::TRVPrintingStep Step);
	DYNAMIC Graphics::TCanvas* __fastcall InitPrinterCanvas(void);
	DYNAMIC void __fastcall DonePrinterCanvas(Graphics::TCanvas* Canvas);
	virtual void __fastcall DoPagePrepaint(Graphics::TCanvas* Canvas, int PageNo, bool Preview);
	DYNAMIC int __fastcall GetPageWidth(void);
	DYNAMIC int __fastcall GetPageHeight(void);
	DYNAMIC void __fastcall Prepare(void);
	
public:
	int TmpRM;
	int TmpBM;
	int TmpLMMir;
	virtual int __fastcall GetPrintableAreaLeft(int PageNo);
public:
	#pragma option push -w-inl
	/* TCustomMainPtblRVData.Create */ inline __fastcall virtual TPrintableRVData(Rvscroll::TRVScroller* 
		RichView) : TCustomMainPtblRVData(RichView) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TCustomMainPtblRVData.Destroy */ inline __fastcall virtual ~TPrintableRVData(void) { }
	#pragma option pop
	
};

#pragma pack(pop)

class DELPHICLASS TRectPtblRVData;
#pragma pack(push, 4)
class PASCALIMPLEMENTATION TRectPtblRVData : public TCustomPrintableRVData 
{
	typedef TCustomPrintableRVData inherited;
	
protected:
	virtual void __fastcall GetSADForFormatting(Graphics::TCanvas* Canvas, Rvfuncs::TRVScreenAndDevice 
		&sad);
	virtual int __fastcall GetPrintableAreaTop(void);
	virtual int __fastcall GetTopCoord(int PageNo);
	DYNAMIC Graphics::TCanvas* __fastcall InitPrinterCanvas(void);
	
public:
	Crvfdata::TCustomRVFormattedData* FPrintingData;
	int Left;
	int Top;
	int DX;
	int DY;
	int Width;
	int Height;
	Graphics::TColor FColor;
	virtual int __fastcall GetPrintableAreaLeft(int PageNo);
	virtual Crvdata::TCustomRVData* __fastcall GetParentData(void);
	virtual Crvdata::TCustomRVData* __fastcall GetRootData(void);
	__fastcall TRectPtblRVData(Rvscroll::TRVScroller* RichView, Crvfdata::TCustomRVFormattedData* PrintingData
		);
	virtual int __fastcall GetWidth(void);
	virtual int __fastcall GetHeight(void);
	virtual int __fastcall GetLeftMargin(void);
	virtual int __fastcall GetRightMargin(void);
	virtual int __fastcall GetTopMargin(void);
	virtual int __fastcall GetBottomMargin(void);
	virtual Graphics::TCanvas* __fastcall GetCanvas(void);
	virtual Graphics::TColor __fastcall GetColor(void);
public:
	#pragma option push -w-inl
	/* TCustomRVFormattedData.Destroy */ inline __fastcall virtual ~TRectPtblRVData(void) { }
	#pragma option pop
	
};

#pragma pack(pop)

class DELPHICLASS TRVPageInfo;
#pragma pack(push, 4)
class PASCALIMPLEMENTATION TRVPageInfo : public Classes::TCollectionItem 
{
	typedef Classes::TCollectionItem inherited;
	
public:
	int StartY;
	int StartDrawItemNo;
	int StartPart;
	int StartY2;
	virtual void __fastcall Assign(Classes::TPersistent* Source);
public:
	#pragma option push -w-inl
	/* TCollectionItem.Create */ inline __fastcall virtual TRVPageInfo(Classes::TCollection* Collection
		) : Classes::TCollectionItem(Collection) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TCollectionItem.Destroy */ inline __fastcall virtual ~TRVPageInfo(void) { }
	#pragma option pop
	
};

#pragma pack(pop)

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

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

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