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

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

#ifndef RVSerHPP
#define RVSerHPP

#pragma delphiheader begin
#pragma option push -w-
#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 <Classes.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;
#pragma pack(push, 4)
class PASCALIMPLEMENTATION TRVSerEntry : public System::TObject 
{
	typedef System::TObject inherited;
	
public:
	Crvdata::TCustomRVData* RVData;
	int AbsFirstItemNo;
	int FirstItemNo;
	bool IsFirst;
	__fastcall TRVSerEntry(Crvdata::TCustomRVData* ARVData);
public:
	#pragma option push -w-inl
	/* TObject.Destroy */ inline __fastcall virtual ~TRVSerEntry(void) { }
	#pragma option pop
	
};

#pragma pack(pop)

class DELPHICLASS TRVSerializer;
#pragma pack(push, 4)
class PASCALIMPLEMENTATION TRVSerializer : public Rvclasses::TRVList 
{
	typedef Rvclasses::TRVList inherited;
	
private:
	int FCachedEntryNo;
	Crvfdata::TCustomRVFormattedData* FRootRVData;
	void __fastcall CreateEntries(Crvdata::TCustomRVData* RVData, int &AbsItemNo);
	
public:
	int AbsItemCount;
	__fastcall TRVSerializer(Crvfdata::TCustomRVFormattedData* RVData);
	void __fastcall Rebuild(void);
	void __fastcall AbsoluteToRV(int AbsItemNo, Crvdata::TCustomRVData* &RVData, int &ItemNo, bool &AfterItem
		);
	void __fastcall RVToAbsolute(Crvdata::TCustomRVData* RVData, int ItemNo, bool AfterItem, int &AbsItemNo
		);
public:
	#pragma option push -w-inl
	/* TRVList.Destroy */ inline __fastcall virtual ~TRVSerializer(void) { }
	#pragma option pop
	
};

#pragma pack(pop)

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

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

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