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

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

#ifndef RVSerHPP
#define RVSerHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Classes.hpp>	// Pascal unit
#include <RVRVData.hpp>	// Pascal unit
#include <RVEdit.hpp>	// Pascal unit
#include <RVItem.hpp>	// Pascal unit
#include <RVERVData.hpp>	// Pascal unit
#include <CRVFData.hpp>	// Pascal unit
#include <CRVData.hpp>	// Pascal unit
#include <RichView.hpp>	// Pascal unit
#include <RVClasses.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Rvser
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TRVSerEntry;
class PASCALIMPLEMENTATION TRVSerEntry : public System::TObject 
{
	typedef System::TObject inherited;
	
public:
	int AbsoluteItemNo;
	Crvfdata::TCustomRVFormattedData* RVData;
	int ParentEntryNo;
	int PrevEntryNo;
	int ParentItemNo;
	Rvitem::TRVStoreSubRVData* ParentSubPos;
	int FirstItemNo;
	int LastItemNo;
	__fastcall TRVSerEntry(Crvfdata::TCustomRVFormattedData* ARVData, int AAbsoluteItemNo);
	__fastcall virtual ~TRVSerEntry(void);
};


class DELPHICLASS TRVSerializer;
class PASCALIMPLEMENTATION TRVSerializer : public Rvclasses::TRVList 
{
	typedef Rvclasses::TRVList inherited;
	
private:
	Crvfdata::TCustomRVFormattedData* RootRVData;
	int CurEntryNo;
	bool FBeyondTheEnd;
	
public:
	__fastcall TRVSerializer(Crvfdata::TCustomRVFormattedData* RVData);
	HIDESBASE bool __fastcall Expand(void);
	bool __fastcall Shrink(void);
	bool __fastcall ExpandToRV(Crvfdata::TCustomRVFormattedData* RVData, int ItemNo);
	bool __fastcall ExpandTo(int AbsoluteItemNo);
	bool __fastcall RollBackTo(int AbsoluteItemNo);
	bool __fastcall RollBackToRV(Crvfdata::TCustomRVFormattedData* RVData, int ItemNo);
	void __fastcall GoToCaret(void);
	void __fastcall GoToSelEnd(int &AbsItemNo1, int &Offs1, int &AbsItemNo2, int &Offs2);
	void __fastcall AbsoluteToRV(int AbsoluteItemNo, Crvfdata::TCustomRVFormattedData* &RVData, int &ItemNo
		);
	void __fastcall RVToAbsolute(Crvfdata::TCustomRVFormattedData* RVData, int ItemNo, int &AbsoluteItemNo
		);
	void __fastcall GoToPosRV(Crvfdata::TCustomRVFormattedData* RVData, int ItemNo);
	void __fastcall GoToPos(int AbsoluteItemNo);
	void __fastcall CurPosToRV(Crvfdata::TCustomRVFormattedData* &RVData, int &ItemNo);
	int __fastcall CurPos(void);
	void __fastcall EditAtCurPos(void);
	__property bool BeyondTheEnd = {read=FBeyondTheEnd, nodefault};
public:
	#pragma option push -w-inl
	/* TRVList.Destroy */ inline __fastcall virtual ~TRVSerializer(void) { }
	#pragma option pop
	
};


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

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

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