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

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

#ifndef RVSerHPP
#define RVSerHPP
#include <Classes.hpp>
#include <RVRVData.hpp>
#include <RVEdit.hpp>
#include <RVItem.hpp>
#include <RVERVData.hpp>
#include <CRVFData.hpp>
#include <CRVData.hpp>
#include <RichView.hpp>
#include <RVClasses.hpp>
#include <SysUtils.hpp>
#include <SysInit.hpp>
#include <System.hpp>

//-- 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:
	/* TRVList.Destroy */ __fastcall virtual ~TRVSerializer(void) { }
	
};

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

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