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

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

#ifndef PJSimpleTextGridHPP
#define PJSimpleTextGridHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <PSJob.hpp>	// Pascal unit
#include <PJTextGrid.hpp>	// Pascal unit
#include <PJGrid.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 Pjsimpletextgrid
{
//-- type declarations -------------------------------------------------------
typedef void __fastcall (__closure *TCellTextEvent)(System::TObject* Sender, int APageIndex, int ACol
	, int ARow, AnsiString &Text);

typedef void __fastcall (__closure *TCellAlignEvent)(System::TObject* Sender, int ACol, int ARow, Classes::TAlignment 
	&Alignment);

class DELPHICLASS TCustomSimpleTextGridPrintJob;
class PASCALIMPLEMENTATION TCustomSimpleTextGridPrintJob : public Pjtextgrid::TCustomTextGridPrintJob 
	
{
	typedef Pjtextgrid::TCustomTextGridPrintJob inherited;
	
private:
	Pjgrid::TColWidthEvent FOnColWidth;
	TCellTextEvent FOnCellText;
	TCellAlignEvent FOnCellAlign;
	
protected:
	__property Pjgrid::TColWidthEvent OnColWidth = {read=FOnColWidth, write=FOnColWidth};
	__property TCellTextEvent OnCellText = {read=FOnCellText, write=FOnCellText};
	__property TCellAlignEvent OnCellAlign = {read=FOnCellAlign, write=FOnCellAlign};
	
public:
	virtual int __fastcall GetColWidth(Graphics::TCanvas* TheCanvas, int ACol);
	virtual AnsiString __fastcall GetCellText(int APageIndex, int ACol, int ARow);
	virtual Classes::TAlignment __fastcall GetCellAlignment(int ACol, int ARow);
public:
	#pragma option push -w-inl
	/* TCustomTextGridPrintJob.Create */ inline __fastcall virtual TCustomSimpleTextGridPrintJob(Classes::TComponent* 
		AOwner) : Pjtextgrid::TCustomTextGridPrintJob(AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TCustomTextGridPrintJob.Destroy */ inline __fastcall virtual ~TCustomSimpleTextGridPrintJob(void
		) { }
	#pragma option pop
	
};


class DELPHICLASS TSimpleTextGridPrintJob;
class PASCALIMPLEMENTATION TSimpleTextGridPrintJob : public TCustomSimpleTextGridPrintJob 
{
	typedef TCustomSimpleTextGridPrintJob inherited;
	
__published:
	__property OnColWidth ;
	__property OnCellText ;
	__property OnCellAlign ;
	__property HeaderFont ;
	__property PageFont ;
	__property FooterFont ;
	__property ClipMode ;
	__property ColCount ;
	__property RowCount ;
	__property RowsPerPage ;
	__property TableBorders ;
	__property HeaderCellBorders ;
	__property PageCellBorders ;
	__property FooterCellBorders ;
	__property IndexColumn ;
	__property IndexStart ;
	__property Title ;
	__property Margins ;
	__property MarginsUnits ;
	__property Header ;
	__property HeaderUnits ;
	__property Footer ;
	__property FooterUnits ;
	__property PageMode ;
	__property PageWidth ;
	__property PageHeight ;
	__property PageUnits ;
	__property Orientation ;
	__property Options ;
	__property OnCreate ;
	__property OnDestroy ;
	__property OnPrinterSetupChange ;
	__property OnStartPrint ;
	__property OnEndPrint ;
	__property OnPrintProgress ;
	__property OnStartPrintPage ;
	__property OnEndPrintPage ;
	__property OnUpdate ;
public:
	#pragma option push -w-inl
	/* TCustomTextGridPrintJob.Create */ inline __fastcall virtual TSimpleTextGridPrintJob(Classes::TComponent* 
		AOwner) : TCustomSimpleTextGridPrintJob(AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TCustomTextGridPrintJob.Destroy */ inline __fastcall virtual ~TSimpleTextGridPrintJob(void) { }
	#pragma option pop
	
};


//-- var, const, procedure ---------------------------------------------------
extern PACKAGE void __fastcall Register(void);

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

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