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

// (DO NOT EDIT: machine generated header) 'RichView.pas' rev: 3.00

#ifndef RichViewHPP
#define RichViewHPP
#include <Menus.hpp>
#include <StdCtrls.hpp>
#include <RVRTFErr.hpp>
#include <RVRTFProps.hpp>
#include <Clipbrd.hpp>
#include <RVUni.hpp>
#include <RVBack.hpp>
#include <RVRVData.hpp>
#include <CRVFData.hpp>
#include <CRVData.hpp>
#include <RVFuncs.hpp>
#include <RVFMisc.hpp>
#include <RVScroll.hpp>
#include <RVStyle.hpp>
#include <RVItem.hpp>
#include <DLines.hpp>
#include <Forms.hpp>
#include <Controls.hpp>
#include <Graphics.hpp>
#include <Classes.hpp>
#include <SysUtils.hpp>
#include <Messages.hpp>
#include <Windows.hpp>
#include <SysInit.hpp>
#include <System.hpp>

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

namespace Richview
{
//-- type declarations -------------------------------------------------------
enum TRVPrintingStep { rvpsStarting, rvpsProceeding, rvpsFinished };

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

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

class DELPHICLASS TCustomRichView;
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, System::AnsiString 
	Path, Classes::TPersistent* SaveMe, Rvscroll::TRVSaveFormat SaveFormat, System::AnsiString &OutStr)
	;

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

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

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

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

typedef void __fastcall (__closure *TRVFControlNeededEvent)(TCustomRichView* Sender, System::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 *TRVFImageListNeededEvent)(TCustomRichView* Sender, int ImageListTag
	, Controls::TImageList* &il);

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

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

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

class PASCALIMPLEMENTATION TCustomRichView : public Rvscroll::TRVScroller 
{
	typedef Rvscroll::TRVScroller inherited;
	
private:
	Controls::TCursor FCursor;
	Rvscroll::TRVOptions FOptions;
	Rvstyle::TRVRTFOptions FRTFOptions;
	int VScrollDelta;
	int HScrollDelta;
	bool ScrollTimerActive;
	System::AnsiString FDelimiters;
	TJumpEvent FOnJump;
	TRVMouseMoveEvent FOnRVMouseMove;
	TRVSaveComponentToFileEvent FOnSaveComponentToFile;
	TRVURLNeededEvent FOnURLNeeded;
	TRVDblClickEvent FOnRVDblClick;
	TRVRightClickEvent FOnRVRightClick;
	TRVMouseEvent FOnRVMouseUp;
	TRVMouseEvent FOnRVMouseDown;
	TRVControlActionEvent FOnControlAction;
	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;
	Classes::TNotifyEvent FOnCopy;
	TRVHTMLSaveImageEvent FOnHTMLSaveImage;
	Rvrtfprops::TRVRTFReaderProperties* FRTFReadProperties;
	TRVFReaderStyleMode FRVFTextStylesReadMode;
	TRVFReaderStyleMode FRVFParaStylesReadMode;
	TRVReadHyperlink FOnTReadHyperlink;
	TRVSaveRTFExtraEvent FOnSaveRTFExtra;
	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);
	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 OutputDebug(System::TObject* Sender);
	void __fastcall MouseDebug(System::TObject* Sender);
	
protected:
	Classes::TNotifyEvent FOnSelect;
	Rvstyle::TRVStyle* FStyle;
	System::AnsiString imgSavePrefix;
	Rvstyle::TRVSaveOptions SaveOptions;
	Graphics::TColor CurrentFileColor;
	virtual void __fastcall SetVSmallStep(int Value);
	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);
	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);
	void __fastcall SetStyle(Rvstyle::TRVStyle* Value);
	virtual void __fastcall AfterVScroll(void);
	virtual void __fastcall AfterHScroll(void);
	void __fastcall GenerateMouseMove(void);
	void __fastcall Format_(bool OnlyResized, bool ForceFormat, Graphics::TCanvas* Canvas, bool OnlyTail
		);
	virtual System::TMetaClass* __fastcall GetDataClass(void);
	Rvscroll::TRVTabNavigationType __fastcall GetTabNavigation(void);
	virtual Rvrtfprops::TRVRTFReaderProperties* __fastcall GetRTFReadProperties(void);
	__property bool AllowSelection = {read=GetAllowSelection, write=SetAllowSelection, stored=false, nodefault
		};
	__property bool SingleClick = {read=GetSingleClick, write=SetSingleClick, stored=false, nodefault};
		
	
