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

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

#ifndef RVItemHPP
#define RVItemHPP
#include <DLines.hpp>
#include <RVStyle.hpp>
#include <RVScroll.hpp>
#include <RVFuncs.hpp>
#include <RVClasses.hpp>
#include <Commctrl.hpp>
#include <Controls.hpp>
#include <Graphics.hpp>
#include <Windows.hpp>
#include <Classes.hpp>
#include <SysUtils.hpp>
#include <SysInit.hpp>
#include <System.hpp>

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

namespace Rvitem
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TRVMultiDrawItemPart;
class PASCALIMPLEMENTATION TRVMultiDrawItemPart : public System::TObject 
{
	typedef System::TObject inherited;
	
public:
	int Height;
public:
	/* TObject.Create */ __fastcall TRVMultiDrawItemPart(void) : System::TObject() { }
	/* TObject.Destroy */ __fastcall virtual ~TRVMultiDrawItemPart(void) { }
	
};

class DELPHICLASS ERichViewError;
class PASCALIMPLEMENTATION ERichViewError : public Sysutils::Exception 
{
	typedef Sysutils::Exception inherited;
	
public:
	/* Exception.Create */ __fastcall ERichViewError(const System::AnsiString Msg) : Sysutils::Exception(
		Msg) { }
	/* Exception.CreateFmt */ __fastcall ERichViewError(const System::AnsiString Msg, const System::TVarRec 
		* Args, const int Args_Size) : Sysutils::Exception(Msg, Args, Args_Size) { }
	/* Exception.CreateRes */ __fastcall ERichViewError(int Ident, Extended Dummy) : Sysutils::Exception(
		Ident, Dummy) { }
	/* Exception.CreateResFmt */ __fastcall ERichViewError(int Ident, const System::TVarRec * Args, const 
		int Args_Size) : Sysutils::Exception(Ident, Args, Args_Size) { }
	/* Exception.CreateHelp */ __fastcall ERichViewError(const System::AnsiString Msg, int AHelpContext
		) : Sysutils::Exception(Msg, AHelpContext) { }
	/* Exception.CreateFmtHelp */ __fastcall ERichViewError(const System::AnsiString Msg, const System::TVarRec 
		* Args, const int Args_Size, int AHelpContext) : Sysutils::Exception(Msg, Args, Args_Size, AHelpContext
		) { }
	/* Exception.CreateResHelp */ __fastcall ERichViewError(int Ident, int AHelpContext) : Sysutils::Exception(
		Ident, AHelpContext) { }
	/* Exception.CreateResFmtHelp */ __fastcall ERichViewError(int Ident, const System::TVarRec * Args, 
		const int Args_Size, int AHelpContext) : Sysutils::Exception(Ident, Args, Args_Size, AHelpContext)
		 { }
	
public:
	/* TObject.Destroy */ __fastcall virtual ~ERichViewError(void) { }
	
};

enum TRVItemOption { rvioSameAsPrev, rvioPageBreakBefore, rvioBR, rvioUnicode };

typedef Set<TRVItemOption, rvioSameAsPrev, rvioUnicode>  TRVItemOptions;

enum TRVItemDrawState { rvidsSelected, rvidsCurrent, rvidsHover, rvidsPrinting, rvidsPreview, rvidsPreviewCorrection, 
	rvidsControlFocused };

typedef Set<TRVItemDrawState, rvidsSelected, rvidsControlFocused>  TRVItemDrawStates;

enum TRVFReadMode { rmText, rmBeforeBinary, rmBinary, rmBeforeUnicode, rmUnicode, rmAfterUnicode };

enum TRVFReadState { rstHeader, rstData, rstSkip };

enum TRVItemBoolProperty { rvbpPrintToBMP, rvbpFullWidth, rvbpValid, rvbpRequiresRVFLines, rvbpDisplayActiveState, 
	rvbpDrawingChangesFont, rvbpPrintRequiresPrinterDPI, rvbpCanSaveUnicode, rvbpAlwaysInText, rvbpImmediateControlOwner 
	};

enum TRVItemBoolPropertyEx { rvbpJump, rvbpAllowsFocus, rvbpHotColdJump, rvbpXORFocus, rvbpHotCold }
	;

class DELPHICLASS TRVCPInfo;
class DELPHICLASS TCustomRVItemInfo;
class DELPHICLASS TRVStoreSubRVData;
enum TRVSubRVDataPos { rvdFirst, rvdLast, rvdChosenUp, rvdChosenDown, rvdNext, rvdPrev };

