// Borland C++ Builder
// Copyright (c) 1995, 2005 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Richview.pas' rev: 10.00

#ifndef RichviewHPP
#define RichviewHPP

#pragma delphiheader begin
#pragma option push
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp>	// Pascal unit
#include <Sysinit.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Sysutils.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Printers.hpp>	// Pascal unit
#include <Dlines.hpp>	// Pascal unit
#include <Rvitem.hpp>	// Pascal unit
#include <Rvstyle.hpp>	// Pascal unit
#include <Rvscroll.hpp>	// Pascal unit
#include <Rvfmisc.hpp>	// Pascal unit
#include <Rvfuncs.hpp>	// Pascal unit
#include <Crvdata.hpp>	// Pascal unit
#include <Crvfdata.hpp>	// Pascal unit
#include <Rvrvdata.hpp>	// Pascal unit
#include <Rvback.hpp>	// Pascal unit
#include <Rvuni.hpp>	// Pascal unit
#include <Registry.hpp>	// Pascal unit
#include <Menus.hpp>	// Pascal unit
#include <Richedit.hpp>	// Pascal unit
#include <Imglist.hpp>	// Pascal unit
#include <Rvdragdrop.hpp>	// Pascal unit
#include <Activex.hpp>	// Pascal unit
#include <Rvwordpaint.hpp>	// Pascal unit
#include <Rvthread.hpp>	// Pascal unit
#include <Rvpopup.hpp>	// Pascal unit
#include <Rvdocparams.hpp>	// Pascal unit
#include <Clipbrd.hpp>	// Pascal unit
#include <Rvrtfprops.hpp>	// Pascal unit
#include <Rvrtferr.hpp>	// Pascal unit
#include <Stdctrls.hpp>	// Pascal unit
#include <Rvtypes.hpp>	// Pascal unit

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

namespace Richview
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TRVEventType { rvetRVDblClick, rvetJump, rvetRVMouseUp, rvetRVMouseDown, rvetClick, rvetDblClick, rvetTripleClick, rvetMouseMove, rvetDragDrop, rvetEndDrag };
#pragma option pop

class DELPHICLASS TRVMessageData;
class PASCALIMPLEMENTATION TRVMessageData : public System::TObject 
{
	typedef System::TObject inherited;
	
public:
	TRVEventType Event;
public:
	#pragma option push -w-inl
	/* TObject.Create */ inline __fastcall TRVMessageData(void) : System::TObject() { }
	#pragma option pop
	#pragma option push -w-inl
	/* TObject.Destroy */ inline __fastcall virtual ~TRVMessageData(void) { }
	#pragma option pop
	
};


class DELPHICLASS TRVClickMessageData;
class PASCALIMPLEMENTATION TRVClickMessageData : public TRVMessageData 
{
	typedef TRVMessageData inherited;
	
public:
	#pragma option push -w-inl
	/* TObject.Create */ inline __fastcall TRVClickMessageData(void) : TRVMessageData() { }
	#pragma option pop
	#pragma option push -w-inl
	/* TObject.Destroy */ inline __fastcall virtual ~TRVClickMessageData(void) { }
	#pragma option pop
	
};


class DELPHICLASS TRVStdDblClickMessageData;
class PASCALIMPLEMENTATION TRVStdDblClickMessageData : public TRVMessageData 
{
	typedef TRVMessageData inherited;
	
public:
	#pragma option push -w-inl
	/* TObject.Create */ inline __fastcall TRVStdDblClickMessageData(void) : TRVMessageData() { }
	#pragma option pop
	#pragma option push -w-inl
	/* TObject.Destroy */ inline __fastcall virtual ~TRVStdDblClickMessageData(void) { }
	#pragma option pop
	
};


class DELPHICLASS TRVTripleClickMessageData;
class PASCALIMPLEMENTATION TRVTripleClickMessageData : public TRVMessageData 
{
	typedef TRVMessageData inherited;
	
public:
	#pragma option push -w-inl
	/* TObject.Create */ inline __fastcall TRVTripleClickMessageData(void) : TRVMessageData() { }
	#pragma option pop
	#pragma option push -w-inl
	/* TObject.Destroy */ inline __fastcall virtual ~TRVTripleClickMessageData(void) { }
	#pragma option pop
	
};


class DELPHICLASS TRVDblClickMessageData;
class PASCALIMPLEMENTATION TRVDblClickMessageData : public TRVMessageData 
{
	typedef TRVMessageData inherited;
	
public:
	AnsiString ClickedWord;
	int StyleNo;
public:
	#pragma option push -w-inl
	/* TObject.Create */ inline __fastcall TRVDblClickMessageData(void) : TRVMessageData() { }
	#pragma option pop
	#pragma option push -w-inl
	/* TObject.Destroy */ inline __fastcall virtual ~TRVDblClickMessageData(void) { }
	#pragma option pop
	
};


class DELPHICLASS TRVJumpMessageData;
class PASCALIMPLEMENTATION TRVJumpMessageData : public TRVMessageData 
{
	typedef TRVMessageData inherited;
	
public:
	int id;
public:
	#pragma option push -w-inl
	/* TObject.Create */ inline __fastcall TRVJumpMessageData(void) : TRVMessageData() { }
	#pragma option pop
	#pragma option push -w-inl
	/* TObject.Destroy */ inline __fastcall virtual ~TRVJumpMessageData(void) { }
	#pragma option pop
	
};


class DELPHICLASS TRVMouseMoveMessageData;
class PASCALIMPLEMENTATION TRVMouseMoveMessageData : public TRVMessageData 
{
	typedef TRVMessageData inherited;
	
public:
	int X;
	int Y;
	int ItemNo;
	Classes::TShiftState Shift;
public:
	#pragma option push -w-inl
	/* TObject.Create */ inline __fastcall TRVMouseMoveMessageData(void) : TRVMessageData() { }
	#pragma option pop
	#pragma option push -w-inl
	/* TObject.Destroy */ inline __fastcall virtual ~TRVMouseMoveMessageData(void) { }
	#pragma option pop
	
};


class DELPHICLASS TRVMouseUpDownMessageData;
class PASCALIMPLEMENTATION TRVMouseUpDownMessageData : public TRVMouseMoveMessageData 
{
	typedef TRVMouseMoveMessageData inherited;
	
public:
	Controls::TMouseButton Button;
public:
	#pragma option push -w-inl
	/* TObject.Create */ inline __fastcall TRVMouseUpDownMessageData(void) : TRVMouseMoveMessageData() { }
	#pragma option pop
	#pragma option push -w-inl
	/* TObject.Destroy */ inline __fastcall virtual ~TRVMouseUpDownMessageData(void) { }
	#pragma option pop
	
};


class DELPHICLASS TRVDNDMessageData;
class PASCALIMPLEMENTATION TRVDNDMessageData : public TRVMessageData 
{
	typedef TRVMessageData inherited;
	
public:
	int X;
	int Y;
	System::TObject* Obj;
public:
	#pragma option push -w-inl
	/* TObject.Create */ inline __fastcall TRVDNDMessageData(void) : TRVMessageData() { }
	#pragma option pop
	#pragma option push -w-inl
	/* TObject.Destroy */ inline __fastcall virtual ~TRVDNDMessageData(void) { }
	#pragma option pop
	
};


#pragma option push -b-
enum TRVPrintingStep { rvpsStarting, rvpsProceeding, rvpsFinished };
#pragma option pop

#pragma option push -b-
enum TRVLiveSpellingMode { rvlspManualStart, rvlspOnChange };
#pragma option pop

