// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'ahmttextreplace.pas' rev: 6.00

#ifndef ahmttextreplaceHPP
#define ahmttextreplaceHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <ahmsystemclass.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Ahmttextreplace
{
//-- type declarations -------------------------------------------------------
typedef void __fastcall (__closure *TAHMBeforeWrite)(System::TObject* Sender, AnsiString &Line, int LineNo, bool &WriteLine);

class DELPHICLASS TAHMTextReplace;
class PASCALIMPLEMENTATION TAHMTextReplace : public Ahmsystemclass::TAHMSystemComponent 
{
	typedef Ahmsystemclass::TAHMSystemComponent inherited;
	
private:
	int FLineNumber;
	TAHMBeforeWrite FBeforeWrite;
	AnsiString FFileTo;
	AnsiString FFileFrom;
	AnsiString FLine;
	int FNoOfLinesOnly;
	bool FBusyWriting;
	bool FUseNoOfLines;
	Classes::TNotifyEvent FAfterExecute;
	
public:
	__fastcall virtual TAHMTextReplace(Classes::TComponent* AOwner);
	bool __fastcall Execute(void);
	void __fastcall AddNewString(AnsiString MyNewString);
	__property int LineNo = {read=FLineNumber, nodefault};
	__property AnsiString Line = {read=FLine};
	
__published:
	__property AnsiString FileFrom = {read=FFileFrom, write=FFileFrom};
	__property AnsiString FileTo = {read=FFileTo, write=FFileTo};
	__property TAHMBeforeWrite BeforeWrite = {read=FBeforeWrite, write=FBeforeWrite};
	__property bool UseNoOfLines = {read=FUseNoOfLines, write=FUseNoOfLines, default=0};
	__property int NoOfLinesOnly = {read=FNoOfLinesOnly, write=FNoOfLinesOnly, nodefault};
	__property Classes::TNotifyEvent AfterExecute = {read=FAfterExecute, write=FAfterExecute};
public:
	#pragma option push -w-inl
	/* TComponent.Destroy */ inline __fastcall virtual ~TAHMTextReplace(void) { }
	#pragma option pop
	
};


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

}	/* namespace Ahmttextreplace */
using namespace Ahmttextreplace;
#pragma option pop	// -w-
#pragma option pop	// -Vx

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