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

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

#ifndef RVLinearHPP
#define RVLinearHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <RVTypes.hpp>	// Pascal unit
#include <RVItem.hpp>	// Pascal unit
#include <RVUni.hpp>	// Pascal unit
#include <CRVFData.hpp>	// Pascal unit
#include <CRVData.hpp>	// Pascal unit
#include <RVTable.hpp>	// Pascal unit
#include <RVEdit.hpp>	// Pascal unit
#include <RichView.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Rvlinear
{
//-- type declarations -------------------------------------------------------
struct TRVSelection
{
	int SelStart;
	int SelLength;
	bool MultiCell;
	int StartRow;
	int StartCol;
	int RowOffs;
	int ColOffs;
} ;

//-- var, const, procedure ---------------------------------------------------
extern PACKAGE int RVCharsPerLineBreak;
extern PACKAGE char RVNonTextCharacter;
extern PACKAGE bool __fastcall RichViewToLinear(Richview::TCustomRichView* rv, Crvdata::TCustomRVData* 
	CurRVData, Crvdata::TCustomRVData* RVData, int ItemNo, int ItemOffs, int &LinearPos);
extern PACKAGE bool __fastcall LinearToRichView(Richview::TCustomRichView* rv, Crvdata::TCustomRVData* 
	CurRVData, int &LinearPos, Crvdata::TCustomRVData* &RVData, int &ItemNo, int &ItemOffs);
extern PACKAGE int __fastcall RVGetLinearCaretPos(Rvedit::TCustomRichViewEdit* rve);
extern PACKAGE void __fastcall RVSetLinearCaretPos(Rvedit::TCustomRichViewEdit* rve, int LinearPos);
	
extern PACKAGE void __fastcall RVGetSelection(Richview::TCustomRichView* rv, int &SelStart, int &SelLength
	);
extern PACKAGE void __fastcall RVSetSelection(Richview::TCustomRichView* rv, int SelStart, int SelLength
	);
extern PACKAGE void __fastcall RVGetSelectionEx(Richview::TCustomRichView* rv, TRVSelection &Selection
	);
extern PACKAGE void __fastcall RVSetSelectionEx(Richview::TCustomRichView* rv, const TRVSelection &Selection
	);
extern PACKAGE AnsiString __fastcall RVGetTextRange(Richview::TCustomRichView* rv, int RangeStart, int 
	RangeLength);
extern PACKAGE int __fastcall RVGetTextLength(Richview::TCustomRichView* rv);

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

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