class PASCALIMPLEMENTATION TCustomRVItemInfo : public Classes::TPersistent 
{
	typedef Classes::TPersistent inherited;
	
private:
	bool __fastcall GetSameAsPrev(void);
	void __fastcall SetSameAsPrev(const bool Value);
	bool __fastcall GetBR(void);
	void __fastcall SetBR(bool Value);
	bool __fastcall GetPageBreakBefore(void);
	void __fastcall SetPageBreakBefore(const bool Value);
	
protected:
	DYNAMIC System::AnsiString __fastcall SaveRVFHeaderTail(Classes::TPersistent* RVData);
	
public:
	int StyleNo;
	int ParaNo;
	TRVItemOptions ItemOptions;
	TRVCPInfo* Checkpoint;
	int JumpID;
	int Tag;
	int DrawItemNo;
	__fastcall virtual TCustomRVItemInfo(Classes::TPersistent* RVData);
	HIDESBASEDYNAMIC void __fastcall Assign(TCustomRVItemInfo* Source);
	DYNAMIC Classes::TPersistent* __fastcall GetSubRVDataAt(int X, int Y);
	virtual int __fastcall GetMinWidth(void);
	DYNAMIC bool __fastcall OwnsControl(Controls::TControl* AControl);
	DYNAMIC bool __fastcall OwnsInplaceEditor(Controls::TControl* AEditor);
	bool __fastcall CanBeBorderStart(void);
	bool __fastcall ParaStart(bool CountBR);
	__property bool SameAsPrev = {read=GetSameAsPrev, write=SetSameAsPrev, nodefault};
	virtual Graphics::TGraphic* __fastcall AsImage(void);
	DYNAMIC void __fastcall SaveToHTML(Classes::TStream* Stream, Classes::TPersistent* RVData, int ItemNo
		, const System::AnsiString Text, const System::AnsiString Path, const System::AnsiString imgSavePrefix
		, int &imgSaveNo, Graphics::TColor CurrentFileColor, Rvstyle::TRVSaveOptions SaveOptions, bool UseCSS
		, Rvclasses::TRVList* Bullets);
	DYNAMIC System::AnsiString __fastcall AsText(int LineWidth, Classes::TPersistent* RVData, const System::AnsiString 
		Text, const System::AnsiString Path, bool TextOnly, bool Unicode);
	DYNAMIC void __fastcall UpdatePaletteInfo(Rvscroll::TRVPaletteAction PaletteAction, bool ForceRecreateCopy
		, HPALETTE Palette, Windows::PLogPalette LogPalette);
	DYNAMIC bool __fastcall ReadRVFHeader(char * &P, Classes::TPersistent* RVData);
	virtual bool __fastcall GetBoolValue(TRVItemBoolProperty Prop);
	virtual bool __fastcall GetBoolValueEx(TRVItemBoolPropertyEx Prop, Rvstyle::TRVStyle* RVStyle);
	DYNAMIC bool __fastcall ReadRVFLine(const System::AnsiString s, Classes::TPersistent* RVData, int ReadType
		, int LineNo, System::AnsiString &Name, TRVFReadMode &ReadMode, TRVFReadState &ReadState);
	DYNAMIC void __fastcall SaveRVF(Classes::TStream* Stream, Classes::TPersistent* RVData, int ItemNo, 
		int ParaNo, const System::AnsiString Name, TRVMultiDrawItemPart* Part);
	DYNAMIC void __fastcall SaveRTF(Classes::TStream* Stream, Classes::TPersistent* RVData, int ItemNo, 
		const System::AnsiString Name, double TwipsPerPixel, int Level, Rvclasses::TRVColorList* ColorList
		, Rvclasses::TRVIntegerList* StyleToFont, Rvclasses::TRVIntegerList* FontToStyle);
	DYNAMIC void __fastcall FillRTFColorTable(Rvclasses::TRVColorList* ColorList);
	virtual void __fastcall PaintFullWidth(int Left, int Right, int Top, Graphics::TCanvas* Canvas, TRVItemDrawStates 
		State, Rvstyle::TRVStyle* Style, const Windows::TRect &ClipRect, Dlines::TRVDrawLineInfo* dli);
	virtual void __fastcall Paint(int x, int y, Graphics::TCanvas* Canvas, TRVItemDrawStates State, Rvstyle::TRVStyle* 
		Style, Dlines::TRVDrawLineInfo* dli);
	virtual bool __fastcall PrintToBitmap(Graphics::TBitmap* Bkgnd, bool Preview, Rvscroll::TRVScroller* 
		RichView);
	virtual void __fastcall Print(Graphics::TCanvas* Canvas, int x, int y, int x2, bool Preview, bool Correction
		, const Rvfuncs::TRVScreenAndDevice &sad, Rvscroll::TRVScroller* RichView, Dlines::TRVDrawLineInfo* 
		dli, int Part);
	virtual int __fastcall GetImageWidth(void);
	virtual int __fastcall GetImageHeight(void);
	virtual int __fastcall GetBorderWidth(void);
	virtual int __fastcall GetBorderHeight(void);
	DYNAMIC void __fastcall MovingToUndoList(int ItemNo, System::TObject* RVData, System::TObject* AContainerUndoItem
		);
	DYNAMIC void __fastcall MovingFromUndoList(int ItemNo, System::TObject* RVData);
	DYNAMIC bool __fastcall MouseMove(Classes::TShiftState Shift, int X, int Y, int ItemNo, System::TObject* 
		RVData);
	DYNAMIC bool __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, 
		int Y, int ItemNo, System::TObject* RVData);
	DYNAMIC bool __fastcall MouseUp(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int 
		Y, int ItemNo, System::TObject* RVData);
	DYNAMIC void __fastcall AfterRVFLoading(void);
	DYNAMIC void __fastcall DeselectPartial(void);
	DYNAMIC bool __fastcall PartiallySelected(void);
	DYNAMIC bool __fastcall CanDeletePartiallySelected(void);
	DYNAMIC void __fastcall DeletePartiallySelected(void);
	DYNAMIC void __fastcall ApplyParaStyleToPartiallySelected(int ParaNo);
	DYNAMIC void __fastcall ApplyStyleConversionToPartiallySelected(int UserData);
	virtual Dlines::TRVDrawLineInfo* __fastcall CreatePrintingDrawItem(System::TObject* RVData, const Rvfuncs::TRVScreenAndDevice 
		&sad);
	DYNAMIC void __fastcall StartExport(void);
	DYNAMIC void __fastcall EndExport(void);
	DYNAMIC void __fastcall Inserted(System::TObject* RVData, bool Safe);
	DYNAMIC void __fastcall BeforeUndoChangeProperty(void);
	DYNAMIC void __fastcall AfterUndoChangeProperty(void);
	DYNAMIC bool __fastcall EnterItem(bool FromLeft);
	DYNAMIC Controls::TCursor __fastcall GetHypertextCursor(Rvstyle::TRVStyle* RVStyle);
	DYNAMIC void __fastcall BuildJumps(int Left, int Top, int &StartJumpNo, Classes::TList* jumps);
	DYNAMIC void __fastcall Focusing(void);
	DYNAMIC bool __fastcall MoveFocus(bool GoForward, Classes::TPersistent* &TopLevelRVData, int &TopLevelItemNo
		);
	DYNAMIC void __fastcall ClearFocus(void);
	DYNAMIC void __fastcall Execute(Classes::TPersistent* RVData);
	DYNAMIC bool __fastcall AdjustFocusToControl(Controls::TControl* Control, Classes::TPersistent* &TopLevelRVData
		, int &TopLevelItemNo);
	virtual void __fastcall OnDocWidthChange(int DocWidth, Dlines::TRVDrawLineInfo* dli, bool Printing)
		;
	DYNAMIC void __fastcall MarkStylesInUse(Rvclasses::TRVIntegerList* UsedTextStyles, Rvclasses::TRVIntegerList* 
		UsedParaStyles);
	DYNAMIC void __fastcall UpdateStyles(Rvclasses::TRVIntegerList* TextStylesShift, Rvclasses::TRVIntegerList* 
		ParaStylesShift);
	DYNAMIC Classes::TPersistent* __fastcall GetSubRVData(TRVStoreSubRVData* &StoreState, TRVSubRVDataPos 
		Position);
	DYNAMIC void __fastcall ChooseSubRVData(TRVStoreSubRVData* StoreState);
	DYNAMIC void __fastcall CleanUpChosen(void);
	DYNAMIC void __fastcall ResetSubCoords(void);
	__property bool BR = {read=GetBR, write=SetBR, nodefault};
	__property bool PageBreakBefore = {read=GetPageBreakBefore, write=SetPageBreakBefore, nodefault};
