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

// (DO NOT EDIT: machine generated header) 'RVSubData.pas' rev: 6.00

#ifndef RVSubDataHPP
#define RVSubDataHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <RVTypes.hpp>	// Pascal unit
#include <RVUndo.hpp>	// Pascal unit
#include <RVMarker.hpp>	// Pascal unit
#include <RVSeqItem.hpp>	// Pascal unit
#include <RVRTFErr.hpp>	// Pascal unit
#include <CRVData.hpp>	// Pascal unit
#include <RVStyle.hpp>	// Pascal unit
#include <RVItem.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Rvsubdata
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TRVSubData;
class PASCALIMPLEMENTATION TRVSubData : public Crvdata::TCustomRVData 
{
	typedef Crvdata::TCustomRVData inherited;
	
private:
	Crvdata::TRVFlags FFlags;
	Rvitem::TCustomRVItemInfo* FOwner;
	
protected:
	Rvseqitem::TRVSeqList* FSeqList;
	Rvmarker::TRVMarkerList* FMarkers;
	DYNAMIC void __fastcall DestroyMarkers(void);
	DYNAMIC void __fastcall DestroySeqList(void);
	DYNAMIC AnsiString __fastcall GetURL(int id);
	virtual Crvdata::TRVFlags __fastcall GetFlags(void);
	virtual void __fastcall SetFlags(const Crvdata::TRVFlags Value);
	
public:
	Crvdata::TCustomRVData* MainRVData;
	__fastcall TRVSubData(Rvitem::TCustomRVItemInfo* AOwner, Crvdata::TCustomRVData* AMainRVData);
	DYNAMIC void __fastcall ControlAction2(Crvdata::TCustomRVData* RVData, Rvstyle::TRVControlAction ControlAction, int ItemNo, Controls::TControl* &Control);
	virtual Crvdata::TCustomRVData* __fastcall GetParentData(void);
	virtual Crvdata::TCustomRVData* __fastcall GetRootData(void);
	virtual Crvdata::TCustomRVData* __fastcall GetAbsoluteParentData(void);
	virtual Crvdata::TCustomRVData* __fastcall GetAbsoluteRootData(void);
	void __fastcall MovingToUndoList(Rvundo::TRVUndoInfo* AContainerUndoItem);
	void __fastcall MovingFromUndoList(void);
	DYNAMIC Rvseqitem::TRVSeqList* __fastcall GetSeqList(bool AllowCreate);
	DYNAMIC Rvmarker::TRVMarkerList* __fastcall GetMarkers(bool AllowCreate);
	HIDESBASE bool __fastcall LoadRTFFromStream(Classes::TStream* Stream);
	HIDESBASE bool __fastcall LoadRTF(const AnsiString FileName);
	HIDESBASE bool __fastcall SaveRTFToStream(Classes::TStream* Stream, const AnsiString Path);
	HIDESBASE bool __fastcall SaveRTF(const AnsiString FileName);
	HIDESBASE bool __fastcall LoadRVFFromStream(Classes::TStream* Stream);
	HIDESBASE bool __fastcall LoadRVF(const AnsiString FileName);
	HIDESBASE bool __fastcall SaveRVFToStream(Classes::TStream* Stream);
	HIDESBASE bool __fastcall SaveRVF(const AnsiString FileName);
	HIDESBASE bool __fastcall AppendRVFFromStream(Classes::TStream* Stream, int ParaNo);
	DYNAMIC void __fastcall DoneStyleMappings(Crvdata::PRVIntegerList PTextStylesMapping, Crvdata::PRVIntegerList PParaStylesMapping, Crvdata::PRVIntegerList PListStylesMapping, bool AsSubDoc);
	__property Rvitem::TCustomRVItemInfo* Owner = {read=FOwner};
public:
	#pragma option push -w-inl
	/* TCustomRVData.Destroy */ inline __fastcall virtual ~TRVSubData(void) { }
	#pragma option pop
	
};


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

}	/* namespace Rvsubdata */
using namespace Rvsubdata;
#pragma option pop	// -w-
#pragma option pop	// -Vx

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