public:
	Rvrvdata::TRichViewRVData* RVData;
	Crvfdata::TRVFlags Flags;
	Rvback::TRVBackground* Background;
	int imgSaveNo;
	__property Canvas ;
	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(void);
	DYNAMIC bool __fastcall RTFReaderAssigned(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 AddItem(const System::AnsiString Text, Rvitem::TCustomRVItemInfo* Item);
	void __fastcall AddNL(const System::AnsiString s, int StyleNo, int ParaNo);
	void __fastcall AddFmt(const System::AnsiString FormatStr, const System::TVarRec * Args, const int 
		Args_Size, int StyleNo, int ParaNo);
	void __fastcall Add(const System::AnsiString s, int StyleNo);
	void __fastcall AddTextNL(const System::AnsiString s, int StyleNo, int FirstParaNo, int OtherParaNo
		);
	void __fastcall AddTextBlockNL(System::AnsiString s, int StyleNo, int ParaNo);
	void __fastcall AddBreak(void);
	int __fastcall AddCheckpoint(void);
	int __fastcall AddNamedCheckpoint(System::AnsiString CpName);
	int __fastcall AddNamedCheckpointEx(const System::AnsiString CpName, bool RaiseEvent);
	void __fastcall AddPictureEx(const System::AnsiString Name, Graphics::TGraphic* gr, int ParaNo, Rvstyle::TRVVAlign 
		VAlign);
	void __fastcall AddHotPicture(const System::AnsiString Name, Graphics::TGraphic* gr, int ParaNo, Rvstyle::TRVVAlign 
		VAlign);
	void __fastcall AddHotspotEx(const System::AnsiString Name, int ImageIndex, int HotImageIndex, Controls::TImageList* 
		ImageList, int ParaNo);
	void __fastcall AddBulletEx(const System::AnsiString Name, int ImageIndex, Controls::TImageList* ImageList
		, int ParaNo);
	void __fastcall AddControlEx(const System::AnsiString Name, Controls::TControl* ctrl, int ParaNo, Rvstyle::TRVVAlign 
		VAlign);
	void __fastcall AddBreakEx(Byte Width, Rvstyle::TRVBreakStyle Style, Graphics::TColor Color);
	void * __fastcall SetDebug(void);
	void __fastcall AddNLTag(const System::AnsiString s, int StyleNo, int ParaNo, int Tag);
	void __fastcall AddTag(const System::AnsiString s, int StyleNo, int Tag);
	void __fastcall AddBreakTag(int Tag);
	int __fastcall AddCheckpointTag(int Tag);
	int __fastcall AddNamedCheckpointExTag(const System::AnsiString CpName, bool RaiseEvent, int Tag);
	void __fastcall AddPictureExTag(const System::AnsiString Name, Graphics::TGraphic* gr, int ParaNo, 
		Rvstyle::TRVVAlign VAlign, int Tag);
	void __fastcall AddHotPictureTag(const System::AnsiString Name, Graphics::TGraphic* gr, int ParaNo, 
		Rvstyle::TRVVAlign VAlign, int Tag);
	void __fastcall AddHotspotExTag(const System::AnsiString Name, int ImageIndex, int HotImageIndex, Controls::TImageList* 
		ImageList, int ParaNo, int Tag);
	void __fastcall AddBulletExTag(const System::AnsiString Name, int ImageIndex, Controls::TImageList* 
		ImageList, int ParaNo, int Tag);
	void __fastcall AddControlExTag(const System::AnsiString Name, Controls::TControl* ctrl, int ParaNo
		, Rvstyle::TRVVAlign VAlign, int Tag);
	void __fastcall AddBreakExTag(Byte Width, Rvstyle::TRVBreakStyle Style, Graphics::TColor Color, int 
		Tag);
	void __fastcall AddFromNewLine(const System::AnsiString s, int StyleNo);
	void __fastcall AddCenterLine(const System::AnsiString s, int StyleNo);
	void __fastcall AddText(const System::AnsiString s, int StyleNo);
	void __fastcall AddTextFromNewLine(const System::AnsiString s, int StyleNo);
	void __fastcall AddPicture(Graphics::TGraphic* gr);
	void __fastcall AddHotspot(int ImageIndex, Controls::TImageList* ImageList, bool fromnewline);
	void __fastcall AddBullet(int ImageIndex, Controls::TImageList* 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 System::AnsiString Name);
	Rvstyle::TCheckpointData __fastcall FindCheckpointByTag(int Tag);
	Rvstyle::TCheckpointData __fastcall GetCheckpointByNo(int No);
	void __fastcall GetCheckpointInfo(Rvstyle::TCheckpointData CheckpointData, int &Tag, System::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 FormatTail(void);
	void __fastcall AppendFrom(TCustomRichView* Source);
	bool __fastcall SaveHTMLToStreamEx(Classes::TStream* Stream, const System::AnsiString Path, const System::AnsiString 
		Title, const System::AnsiString ImagesPrefix, const System::AnsiString ExtraStyles, const System::AnsiString 
		ExternalCSS, const System::AnsiString CPPrefix, Rvstyle::TRVSaveOptions Options);
	bool __fastcall SaveHTMLToStream(Classes::TStream* Stream, const System::AnsiString Path, const System::AnsiString 
		Title, const System::AnsiString ImagesPrefix, Rvstyle::TRVSaveOptions Options);
	bool __fastcall SaveHTMLEx(const System::AnsiString FileName, const System::AnsiString Title, const 
		System::AnsiString ImagesPrefix, const System::AnsiString ExtraStyles, const System::AnsiString ExternalCSS
		, const System::AnsiString CPPrefix, Rvstyle::TRVSaveOptions Options);
	bool __fastcall SaveHTML(const System::AnsiString FileName, const System::AnsiString Title, const System::AnsiString 
		ImagesPrefix, Rvstyle::TRVSaveOptions Options);
	bool __fastcall SaveText(const System::AnsiString FileName, int LineWidth);
	bool __fastcall SaveTextToStream(const System::AnsiString Path, Classes::TStream* Stream, int LineWidth
		, bool SelectionOnly, bool TextOnly);
	bool __fastcall LoadText(const System::AnsiString FileName, int StyleNo, int ParaNo, bool AsSingleParagraph
		);
	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 System::AnsiString FileName);
	bool __fastcall SaveRVFToStream(Classes::TStream* Stream, bool SelectionOnly);
	bool __fastcall SaveRVF(const System::AnsiString FileName, bool SelectionOnly);
	void __fastcall CopyRVF(void);
	bool __fastcall SaveRTFToStream(Classes::TStream* Stream, bool SelectionOnly);
	bool __fastcall SaveRTF(const System::AnsiString FileName, bool SelectionOnly);
	void __fastcall CopyRTF(void);
	bool __fastcall LoadRTFFromStream(Classes::TStream* Stream);
	bool __fastcall LoadRTF(const System::AnsiString FileName);
	bool __fastcall SaveTextW(const System::AnsiString FileName, int LineWidth);
	bool __fastcall SaveTextToStreamW(const System::AnsiString Path, Classes::TStream* Stream, int LineWidth
		, bool SelectionOnly, bool TextOnly);
	bool __fastcall LoadTextW(const System::AnsiString FileName, int StyleNo, int ParaNo, bool DefAsSingleParagraph
		);
	void __fastcall AddNLATag(const System::AnsiString s, int StyleNo, int ParaNo, int Tag);
	void __fastcall AddNLWTag(const System::WideString s, int StyleNo, int ParaNo, int Tag);
	void __fastcall AddTextNLW(const System::WideString s, int StyleNo, int FirstParaNo, int OtherParaNo
		, bool DefAsSingleParagraph);
	System::WideString __fastcall GetSelTextW(void);
	void __fastcall DeleteSection(const System::AnsiString CpName);
	void __fastcall DeleteLines(int FirstItemNo, int Count);
	void __fastcall CopyText(void);
	void __fastcall CopyTextW(void);
	void __fastcall CopyImage(void);
	void __fastcall Copy(void);
	bool __fastcall CopyDef(void);
	Graphics::TGraphic* __fastcall GetSelectedImage(void);
	System::AnsiString __fastcall GetSelText(void);
	bool __fastcall SelectionExists(void);
	void __fastcall Deselect(void);
	void __fastcall SelectAll(void);
	bool __fastcall SearchText(const System::AnsiString s, Rvscroll::TRVSearchOptions SrchOptions);
	int __fastcall GetItemStyle(int ItemNo);
	void __fastcall GetBreakInfo(int ItemNo, Byte &AWidth, Rvstyle::TRVBreakStyle &AStyle, Graphics::TColor 
		&AColor, int &ATag);
	void __fastcall GetBulletInfo(int ItemNo, System::AnsiString &AName, int &AImageIndex, Controls::TImageList* 
		&AImageList, int &ATag);
	void __fastcall GetHotspotInfo(int ItemNo, System::AnsiString &AName, int &AImageIndex, int &AHotImageIndex
		, Controls::TImageList* &AImageList, int &ATag);
	void __fastcall GetPictureInfo(int ItemNo, System::AnsiString &AName, Graphics::TGraphic* &Agr, Rvstyle::TRVVAlign 
		&AVAlign, int &ATag);
	void __fastcall GetControlInfo(int ItemNo, System::AnsiString &AName, Controls::TControl* &Actrl, Rvstyle::TRVVAlign 
		&AVAlign, int &ATag);
	void __fastcall GetTextInfo(int ItemNo, System::AnsiString &AText, int &ATag);
	int __fastcall GetItemTag(int ItemNo);
	void __fastcall SetItemText(int ItemNo, const System::AnsiString s);
	System::AnsiString __fastcall GetItemText(int ItemNo);
	bool __fastcall IsParaStart(int ItemNo);
	int __fastcall GetItemPara(int ItemNo);
	bool __fastcall IsFromNewLine(int ItemNo);
	void __fastcall SetBreakInfo(int ItemNo, Byte AWidth, Rvstyle::TRVBreakStyle AStyle, Graphics::TColor 
		AColor, int ATag);
	void __fastcall SetBulletInfo(int ItemNo, const System::AnsiString AName, int AImageIndex, Controls::TImageList* 
		AImageList, int ATag);
	void __fastcall SetHotspotInfo(int ItemNo, const System::AnsiString AName, int AImageIndex, int AHotImageIndex
		, Controls::TImageList* AImageList, int ATag);
	bool __fastcall SetPictureInfo(int ItemNo, const System::AnsiString AName, Graphics::TGraphic* Agr, 
		Rvstyle::TRVVAlign AVAlign, int ATag);
	bool __fastcall SetControlInfo(int ItemNo, const System::AnsiString AName, Rvstyle::TRVVAlign AVAlign
		, int ATag);
	void __fastcall SetItemTag(int ItemNo, int ATag);
	void __fastcall SetCheckpointInfo(int ItemNo, int ATag, const System::AnsiString AName, bool ARaiseEvent
		);
	bool __fastcall RemoveCheckpoint(int ItemNo);
	int __fastcall FindControlItemNo(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, int &ItemNo, System::AnsiString &Word);
	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 System::AnsiString __fastcall SavePicture(Rvscroll::TRVSaveFormat DocumentSaveFormat, const 
		System::AnsiString Path, Graphics::TGraphic* gr);
	Windows::TRect __fastcall GetSelectionRect(void);
	Rvitem::TCustomRVItemInfo* __fastcall GetItem(int ItemNo);
	int __fastcall GetItemNo(Rvitem::TCustomRVItemInfo* Item);
	void __fastcall GetFocusedItem(Crvfdata::TCustomRVFormattedData* &ARVData, int &AItemNo);
	void __fastcall DeleteUnusedStyles(bool TextStyles, bool ParaStyles);
	__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 Graphics::TBitmap* BackgroundBitmap = {read=GetBackBitmap, write=SetBackBitmap};
	__property Rvscroll::TBackgroundStyle BackgroundStyle = {read=GetBackgroundStyle, write=SetBackgroundStyle
		, nodefault};
	__property int BottomMargin = {read=FBottomMargin, write=FBottomMargin, nodefault};
	__property Color ;
	__property Rvscroll::TCPEventKind CPEventKind = {read=FCPEventKind, write=FCPEventKind, nodefault};
		
	__property Controls::TCursor Cursor = {read=FCursor, write=FCursor, nodefault};
	__property System::AnsiString Delimiters = {read=FDelimiters, write=FDelimiters};
	__property DoInPaletteMode ;
	__property int FirstJumpNo = {read=GetFirstJumpNo, write=SetFirstJumpNo, nodefault};
	__property FullRedraw ;
	__property HScrollVisible ;
	__property HScrollMax ;
	__property HScrollPos ;
	__property InplaceEditor ;
	__property int LeftMargin = {read=FLeftMargin, write=FLeftMargin, nodefault};
	__property int MaxTextWidth = {read=FMaxTextWidth, write=FMaxTextWidth, nodefault};
	__property int MinTextWidth = {read=FMinTextWidth, write=FMinTextWidth, nodefault};
	__property Rvscroll::TRVOptions Options = {read=FOptions, write=FOptions, default=32421};
	__property int RightMargin = {read=FRightMargin, write=FRightMargin, nodefault};
	__property Rvstyle::TRVRTFOptions RTFOptions = {read=FRTFOptions, write=FRTFOptions, default=14};
	__property Rvrtfprops::TRVRTFReaderProperties* RTFReadProperties = {read=GetRTFReadProperties, write=
		SetRTFReadProperties};
	__property Rvstyle::TRVFOptions RVFOptions = {read=FRVFOptions, write=FRVFOptions, default=67};
	__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, nodefault};
	__property VScrollMax ;
	__property VScrollPos ;
	__property VScrollVisible ;
	__property VSmallStep ;
	__property TRVDblClickEvent OnRVDblClick = {read=FOnRVDblClick, write=FOnRVDblClick};
	__property TRVCheckpointVisibleEvent OnCheckpointVisible = {read=FOnCheckpointVisible, write=FOnCheckpointVisible
		};
	__property TRVControlActionEvent OnControlAction = {read=FOnControlAction, write=FOnControlAction};
		
	__property Classes::TNotifyEvent OnCopy = {read=FOnCopy, write=FOnCopy};
	__property TJumpEvent OnJump = {read=FOnJump, write=FOnJump};
	__property TRVHTMLSaveImageEvent OnHTMLSaveImage = {read=FOnHTMLSaveImage, write=FOnHTMLSaveImage};
		
	__property TRVReadHyperlink OnReadHyperlink = {read=FOnTReadHyperlink, write=FOnTReadHyperlink};
	__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 Classes::TNotifyEvent OnSelect = {read=FOnSelect, write=FOnSelect};
	__property TRVURLNeededEvent OnURLNeeded = {read=FOnURLNeeded, write=FOnURLNeeded};
	__property TRVSaveRTFExtraEvent OnSaveRTFExtra = {read=FOnSaveRTFExtra, write=FOnSaveRTFExtra};
public:
		
	/* TWinControl.CreateParented */ __fastcall TCustomRichView(HWND ParentWindow) : Rvscroll::TRVScroller(
		ParentWindow) { }
	
};

class DELPHICLASS TRichView;
class PASCALIMPLEMENTATION TRichView : public Richview::TCustomRichView 
{
	typedef Richview::TCustomRichView inherited;
	
__published:
	__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:
	/* TCustomRichView.Create */ __fastcall virtual TRichView(Classes::TComponent* AOwner) : Richview::
		TCustomRichView(AOwner) { }
	/* TCustomRichView.Destroy */ __fastcall virtual ~TRichView(void) { }
	
public:
	/* TWinControl.CreateParented */ __fastcall TRichView(HWND ParentWindow) : Richview::TCustomRichView(
		ParentWindow) { }
	
};

//-- var, const, procedure ---------------------------------------------------

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