public:
		
	/* TPersistent.Destroy */ __fastcall virtual ~TCustomRVItemInfo(void) { }
	
};

class PASCALIMPLEMENTATION TRVCPInfo : public System::TObject 
{
	typedef System::TObject inherited;
	
public:
	System::AnsiString Name;
	TRVCPInfo* Next;
	TRVCPInfo* Prev;
	bool RaiseEvent;
	TCustomRVItemInfo* ItemInfo;
	int ItemNo;
	int Tag;
	void __fastcall Assign(TRVCPInfo* Source, bool TagsArePChars);
	TRVCPInfo* __fastcall CreateCopy(bool TagsArePChars);
public:
	/* TObject.Create */ __fastcall TRVCPInfo(void) : System::TObject() { }
	/* TObject.Destroy */ __fastcall virtual ~TRVCPInfo(void) { }
	
};

class PASCALIMPLEMENTATION TRVStoreSubRVData : public System::TObject 
{
	typedef System::TObject inherited;
	
public:
	DYNAMIC TRVStoreSubRVData* __fastcall Duplicate(void);
public:
	/* TObject.Create */ __fastcall TRVStoreSubRVData(void) : System::TObject() { }
	/* TObject.Destroy */ __fastcall virtual ~TRVStoreSubRVData(void) { }
	
};

