//----------------------------------------------------------------------------
// DBRV.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
// From: DBRV.pas
//----------------------------------------------------------------------------
#ifndef DBRVHPP
#define DBRVHPP
//----------------------------------------------------------------------------
#include <DBCtrls.hpp>
#include <DBTables.hpp>
#include <DB.hpp>
#include <RVEdit.hpp>
#include <RichView.hpp>
#include <RVScroll.hpp>
#include <Dialogs.hpp>
#include <Forms.hpp>
#include <Controls.hpp>
#include <Graphics.hpp>
#include <Classes.hpp>
#include <SysUtils.hpp>
#include <Messages.hpp>
#include <Windows.hpp>
#include <System.hpp>
namespace Dbrv
{
//-- type declarations -------------------------------------------------------
class __declspec(delphiclass) TDBRichView;
class __declspec(pascalimplementation) TDBRichView : public Richview::TRichView
{
	typedef Richview::TRichView inherited;
	
private:
	Dbtables::TFieldDataLink* FDataLink;
	bool FAutoDisplay;
	bool FFocused;
	bool FMemoLoaded;
	void __fastcall DataChange(System::TObject* Sender);
	System::AnsiString __fastcall GetDataField(void);
	Db::TDataSource* __fastcall GetDataSource(void);
	Db::TField* __fastcall GetField(void);
	void __fastcall SetDataField(const System::AnsiString Value);
	void __fastcall SetDataSource(Db::TDataSource* Value);
	MESSAGE void __fastcall CMGetDataLink(Messages::TMessage &Message);
	void __fastcall SetAutoDisplay(bool Value);
	
protected:
	virtual void __fastcall Loaded(void);
	virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
		);
	virtual void __fastcall DblClick(void);
	
public:
	__fastcall virtual TDBRichView(Classes::TComponent* AOwner);
	__fastcall virtual ~TDBRichView(void);
	void __fastcall LoadField(void);
	__property Db::TField* Field = {read=GetField, nodefault};
	
__published:
	__property System::AnsiString DataField = {read=GetDataField, write=SetDataField, nodefault};
	__property Db::TDataSource* DataSource = {read=GetDataSource, write=SetDataSource, nodefault};
	__property bool AutoDisplay = {read=FAutoDisplay, write=SetAutoDisplay, nodefault};
public:
	/* TWinControl.CreateParented */ __fastcall TDBRichView(HWND ParentWindow) : Richview::TRichView(ParentWindow
		) { }
	
};

class __declspec(delphiclass) TDBRichViewEdit;
class __declspec(pascalimplementation) TDBRichViewEdit : public Rvedit::TRichViewEdit
{
	typedef Rvedit::TRichViewEdit inherited;
	
private:
	Dbtables::TFieldDataLink* FDataLink;
	bool FAutoDisplay;
	bool FFocused;
	bool FMemoLoaded;
	Classes::TMemoryStream* FDataSaveStream;
	void __fastcall DataChange(System::TObject* Sender);
	void __fastcall EditingChange(System::TObject* Sender);
	System::AnsiString __fastcall GetDataField(void);
	Db::TDataSource* __fastcall GetDataSource(void);
	Db::TField* __fastcall GetField(void);
	bool __fastcall GetReadOnly(void);
	void __fastcall SetDataField(const System::AnsiString Value);
	void __fastcall SetDataSource(Db::TDataSource* Value);
	void __fastcall SetFocused(bool Value);
	void __fastcall SetReadOnly(bool Value);
	void __fastcall SetAutoDisplay(bool Value);
	void __fastcall UpdateData(System::TObject* Sender);
	HIDESBASE MESSAGE void __fastcall CMEnter(Messages::TWMNoParams &Message);
	HIDESBASE MESSAGE void __fastcall CMExit(Messages::TWMNoParams &Message);
	MESSAGE void __fastcall CMGetDataLink(Messages::TMessage &Message);
	void __fastcall BeginEditing(void);
	
protected:
	virtual void __fastcall Loaded(void);
	virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
		);
	virtual bool __fastcall BeforeChange(void);
	virtual void __fastcall DblClick(void);
	
public:
	virtual void __fastcall Change(void);
	__fastcall virtual TDBRichViewEdit(Classes::TComponent* AOwner);
	__fastcall virtual ~TDBRichViewEdit(void);
	void __fastcall LoadField(void);
	__property Db::TField* Field = {read=GetField, nodefault};
	
__published:
	__property System::AnsiString DataField = {read=GetDataField, write=SetDataField, nodefault};
	__property Db::TDataSource* DataSource = {read=GetDataSource, write=SetDataSource, nodefault};
	__property bool ReadOnly = {read=GetReadOnly, write=SetReadOnly, nodefault};
	__property bool AutoDisplay = {read=FAutoDisplay, write=SetAutoDisplay, nodefault};
public:
	/* TWinControl.CreateParented */ __fastcall TDBRichViewEdit(HWND ParentWindow) : Rvedit::TRichViewEdit(
		ParentWindow) { }
	
};

//-- var, const, procedure ---------------------------------------------------
extern void __fastcall Register(void);

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