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

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

#ifndef RVThreadHPP
#define RVThreadHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <RVTypes.hpp>	// Pascal unit
#include <CRVData.hpp>	// Pascal unit
#include <RVScroll.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Rvthread
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TRVWordEnumThread;
class PASCALIMPLEMENTATION TRVWordEnumThread : public Classes::TThread 
{
	typedef Classes::TThread inherited;
	
private:
	int NextItemNo;
	int NextOffs;
	int StopWorking;
	AnsiString CurText;
	char *CurTextPtr;
	char *CurTextStartPtr;
	Rvscroll::TRVScroller* FRichView;
	int CurItemNo;
	int WordOffs;
	int WordLen;
	bool CurItemCheckStarted;
	Crvdata::TCustomRVData* NextRVData;
	Crvdata::TCustomRVData* CurRVData;
	bool FForceSetBack;
	bool Delaying;
	bool EditedWhileDelayed;
	void __fastcall AddMisspelling(void);
	void __fastcall SyncProc(void);
	AnsiString __fastcall GetNextWord(void);
	void __fastcall GetMisspellingDrawItems(int &DItemNo1, int &DItemNo2);
	void __fastcall SetBack(void);
	
protected:
	virtual void __fastcall Execute(void);
	virtual void __fastcall DoTerminate(void);
	
public:
	bool HasModifiedWord;
	bool CheckUnchecked;
	__fastcall TRVWordEnumThread(void);
	void __fastcall Reset(Rvscroll::TRVScroller* RichView);
	void __fastcall LaterSetBackTo(Crvdata::TCustomRVData* RVData, int ItemNo, int Offs);
	void __fastcall SetBackToCurItem(Crvdata::TCustomRVData* RVData, int ItemNo);
	bool __fastcall IsChecked(Crvdata::TCustomRVData* RVData, int ItemNo);
	void __fastcall RemoveRVData(Crvdata::TCustomRVData* RVData);
	__fastcall virtual ~TRVWordEnumThread(void);
	void __fastcall Stop(bool ResetNexts);
	void __fastcall ContinueCheck(void);
	void __fastcall Finish(void);
};


//-- var, const, procedure ---------------------------------------------------
extern PACKAGE bool RichViewApostropheInWord;

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

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