typedef System::TMetaClass*TCustomRVItemInfoClass;

class DELPHICLASS TRVTextItemInfo;
class PASCALIMPLEMENTATION TRVTextItemInfo : public Rvitem::TCustomRVItemInfo 
{
	typedef Rvitem::TCustomRVItemInfo inherited;
	
public:
	virtual bool __fastcall GetBoolValueEx(TRVItemBoolPropertyEx Prop, Rvstyle::TRVStyle* RVStyle);
	DYNAMIC void __fastcall Execute(Classes::TPersistent* RVData);
	DYNAMIC void __fastcall MarkStylesInUse(Rvclasses::TRVIntegerList* UsedTextStyles, Rvclasses::TRVIntegerList* 
		UsedParaStyles);
	DYNAMIC void __fastcall UpdateStyles(Rvclasses::TRVIntegerList* TextStylesShift, Rvclasses::TRVIntegerList* 
		ParaStylesShift);
public:
	/* TCustomRVItemInfo.Create */ __fastcall virtual TRVTextItemInfo(Classes::TPersistent* RVData) : Rvitem::
		TCustomRVItemInfo(RVData) { }
	
public:
	/* TPersistent.Destroy */ __fastcall virtual ~TRVTextItemInfo(void) { }
	
};

typedef System::TMetaClass*TRVTextItemInfoClass;

class DELPHICLASS TRVNonTextItemInfo;
class PASCALIMPLEMENTATION TRVNonTextItemInfo : public Rvitem::TCustomRVItemInfo 
{
	typedef Rvitem::TCustomRVItemInfo inherited;
	
protected:
	virtual int __fastcall GetHeight(void);
	virtual int __fastcall GetWidth(void);
	
public:
	virtual void __fastcall AdjustInserted(int x, int y, bool adjusty);
	__property int Height = {read=GetHeight, nodefault};
	__property int Width = {read=GetWidth, nodefault};
public:
	/* TCustomRVItemInfo.Create */ __fastcall virtual TRVNonTextItemInfo(Classes::TPersistent* RVData) : 
		Rvitem::TCustomRVItemInfo(RVData) { }
	
public:
	/* TPersistent.Destroy */ __fastcall virtual ~TRVNonTextItemInfo(void) { }
	
};

class DELPHICLASS TRVFullLineItemInfo;
class PASCALIMPLEMENTATION TRVFullLineItemInfo : public Rvitem::TRVNonTextItemInfo 
{
	typedef Rvitem::TRVNonTextItemInfo inherited;
	
public:
	virtual bool __fastcall GetBoolValue(TRVItemBoolProperty Prop);
	virtual int __fastcall GetBorderWidth(void);
	virtual int __fastcall GetBorderHeight(void);
public:
	/* TCustomRVItemInfo.Create */ __fastcall virtual TRVFullLineItemInfo(Classes::TPersistent* RVData)
		 : Rvitem::TRVNonTextItemInfo(RVData) { }
	
public:
	/* TPersistent.Destroy */ __fastcall virtual ~TRVFullLineItemInfo(void) { }
	
};

class DELPHICLASS TRVRectItemInfo;
class PASCALIMPLEMENTATION TRVRectItemInfo : public Rvitem::TRVNonTextItemInfo 
{
	typedef Rvitem::TRVNonTextItemInfo inherited;
	
protected:
	virtual int __fastcall GetDescent(void);
	DYNAMIC System::AnsiString __fastcall SaveRVFHeaderTail(Classes::TPersistent* RVData);
	
public:
	TRVVAlign VAlign;
	DYNAMIC void __fastcall Assign(TCustomRVItemInfo* Source);
	DYNAMIC bool __fastcall ReadRVFHeader(char * &P, Classes::TPersistent* RVData);
	__property int Descent = {read=GetDescent, nodefault};
public:
	/* TCustomRVItemInfo.Create */ __fastcall virtual TRVRectItemInfo(Classes::TPersistent* RVData) : Rvitem::
		TRVNonTextItemInfo(RVData) { }
	
public:
	/* TPersistent.Destroy */ __fastcall virtual ~TRVRectItemInfo(void) { }
	
};