#pragma option push -b-
enum TRVAnimationMode { rvaniDisabled, rvaniManualStart, rvaniOnFormat };
#pragma option pop

#pragma option push -b-
enum TRVYesNoAuto { rvynaNo, rvynaYes, rvynaAuto };
#pragma option pop

typedef TMetaClass* TRVWordEnumThreadClass;

typedef TMetaClass* TRVRTFReaderPropertiesClass;

typedef void __fastcall (__closure *TJumpEvent)(System::TObject* Sender, int id);

class DELPHICLASS TCustomRichView;
typedef void __fastcall (__closure *TRVGetItemCursorEvent)(TCustomRichView* Sender, Crvdata::TCustomRVData* RVData, int ItemNo, Controls::TCursor &Cursor);

typedef void __fastcall (__closure *TRVMouseMoveEvent)(System::TObject* Sender, int id);

typedef void __fastcall (__closure *TRVMouseEvent)(TCustomRichView* Sender, Controls::TMouseButton Button, Classes::TShiftState Shift, int ItemNo, int X, int Y);

typedef void __fastcall (__closure *TRVSaveComponentToFileEvent)(TCustomRichView* Sender, AnsiString Path, Classes::TPersistent* SaveMe, Rvstyle::TRVSaveFormat SaveFormat, AnsiString &OutStr);

typedef void __fastcall (__closure *TRVSaveItemToFileEvent)(TCustomRichView* Sender, const AnsiString Path, Crvdata::TCustomRVData* RVData, int ItemNo, Rvstyle::TRVSaveFormat SaveFormat, bool Unicode, AnsiString &OutStr, bool &DoDefault);

typedef void __fastcall (__closure *TRVURLNeededEvent)(TCustomRichView* Sender, int id, AnsiString &url);

typedef void __fastcall (__closure *TRVDblClickEvent)(TCustomRichView* Sender, AnsiString ClickedWord, int Style);

typedef void __fastcall (__closure *TRVRightClickEvent)(TCustomRichView* Sender, AnsiString ClickedWord, int Style, int X, int Y);

typedef void __fastcall (__closure *TRVFPictureNeededEvent)(TCustomRichView* Sender, AnsiString Name, int Tag, Graphics::TGraphic* &gr);

typedef void __fastcall (__closure *TRVFControlNeededEvent)(TCustomRichView* Sender, AnsiString Name, int Tag, Controls::TControl* &ctrl);

typedef void __fastcall (__closure *TRVCheckpointVisibleEvent)(TCustomRichView* Sender, Rvstyle::TCheckpointData CheckpointData);

typedef void __fastcall (__closure *TRVControlActionEvent)(TCustomRichView* Sender, Rvstyle::TRVControlAction ControlAction, int ItemNo, Controls::TControl* &ctrl);

typedef void __fastcall (__closure *TRVItemActionEvent)(TCustomRichView* Sender, Rvstyle::TRVItemAction ItemAction, Rvitem::TCustomRVItemInfo* Item, AnsiString &Text, Crvdata::TCustomRVData* RVData);

typedef void __fastcall (__closure *TRVFImageListNeededEvent)(TCustomRichView* Sender, int ImageListTag, Imglist::TCustomImageList* &il);

typedef void __fastcall (__closure *TRVHTMLSaveImageEvent)(TCustomRichView* Sender, Crvdata::TCustomRVData* RVData, int ItemNo, const AnsiString Path, Graphics::TColor BackgroundColor, AnsiString &Location, bool &DoDefault);

typedef void __fastcall (__closure *TRVSaveImageEvent2)(TCustomRichView* Sender, Graphics::TGraphic* Graphic, Rvstyle::TRVSaveFormat SaveFormat, const AnsiString Path, const AnsiString ImagePrefix, int &ImageSaveNo, AnsiString &Location, bool &DoDefault);

typedef void __fastcall (__closure *TRVReadHyperlink)(TCustomRichView* Sender, const AnsiString Target, const AnsiString Extras, Rvstyle::TRVLoadFormat DocFormat, int &StyleNo, int &ItemTag, AnsiString &ItemName);

typedef void __fastcall (__closure *TRVWriteHyperlink)(TCustomRichView* Sender, int id, Crvdata::TCustomRVData* RVData, int ItemNo, Rvstyle::TRVSaveFormat SaveFormat, AnsiString &Target, AnsiString &Extras);

typedef void __fastcall (__closure *TRVSaveRTFExtraEvent)(TCustomRichView* Sender, Rvstyle::TRVRTFSaveArea Area, System::TObject* Obj, int Index1, int Index2, bool InStyleSheet, AnsiString &RTFCode);

typedef void __fastcall (__closure *TRVSaveHTMLExtraEvent)(TCustomRichView* Sender, Rvstyle::TRVHTMLSaveArea Area, bool CSSVersion, AnsiString &HTMLCode);

typedef void __fastcall (__closure *TRVSaveParaToHTMLEvent)(TCustomRichView* Sender, Crvdata::TCustomRVData* RVData, int ItemNo, bool ParaStart, bool CSSVersion, AnsiString &HTMLCode);

typedef void __fastcall (__closure *TRVPaintEvent)(TCustomRichView* Sender, Graphics::TCanvas* Canvas, bool Prepaint);

typedef void __fastcall (__closure *TRVImportPictureEvent)(TCustomRichView* Sender, const AnsiString Location, int Width, int Height, Graphics::TGraphic* &Graphic);

typedef void __fastcall (__closure *TRVItemHintEvent)(TCustomRichView* Sender, Crvdata::TCustomRVData* RVData, int ItemNo, AnsiString &HintText);

typedef void __fastcall (__closure *TRVProgressEvent)(TCustomRichView* Sender, Rvstyle::TRVLongOperation Operation, Rvstyle::TRVProgressStage Stage, Byte PercentDone);

typedef void __fastcall (__closure *TRVSpellingCheckEvent)(TCustomRichView* Sender, const AnsiString AWord, int StyleNo, bool &Misspelled);

typedef void __fastcall (__closure *TRVSpellingCheckExEvent)(TCustomRichView* Sender, const AnsiString AWord, Crvdata::TCustomRVData* RVData, int ItemNo, int Offs, bool &Misspelled);

typedef void __fastcall (__closure *TRVSmartPopupClickEvent)(TCustomRichView* Sender, Controls::TCustomControl* Button);

typedef void __fastcall (__closure *TRVAddStyleEvent)(TCustomRichView* Sender, Rvstyle::TCustomRVInfo* StyleInfo);

typedef void __fastcall (__closure *TRVGetFormatCanvasEvent)(TCustomRichView* Sender, Graphics::TCanvas* &Canvas);

