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

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

#ifndef AHMTTextReplaceHPP
#define AHMTTextReplaceHPP
#include <AHMSystemClass.hpp>
#include <Classes.hpp>
#include <Messages.hpp>
#include <Windows.hpp>
#include <SysUtils.hpp>
#include <SysInit.hpp>
#include <System.hpp>

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

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

class DELPHICLASS TAHMTextReplace;
class PASCALIMPLEMENTATION TAHMTextReplace : public Ahmsystemclass::TAHMSystemsComponent 
{
	typedef Ahmsystemclass::TAHMSystemsComponent inherited;
	
private:
	int FLineNumber;
	TAHMBeforeWrite FBeforeWrite;
	System::AnsiString FFileTo;
	System::AnsiString FFileFrom;
	System::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(System::AnsiString MyNewString);
	__property int LineNo = {read=FLineNumber, nodefault};
	__property System::AnsiString Line = {read=FLine};
	
__published:
	__property System::AnsiString FileFrom = {read=FFileFrom, write=FFileFrom};
	__property System::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:
	/* TComponent.Destroy */ __fastcall virtual ~TAHMTextReplace(void) { }
	
};

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

}	/* namespace Ahmttextreplace */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Ahmttextreplace;
#endif
//-- end unit ----------------------------------------------------------------
#endif	// AHMTTextReplace