class DELPHICLASS TRVControlItemInfo;
class PASCALIMPLEMENTATION TRVControlItemInfo : public Rvitem::TRVRectItemInfo 
{
	typedef Rvitem::TRVRectItemInfo inherited;
	
protected:
	virtual int __fastcall GetHeight(void);
	virtual int __fastcall GetWidth(void);
	
public:
	Controls::TControl* Control;
	int PercentWidth;
	__fastcall TRVControlItemInfo(Classes::TPersistent* RVData, Controls::TControl* AControl, Rvstyle::TRVVAlign 
		AVAlign);
	__fastcall virtual ~TRVControlItemInfo(void);
	virtual int __fastcall GetMinWidth(void);
	virtual void __fastcall AdjustInserted(int x, int y, bool adjusty);
	virtual bool __fastcall PrintToBitmap(Graphics::TBitmap* Bkgnd, bool Preview, Rvscroll::TRVScroller* 
		RichView);
	virtual void __fastcall Paint(int x, int y, Graphics::TCanvas* Canvas, TRVItemDrawStates State, Rvstyle::TRVStyle* 
		Style, Dlines::TRVDrawLineInfo* dli);
	DYNAMIC bool __fastcall OwnsControl(Controls::TControl* AControl);
	DYNAMIC System::AnsiString __fastcall AsText(int LineWidth, Classes::TPersistent* RVData, const System::AnsiString 
		Text, const System::AnsiString Path, bool TextOnly, bool Unicode);
	DYNAMIC void __fastcall SaveToHTML(Classes::TStream* Stream, Classes::TPersistent* RVData, int ItemNo
		, const System::AnsiString Text, const System::AnsiString Path, const System::AnsiString imgSavePrefix
		, int &imgSaveNo, Graphics::TColor CurrentFileColor, Rvstyle::TRVSaveOptions SaveOptions, bool UseCSS
		, Rvclasses::TRVList* Bullets);
	DYNAMIC bool __fastcall ReadRVFLine(const System::AnsiString s, Classes::TPersistent* RVData, int ReadType
		, int LineNo, System::AnsiString &Name, TRVFReadMode &ReadMode, TRVFReadState &ReadState);
	DYNAMIC void __fastcall SaveRVF(Classes::TStream* Stream, Classes::TPersistent* RVData, int ItemNo, 
		int ParaNo, const System::AnsiString Name, TRVMultiDrawItemPart* Part);
	DYNAMIC void __fastcall SaveRTF(Classes::TStream* Stream, Classes::TPersistent* RVData, int ItemNo, 
		const System::AnsiString Name, double TwipsPerPixel, int Level, Rvclasses::TRVColorList* ColorList
		, Rvclasses::TRVIntegerList* StyleToFont, Rvclasses::TRVIntegerList* FontToStyle);
	virtual bool __fastcall GetBoolValue(TRVItemBoolProperty Prop);
	virtual bool __fastcall GetBoolValueEx(TRVItemBoolPropertyEx Prop, Rvstyle::TRVStyle* RVStyle);
	virtual int __fastcall GetImageHeight(void);
	virtual int __fastcall GetImageWidth(void);
	DYNAMIC void __fastcall MovingToUndoList(int ItemNo, System::TObject* RVData, System::TObject* AContainerUndoItem
		);
	DYNAMIC void __fastcall MovingFromUndoList(int ItemNo, System::TObject* RVData);
	DYNAMIC void __fastcall Inserted(System::TObject* RVData, bool Safe);
	DYNAMIC void __fastcall Focusing(void);
	virtual void __fastcall OnDocWidthChange(int DocWidth, Dlines::TRVDrawLineInfo* dli, bool Printing)
		;
public:
	/* TCustomRVItemInfo.Create */ __fastcall virtual TRVControlItemInfo(Classes::TPersistent* RVData) : 
		Rvitem::TRVRectItemInfo(RVData) { }
	
};