class PASCALIMPLEMENTATION TCustomRichView : public Rvscroll::TRVScroller 
{
	typedef Rvscroll::TRVScroller inherited;
	
private:
	AnsiString FNoteText;
	Controls::TCursor FCursor;
	Rvscroll::TRVOptions FOptions;
	Rvstyle::TRVRTFOptions FRTFOptions;
	bool ScrollTimerActive;
	AnsiString FDelimiters;
	int FMaxLength;
	TJumpEvent FOnJump;
	TRVGetItemCursorEvent FOnGetItemCursor;
	TRVMouseMoveEvent FOnRVMouseMove;
	TRVSaveComponentToFileEvent FOnSaveComponentToFile;
	TRVSaveItemToFileEvent FOnSaveItemToFile;
	TRVURLNeededEvent FOnURLNeeded;
	TRVDblClickEvent FOnRVDblClick;
	TRVRightClickEvent FOnRVRightClick;
	TRVMouseEvent FOnRVMouseUp;
	TRVMouseEvent FOnRVMouseDown;
	TRVControlActionEvent FOnControlAction;
	TRVItemActionEvent FOnItemAction;
	Rvscroll::TCPEventKind FCPEventKind;
	TRVFPictureNeededEvent FOnRVFPictureNeeded;
	TRVFControlNeededEvent FOnRVFControlNeeded;
	TRVFImageListNeededEvent FOnRVFImageListNeeded;
	TRVCheckpointVisibleEvent FOnCheckpointVisible;
	int FMaxTextWidth;
	int FMinTextWidth;
	int FLeftMargin;
	int FRightMargin;
	int FTopMargin;
	int FBottomMargin;
	Rvstyle::TRVFOptions FRVFOptions;
	Rvstyle::TRVFWarnings FRVFWarnings;
	TRVAddStyleEvent FOnAddStyle;
	bool FWordWrap;
	Classes::TNotifyEvent FOnCopy;
	TRVHTMLSaveImageEvent FOnHTMLSaveImage;
	TRVSaveImageEvent2 FOnSaveImage2;
	Rvrtfprops::TRVRTFReaderProperties* FRTFReadProperties;
	Rvdocparams::TRVDocParameters* FDocParameters;
	Rvpopup::TRVSmartPopupProperties* FSmartPopupProperties;
	TRVSmartPopupClickEvent FOnSmartPopupClick;
	Rvstyle::TRVFReaderStyleMode FRVFTextStylesReadMode;
	Rvstyle::TRVFReaderStyleMode FRVFParaStylesReadMode;
	TRVReadHyperlink FOnReadHyperlink;
	TRVWriteHyperlink FOnWriteHyperlink;
	TRVSaveRTFExtraEvent FOnSaveRTFExtra;
	TRVSaveHTMLExtraEvent FOnSaveHTMLExtra;
	TRVSaveParaToHTMLEvent FOnSaveParaToHTML;
	TRVPaintEvent FOnPaint;
	TRVImportPictureEvent FOnImportPicture;
	TRVItemHintEvent FOnItemHint;
	Classes::TStringList* FDocProperties;
	TRVProgressEvent FOnProgress;
	TRVSpellingCheckEvent FOnSpellingCheck;
	TRVLiveSpellingMode FLiveSpellingMode;
	TRVAnimationMode FAnimationMode;
	Stdctrls::TTextLayout FVAlign;
	TRVGetFormatCanvasEvent FOnGetFormatCanvas;
	Classes::TNotifyEvent FOnBiDiModeChange;
	HIDESBASE MESSAGE void __fastcall WMContextMenu(Messages::TWMContextMenu &Message);
	HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
	HIDESBASE MESSAGE void __fastcall WMEraseBkgnd(Messages::TWMEraseBkgnd &Message);
	HIDESBASE MESSAGE void __fastcall CMMouseLeave(Messages::TMessage &Message);
	MESSAGE void __fastcall WMCopy(Messages::TWMNoParams &Message);
	MESSAGE void __fastcall WMTimer(Messages::TWMTimer &Message);
	HIDESBASE MESSAGE void __fastcall WMDestroy(Messages::TWMNoParams &Message);
	HIDESBASE MESSAGE void __fastcall WMGetDlgCode(Messages::TWMNoParams &Message);
	HIDESBASE MESSAGE void __fastcall WMSetFocus(Messages::TWMSetFocus &Message);
	HIDESBASE MESSAGE void __fastcall WMKillFocus(Messages::TWMKillFocus &Message);
	MESSAGE void __fastcall WMRVEvent(Messages::TMessage &Message);
	MESSAGE void __fastcall WMRVDragDrop(Messages::TMessage &Message);
	MESSAGE void __fastcall EMGetSel(Messages::TMessage &Message);
	MESSAGE void __fastcall EMSetSel(Messages::TMessage &Message);
	MESSAGE void __fastcall EMGetTextRange(Messages::TMessage &Message);
	HIDESBASE MESSAGE void __fastcall CMColorChanged(Messages::TMessage &Message);
	int __fastcall GetLineCount(void);
	bool __fastcall GetAllowSelection(void);
	bool __fastcall GetSingleClick(void);
	void __fastcall SetAllowSelection(const bool Value);
	void __fastcall SetSingleClick(const bool Value);
	void __fastcall DoOnBackBitmapChange(System::TObject* Sender);
	bool __fastcall GetPageBreaksBeforeItems(int Index);
	void __fastcall SetPageBreaksBeforeItems(int Index, bool Value);
	int __fastcall GetDocumentHeight(void);
	int __fastcall GetFirstJumpNo(void);
	void __fastcall SetFirstJumpNo(int Value);
	void __fastcall SetTabNavigation(const Rvscroll::TRVTabNavigationType Value);
	void __fastcall SetRTFReadProperties(const Rvrtfprops::TRVRTFReaderProperties* Value);
	void __fastcall SetDocParameters(const Rvdocparams::TRVDocParameters* Value);
	bool __fastcall StoreDelimiters(void);
	void __fastcall SetDocProperties(const Classes::TStringList* Value);
	void __fastcall DoClearLiveSpellingResults(void);
	void __fastcall ClearItemLiveSpellingResults(Crvdata::TCustomRVData* RVData, int ItemNo, int &UserData1, const AnsiString UserData2, bool &ContinueEnum);
	void __fastcall LiveSpellingValidateWordInItem(Crvdata::TCustomRVData* RVData, int ItemNo, int &UserData1, const AnsiString UserData2, bool &ContinueEnum);
	void __fastcall FullInvalidate(void);
	void __fastcall SetAnimationMode(const TRVAnimationMode Value);
	void __fastcall KillAnimators(void);
	Rvpopup::TRVSmartPopupProperties* __fastcall GetSmartPopupProperties(void);
	void __fastcall SetSmartPopupProperties(const Rvpopup::TRVSmartPopupProperties* Value);
	bool __fastcall GetSmartPopupVisible(void);
	void __fastcall SetSmartPopupVisible(const bool Value);
	bool __fastcall StoreDocParameters(void);
	bool __fastcall GetClearLeft(int Index);
	bool __fastcall GetClearRight(int Index);
	void __fastcall SetClearLeft(int Index, const bool Value);
	void __fastcall SetClearRight(int Index, const bool Value);
	void __fastcall OutputDebug(System::TObject* Sender);
	void __fastcall MouseDebug(System::TObject* Sender);
	
protected:
	int VScrollDelta;
	int HScrollDelta;
	Classes::TNotifyEvent FOnSelect;
	Rvstyle::TRVStyle* FStyle;
	AnsiString imgSavePrefix;
	Rvstyle::TRVSaveOptions SaveOptions;
	Graphics::TColor CurrentFileColor;
	Rvthread::TRVWordEnumThread* FWordEnumThread;
	int FDblClickTime;
	virtual void __fastcall WndProc(Messages::TMessage &Message);
	DYNAMIC void __fastcall AdjustPopupMenuPos(Types::TPoint &pt);
	virtual void __fastcall SetBiDiModeRV(const Rvscroll::TRVBiDiMode Value);
	virtual void __fastcall SetVSmallStep(int Value);
	DYNAMIC AnsiString __fastcall GetDesignTimeText();
	virtual void __fastcall Paint(void);
	Graphics::TColor __fastcall GetColor(void);
	Graphics::TColor __fastcall GetHoverColor(Graphics::TColor Color);
	bool __fastcall IsCopyShortcut(Classes::TShiftState Shift, Word Key);
	bool __fastcall IsCutShortcut(Classes::TShiftState Shift, Word Key);
	bool __fastcall IsPasteShortcut(Classes::TShiftState Shift, Word Key);
	DYNAMIC void __fastcall DblClick(void);
	void __fastcall TripleClick(void);
	DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
	virtual void __fastcall ClearTemporal(void);
	int __fastcall GetFirstItemVisible(void);
	int __fastcall GetLastItemVisible(void);
	Graphics::TBitmap* __fastcall GetBackBitmap(void);
	void __fastcall SetBackBitmap(Graphics::TBitmap* Value);
	void __fastcall SetBackgroundStyle(Rvscroll::TBackgroundStyle Value);
	Rvscroll::TBackgroundStyle __fastcall GetBackgroundStyle(void);
	virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation);
	virtual void __fastcall Loaded(void);
	bool __fastcall CompareTags(int Tag1, int Tag2);
	virtual void __fastcall SetStyle(Rvstyle::TRVStyle* Value);
	virtual void __fastcall AfterVScroll(void);
	virtual void __fastcall InplaceRedrawing(bool AllowRedrawItself);
	virtual void __fastcall AfterHScroll(void);
	void __fastcall GenerateMouseMove(void);
	void __fastcall Format_(bool OnlyResized, bool ForceFormat, Graphics::TCanvas* Canvas, bool OnlyTail, bool NoCaching, bool Reformatting, bool CallOnFormat);
	virtual TMetaClass* __fastcall GetDataClass(void);
	Rvscroll::TRVTabNavigationType __fastcall GetTabNavigation(void);
	virtual Rvrtfprops::TRVRTFReaderProperties* __fastcall GetRTFReadProperties(void);
	virtual TMetaClass* __fastcall GetRTFReadPropertiesClass(void);
	virtual void __fastcall AlignControls(Controls::TControl* AControl, Types::TRect &Rect);
	virtual Rvdocparams::TRVDocParameters* __fastcall GetDocParameters(void);
	DYNAMIC void __fastcall AfterCreateWnd1(void);
	DYNAMIC void __fastcall AfterCreateWnd2(void);
	virtual void __fastcall SetName(const AnsiString NewName);
	void __fastcall ResumeLiveSpelling(void);
	void __fastcall ShowSmartPopup(void);
	void __fastcall HideSmartPopup(void);
	DYNAMIC void __fastcall SetSmartPopupTarget(void);
	__property bool AllowSelection = {read=GetAllowSelection, write=SetAllowSelection, stored=false, nodefault};
	__property bool SingleClick = {read=GetSingleClick, write=SetSingleClick, stored=false, nodefault};
	__property TRVPaintEvent OnPaint = {read=FOnPaint, write=FOnPaint};
	
