// Borland C++ Builder
// Copyright (c) 1995, 2005 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Rvser.pas' rev: 10.00

#ifndef RvserHPP
#define RvserHPP

#pragma delphiheader begin
#pragma option push
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp>	// Pascal unit
#include <Sysinit.hpp>	// Pascal unit
#include <Sysutils.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Rvclasses.hpp>	// Pascal unit
#include <Richview.hpp>	// Pascal unit
#include <Crvdata.hpp>	// Pascal unit
#include <Crvfdata.hpp>	// Pascal unit
#include <Rvervdata.hpp>	// Pascal unit
#include <Rvitem.hpp>	// Pascal unit
#include <Rvedit.hpp>	// Pascal unit
#include <Rvrvdata.hpp>	// Pascal unit

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

namespace Rvser
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TRVSerEntry;
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
	
};


class DELPHICLASS TRVSerializer;
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
	
};


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

}	/* namespace Rvser */
using namespace Rvser;
#pragma pack(pop)
#pragma option pop

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