class DELPHICLASS TRVGraphicItemInfo;
class PASCALIMPLEMENTATION TRVGraphicItemInfo : public Rvitem::TRVRectItemInfo 
{
	typedef Rvitem::TRVRectItemInfo inherited;
	
protected:
	virtual int __fastcall GetHeight(void);
	virtual int __fastcall GetWidth(void);
	
public:
	Graphics::TGraphic* Image;
	Graphics::TGraphic* ImageCopy;
	__fastcall virtual TRVGraphicItemInfo(Classes::TPersistent* RVData, Graphics::TGraphic* AImage, Rvstyle::TRVVAlign 
		AVAlign);
	DYNAMIC void __fastcall Assign(TCustomRVItemInfo* Source);
	DYNAMIC void __fastcall UpdatePaletteInfo(Rvscroll::TRVPaletteAction PaletteAction, bool ForceRecreateCopy
		, HPALETTE Palette, Windows::PLogPalette LogPalette);
	virtual int __fastcall GetMinWidth(void);
	__fastcall virtual ~TRVGraphicItemInfo(void);
	virtual Graphics::TGraphic* __fastcall AsImage(void);
	virtual void __fastcall Paint(int x, int y, Graphics::TCanvas* Canvas, TRVItemDrawStates State, Rvstyle::TRVStyle* 
		Style, Dlines::TRVDrawLineInfo* dli);
	virtual bool __fastcall GetBoolValue(TRVItemBoolProperty Prop);
	DYNAMIC void __fastcall SaveToHTML(Classes::TStream* Stream, Classes::TPersistent* RVData, int ItemNo
		, const System::AnsiString Text, const System::AnsiString Path, const System::AnsiString imgSavePrefix
		, int &imgSaveNo, Graphics::TColor CurrentFileColor, Rvstyle::TRVSaveOptions SaveOptions, bool UseCSS
		, Rvclasses::TRVList* Bullets);
	DYNAMIC bool __fastcall ReadRVFLine(const System::AnsiString s, Classes::TPersistent* RVData, int ReadType
		, int LineNo, System::AnsiString &Name, TRVFReadMode &ReadMode, TRVFReadState &ReadState);
	DYNAMIC void __fastcall SaveRVF(Classes::TStream* Stream, Classes::TPersistent* RVData, int ItemNo, 
		int ParaNo, const System::AnsiString Name, TRVMultiDrawItemPart* Part);
	DYNAMIC void __fastcall SaveRTF(Classes::TStream* Stream, Classes::TPersistent* RVData, int ItemNo, 
		const System::AnsiString Name, double TwipsPerPixel, int Level, Rvclasses::TRVColorList* ColorList
		, Rvclasses::TRVIntegerList* StyleToFont, Rvclasses::TRVIntegerList* FontToStyle);
	virtual bool __fastcall PrintToBitmap(Graphics::TBitmap* Bkgnd, bool Preview, Rvscroll::TRVScroller* 
		RichView);
	virtual void __fastcall Print(Graphics::TCanvas* Canvas, int x, int y, int x2, bool Preview, bool Correction
		, const Rvfuncs::TRVScreenAndDevice &sad, Rvscroll::TRVScroller* RichView, Dlines::TRVDrawLineInfo* 
		dli, int Part);
	virtual int __fastcall GetImageHeight(void);
	virtual int __fastcall GetImageWidth(void);
	DYNAMIC void __fastcall MovingToUndoList(int ItemNo, System::TObject* RVData, System::TObject* AContainerUndoItem
		);
public:
	/* TCustomRVItemInfo.Create */ __fastcall virtual TRVGraphicItemInfo(Classes::TPersistent* RVData) : 
		Rvitem::TRVRectItemInfo(RVData) { }
	
};

typedef System::TMetaClass*TRVGraphicItemInfoClass;

class DELPHICLASS TRVHotGraphicItemInfo;
class PASCALIMPLEMENTATION TRVHotGraphicItemInfo : public Rvitem::TRVGraphicItemInfo 
{
	typedef Rvitem::TRVGraphicItemInfo inherited;
	
public:
	virtual bool __fastcall GetBoolValueEx(TRVItemBoolPropertyEx Prop, Rvstyle::TRVStyle* RVStyle);
	__fastcall virtual TRVHotGraphicItemInfo(Classes::TPersistent* RVData, Graphics::TGraphic* AImage, 
		Rvstyle::TRVVAlign AVAlign);
	DYNAMIC void __fastcall Execute(Classes::TPersistent* RVData);
public:
	/* TRVGraphicItemInfo.Destroy */ __fastcall virtual ~TRVHotGraphicItemInfo(void) { }
	
public:
	/* TCustomRVItemInfo.Create */ __fastcall virtual TRVHotGraphicItemInfo(Classes::TPersistent* RVData
		) : Rvitem::TRVGraphicItemInfo(RVData) { }
	
};

