//----------------------------------------------------------------------------
// RVTInplace.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
// From: RVTInplace.pas
//----------------------------------------------------------------------------
#ifndef RVTInplaceHPP
#define RVTInplaceHPP
//----------------------------------------------------------------------------
#include <RVCtrlData.hpp>
#include <RVTable.hpp>
#include <RVRTFProps.hpp>
#include <RVEdit.hpp>
#include <RichView.hpp>
#include <RVScroll.hpp>
#include <RVERVData.hpp>
#include <RVRVData.hpp>
#include <CRVFData.hpp>
#include <CRVData.hpp>
#include <RVFuncs.hpp>
#include <RVStyle.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 Rvtinplace
{
//-- type declarations -------------------------------------------------------
class __declspec(delphiclass) TRVTableInplaceRVData;
class __declspec(pascalimplementation) TRVTableInplaceRVData : public Rvervdata::TRVEditRVData
{
	typedef Rvervdata::TRVEditRVData inherited;
	
private:
	bool resized;
	
protected:
	virtual void __fastcall Formatted(int FirstItemNo, int LastItemNo, bool Partial);
	
public:
	virtual Crvdata::TCustomRVData* __fastcall GetSourceRVData(void);
	virtual void __fastcall ShowRectangle(int Left, int Top, int Width, int Height);
	virtual void __fastcall SetDocumentAreaSize(int Width, int Height, bool UpdateH);
	virtual int __fastcall BuildJumpsCoords(bool IgnoreReadOnly);
	int __fastcall ReallyBuildJumpsCoords(void);
	virtual void __fastcall ClearJumpsCoords(void);
	virtual void __fastcall GetOriginEx(int &ALeft, int &ATop);
	virtual Crvdata::TCustomRVData* __fastcall GetAbsoluteParentData(void);
	virtual Crvdata::TCustomRVData* __fastcall GetAbsoluteRootData(void);
public:
	/* TRVEditRVData.Create */ __fastcall virtual TRVTableInplaceRVData(Rvscroll::TRVScroller* RichView
		) : Rvervdata::TRVEditRVData(RichView) { }
	/* TRVEditRVData.Destroy */ __fastcall virtual ~TRVTableInplaceRVData(void) { }
	
};

typedef void __fastcall (__closure *TRVTableInplaceChangeEvent)(Rvedit::TCustomRichViewEdit* Sender, 
	bool ClearRedo);

class __declspec(delphiclass) TRVTableInplaceEdit;
class __declspec(pascalimplementation) TRVTableInplaceEdit : public Rvedit::TRichViewEdit
{
	typedef Rvedit::TRichViewEdit inherited;
	
private:
	Crvfdata::TCustomRVFormattedData* FRVData;
	Rvtable::TRVTableItemInfo* FTable;
	bool FClearing;
	Classes::TNotifyEvent FOnFormat;
	Graphics::TColor FColor;
	bool FBusy;
	TRVTableInplaceChangeEvent FOnChangeEx;
	MESSAGE void __fastcall CMRelease(Messages::TMessage &Message);
	MESSAGE void __fastcall WMMoveEditor(Messages::TMessage &Message);
	MESSAGE void __fastcall WMInplaceUndo(Messages::TMessage &Message);
	MESSAGE void __fastcall WMInplaceRedo(Messages::TMessage &Message);
	HIDESBASE MESSAGE void __fastcall WMKillFocus(Messages::TWMKillFocus &Message);
	
protected:
	virtual System::TMetaClass* __fastcall GetDataClass(void);
	virtual void __fastcall KeyPress(char &Key);
	virtual void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
	virtual Rvrtfprops::TRVRTFReaderProperties* __fastcall GetRTFReadProperties(void);
	virtual void __fastcall WndProc(Messages::TMessage &Message);
	virtual void __fastcall SetReadOnly(const bool Value);
	virtual bool __fastcall GetReadOnly(void);
	
public:
	long FClickTime;
	int FTableItemNo;
	Rvtable::TRVTableCellData* FCell;
	int FRow;
	int FCol;
	__fastcall virtual TRVTableInplaceEdit(Classes::TComponent* AOwner);
	__fastcall virtual ~TRVTableInplaceEdit(void);
	virtual bool __fastcall RTFReaderAssigned(void);
	virtual void __fastcall DoChange(bool ClearRedo);
	void __fastcall SetParentRVData(Crvfdata::TCustomRVFormattedData* RVData);
	void __fastcall SetCell(int Row, int Col, Rvtable::TRVTableItemInfo* Table, int CellPadding);
	virtual void __fastcall SetVPos(int p, bool Redraw);
	virtual void __fastcall SetHPos(int p);
	void __fastcall SetClearingState(void);
	virtual void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, 
		int Y);
	virtual void __fastcall MouseMove(Classes::TShiftState Shift, int X, int Y);
	virtual void __fastcall MouseUp(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int 
		Y);
	void __fastcall SelectCompletely(bool Select);
	virtual bool __fastcall BeforeChange(bool FromOutside);
	bool __fastcall Resized(void);
	virtual void __fastcall Undo(void);
	virtual void __fastcall Redo(void);
	__property Classes::TNotifyEvent OnFormat = {read=FOnFormat, write=FOnFormat};
	__property bool Busy = {read=FBusy, nodefault};
	__property TRVTableInplaceChangeEvent OnChangeEx = {read=FOnChangeEx, write=FOnChangeEx};
	__property bool ReadOnly = {read=GetReadOnly, write=SetReadOnly, nodefault};
public:
	/* TWinControl.CreateParented */ __fastcall TRVTableInplaceEdit(HWND ParentWindow) : Rvedit::TRichViewEdit(
		ParentWindow) { }
	
};

//-- var, const, procedure ---------------------------------------------------
#define WM_RVMOVEEDITOR (Word)(1034)
#define WM_RVINPLACEUNDO (Word)(1035)
#define WM_RVINPLACEREDO (Word)(1036)

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