//----------------------------------------------------------------------------
// DBRV.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
// From: DBRV.pas
//----------------------------------------------------------------------------
#ifndef DBRVHPP
#define DBRVHPP
//----------------------------------------------------------------------------
#include <RVRTFProps.hpp>
#include <RVStyle.hpp>
#include <Menus.hpp>
#include <DBTables.hpp>
#include <DBCtrls.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 -------------------------------------------------------
enum TRVDBFieldFormat { rvdbRVF, rvdbRTF, rvdbText };

class __declspec(delphiclass) TDBRichView;
class __declspec(pascalimplementation) TDBRichView : public Richview::TCustomRichView
{
	typedef Richview::TCustomRichView 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};
	__property Align ;
	__property Color ;
	__property Ctl3D ;
	__property DragMode ;
	__property Enabled ;
	__property HelpContext ;
	__property ParentCtl3D ;
	__property PopupMenu ;
	__property ShowHint ;
	__property TabOrder ;
	__property TabStop ;
	__property Visible ;
	__property OnClick ;
	__property OnDragDrop ;
	__property OnDragOver ;
	__property OnEndDrag ;
	__property OnEnter ;
	__property OnExit ;
	__property OnKeyDown ;
	__property OnKeyPress ;
	__property OnKeyUp ;
	__property OnMouseMove ;
	__property OnStartDrag ;
	__property BackgroundBitmap ;
	__property BackgroundStyle ;
	__property BiDiMode ;
	__property BorderStyle ;
	__property BottomMargin ;
	__property CPEventKind ;
	__property Cursor ;
	__property Delimiters ;
	__property DoInPaletteMode ;
	__property FirstJumpNo ;
	__property HScrollVisible ;
	__property LeftMargin ;
	__property MaxTextWidth ;
	__property MinTextWidth ;
	__property Options ;
	__property RightMargin ;
	__property RTFOptions ;
	__property RTFReadProperties ;
	__property RVFOptions ;
	__property RVFParaStylesReadMode ;
	__property RVFTextStylesReadMode ;
	__property Style ;
	__property TabNavigation ;
	__property TopMargin ;
	__property Tracking ;
	__property VScrollVisible ;
	__property OnCheckpointVisible ;
	__property OnControlAction ;
	__property OnCopy ;
	__property OnJump ;
	__property OnHScrolled ;
	__property OnHTMLSaveImage ;
	__property OnReadHyperlink ;
	__property OnRVDblClick ;
	__property OnRVFImageListNeeded ;
	__property OnRVFControlNeeded ;
	__property OnRVFPictureNeeded ;
	__property OnRVMouseDown ;
	__property OnRVMouseMove ;
	__property OnRVMouseUp ;
	__property OnRVRightClick ;
	__property OnSaveComponentToFile ;
	__property OnSelect ;
	__property OnURLNeeded ;
	__property OnVScrolled ;
	__property AllowSelection ;
	__property SingleClick ;
public:
	/* TWinControl.CreateParented */ __fastcall TDBRichView(HWND ParentWindow) : Richview::TCustomRichView(
		ParentWindow) { }
	
};

class __declspec(delphiclass) TDBRichViewEdit;
class __declspec(pascalimplementation) TDBRichViewEdit : public Rvedit::TCustomRichViewEdit
{
	typedef Rvedit::TCustomRichViewEdit inherited;
	
private:
	Dbtables::TFieldDataLink* FDataLink;
	bool FAutoDisplay;
	bool FFocused;
	bool FMemoLoaded;
	Classes::TMemoryStream* FDataSaveStream;
	TRVDBFieldFormat FFieldFormat;
	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 DBGetReadOnly(void);
	void __fastcall SetDataField(const System::AnsiString Value);
	void __fastcall SetDataSource(Db::TDataSource* Value);
	void __fastcall SetFocused(bool Value);
	void __fastcall DBSetReadOnly(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 void __fastcall DblClick(void);
	virtual void __fastcall KeyPress(char &Key);
	
public:
	virtual void __fastcall DoChange(bool ClearRedo);
	virtual bool __fastcall BeforeChange(bool FromOutside);
	__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=DBGetReadOnly, write=DBSetReadOnly, nodefault};
	__property bool AutoDisplay = {read=FAutoDisplay, write=SetAutoDisplay, nodefault};
	__property TRVDBFieldFormat FieldFormat = {read=FFieldFormat, write=FFieldFormat, default=0};
	__property EditorOptions ;
	__property UndoLimit ;
	__property OnCaretGetOut ;
	__property OnChange ;
	__property OnChanging ;
	__property OnCurParaStyleChanged ;
	__property OnCurTextStyleChanged ;
	__property OnCaretMove ;
	__property OnPaste ;
	__property OnStyleConversion ;
	__property TabNavigation ;
	__property Align ;
	__property Color ;
	__property Ctl3D ;
	__property DragMode ;
	__property Enabled ;
	__property HelpContext ;
	__property ParentCtl3D ;
	__property PopupMenu ;
	__property ShowHint ;
	__property TabOrder ;
	__property TabStop ;
	__property Visible ;
	__property OnClick ;
	__property OnDragDrop ;
	__property OnDragOver ;
	__property OnEndDrag ;
	__property OnEnter ;
	__property OnExit ;
	__property OnKeyDown ;
	__property OnKeyPress ;
	__property OnKeyUp ;
	__property OnMouseMove ;
	__property OnStartDrag ;
	__property BackgroundBitmap ;
	__property BackgroundStyle ;
	__property BiDiMode ;
	__property BorderStyle ;
	__property BottomMargin ;
	__property Cursor ;
	__property Delimiters ;
	__property DoInPaletteMode ;
	__property FirstJumpNo ;
	__property HScrollVisible ;
	__property LeftMargin ;
	__property MaxTextWidth ;
	__property MinTextWidth ;
	__property Options ;
	__property RightMargin ;
	__property RTFOptions ;
	__property RTFReadProperties ;
	__property RVFOptions ;
	__property RVFParaStylesReadMode ;
	__property RVFTextStylesReadMode ;
	__property Style ;
	__property TopMargin ;
	__property Tracking ;
	__property VScrollVisible ;
	__property OnControlAction ;
	__property OnCopy ;
	__property OnJump ;
	__property OnHScrolled ;
	__property OnHTMLSaveImage ;
	__property OnReadHyperlink ;
	__property OnRVDblClick ;
	__property OnRVFImageListNeeded ;
	__property OnRVFControlNeeded ;
	__property OnRVFPictureNeeded ;
	__property OnRVMouseDown ;
	__property OnRVMouseMove ;
	__property OnRVMouseUp ;
	__property OnRVRightClick ;
	__property OnSaveComponentToFile ;
	__property OnSelect ;
	__property OnURLNeeded ;
	__property OnVScrolled ;
	__property AllowSelection ;
	__property SingleClick ;
public:
	/* TWinControl.CreateParented */ __fastcall TDBRichViewEdit(HWND ParentWindow) : Rvedit::TCustomRichViewEdit(
		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