class DELPHICLASS TRVBulletItemInfo;
class PASCALIMPLEMENTATION TRVBulletItemInfo : public Rvitem::TRVRectItemInfo 
{
	typedef Rvitem::TRVRectItemInfo inherited;
	
protected:
	virtual int __fastcall GetHeight(void);
	virtual int __fastcall GetWidth(void);
	virtual int __fastcall GetImageIndex(bool Hot);
	DYNAMIC System::AnsiString __fastcall SaveRVFHeaderTail(Classes::TPersistent* RVData);
	
public:
	Controls::TImageList* ImageList;
	int ImageIndex;
	__fastcall TRVBulletItemInfo(Classes::TPersistent* RVData, int AImageIndex, Controls::TImageList* AImageList
		, Rvstyle::TRVVAlign AVAlign);
	DYNAMIC void __fastcall SaveToHTML(Classes::TStream* Stream, Classes::TPersistent* RVData, int ItemNo
		, const System::AnsiString Text, const System::AnsiString Path, const System::AnsiString imgSavePrefix
		, int &imgSaveNo, Graphics::TColor CurrentFileColor, Rvstyle::TRVSaveOptions SaveOptions, bool UseCSS
		, Rvclasses::TRVList* Bullets);
	DYNAMIC void __fastcall Assign(TCustomRVItemInfo* Source);
	virtual int __fastcall GetMinWidth(void);
	virtual void __fastcall Paint(int x, int y, Graphics::TCanvas* Canvas, TRVItemDrawStates State, Rvstyle::TRVStyle* 
		Style, Dlines::TRVDrawLineInfo* dli);
	virtual bool __fastcall PrintToBitmap(Graphics::TBitmap* Bkgnd, bool Preview, Rvscroll::TRVScroller* 
		RichView);
	DYNAMIC bool __fastcall ReadRVFHeader(char * &P, Classes::TPersistent* RVData);
	DYNAMIC bool __fastcall ReadRVFLine(const System::AnsiString s, Classes::TPersistent* RVData, int ReadType
		, int LineNo, System::AnsiString &Name, TRVFReadMode &ReadMode, TRVFReadState &ReadState);
	DYNAMIC void __fastcall SaveRVF(Classes::TStream* Stream, Classes::TPersistent* RVData, int ItemNo, 
		int ParaNo, const System::AnsiString Name, TRVMultiDrawItemPart* Part);
	DYNAMIC void __fastcall SaveRTF(Classes::TStream* Stream, Classes::TPersistent* RVData, int ItemNo, 
		const System::AnsiString Name, double TwipsPerPixel, int Level, Rvclasses::TRVColorList* ColorList
		, Rvclasses::TRVIntegerList* StyleToFont, Rvclasses::TRVIntegerList* FontToStyle);
	virtual bool __fastcall GetBoolValue(TRVItemBoolProperty Prop);
	virtual int __fastcall GetImageHeight(void);
	virtual int __fastcall GetImageWidth(void);
public:
	/* TCustomRVItemInfo.Create */ __fastcall virtual TRVBulletItemInfo(Classes::TPersistent* RVData) : 
		Rvitem::TRVRectItemInfo(RVData) { }
	
public:
	/* TPersistent.Destroy */ __fastcall virtual ~TRVBulletItemInfo(void) { }
	
};

class DELPHICLASS TRVHotspotItemInfo;
class PASCALIMPLEMENTATION TRVHotspotItemInfo : public Rvitem::TRVBulletItemInfo 
{
	typedef Rvitem::TRVBulletItemInfo inherited;
	
protected:
	virtual int __fastcall GetImageIndex(bool Hot);
	DYNAMIC System::AnsiString __fastcall SaveRVFHeaderTail(Classes::TPersistent* RVData);
	
public:
	int HotImageIndex;
	__fastcall TRVHotspotItemInfo(Classes::TPersistent* RVData, int AImageIndex, int AHotImageIndex, Controls::TImageList* 
		AImageList, Rvstyle::TRVVAlign AVAlign);
	DYNAMIC void __fastcall Assign(TCustomRVItemInfo* Source);
	DYNAMIC bool __fastcall ReadRVFHeader(char * &P, Classes::TPersistent* RVData);
	DYNAMIC void __fastcall SaveRVF(Classes::TStream* Stream, Classes::TPersistent* RVData, int ItemNo, 
		int ParaNo, const System::AnsiString Name, TRVMultiDrawItemPart* Part);
	virtual bool __fastcall GetBoolValueEx(TRVItemBoolPropertyEx Prop, Rvstyle::TRVStyle* RVStyle);
	DYNAMIC void __fastcall Execute(Classes::TPersistent* RVData);
public:
	/* TCustomRVItemInfo.Create */ __fastcall virtual TRVHotspotItemInfo(Classes::TPersistent* RVData) : 
		Rvitem::TRVBulletItemInfo(RVData) { }
	
public:
	/* TPersistent.Destroy */ __fastcall virtual ~TRVHotspotItemInfo(void) { }
	
};

