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

// (DO NOT EDIT: machine generated header) 'DBRV.pas' rev: 4.00

#ifndef DBRVHPP
#define DBRVHPP

#pragma delphiheader begin
#pragma option push -w-
#include <RVRTFProps.hpp>	// Pascal unit
#include <RVStyle.hpp>	// Pascal unit
#include <Menus.hpp>	// Pascal unit
#include <DBCtrls.hpp>	// Pascal unit
#include <Db.hpp>	// Pascal unit
#include <RVEdit.hpp>	// Pascal unit
#include <RichView.hpp>	// Pascal unit
#include <RVScroll.hpp>	// Pascal unit
#include <Dialogs.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Dbrv
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TRVDBFieldFormat { rvdbRVF, rvdbRTF, rvdbText };
#pragma option pop

class DELPHICLASS TDBRichView;
#pragma pack(push, 4)
class PASCALIMPLEMENTATION TDBRichView : public Richview::TCustomRichView 
{
	typedef Richview::TCustomRichView inherited;
	
private:
	Dbctrls::TFieldDataLink* FDataLink;
	bool FAutoDisplay;
	bool FFocused;
	bool FMemoLoaded;
	void __fastcall DataChange(System::TObject* Sender);
	AnsiString __fastcall GetDataField(void);
	Db::TDataSource* __fastcall GetDataSource(void);
	Db::TField* __fastcall GetField(void);
	void __fastcall SetDataField(const 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
		);
	DYNAMIC 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};
	
__published:
	__property AnsiString DataField = {read=GetDataField, write=SetDataField};
	__property Db::TDataSource* DataSource = {read=GetDataSource, write=SetDataSource};
	__property bool AutoDisplay = {read=FAutoDisplay, write=SetAutoDisplay, nodefault};
	__property Align ;
	__property Anchors ;
	__property Constraints ;
	__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 OnMouseWheel ;
	__property OnMouseWheelDown ;
	__property OnMouseWheelUp ;
	__property OnResize ;
	__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 WheelStep ;
	__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:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TDBRichView(HWND ParentWindow) : Richview::TCustomRichView(
		ParentWindow) { }
	#pragma option pop
	
};

#pragma pack(pop)

class DELPHICLASS TDBRichViewEdit;
#pragma pack(push, 4)
class PASCALIMPLEMENTATION TDBRichViewEdit : public Rvedit::TCustomRichViewEdit 
{
	typedef Rvedit::TCustomRichViewEdit inherited;
	
private:
	Dbctrls::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);
	AnsiString __fastcall GetDataField(void);
	Db::TDataSource* __fastcall GetDataSource(void);
	Db::TField* __fastcall GetField(void);
	bool __fastcall DBGetReadOnly(void);
	void __fastcall SetDataField(const 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
		);
	DYNAMIC void __fastcall DblClick(void);
	DYNAMIC void __fastcall KeyPress(char &Key);
	
public:
	DYNAMIC 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};
	
__published:
	__property AnsiString DataField = {read=GetDataField, write=SetDataField};
	__property Db::TDataSource* DataSource = {read=GetDataSource, write=SetDataSource};
	__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 Anchors ;
	__property Constraints ;
	__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 OnMouseWheel ;
	__property OnMouseWheelDown ;
	__property OnMouseWheelUp ;
	__property OnResize ;
	__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 WheelStep ;
	__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:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TDBRichViewEdit(HWND ParentWindow) : Rvedit::TCustomRichViewEdit(
		ParentWindow) { }
	#pragma option pop
	
};

#pragma pack(pop)

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

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

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