public:
	Rvrvdata::TRichViewRVData* RVData;
	Crvdata::TRVFlags Flags;
	Rvback::TRVBackground* Background;
	int imgSaveNo;
	bool CurPictureInvalid;
	__property AnsiString NoteText = {read=FNoteText, write=FNoteText};
	void __fastcall RefreshSequences(void);
	__property Canvas ;
	DYNAMIC Graphics::TCanvas* __fastcall GetFormatCanvas(Graphics::TCanvas* DefCanvas);
	void __fastcall SelectNext_(bool GoForward);
	DYNAMIC void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
	DYNAMIC void __fastcall MouseMove(Classes::TShiftState Shift, int X, int Y);
	DYNAMIC void __fastcall MouseUp(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
	void __fastcall ActivateScrollTimer(bool Slow);
	void __fastcall DeactivateScrollTimer(void);
	DYNAMIC bool __fastcall RTFReaderAssigned(void);
	DYNAMIC bool __fastcall DocParametersAssigned(void);
	void __fastcall AssignEvents(TCustomRichView* Source);
	__fastcall virtual TCustomRichView(Classes::TComponent* AOwner);
	__fastcall virtual ~TCustomRichView(void);
	DYNAMIC void __fastcall GetTabOrderList(Classes::TList* List);
	void __fastcall AssignSoftPageBreaks(Classes::TComponent* RVPrint);
	void __fastcall ClearSoftPageBreaks(void);
	void __fastcall AddItemR(const AnsiString Text, Rvitem::TCustomRVItemInfo* Item);
	void __fastcall AddItem(const AnsiString Text, Rvitem::TCustomRVItemInfo* Item);
	void __fastcall AddNLR(const AnsiString s, int StyleNo, int ParaNo);
	void __fastcall AddNL(const AnsiString s, int StyleNo, int ParaNo);
	void __fastcall AddFmt(const AnsiString FormatStr, System::TVarRec const * Args, const int Args_Size, int StyleNo, int ParaNo);
	void __fastcall AddR(const AnsiString s, int StyleNo);
	void __fastcall Add(const AnsiString s, int StyleNo);
	void __fastcall AddTextNLR(const AnsiString s, int StyleNo, int FirstParaNo, int OtherParaNo);
	void __fastcall AddTextNL(const AnsiString s, int StyleNo, int FirstParaNo, int OtherParaNo);
	void __fastcall AddTextNLA(const AnsiString s, int StyleNo, int FirstParaNo, int OtherParaNo);
	void __fastcall AddTextBlockNLA(const AnsiString s, int StyleNo, int ParaNo);
	void __fastcall AddTab(int TextStyleNo, int ParaNo);
	void __fastcall AddBreak(void);
	int __fastcall AddCheckpoint(void);
	int __fastcall AddNamedCheckpoint(const AnsiString CpName);
	int __fastcall AddNamedCheckpointEx(const AnsiString CpName, bool RaiseEvent);
	void __fastcall AddPictureEx(const AnsiString Name, Graphics::TGraphic* gr, int ParaNo, Rvstyle::TRVVAlign VAlign);
	void __fastcall AddHotPicture(const AnsiString Name, Graphics::TGraphic* gr, int ParaNo, Rvstyle::TRVVAlign VAlign);
	void __fastcall AddHotspotEx(const AnsiString Name, int ImageIndex, int HotImageIndex, Imglist::TCustomImageList* ImageList, int ParaNo);
	void __fastcall AddBulletEx(const AnsiString Name, int ImageIndex, Imglist::TCustomImageList* ImageList, int ParaNo);
	void __fastcall AddControlEx(const AnsiString Name, Controls::TControl* ctrl, int ParaNo, Rvstyle::TRVVAlign VAlign);
	void __fastcall AddBreakEx(Rvstyle::TRVStyleLength Width, Rvstyle::TRVBreakStyle Style, Graphics::TColor Color);
	void * __fastcall SetDebug(void);
	void __fastcall AddNLRTag(const AnsiString s, int StyleNo, int ParaNo, int Tag);
	void __fastcall AddNLTag(const AnsiString s, int StyleNo, int ParaNo, int Tag);
	void __fastcall AddRTag(const AnsiString s, int StyleNo, int Tag);
	void __fastcall AddTag(const AnsiString s, int StyleNo, int Tag);
	void __fastcall AddBreakTag(int Tag);
	int __fastcall AddCheckpointTag(int Tag);
	int __fastcall AddNamedCheckpointExTag(const AnsiString CpName, bool RaiseEvent, int Tag);
	void __fastcall AddPictureExTag(const AnsiString Name, Graphics::TGraphic* gr, int ParaNo, Rvstyle::TRVVAlign VAlign, int Tag);
	void __fastcall AddHotPictureTag(const AnsiString Name, Graphics::TGraphic* gr, int ParaNo, Rvstyle::TRVVAlign VAlign, int Tag);
	void __fastcall AddHotspotExTag(const AnsiString Name, int ImageIndex, int HotImageIndex, Imglist::TCustomImageList* ImageList, int ParaNo, int Tag);
	void __fastcall AddBulletExTag(const AnsiString Name, int ImageIndex, Imglist::TCustomImageList* ImageList, int ParaNo, int Tag);
	void __fastcall AddControlExTag(const AnsiString Name, Controls::TControl* ctrl, int ParaNo, Rvstyle::TRVVAlign VAlign, int Tag);
	void __fastcall AddBreakExTag(Rvstyle::TRVStyleLength Width, Rvstyle::TRVBreakStyle Style, Graphics::TColor Color, int Tag);
	void __fastcall AddFromNewLine(const AnsiString s, int StyleNo);
	void __fastcall AddCenterLine(const AnsiString s, int StyleNo);
	void __fastcall AddText(const AnsiString s, int StyleNo);
	void __fastcall AddTextFromNewLine(const AnsiString s, int StyleNo);
	void __fastcall AddPicture(Graphics::TGraphic* gr);
	void __fastcall AddHotspot(int ImageIndex, Imglist::TCustomImageList* ImageList, bool fromnewline);
	void __fastcall AddBullet(int ImageIndex, Imglist::TCustomImageList* ImageList, bool fromnewline);
	void __fastcall AddControl(Controls::TControl* ctrl, bool center);
	int __fastcall GetCheckpointY(int no);
	Rvstyle::TCheckpointData __fastcall GetFirstCheckpoint(void);
	Rvstyle::TCheckpointData __fastcall GetNextCheckpoint(Rvstyle::TCheckpointData CheckpointData);
	Rvstyle::TCheckpointData __fastcall GetLastCheckpoint(void);
	Rvstyle::TCheckpointData __fastcall GetPrevCheckpoint(Rvstyle::TCheckpointData CheckpointData);
	Rvstyle::TCheckpointData __fastcall GetItemCheckpoint(int ItemNo);
	Rvstyle::TCheckpointData __fastcall FindCheckpointByName(const AnsiString Name);
	Rvstyle::TCheckpointData __fastcall FindCheckpointByTag(int Tag);
	Rvstyle::TCheckpointData __fastcall GetCheckpointByNo(int No);
	void __fastcall GetCheckpointInfo(Rvstyle::TCheckpointData CheckpointData, int &Tag, AnsiString &Name, bool &RaiseEvent);
	void __fastcall GetCheckpointXY(Rvstyle::TCheckpointData CheckpointData, int &X, int &Y);
	int __fastcall GetCheckpointYEx(Rvstyle::TCheckpointData CheckpointData);
	int __fastcall GetCheckpointItemNo(Rvstyle::TCheckpointData CheckpointData);
	int __fastcall GetCheckpointNo(Rvstyle::TCheckpointData CheckpointData);
	int __fastcall GetJumpPointY(int id);
	int __fastcall GetJumpPointItemNo(int id);
	void __fastcall GetJumpPointLocation(int id, Crvfdata::TCustomRVFormattedData* &RVData, int &ItemNo);
	bool __fastcall GetItemCoords(int ItemNo, int &Left, int &Top);
	bool __fastcall GetItemClientCoords(int ItemNo, int &Left, int &Top);
	void __fastcall Clear(void);
	void __fastcall Format(void);
	void __fastcall Reformat(void);
	void __fastcall FormatTail(void);
	void __fastcall AppendFrom(TCustomRichView* Source);
	bool __fastcall SaveHTMLToStreamEx(Classes::TStream* Stream, const AnsiString Path, const AnsiString Title, const AnsiString ImagesPrefix, const AnsiString ExtraStyles, const AnsiString ExternalCSS, const AnsiString CPPrefix, Rvstyle::TRVSaveOptions Options);
	bool __fastcall SaveHTMLToStream(Classes::TStream* Stream, const AnsiString Path, const AnsiString Title, const AnsiString ImagesPrefix, Rvstyle::TRVSaveOptions Options);
	bool __fastcall SaveHTMLEx(const AnsiString FileName, const AnsiString Title, const AnsiString ImagesPrefix, const AnsiString ExtraStyles, const AnsiString ExternalCSS, const AnsiString CPPrefix, Rvstyle::TRVSaveOptions Options);
	bool __fastcall SaveHTML(const AnsiString FileName, const AnsiString Title, const AnsiString ImagesPrefix, Rvstyle::TRVSaveOptions Options);
	bool __fastcall SaveText(const AnsiString FileName, int LineWidth);
	bool __fastcall SaveTextToStream(const AnsiString Path, Classes::TStream* Stream, int LineWidth, bool SelectionOnly, bool TextOnly);
	bool __fastcall LoadText(const AnsiString FileName, int StyleNo, int ParaNo, bool AsSingleParagraph);
	bool __fastcall LoadTextFromStream(Classes::TStream* Stream, int StyleNo, int ParaNo, bool AsSingleParagraph);
	Crvdata::TRVLayoutInfo* __fastcall CreateLayoutInfo(void);
	DYNAMIC void __fastcall ApplyLayoutInfo(Crvdata::TRVLayoutInfo* Layout);
	bool __fastcall LoadRVFFromStream(Classes::TStream* Stream);
	bool __fastcall InsertRVFFromStream(Classes::TStream* Stream, int Index);
	bool __fastcall AppendRVFFromStream(Classes::TStream* Stream, int ParaNo);
	bool __fastcall LoadRVF(const AnsiString FileName);
	bool __fastcall SaveRVFToStream(Classes::TStream* Stream, bool SelectionOnly);
	bool __fastcall SaveRVF(const AnsiString FileName, bool SelectionOnly);
	void __fastcall CopyRVF(void);
	bool __fastcall SaveRTFToStream(Classes::TStream* Stream, bool SelectionOnly);
	bool __fastcall SaveRTF(const AnsiString FileName, bool SelectionOnly);
	void __fastcall CopyRTF(void);
	bool __fastcall LoadRTFFromStream(Classes::TStream* Stream);
	bool __fastcall LoadRTF(const AnsiString FileName);
	bool __fastcall LoadFromStream(Classes::TStream* Stream, TRVYesNoAuto IsTextUnicode);
	void __fastcall AddNLATag(const AnsiString s, int StyleNo, int ParaNo, int Tag);
	bool __fastcall SaveTextW(const AnsiString FileName, int LineWidth);
	bool __fastcall SaveTextToStreamW(const AnsiString Path, Classes::TStream* Stream, int LineWidth, bool SelectionOnly, bool TextOnly);
	bool __fastcall LoadTextW(const AnsiString FileName, int StyleNo, int ParaNo, bool DefAsSingleParagraph);
	bool __fastcall LoadTextFromStreamW(Classes::TStream* Stream, int StyleNo, int ParaNo, bool DefAsSingleParagraph);
	void __fastcall SetItemTextA(int ItemNo, const AnsiString s);
	void __fastcall AddNLWTag(const WideString s, int StyleNo, int ParaNo, int Tag);
	void __fastcall AddTextNLW(const WideString s, int StyleNo, int FirstParaNo, int OtherParaNo, bool DefAsSingleParagraph);
	WideString __fastcall GetSelTextW();
	WideString __fastcall GetItemTextW(int ItemNo);
	void __fastcall SetItemTextW(int ItemNo, const WideString s);
	AnsiString __fastcall GetItemTextA(int ItemNo);
	void __fastcall DeleteSection(const AnsiString CpName);
	void __fastcall DeleteItems(int FirstItemNo, int Count);
	void __fastcall DeleteParas(int FirstItemNo, int LastItemNo);
	void __fastcall CopyTextA(void);
	void __fastcall CopyTextW(void);
	void __fastcall CopyText(void);
	void __fastcall CopyImage(void);
	void __fastcall Copy(void);
	bool __fastcall CopyDef(void);
	Graphics::TGraphic* __fastcall GetSelectedImage(void);
	AnsiString __fastcall GetSelTextA();
	AnsiString __fastcall GetSelText();
	bool __fastcall SelectionExists(void);
	void __fastcall Deselect(void);
	void __fastcall SelectAll(void);
	bool __fastcall SearchTextA(const AnsiString s, Rvscroll::TRVSearchOptions SrchOptions);
	bool __fastcall SearchTextW(const WideString s, Rvscroll::TRVSearchOptions SrchOptions);
	bool __fastcall SearchText(const AnsiString s, Rvscroll::TRVSearchOptions SrchOptions);
	int __fastcall GetItemStyle(int ItemNo);
	void __fastcall GetBreakInfo(int ItemNo, Rvstyle::TRVStyleLength &AWidth, Rvstyle::TRVBreakStyle &AStyle, Graphics::TColor &AColor, int &ATag);
	void __fastcall GetBulletInfo(int ItemNo, AnsiString &AName, int &AImageIndex, Imglist::TCustomImageList* &AImageList, int &ATag);
	void __fastcall GetHotspotInfo(int ItemNo, AnsiString &AName, int &AImageIndex, int &AHotImageIndex, Imglist::TCustomImageList* &AImageList, int &ATag);
	void __fastcall GetPictureInfo(int ItemNo, AnsiString &AName, Graphics::TGraphic* &Agr, Rvstyle::TRVVAlign &AVAlign, int &ATag);
	void __fastcall GetControlInfo(int ItemNo, AnsiString &AName, Controls::TControl* &Actrl, Rvstyle::TRVVAlign &AVAlign, int &ATag);
	void __fastcall GetTextInfo(int ItemNo, AnsiString &AText, int &ATag);
	int __fastcall GetItemTag(int ItemNo);
	Rvstyle::TRVVAlign __fastcall GetItemVAlign(int ItemNo);
	void __fastcall SetItemTextR(int ItemNo, const AnsiString s);
	void __fastcall SetItemText(int ItemNo, const AnsiString s);
	AnsiString __fastcall GetItemTextR(int ItemNo);
	AnsiString __fastcall GetItemText(int ItemNo);
	bool __fastcall SetItemExtraIntProperty(int ItemNo, Rvitem::TRVExtraItemProperty Prop, int Value);
	bool __fastcall GetItemExtraIntProperty(int ItemNo, Rvitem::TRVExtraItemProperty Prop, int &Value);
	bool __fastcall SetItemExtraStrProperty(int ItemNo, Rvitem::TRVExtraItemStrProperty Prop, const AnsiString Value);
	bool __fastcall GetItemExtraStrProperty(int ItemNo, Rvitem::TRVExtraItemStrProperty Prop, AnsiString &Value);
	bool __fastcall IsParaStart(int ItemNo);
	int __fastcall GetItemPara(int ItemNo);
	bool __fastcall IsFromNewLine(int ItemNo);
	void __fastcall SetBreakInfo(int ItemNo, Rvstyle::TRVStyleLength AWidth, Rvstyle::TRVBreakStyle AStyle, Graphics::TColor AColor, int ATag);
	void __fastcall SetBulletInfo(int ItemNo, const AnsiString AName, int AImageIndex, Imglist::TCustomImageList* AImageList, int ATag);
	void __fastcall SetHotspotInfo(int ItemNo, const AnsiString AName, int AImageIndex, int AHotImageIndex, Imglist::TCustomImageList* AImageList, int ATag);
	bool __fastcall SetPictureInfo(int ItemNo, const AnsiString AName, Graphics::TGraphic* Agr, Rvstyle::TRVVAlign AVAlign, int ATag);
	bool __fastcall SetControlInfo(int ItemNo, const AnsiString AName, Rvstyle::TRVVAlign AVAlign, int ATag);
	void __fastcall SetItemTag(int ItemNo, int ATag);
	void __fastcall SetItemVAlign(int ItemNo, Rvstyle::TRVVAlign VAlign);
	void __fastcall SetCheckpointInfo(int ItemNo, int ATag, const AnsiString AName, bool ARaiseEvent);
	bool __fastcall RemoveCheckpoint(int ItemNo);
	int __fastcall FindControlItemNo(Controls::TControl* actrl);
	bool __fastcall SelectControl(Controls::TControl* actrl);
	void __fastcall GetSelectionBounds(int &StartItemNo, int &StartItemOffs, int &EndItemNo, int &EndItemOffs, bool Normalize);
	void __fastcall SetSelectionBounds(int StartItemNo, int StartItemOffs, int EndItemNo, int EndItemOffs);
	void __fastcall GetWordAt(int X, int Y, Crvfdata::TCustomRVFormattedData* &ARVData, int &AItemNo, AnsiString &AWord)/* overload */;
	void __fastcall GetWordAtR(int X, int Y, Crvfdata::TCustomRVFormattedData* &ARVData, int &AItemNo, AnsiString &AWord);
	AnsiString __fastcall GetWordAtA(int X, int Y);
	WideString __fastcall GetWordAtW(int X, int Y);
	AnsiString __fastcall GetWordAt(int X, int Y)/* overload */;
	void __fastcall SelectWordAt(int X, int Y);
	DYNAMIC void __fastcall UpdatePaletteInfo(void);
	int __fastcall GetOffsBeforeItem(int ItemNo);
	int __fastcall GetOffsAfterItem(int ItemNo);
	void __fastcall SetAddParagraphMode(bool AllowNewPara);
	virtual AnsiString __fastcall SavePicture(Rvstyle::TRVSaveFormat DocumentSaveFormat, const AnsiString Path, Graphics::TGraphic* gr);
	Types::TRect __fastcall GetSelectionRect();
	Rvitem::TCustomRVItemInfo* __fastcall GetItem(int ItemNo);
	int __fastcall GetItemNo(Rvitem::TCustomRVItemInfo* Item);
	void __fastcall GetFocusedItem(Crvfdata::TCustomRVFormattedData* &ARVData, int &AItemNo);
	void __fastcall MarkStylesInUse(Rvitem::TRVDeleteUnusedStylesData* Data);
	void __fastcall DeleteMarkedStyles(Rvitem::TRVDeleteUnusedStylesData* Data);
	void __fastcall DeleteUnusedStyles(bool TextStyles, bool ParaStyles, bool ListStyles);
	void __fastcall BeginOleDrag(void);
	virtual TMetaClass* __fastcall GetRVDropSourceClass(void);
	int __fastcall SetListMarkerInfo(int AItemNo, int AListNo, int AListLevel, int AStartFrom, int AParaNo, bool AUseStartFrom);
	void __fastcall RemoveListMarker(int ItemNo);
	int __fastcall GetListMarkerInfo(int AItemNo, int &AListNo, int &AListLevel, int &AStartFrom, bool &AUseStartFrom);
	void __fastcall RefreshListMarkers(void);
	int __fastcall GetLineNo(int ItemNo, int ItemOffs);
	bool __fastcall GetItemAt(int X, int Y, Crvfdata::TCustomRVFormattedData* &RVData, int &ItemNo, int &OffsetInItem, bool Strict);
	Types::TPoint __fastcall ClientToDocument(const Types::TPoint &APoint);
	void __fastcall StartLiveSpelling(void);
	void __fastcall ClearLiveSpellingResults(void);
	void __fastcall LiveSpellingValidateWord(const AnsiString AWord);
	void __fastcall LaterSetBackLiveSpellingTo(Crvdata::TCustomRVData* RVData, int ItemNo, int Offs);
	void __fastcall RemoveRVDataFromLiveSpelling(Crvdata::TCustomRVData* RVData);
	void __fastcall AdjustLiveSpellingOnKeyPress(Crvdata::TCustomRVData* RVData, int ItemNo, int Index, char ch);
	void __fastcall AdjustLiveSpellingOnDelete(Crvdata::TCustomRVData* RVData, int ItemNo, int Index, int Count);
	void __fastcall LiveSpellingCheckCurrentItem(Crvdata::TCustomRVData* RVData, int ItemNo);
	void __fastcall StartAnimation(void);
	void __fastcall StopAnimation(void);
	void __fastcall ResetAnimation(void);
	DYNAMIC bool __fastcall ExecuteAction(Classes::TBasicAction* Action);
	DYNAMIC bool __fastcall UpdateAction(Classes::TBasicAction* Action);
	virtual void __fastcall Invalidate(void);
	virtual void __fastcall Update(void);
	void __fastcall ConvertDocToDifferentUnits(Rvstyle::TRVStyleUnits NewUnits);
	void __fastcall ConvertDocToTwips(void);
	void __fastcall ConvertDocToPixels(void);
	__property int LineCount = {read=GetLineCount, nodefault};
	__property int ItemCount = {read=GetLineCount, nodefault};
	__property int FirstItemVisible = {read=GetFirstItemVisible, nodefault};
	__property int LastItemVisible = {read=GetLastItemVisible, nodefault};
	__property Rvstyle::TRVFWarnings RVFWarnings = {read=FRVFWarnings, write=FRVFWarnings, nodefault};
	__property int DocumentHeight = {read=GetDocumentHeight, nodefault};
	__property bool PageBreaksBeforeItems[int Index] = {read=GetPageBreaksBeforeItems, write=SetPageBreaksBeforeItems};
	__property bool ClearLeft[int Index] = {read=GetClearLeft, write=SetClearLeft};
	__property bool ClearRight[int Index] = {read=GetClearRight, write=SetClearRight};
	__property TRVAnimationMode AnimationMode = {read=FAnimationMode, write=SetAnimationMode, default=1};
	__property Graphics::TBitmap* BackgroundBitmap = {read=GetBackBitmap, write=SetBackBitmap};
	__property Rvscroll::TBackgroundStyle BackgroundStyle = {read=GetBackgroundStyle, write=SetBackgroundStyle, nodefault};
	__property int BottomMargin = {read=FBottomMargin, write=FBottomMargin, default=5};
	__property Color  = {default=536870911};
	__property Rvscroll::TCPEventKind CPEventKind = {read=FCPEventKind, write=FCPEventKind, nodefault};
	__property Controls::TCursor Cursor = {read=FCursor, write=FCursor, nodefault};
	__property AnsiString Delimiters = {read=FDelimiters, write=FDelimiters, stored=StoreDelimiters};
	__property DoInPaletteMode ;
	__property int FirstJumpNo = {read=GetFirstJumpNo, write=SetFirstJumpNo, default=0};
	__property FullRedraw ;
	__property HScrollVisible  = {default=1};
	__property HScrollMax ;
	__property HScrollPos ;
	__property InplaceEditor ;
	__property int LeftMargin = {read=FLeftMargin, write=FLeftMargin, default=5};
	__property TRVLiveSpellingMode LiveSpellingMode = {read=FLiveSpellingMode, write=FLiveSpellingMode, default=0};
	__property int MaxLength = {read=FMaxLength, write=FMaxLength, default=0};
	__property int MaxTextWidth = {read=FMaxTextWidth, write=FMaxTextWidth, default=0};
	__property int MinTextWidth = {read=FMinTextWidth, write=FMinTextWidth, default=0};
	__property Rvscroll::TRVOptions Options = {read=FOptions, write=FOptions, default=653861};
	__property int RightMargin = {read=FRightMargin, write=FRightMargin, default=5};
	__property Rvstyle::TRVRTFOptions RTFOptions = {read=FRTFOptions, write=FRTFOptions, default=14};
	__property Rvrtfprops::TRVRTFReaderProperties* RTFReadProperties = {read=GetRTFReadProperties, write=SetRTFReadProperties};
	__property Rvdocparams::TRVDocParameters* DocParameters = {read=GetDocParameters, write=SetDocParameters, stored=StoreDocParameters};
	__property Rvstyle::TRVFOptions RVFOptions = {read=FRVFOptions, write=FRVFOptions, default=98435};
	__property Rvstyle::TRVFReaderStyleMode RVFParaStylesReadMode = {read=FRVFParaStylesReadMode, write=FRVFParaStylesReadMode, default=2};
	__property Rvstyle::TRVFReaderStyleMode RVFTextStylesReadMode = {read=FRVFTextStylesReadMode, write=FRVFTextStylesReadMode, default=2};
	__property Rvstyle::TRVStyle* Style = {read=FStyle, write=SetStyle};
	__property Rvscroll::TRVTabNavigationType TabNavigation = {read=GetTabNavigation, write=SetTabNavigation, default=1};
	__property int TopMargin = {read=FTopMargin, write=FTopMargin, default=5};
	__property Classes::TStringList* DocProperties = {read=FDocProperties, write=SetDocProperties};
	__property VScrollMax ;
	__property VScrollPos ;
	__property VScrollVisible  = {default=1};
	__property VSmallStep ;
	__property Rvpopup::TRVSmartPopupProperties* SmartPopupProperties = {read=GetSmartPopupProperties, write=SetSmartPopupProperties};
	__property bool SmartPopupVisible = {read=GetSmartPopupVisible, write=SetSmartPopupVisible, nodefault};
	__property Stdctrls::TTextLayout VAlign = {read=FVAlign, write=FVAlign, default=0};
	__property bool WordWrap = {read=FWordWrap, write=FWordWrap, default=1};
	__property TRVDblClickEvent OnRVDblClick = {read=FOnRVDblClick, write=FOnRVDblClick};
	__property TRVCheckpointVisibleEvent OnCheckpointVisible = {read=FOnCheckpointVisible, write=FOnCheckpointVisible};
	__property TRVControlActionEvent OnControlAction = {read=FOnControlAction, write=FOnControlAction};
	__property TRVItemActionEvent OnItemAction = {read=FOnItemAction, write=FOnItemAction};
	__property Classes::TNotifyEvent OnCopy = {read=FOnCopy, write=FOnCopy};
	__property TRVImportPictureEvent OnImportPicture = {read=FOnImportPicture, write=FOnImportPicture};
	__property TRVItemHintEvent OnItemHint = {read=FOnItemHint, write=FOnItemHint};
	__property TJumpEvent OnJump = {read=FOnJump, write=FOnJump};
	__property TRVGetItemCursorEvent OnGetItemCursor = {read=FOnGetItemCursor, write=FOnGetItemCursor};
	__property TRVHTMLSaveImageEvent OnHTMLSaveImage = {read=FOnHTMLSaveImage, write=FOnHTMLSaveImage};
	__property TRVSaveImageEvent2 OnSaveImage2 = {read=FOnSaveImage2, write=FOnSaveImage2};
	__property TRVReadHyperlink OnReadHyperlink = {read=FOnReadHyperlink, write=FOnReadHyperlink};
	__property TRVWriteHyperlink OnWriteHyperlink = {read=FOnWriteHyperlink, write=FOnWriteHyperlink};
	__property TRVURLNeededEvent OnURLNeeded = {read=FOnURLNeeded, write=FOnURLNeeded};
	__property TRVMouseEvent OnRVMouseDown = {read=FOnRVMouseDown, write=FOnRVMouseDown};
	__property TRVMouseMoveEvent OnRVMouseMove = {read=FOnRVMouseMove, write=FOnRVMouseMove};
	__property TRVMouseEvent OnRVMouseUp = {read=FOnRVMouseUp, write=FOnRVMouseUp};
	__property TRVRightClickEvent OnRVRightClick = {read=FOnRVRightClick, write=FOnRVRightClick};
	__property TRVFControlNeededEvent OnRVFControlNeeded = {read=FOnRVFControlNeeded, write=FOnRVFControlNeeded};
	__property TRVFImageListNeededEvent OnRVFImageListNeeded = {read=FOnRVFImageListNeeded, write=FOnRVFImageListNeeded};
	__property TRVFPictureNeededEvent OnRVFPictureNeeded = {read=FOnRVFPictureNeeded, write=FOnRVFPictureNeeded};
	__property TRVSaveComponentToFileEvent OnSaveComponentToFile = {read=FOnSaveComponentToFile, write=FOnSaveComponentToFile};
	__property TRVSaveItemToFileEvent OnSaveItemToFile = {read=FOnSaveItemToFile, write=FOnSaveItemToFile};
	__property Classes::TNotifyEvent OnSelect = {read=FOnSelect, write=FOnSelect};
	__property TRVSaveRTFExtraEvent OnSaveRTFExtra = {read=FOnSaveRTFExtra, write=FOnSaveRTFExtra};
	__property TRVSaveHTMLExtraEvent OnSaveHTMLExtra = {read=FOnSaveHTMLExtra, write=FOnSaveHTMLExtra};
	__property TRVSaveParaToHTMLEvent OnSaveParaToHTML = {read=FOnSaveParaToHTML, write=FOnSaveParaToHTML};
	__property TRVProgressEvent OnProgress = {read=FOnProgress, write=FOnProgress};
	__property TRVSpellingCheckEvent OnSpellingCheck = {read=FOnSpellingCheck, write=FOnSpellingCheck};
	__property TRVSmartPopupClickEvent OnSmartPopupClick = {read=FOnSmartPopupClick, write=FOnSmartPopupClick};
	__property TRVGetFormatCanvasEvent OnGetFormatCanvas = {read=FOnGetFormatCanvas, write=FOnGetFormatCanvas};
	__property Classes::TNotifyEvent OnBiDiModeChange = {read=FOnBiDiModeChange, write=FOnBiDiModeChange};
	__property TRVAddStyleEvent OnAddStyle = {read=FOnAddStyle, write=FOnAddStyle};
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TCustomRichView(HWND ParentWindow) : Rvscroll::TRVScroller(ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TRichView;
class PASCALIMPLEMENTATION TRichView : public TCustomRichView 
{
	typedef TCustomRichView inherited;
	
__published:
	__property Align  = {default=0};
	__property Anchors  = {default=3};
	__property Constraints ;
	__property Color  = {default=536870911};
	__property Ctl3D ;
	__property DragKind  = {default=0};
	__property DragMode  = {default=0};
	__property Enabled  = {default=1};
	__property HelpContext  = {default=0};
	__property ParentCtl3D  = {default=1};
	__property ParentShowHint  = {default=1};
	__property PopupMenu ;
	__property ShowHint ;
	__property TabOrder  = {default=-1};
	__property TabStop  = {default=1};
	__property UseXPThemes  = {default=1};
	__property Visible  = {default=1};
	__property OnClick ;
	__property OnContextPopup ;
	__property OnDblClick ;
	__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 AnimationMode  = {default=1};
	__property BackgroundBitmap ;
	__property BackgroundStyle  = {default=0};
	__property BiDiMode  = {default=0};
	__property BorderStyle  = {default=1};
	__property BottomMargin  = {default=5};
	__property CPEventKind  = {default=0};
	__property Cursor  = {default=0};
	__property Delimiters ;
	__property DocParameters ;
	__property DoInPaletteMode ;
	__property FirstJumpNo  = {default=0};
	__property HScrollVisible  = {default=1};
	__property LeftMargin  = {default=5};
	__property MaxLength  = {default=0};
	__property MaxTextWidth  = {default=0};
	__property MinTextWidth  = {default=0};
	__property Options  = {default=653861};
	__property RightMargin  = {default=5};
	__property RTFOptions  = {default=14};
	__property RTFReadProperties ;
	__property RVFOptions  = {default=98435};
	__property RVFParaStylesReadMode  = {default=2};
	__property RVFTextStylesReadMode  = {default=2};
	__property Style ;
	__property TabNavigation  = {default=1};
	__property TopMargin  = {default=5};
	__property Tracking  = {default=1};
	__property VAlign  = {default=0};
	__property VScrollVisible  = {default=1};
	__property WheelStep  = {default=2};
	__property WordWrap  = {default=1};
	__property OnAddStyle ;
	__property OnCheckpointVisible ;
	__property OnControlAction ;
	__property OnCopy ;
	__property OnGetItemCursor ;
	__property OnImportPicture ;
	__property OnItemAction ;
	__property OnItemHint ;
	__property OnJump ;
	__property OnHScrolled ;
	__property OnHTMLSaveImage ;
	__property OnPaint ;
	__property OnProgress ;
	__property OnReadHyperlink ;
	__property OnRVDblClick ;
	__property OnRVFImageListNeeded ;
	__property OnRVFControlNeeded ;
	__property OnRVFPictureNeeded ;
	__property OnRVMouseDown ;
	__property OnRVMouseMove ;
	__property OnRVMouseUp ;
	__property OnRVRightClick ;
	__property OnSaveComponentToFile ;
	__property OnSaveHTMLExtra ;
	__property OnSaveImage2 ;
	__property OnSaveItemToFile ;
	__property OnSaveRTFExtra ;
	__property OnSelect ;
	__property OnSpellingCheck ;
	__property OnVScrolled ;
	__property OnWriteHyperlink ;
	__property AllowSelection ;
	__property SingleClick ;
	__property OnURLNeeded ;
public:
	#pragma option push -w-inl
	/* TCustomRichView.Create */ inline __fastcall virtual TRichView(Classes::TComponent* AOwner) : TCustomRichView(AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TCustomRichView.Destroy */ inline __fastcall virtual ~TRichView(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TRichView(HWND ParentWindow) : TCustomRichView(ParentWindow) { }
	#pragma option pop
	
};


//-- var, const, procedure ---------------------------------------------------
static const Word WM_RVDRAGDROP = 0x410;
static const Word WM_RVRELOAD = 0x411;
static const Word WM_RVEVENT = 0x40f;
static const Shortint RV_TIMERID_SCROLLING = 0x1;
static const Shortint RV_TIMERID_ANIMATION = 0x2;
static const Shortint RV_TIMERID_CUSTOMCARET = 0x3;
extern PACKAGE TMetaClass* RVWordEnumThreadClass;
extern PACKAGE bool RichViewLMouseScroll;

}	/* namespace Richview */
using namespace Richview;
#pragma pack(pop)
#pragma option pop

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