class DELPHICLASS TRVBreakItemInfo;
class PASCALIMPLEMENTATION TRVBreakItemInfo : public Rvitem::TRVFullLineItemInfo 
{
	typedef Rvitem::TRVFullLineItemInfo inherited;
	
protected:
	DYNAMIC System::AnsiString __fastcall SaveRVFHeaderTail(Classes::TPersistent* RVData);
	
public:
	Byte LineWidth;
	TRVBreakStyle Style;
	Graphics::TColor Color;
	__fastcall TRVBreakItemInfo(Classes::TPersistent* RVData, Byte ALineWidth, Rvstyle::TRVBreakStyle AStyle
		, Graphics::TColor AColor);
	DYNAMIC void __fastcall Assign(TCustomRVItemInfo* Source);
	virtual void __fastcall PaintFullWidth(int Left, int Right, int Top, Graphics::TCanvas* Canvas, TRVItemDrawStates 
		State, Rvstyle::TRVStyle* Style, const Windows::TRect &ClipRect, Dlines::TRVDrawLineInfo* dli);
	virtual void __fastcall Print(Graphics::TCanvas* Canvas, int x, int y, int x2, bool Preview, bool Correction
		, const Rvfuncs::TRVScreenAndDevice &sad, Rvscroll::TRVScroller* RichView, Dlines::TRVDrawLineInfo* 
		dli, int Part);
	DYNAMIC System::AnsiString __fastcall AsText(int LineWidth, Classes::TPersistent* RVData, const System::AnsiString 
		Text, const System::AnsiString Path, bool TextOnly, bool Unicode);
	DYNAMIC void __fastcall SaveToHTML(Classes::TStream* Stream, Classes::TPersistent* RVData, int ItemNo
		, const System::AnsiString Text, const System::AnsiString Path, const System::AnsiString imgSavePrefix
		, int &imgSaveNo, Graphics::TColor CurrentFileColor, Rvstyle::TRVSaveOptions SaveOptions, bool UseCSS
		, Rvclasses::TRVList* Bullets);
	DYNAMIC bool __fastcall ReadRVFHeader(char * &P, Classes::TPersistent* RVData);
	DYNAMIC void __fastcall SaveRVF(Classes::TStream* Stream, Classes::TPersistent* RVData, int ItemNo, 
		int ParaNo, const System::AnsiString Name, TRVMultiDrawItemPart* Part);
	DYNAMIC void __fastcall SaveRTF(Classes::TStream* Stream, Classes::TPersistent* RVData, int ItemNo, 
		const System::AnsiString Name, double TwipsPerPixel, int Level, Rvclasses::TRVColorList* ColorList
		, Rvclasses::TRVIntegerList* StyleToFont, Rvclasses::TRVIntegerList* FontToStyle);
	DYNAMIC void __fastcall FillRTFColorTable(Rvclasses::TRVColorList* ColorList);
	virtual bool __fastcall GetBoolValue(TRVItemBoolProperty Prop);
public:
	/* TCustomRVItemInfo.Create */ __fastcall virtual TRVBreakItemInfo(Classes::TPersistent* RVData) : 
		Rvitem::TRVFullLineItemInfo(RVData) { }
	
public:
	/* TPersistent.Destroy */ __fastcall virtual ~TRVBreakItemInfo(void) { }
	
};

//-- var, const, procedure ---------------------------------------------------
extern PACKAGE System::TMetaClass*RichViewTextItemClass;
#define RVItemOptionsMask (Byte)(15)
extern PACKAGE void __fastcall RegisterRichViewItemClass(int StyleNo, System::TMetaClass* ItemClass)
	;
extern PACKAGE TCustomRVItemInfo* __fastcall CreateRichViewItem(int StyleNo, Classes::TPersistent* RVData
	);
extern PACKAGE TCustomRVItemInfo* __fastcall RV_DuplicateItem(TCustomRVItemInfo* Source, Classes::TPersistent* 
	RVData, bool TagsArePChars);

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