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

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

#ifndef AHMTTextReplaceHPP
#define AHMTTextReplaceHPP

#pragma delphiheader begin
#pragma option push -w-
#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;
#pragma pack(push, 4)
class PASCALIMPLEMENTATION TAHMTextReplace : public Ahmsystemclass::TAHMSystemsComponent 
{
	typedef Ahmsystemclass::TAHMSystemsComponent 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
	
};

#pragma pack(pop)

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

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

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