// CodeGear C++Builder
// Copyright (c) 1995, 2008 by CodeGear
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Rvitem.pas' rev: 20.00

#ifndef RvitemHPP
#define RvitemHPP

#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 <Ansistrings.hpp>	// Pascal unit
#include <Sysutils.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Commctrl.hpp>	// Pascal unit
#include <Jpeg.hpp>	// Pascal unit
#include <Imglist.hpp>	// Pascal unit
#include <Rvwordpaint.hpp>	// Pascal unit
#include <Rvclasses.hpp>	// Pascal unit
#include <Rvfuncs.hpp>	// Pascal unit
#include <Rvscroll.hpp>	// Pascal unit
#include <Rvstyle.hpp>	// Pascal unit
#include <Dlines.hpp>	// Pascal unit
#include <Rvtypes.hpp>	// Pascal unit

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

namespace Rvitem
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS ERichViewError;
class PASCALIMPLEMENTATION ERichViewError : public Sysutils::Exception
{
	typedef Sysutils::Exception inherited;
	
public:
	/* Exception.Create */ inline __fastcall ERichViewError(const System::UnicodeString Msg) : Sysutils::Exception(Msg) { }
	/* Exception.CreateFmt */ inline __fastcall ERichViewError(const System::UnicodeString Msg, System::TVarRec const *Args, const int Args_Size) : Sysutils::Exception(Msg, Args, Args_Size) { }
	/* Exception.CreateRes */ inline __fastcall ERichViewError(int Ident)/* overload */ : Sysutils::Exception(Ident) { }
	/* Exception.CreateResFmt */ inline __fastcall ERichViewError(int Ident, System::TVarRec const *Args, const int Args_Size)/* overload */ : Sysutils::Exception(Ident, Args, Args_Size) { }
	/* Exception.CreateHelp */ inline __fastcall ERichViewError(const System::UnicodeString Msg, int AHelpContext) : Sysutils::Exception(Msg, AHelpContext) { }
	/* Exception.CreateFmtHelp */ inline __fastcall ERichViewError(const System::UnicodeString Msg, System::TVarRec const *Args, const int Args_Size, int AHelpContext) : Sysutils::Exception(Msg, Args, Args_Size, AHelpContext) { }
	/* Exception.CreateResHelp */ inline __fastcall ERichViewError(int Ident, int AHelpContext)/* overload */ : Sysutils::Exception(Ident, AHelpContext) { }
	/* Exception.CreateResFmtHelp */ inline __fastcall ERichViewError(System::PResStringRec ResStringRec, System::TVarRec const *Args, const int Args_Size, int AHelpContext)/* overload */ : Sysutils::Exception(ResStringRec, Args, Args_Size, AHelpContext) { }
	/* Exception.Destroy */ inline __fastcall virtual ~ERichViewError(void) { }
	
};


#pragma option push -b-
enum TRVItemOption { rvioSameAsPrev, rvioPageBreakBefore, rvioBR, rvioUnicode, rvioGroupWithNext };
#pragma option pop

typedef Set<TRVItemOption, rvioSameAsPrev, rvioGroupWithNext>  TRVItemOptions;

#pragma option push -b-
enum TRVItemState { rvisSpellChecked };
#pragma option pop

typedef Set<TRVItemState, rvisSpellChecked, rvisSpellChecked>  TRVItemStates;

#pragma option push -b-
enum TRVItemDrawState { rvidsSelected, rvidsCurrent, rvidsHover, rvidsPrinting, rvidsPreview, rvidsPreviewCorrection, rvidsControlFocused, rvidsCanUseCustomPPI, rvidsRTL, rvidsShowSpecialCharacters, rvidsDrawInplaceOnMainCanvas, rvidsPrintSimulation };
#pragma option pop

typedef Set<TRVItemDrawState, rvidsSelected, rvidsPrintSimulation>  TRVItemDrawStates;

#pragma option push -b-
enum TRVFReadMode { rmText, rmBeforeBinary, rmBinary, rmBeforeUnicode, rmUnicode, rmAfterUnicode };
#pragma option pop

#pragma option push -b-
enum TRVFReadState { rstHeader, rstData, rstSkip };
#pragma option pop

#pragma option push -b-
enum TRVItemBoolProperty { rvbpFullWidth, rvbpValid, rvbpRequiresRVFLines, rvbpDrawingChangesFont, rvbpCanSaveUnicode, rvbpAlwaysInText, rvbpImmediateControlOwner, rvbpResizable, rvbpResizeHandlesOutside, rvbpHasSubRVData, rvbpClickSelect, rvbpNoHTML_P, rvbpSwitchToAssStyleNo };
#pragma option pop

#pragma option push -b-
enum TRVItemBoolPropertyEx { rvbpDisplayActiveState, rvbpPrintToBMP, rvbpJump, rvbpAllowsFocus, rvbpHotColdJump, rvbpXORFocus, rvbpActualPrintSize };
#pragma option pop

#pragma option push -b-
enum TRVEnterDirection { rvedLeft, rvedRight, rvedTop, rvedBottom };
#pragma option pop

#pragma option push -b-
enum TRVExtraItemProperty { rvepUnknown, rvepVShift, rvepVShiftAbs, rvepImageWidth, rvepImageHeight, rvepTransparent, rvepTransparentMode, rvepTransparentColor, rvepMinHeightOnPage, rvepSpacing, rvepResizable, rvepDeleteProtect, rvepNoHTMLImageSize, rvepAnimationInterval, rvepVisible };
#pragma option pop

#pragma option push -b-
enum TRVExtraItemStrProperty { rvespUnknown, rvespHint, rvespAlt, rvespImageFileName };
#pragma option pop

#pragma option push -b-
enum TRVEStyleConversionType { rvscParaStyle, rvscTextStyle, rvscParaStyleConversion, rvscTextStyleConversion, rvscParaStyleTemplate, rvscTextStyleTemplate };
#pragma option pop

class DELPHICLASS TRVMultiDrawItemPart;
class DELPHICLASS TCustomRVItemInfo;
class PASCALIMPLEMENTATION TRVMultiDrawItemPart : public System::TObject
{
	typedef System::TObject inherited;
	
public:
	int Height;
	DYNAMIC int __fastcall GetSoftPageBreakInfo(void);
	DYNAMIC bool __fastcall IsComplexSoftPageBreak(Dlines::TRVDrawLineInfo* DrawItem);
	DYNAMIC void __fastcall AssignSoftPageBreaksToItem(Dlines::TRVDrawLineInfo* DrawItem, TCustomRVItemInfo* Item);
	virtual int __fastcall GetImageHeight(void);
public:
	/* TObject.Create */ inline __fastcall TRVMultiDrawItemPart(void) : System::TObject() { }
	/* TObject.Destroy */ inline __fastcall virtual ~TRVMultiDrawItemPart(void) { }
	
};


class DELPHICLASS TRVDeleteUnusedStylesData;
class PASCALIMPLEMENTATION TRVDeleteUnusedStylesData : public System::TObject
{
	typedef System::TObject inherited;
	
private:
	bool FInitialized;
	bool FConvertedToShifts;
	Rvclasses::TRVIntegerList* FUsedTextStyles;
	Rvclasses::TRVIntegerList* FUsedParaStyles;
	Rvclasses::TRVIntegerList* FUsedListStyles;
	bool FTextStyles;
	bool FParaStyles;
	bool FListStyles;
	
public:
	__fastcall TRVDeleteUnusedStylesData(bool ATextStyles, bool AParaStyles, bool AListStyles);
	__fastcall virtual ~TRVDeleteUnusedStylesData(void);
	void __fastcall Init(Rvstyle::TRVStyle* RVStyle);
	void __fastcall ConvertFlagsToShifts(Rvstyle::TRVStyle* RVStyle);
	__property Rvclasses::TRVIntegerList* UsedTextStyles = {read=FUsedTextStyles};
	__property Rvclasses::TRVIntegerList* UsedParaStyles = {read=FUsedParaStyles};
	__property Rvclasses::TRVIntegerList* UsedListStyles = {read=FUsedListStyles};
	__property bool TextStyles = {read=FTextStyles, nodefault};
	__property bool ParaStyles = {read=FParaStyles, nodefault};
	__property bool ListStyles = {read=FListStyles, nodefault};
	__property bool ConvertedToShifts = {read=FConvertedToShifts, nodefault};
};


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


#pragma option push -b-
enum TRVSubRVDataPos { rvdFirst, rvdLast, rvdChosenUp, rvdChosenDown, rvdNext, rvdPrev };
#pragma option pop

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


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 Rvtypes::TRVRawByteString __fastcall SaveRVFHeaderTail(Classes::TPersistent* RVData);
	DYNAMIC int __fastcall GetRVFExtraPropertyCount(void);
	DYNAMIC void __fastcall SaveRVFExtraProperties(Classes::TStream* Stream);
	void __fastcall SetExtraPropertyFromRVFStr(const Rvtypes::TRVRawByteString Str, bool UTF8Strings);
	virtual int __fastcall GetAssociatedTextStyleNo(void);
	virtual void __fastcall SetAssociatedTextStyleNo(int Value);
	
public:
	Rvtypes::TRVRawByteString ItemText;
	int StyleNo;
	int ParaNo;
	TRVItemOptions ItemOptions;
	TRVItemStates ItemState;
	Rvwordpaint::TRVWordPainterList* WordPaintList;
	TRVCPInfo* Checkpoint;
	int JumpID;
	int Tag;
	int DrawItemNo;
	System::UnicodeString Hint;
	__fastcall virtual TCustomRVItemInfo(Classes::TPersistent* RVData);
	__fastcall virtual ~TCustomRVItemInfo(void);
	void __fastcall ClearLiveSpellingResult(void);
	void __fastcall ClearWordPainters(int Index);
	bool __fastcall AdjustWordPaintersOnInsert(int Index, const System::UnicodeString Text, System::WideChar ch, Classes::TPersistent* RVData);
	bool __fastcall AdjustWordPaintersOnDelete(int Index, int Count);
	bool __fastcall GetMisspelling(int Offs, int &MisOffs, int &MisLength);
	void __fastcall AddMisspelling(int StartOffs, int Length);
	bool __fastcall IsMisspelled(int Index);
	bool __fastcall ValidateMisspelledWord(const System::UnicodeString AItemText, const System::UnicodeString AWord);
	HIDESBASEDYNAMIC void __fastcall Assign(TCustomRVItemInfo* Source);
	DYNAMIC void __fastcall TransferProperties(TCustomRVItemInfo* Source, Classes::TPersistent* RVData);
	DYNAMIC Classes::TPersistent* __fastcall GetSubRVDataAt(int X, int Y);
	virtual int __fastcall GetMinWidth(Rvstyle::PRVScreenAndDevice sad, Graphics::TCanvas* Canvas, Classes::TPersistent* RVData);
	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 Rvtypes::TRVRawByteString Text, const System::UnicodeString Path, const System::UnicodeString imgSavePrefix, int &imgSaveNo, Graphics::TColor CurrentFileColor, Rvstyle::TRVSaveOptions SaveOptions, bool UseCSS, Rvclasses::TRVList* Bullets);
	DYNAMIC Rvtypes::TRVRawByteString __fastcall AsText(int LineWidth, Classes::TPersistent* RVData, const Rvtypes::TRVRawByteString Text, const System::UnicodeString Path, bool TextOnly, bool Unicode);
	DYNAMIC void __fastcall UpdatePaletteInfo(Rvscroll::TRVPaletteAction PaletteAction, bool ForceRecreateCopy, HPALETTE Palette, Windows::PLogPalette LogPalette);
	DYNAMIC bool __fastcall ReadRVFHeaderTail(char * &P, Classes::TPersistent* RVData, bool UTF8Strings, bool &AssStyleNameUsed);
	virtual bool __fastcall GetBoolValue(TRVItemBoolProperty Prop);
	virtual bool __fastcall GetBoolValueEx(TRVItemBoolPropertyEx Prop, Rvstyle::TRVStyle* RVStyle);
	DYNAMIC bool __fastcall ReadRVFLine(const Rvtypes::TRVRawByteString s, Classes::TPersistent* RVData, int ReadType, int LineNo, int LineCount, Rvtypes::TRVRawByteString &Name, TRVFReadMode &ReadMode, TRVFReadState &ReadState, bool UTF8Strings, bool &AssStyleNameUsed);
	DYNAMIC void __fastcall SaveRVF(Classes::TStream* Stream, Classes::TPersistent* RVData, int ItemNo, int ParaNo, const Rvtypes::TRVRawByteString Name, TRVMultiDrawItemPart* Part, bool ForceSameAsPrev);
	DYNAMIC void __fastcall SaveRVFSelection(Classes::TStream* Stream, Classes::TPersistent* RVData, int ItemNo, int ParaNo);
	DYNAMIC void __fastcall SaveTextSelection(Classes::TStream* Stream, Classes::TPersistent* RVData, int LineWidth, const System::UnicodeString Path, bool TextOnly, bool Unicode);
	DYNAMIC void __fastcall SaveRTF(Classes::TStream* Stream, const System::UnicodeString Path, Classes::TPersistent* RVData, int ItemNo, double TwipsPerPixel, int Level, Rvclasses::TRVColorList* ColorList, Rvclasses::TRVIntegerList* StyleToFont, Rvclasses::TRVIntegerList* ListOverrideOffsetsList1, Rvclasses::TRVIntegerList* ListOverrideOffsetsList2, Rvclasses::TRVList* FontTable);
	DYNAMIC void __fastcall FillRTFTables(Rvclasses::TRVColorList* ColorList, Rvclasses::TRVIntegerList* ListOverrideCountList, Classes::TPersistent* RVData);
	virtual void __fastcall PaintFullWidth(int Left, int Right, int Top, Graphics::TCanvas* Canvas, TRVItemDrawStates State, Rvstyle::TRVStyle* Style, const Types::TRect &ClipRect, Dlines::TRVDrawLineInfo* dli, int ExtraX, int ExtraY);
	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, Dlines::TRVDrawLineInfo* dli, int Part, Rvstyle::TRVColorMode ColorMode);
	virtual void __fastcall Print(Graphics::TCanvas* Canvas, int x, int y, int x2, bool Preview, bool Correction, const Rvstyle::TRVScreenAndDevice &sad, Rvscroll::TRVScroller* RichView, Dlines::TRVDrawLineInfo* dli, int Part, Rvstyle::TRVColorMode ColorMode, Classes::TPersistent* RVData);
	virtual int __fastcall GetImageWidth(Rvstyle::TRVStyle* RVStyle);
	virtual int __fastcall GetImageHeight(Rvstyle::TRVStyle* RVStyle);
	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 void __fastcall FinalizeUndoGroup(void);
	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 BeforeLoading(Rvstyle::TRVLoadFormat FileFormat);
	DYNAMIC void __fastcall AfterLoading(Rvstyle::TRVLoadFormat FileFormat);
	DYNAMIC void __fastcall DeselectPartial(void);
	DYNAMIC bool __fastcall PartiallySelected(void);
	DYNAMIC bool __fastcall CanDeletePartiallySelected(void);
	DYNAMIC void __fastcall DeletePartiallySelected(void);
	DYNAMIC void __fastcall ApplyStyleConversionToSubRVDatas(int UserData, bool SelectedOnly, TRVEStyleConversionType ConvType);
	DYNAMIC void __fastcall ApplyStyleConversion(Classes::TPersistent* RVData, int ItemNo, int UserData);
	virtual Dlines::TRVDrawLineInfo* __fastcall CreatePrintingDrawItem(System::TObject* RVData, const Rvstyle::TRVScreenAndDevice &sad);
	DYNAMIC void __fastcall StartExport(void);
	DYNAMIC void __fastcall EndExport(void);
	virtual void __fastcall Inserting(System::TObject* RVData, Rvtypes::TRVRawByteString &Text, bool Safe);
	virtual void __fastcall Inserted(System::TObject* RVData, int ItemNo);
	DYNAMIC void __fastcall BeforeUndoChangeProperty(void);
	DYNAMIC void __fastcall AfterUndoChangeProperty(void);
	DYNAMIC bool __fastcall EnterItem(TRVEnterDirection From, int Coord);
	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, Graphics::TCanvas* Canvas, Classes::TPersistent* RVData, Rvstyle::PRVScreenAndDevice sad, int &HShift, int &Desc, bool NoCaching, bool Reformatting);
	DYNAMIC void __fastcall MarkStylesInUse(TRVDeleteUnusedStylesData* Data);
	DYNAMIC void __fastcall UpdateStyles(TRVDeleteUnusedStylesData* Data);
	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);
	DYNAMIC bool __fastcall SetExtraIntProperty(TRVExtraItemProperty Prop, int Value);
	DYNAMIC bool __fastcall GetExtraIntProperty(TRVExtraItemProperty Prop, int &Value);
	DYNAMIC bool __fastcall SetExtraStrProperty(TRVExtraItemStrProperty Prop, const System::UnicodeString Value);
	DYNAMIC bool __fastcall GetExtraStrProperty(TRVExtraItemStrProperty Prop, System::UnicodeString &Value);
	DYNAMIC bool __fastcall SetExtraCustomProperty(const Rvtypes::TRVAnsiString PropName, const System::UnicodeString Value);
	DYNAMIC int __fastcall GetSoftPageBreakDY(int Data);
	int __fastcall GetActualStyleNo(Rvstyle::TRVStyle* RVStyle);
	virtual void __fastcall DrawBackgroundForPrinting(Graphics::TCanvas* Canvas, const Types::TRect &Rect, const Types::TRect &FullRect, Rvstyle::TRVColorMode ColorMode, int ItemBackgroundLayer);
	DYNAMIC void __fastcall ClearSoftPageBreaks(void);
	DYNAMIC void __fastcall UpdateAnimator(System::TObject* RVData);
	DYNAMIC void __fastcall KeyDown(System::Word Key, bool Shift);
	__property bool BR = {read=GetBR, write=SetBR, nodefault};
	__property bool PageBreakBefore = {read=GetPageBreakBefore, write=SetPageBreakBefore, nodefault};
	__property int AssociatedTextStyleNo = {read=GetAssociatedTextStyleNo, write=SetAssociatedTextStyleNo, nodefault};
};


typedef TMetaClass* TCustomRVItemInfoClass;

class DELPHICLASS TRVItemList;
class PASCALIMPLEMENTATION TRVItemList : public Classes::TList
{
	typedef Classes::TList inherited;
	
public:
	Rvtypes::TRVRawByteString operator[](int Index) { return Items[Index]; }
	
private:
	Rvtypes::TRVRawByteString __fastcall GetItem(int Index);
	TCustomRVItemInfo* __fastcall GetObject(int Index);
	void __fastcall SetItem(int Index, const Rvtypes::TRVRawByteString Value);
	void __fastcall SetObject(int Index, const TCustomRVItemInfo* Value);
	
public:
	void __fastcall AddObject(const Rvtypes::TRVRawByteString ItemText, TCustomRVItemInfo* Item);
	void __fastcall InsertObject(int Index, const Rvtypes::TRVRawByteString ItemText, TCustomRVItemInfo* Item);
	int __fastcall IndexOfObject(TCustomRVItemInfo* Item);
	__property Rvtypes::TRVRawByteString Items[int Index] = {read=GetItem, write=SetItem/*, default*/};
	__property TCustomRVItemInfo* Objects[int Index] = {read=GetObject, write=SetObject};
public:
	/* TList.Destroy */ inline __fastcall virtual ~TRVItemList(void) { }
	
public:
	/* TObject.Create */ inline __fastcall TRVItemList(void) : Classes::TList() { }
	
};


class DELPHICLASS TRVTextItemInfo;
class PASCALIMPLEMENTATION TRVTextItemInfo : public TCustomRVItemInfo
{
	typedef TCustomRVItemInfo inherited;
	
public:
	virtual bool __fastcall GetBoolValueEx(TRVItemBoolPropertyEx Prop, Rvstyle::TRVStyle* RVStyle);
	DYNAMIC void __fastcall Execute(Classes::TPersistent* RVData);
	DYNAMIC void __fastcall MarkStylesInUse(TRVDeleteUnusedStylesData* Data);
	DYNAMIC void __fastcall UpdateStyles(TRVDeleteUnusedStylesData* Data);
	DYNAMIC bool __fastcall ReadRVFHeaderTail(char * &P, Classes::TPersistent* RVData, bool UTF8Strings, bool &AssStyleNameUsed);
public:
	/* TCustomRVItemInfo.Create */ inline __fastcall virtual TRVTextItemInfo(Classes::TPersistent* RVData) : TCustomRVItemInfo(RVData) { }
	/* TCustomRVItemInfo.Destroy */ inline __fastcall virtual ~TRVTextItemInfo(void) { }
	
};


typedef TMetaClass* TRVTextItemInfoClass;

class DELPHICLASS TRVNonTextItemInfo;
class PASCALIMPLEMENTATION TRVNonTextItemInfo : public TCustomRVItemInfo
{
	typedef TCustomRVItemInfo inherited;
	
protected:
	virtual int __fastcall GetHeight(void);
	virtual int __fastcall GetWidth(void);
	DYNAMIC int __fastcall GetRVFExtraPropertyCount(void);
	DYNAMIC void __fastcall SaveRVFExtraProperties(Classes::TStream* Stream);
	
public:
	bool DeleteProtect;
	virtual int __fastcall GetLeftOverhang(void);
	virtual void __fastcall AdjustInserted(int x, int y, bool adjusty);
	DYNAMIC void __fastcall Assign(TCustomRVItemInfo* Source);
	DYNAMIC bool __fastcall SetExtraIntProperty(TRVExtraItemProperty Prop, int Value);
	DYNAMIC bool __fastcall GetExtraIntProperty(TRVExtraItemProperty Prop, int &Value);
	__property int Height = {read=GetHeight, nodefault};
	__property int Width = {read=GetWidth, nodefault};
public:
	/* TCustomRVItemInfo.Create */ inline __fastcall virtual TRVNonTextItemInfo(Classes::TPersistent* RVData) : TCustomRVItemInfo(RVData) { }
	/* TCustomRVItemInfo.Destroy */ inline __fastcall virtual ~TRVNonTextItemInfo(void) { }
	
};


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


class DELPHICLASS TRVRectItemInfo;
class PASCALIMPLEMENTATION TRVRectItemInfo : public TRVNonTextItemInfo
{
	typedef TRVNonTextItemInfo inherited;
	
protected:
	int FMinHeightOnPage;
	DYNAMIC Rvtypes::TRVRawByteString __fastcall SaveRVFHeaderTail(Classes::TPersistent* RVData);
	DYNAMIC int __fastcall GetRVFExtraPropertyCount(void);
	DYNAMIC void __fastcall SaveRVFExtraProperties(Classes::TStream* Stream);
	Rvtypes::TRVAnsiString __fastcall GetVShiftCSS(Rvstyle::TRVStyle* RVStyle);
	
public:
	Rvstyle::TRVVAlign VAlign;
	int VShift;
	bool VShiftAbs;
	int Spacing;
	__fastcall virtual TRVRectItemInfo(Classes::TPersistent* RVData);
	DYNAMIC void __fastcall Assign(TCustomRVItemInfo* Source);
	DYNAMIC bool __fastcall SetExtraIntProperty(TRVExtraItemProperty Prop, int Value);
	DYNAMIC bool __fastcall GetExtraIntProperty(TRVExtraItemProperty Prop, int &Value);
	DYNAMIC bool __fastcall ReadRVFHeaderTail(char * &P, Classes::TPersistent* RVData, bool UTF8Strings, bool &AssStyleNameUsed);
	virtual int __fastcall GetBorderWidth(void);
	virtual int __fastcall GetBorderHeight(void);
public:
	/* TCustomRVItemInfo.Destroy */ inline __fastcall virtual ~TRVRectItemInfo(void) { }
	
};


class DELPHICLASS TRVTabItemInfo;
class PASCALIMPLEMENTATION TRVTabItemInfo : public TRVRectItemInfo
{
	typedef TRVRectItemInfo inherited;
	
private:
	void __fastcall DrawTab(Graphics::TCanvas* Canvas, int x, int y, Dlines::TRVDrawLineInfo* dli, Rvstyle::TRVStyle* Style, Rvstyle::TRVTextDrawStates TextDrawState, bool CanUseCustomPPI, bool RTL, bool SpecialChars, bool Printing, Rvstyle::TRVColorMode ColorMode);
	
protected:
	virtual int __fastcall GetAssociatedTextStyleNo(void);
	virtual void __fastcall SetAssociatedTextStyleNo(int Value);
	DYNAMIC Rvtypes::TRVRawByteString __fastcall SaveRVFHeaderTail(Classes::TPersistent* RVData);
	HIDESBASE int __fastcall GetActualStyleNo(Rvstyle::TRVStyle* RVStyle);
	
public:
	int TextStyleNo;
	System::UnicodeString Leader;
	DYNAMIC bool __fastcall ReadRVFHeaderTail(char * &P, Classes::TPersistent* RVData, bool UTF8Strings, bool &AssStyleNameUsed);
	virtual bool __fastcall GetBoolValueEx(TRVItemBoolPropertyEx Prop, Rvstyle::TRVStyle* RVStyle);
	virtual bool __fastcall GetBoolValue(TRVItemBoolProperty Prop);
	DYNAMIC void __fastcall MarkStylesInUse(TRVDeleteUnusedStylesData* Data);
	DYNAMIC void __fastcall UpdateStyles(TRVDeleteUnusedStylesData* Data);
	virtual void __fastcall Paint(int x, int y, Graphics::TCanvas* Canvas, TRVItemDrawStates State, Rvstyle::TRVStyle* Style, Dlines::TRVDrawLineInfo* dli);
	virtual void __fastcall Print(Graphics::TCanvas* Canvas, int x, int y, int x2, bool Preview, bool Correction, const Rvstyle::TRVScreenAndDevice &sad, Rvscroll::TRVScroller* RichView, Dlines::TRVDrawLineInfo* dli, int Part, Rvstyle::TRVColorMode ColorMode, Classes::TPersistent* RVData);
	DYNAMIC void __fastcall ApplyStyleConversion(Classes::TPersistent* RVData, int ItemNo, int UserData);
	virtual void __fastcall OnDocWidthChange(int DocWidth, Dlines::TRVDrawLineInfo* dli, bool Printing, Graphics::TCanvas* Canvas, Classes::TPersistent* RVData, Rvstyle::PRVScreenAndDevice sad, int &HShift, int &Desc, bool NoCaching, bool Reformatting);
	DYNAMIC void __fastcall SaveRVF(Classes::TStream* Stream, Classes::TPersistent* RVData, int ItemNo, int ParaNo, const Rvtypes::TRVRawByteString Name, TRVMultiDrawItemPart* Part, bool ForceSameAsPrev);
	DYNAMIC void __fastcall SaveRTF(Classes::TStream* Stream, const System::UnicodeString Path, Classes::TPersistent* RVData, int ItemNo, double TwipsPerPixel, int Level, Rvclasses::TRVColorList* ColorList, Rvclasses::TRVIntegerList* StyleToFont, Rvclasses::TRVIntegerList* ListOverrideOffsetsList1, Rvclasses::TRVIntegerList* ListOverrideOffsetsList2, Rvclasses::TRVList* FontTable);
	DYNAMIC void __fastcall SaveToHTML(Classes::TStream* Stream, Classes::TPersistent* RVData, int ItemNo, const Rvtypes::TRVRawByteString Text, const System::UnicodeString Path, const System::UnicodeString imgSavePrefix, int &imgSaveNo, Graphics::TColor CurrentFileColor, Rvstyle::TRVSaveOptions SaveOptions, bool UseCSS, Rvclasses::TRVList* Bullets);
	DYNAMIC Rvtypes::TRVRawByteString __fastcall AsText(int LineWidth, Classes::TPersistent* RVData, const Rvtypes::TRVRawByteString Text, const System::UnicodeString Path, bool TextOnly, bool Unicode);
public:
	/* TRVRectItemInfo.Create */ inline __fastcall virtual TRVTabItemInfo(Classes::TPersistent* RVData) : TRVRectItemInfo(RVData) { }
	
public:
	/* TCustomRVItemInfo.Destroy */ inline __fastcall virtual ~TRVTabItemInfo(void) { }
	
};


class DELPHICLASS TRVControlItemInfo;
class PASCALIMPLEMENTATION TRVControlItemInfo : public TRVRectItemInfo
{
	typedef TRVRectItemInfo inherited;
	
protected:
	bool FResizable;
	bool FVisible;
	virtual int __fastcall GetHeight(void);
	virtual int __fastcall GetWidth(void);
	DYNAMIC int __fastcall GetRVFExtraPropertyCount(void);
	DYNAMIC void __fastcall SaveRVFExtraProperties(Classes::TStream* Stream);
	
public:
	Controls::TControl* Control;
	int PercentWidth;
	__fastcall TRVControlItemInfo(Classes::TPersistent* RVData, Controls::TControl* AControl, Rvstyle::TRVVAlign AVAlign);
	__fastcall virtual TRVControlItemInfo(Classes::TPersistent* RVData);
	DYNAMIC void __fastcall Assign(TCustomRVItemInfo* Source);
	__fastcall virtual ~TRVControlItemInfo(void);
	virtual int __fastcall GetMinWidth(Rvstyle::PRVScreenAndDevice sad, Graphics::TCanvas* Canvas, Classes::TPersistent* RVData);
	virtual void __fastcall AdjustInserted(int x, int y, bool adjusty);
	virtual bool __fastcall PrintToBitmap(Graphics::TBitmap* Bkgnd, bool Preview, Rvscroll::TRVScroller* RichView, Dlines::TRVDrawLineInfo* dli, int Part, Rvstyle::TRVColorMode ColorMode);
	virtual Dlines::TRVDrawLineInfo* __fastcall CreatePrintingDrawItem(System::TObject* RVData, const Rvstyle::TRVScreenAndDevice &sad);
	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 Rvtypes::TRVRawByteString __fastcall AsText(int LineWidth, Classes::TPersistent* RVData, const Rvtypes::TRVRawByteString Text, const System::UnicodeString Path, bool TextOnly, bool Unicode);
	DYNAMIC void __fastcall SaveToHTML(Classes::TStream* Stream, Classes::TPersistent* RVData, int ItemNo, const Rvtypes::TRVRawByteString Text, const System::UnicodeString Path, const System::UnicodeString imgSavePrefix, int &imgSaveNo, Graphics::TColor CurrentFileColor, Rvstyle::TRVSaveOptions SaveOptions, bool UseCSS, Rvclasses::TRVList* Bullets);
	DYNAMIC bool __fastcall ReadRVFLine(const Rvtypes::TRVRawByteString s, Classes::TPersistent* RVData, int ReadType, int LineNo, int LineCount, Rvtypes::TRVRawByteString &Name, TRVFReadMode &ReadMode, TRVFReadState &ReadState, bool UTF8Strings, bool &AssStyleNameUsed);
	DYNAMIC void __fastcall SaveRVF(Classes::TStream* Stream, Classes::TPersistent* RVData, int ItemNo, int ParaNo, const Rvtypes::TRVRawByteString Name, TRVMultiDrawItemPart* Part, bool ForceSameAsPrev);
	DYNAMIC bool __fastcall SetExtraIntProperty(TRVExtraItemProperty Prop, int Value);
	DYNAMIC bool __fastcall GetExtraIntProperty(TRVExtraItemProperty Prop, int &Value);
	DYNAMIC void __fastcall SaveRTF(Classes::TStream* Stream, const System::UnicodeString Path, Classes::TPersistent* RVData, int ItemNo, double TwipsPerPixel, int Level, Rvclasses::TRVColorList* ColorList, Rvclasses::TRVIntegerList* StyleToFont, Rvclasses::TRVIntegerList* ListOverrideOffsetsList1, Rvclasses::TRVIntegerList* ListOverrideOffsetsList2, Rvclasses::TRVList* FontTable);
	virtual bool __fastcall GetBoolValue(TRVItemBoolProperty Prop);
	virtual bool __fastcall GetBoolValueEx(TRVItemBoolPropertyEx Prop, Rvstyle::TRVStyle* RVStyle);
	virtual int __fastcall GetImageHeight(Rvstyle::TRVStyle* RVStyle);
	virtual int __fastcall GetImageWidth(Rvstyle::TRVStyle* RVStyle);
	DYNAMIC void __fastcall MovingToUndoList(int ItemNo, System::TObject* RVData, System::TObject* AContainerUndoItem);
	DYNAMIC void __fastcall MovingFromUndoList(int ItemNo, System::TObject* RVData);
	virtual void __fastcall Inserting(System::TObject* RVData, Rvtypes::TRVRawByteString &Text, bool Safe);
	DYNAMIC void __fastcall Focusing(void);
	virtual void __fastcall OnDocWidthChange(int DocWidth, Dlines::TRVDrawLineInfo* dli, bool Printing, Graphics::TCanvas* Canvas, Classes::TPersistent* RVData, Rvstyle::PRVScreenAndDevice sad, int &HShift, int &Desc, bool NoCaching, bool Reformatting);
	__property int MinHeightOnPage = {read=FMinHeightOnPage, write=FMinHeightOnPage, nodefault};
};


class DELPHICLASS TRVGraphicItemInfo;
class PASCALIMPLEMENTATION TRVGraphicItemInfo : public TRVRectItemInfo
{
	typedef TRVRectItemInfo inherited;
	
protected:
	System::TObject* FAnimator;
	bool FResizable;
	virtual int __fastcall GetHeight(void);
	virtual int __fastcall GetWidth(void);
	DYNAMIC int __fastcall GetRVFExtraPropertyCount(void);
	DYNAMIC void __fastcall SaveRVFExtraProperties(Classes::TStream* Stream);
	
public:
	Graphics::TGraphic* Image;
	Graphics::TGraphic* ImageCopy;
	int ImageWidth;
	int ImageHeight;
	int Interval;
	bool NoHTMLImageSize;
	System::UnicodeString Alt;
	System::UnicodeString ImageFileName;
	__fastcall virtual TRVGraphicItemInfo(Classes::TPersistent* RVData, Graphics::TGraphic* AImage, Rvstyle::TRVVAlign AVAlign);
	__fastcall virtual TRVGraphicItemInfo(Classes::TPersistent* RVData);
	DYNAMIC void __fastcall Assign(TCustomRVItemInfo* Source);
	DYNAMIC void __fastcall TransferProperties(TCustomRVItemInfo* Source, Classes::TPersistent* RVData);
	DYNAMIC bool __fastcall SetExtraIntProperty(TRVExtraItemProperty Prop, int Value);
	DYNAMIC bool __fastcall GetExtraIntProperty(TRVExtraItemProperty Prop, int &Value);
	DYNAMIC bool __fastcall SetExtraStrProperty(TRVExtraItemStrProperty Prop, const System::UnicodeString Value);
	DYNAMIC bool __fastcall GetExtraStrProperty(TRVExtraItemStrProperty Prop, System::UnicodeString &Value);
	DYNAMIC void __fastcall UpdatePaletteInfo(Rvscroll::TRVPaletteAction PaletteAction, bool ForceRecreateCopy, HPALETTE Palette, Windows::PLogPalette LogPalette);
	virtual int __fastcall GetMinWidth(Rvstyle::PRVScreenAndDevice sad, Graphics::TCanvas* Canvas, Classes::TPersistent* RVData);
	__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);
	virtual bool __fastcall GetBoolValueEx(TRVItemBoolPropertyEx Prop, Rvstyle::TRVStyle* RVStyle);
	DYNAMIC void __fastcall SaveToHTML(Classes::TStream* Stream, Classes::TPersistent* RVData, int ItemNo, const Rvtypes::TRVRawByteString Text, const System::UnicodeString Path, const System::UnicodeString imgSavePrefix, int &imgSaveNo, Graphics::TColor CurrentFileColor, Rvstyle::TRVSaveOptions SaveOptions, bool UseCSS, Rvclasses::TRVList* Bullets);
	DYNAMIC bool __fastcall ReadRVFLine(const Rvtypes::TRVRawByteString s, Classes::TPersistent* RVData, int ReadType, int LineNo, int LineCount, Rvtypes::TRVRawByteString &Name, TRVFReadMode &ReadMode, TRVFReadState &ReadState, bool UTF8Strings, bool &AssStyleNameUsed);
	DYNAMIC void __fastcall SaveRVF(Classes::TStream* Stream, Classes::TPersistent* RVData, int ItemNo, int ParaNo, const Rvtypes::TRVRawByteString Name, TRVMultiDrawItemPart* Part, bool ForceSameAsPrev);
	DYNAMIC void __fastcall SaveRTF(Classes::TStream* Stream, const System::UnicodeString Path, Classes::TPersistent* RVData, int ItemNo, double TwipsPerPixel, int Level, Rvclasses::TRVColorList* ColorList, Rvclasses::TRVIntegerList* StyleToFont, Rvclasses::TRVIntegerList* ListOverrideOffsetsList1, Rvclasses::TRVIntegerList* ListOverrideOffsetsList2, Rvclasses::TRVList* FontTable);
	virtual bool __fastcall PrintToBitmap(Graphics::TBitmap* Bkgnd, bool Preview, Rvscroll::TRVScroller* RichView, Dlines::TRVDrawLineInfo* dli, int Part, Rvstyle::TRVColorMode ColorMode);
	virtual void __fastcall Print(Graphics::TCanvas* Canvas, int x, int y, int x2, bool Preview, bool Correction, const Rvstyle::TRVScreenAndDevice &sad, Rvscroll::TRVScroller* RichView, Dlines::TRVDrawLineInfo* dli, int Part, Rvstyle::TRVColorMode ColorMode, Classes::TPersistent* RVData);
	virtual int __fastcall GetImageHeight(Rvstyle::TRVStyle* RVStyle);
	virtual int __fastcall GetImageWidth(Rvstyle::TRVStyle* RVStyle);
	DYNAMIC void __fastcall MovingToUndoList(int ItemNo, System::TObject* RVData, System::TObject* AContainerUndoItem);
	virtual Dlines::TRVDrawLineInfo* __fastcall CreatePrintingDrawItem(System::TObject* RVData, const Rvstyle::TRVScreenAndDevice &sad);
	DYNAMIC void __fastcall UpdateAnimator(System::TObject* RVData);
	__property int MinHeightOnPage = {read=FMinHeightOnPage, write=FMinHeightOnPage, nodefault};
};


typedef TMetaClass* TRVGraphicItemInfoClass;

class DELPHICLASS TRVHotGraphicItemInfo;
class PASCALIMPLEMENTATION TRVHotGraphicItemInfo : public TRVGraphicItemInfo
{
	typedef 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.Create */ inline __fastcall virtual TRVHotGraphicItemInfo(Classes::TPersistent* RVData) : TRVGraphicItemInfo(RVData) { }
	/* TRVGraphicItemInfo.Destroy */ inline __fastcall virtual ~TRVHotGraphicItemInfo(void) { }
	
};


class DELPHICLASS TRVBulletItemInfo;
class PASCALIMPLEMENTATION TRVBulletItemInfo : public TRVRectItemInfo
{
	typedef TRVRectItemInfo inherited;
	
protected:
	virtual int __fastcall GetHeight(void);
	virtual int __fastcall GetWidth(void);
	virtual int __fastcall GetImageIndex(bool Hot);
	DYNAMIC Rvtypes::TRVRawByteString __fastcall SaveRVFHeaderTail(Classes::TPersistent* RVData);
	DYNAMIC int __fastcall GetRVFExtraPropertyCount(void);
	DYNAMIC void __fastcall SaveRVFExtraProperties(Classes::TStream* Stream);
	
public:
	Imglist::TCustomImageList* ImageList;
	int ImageIndex;
	bool NoHTMLImageSize;
	System::UnicodeString Alt;
	__fastcall TRVBulletItemInfo(Classes::TPersistent* RVData, int AImageIndex, Imglist::TCustomImageList* AImageList, Rvstyle::TRVVAlign AVAlign);
	DYNAMIC void __fastcall SaveToHTML(Classes::TStream* Stream, Classes::TPersistent* RVData, int ItemNo, const Rvtypes::TRVRawByteString Text, const System::UnicodeString Path, const System::UnicodeString imgSavePrefix, int &imgSaveNo, Graphics::TColor CurrentFileColor, Rvstyle::TRVSaveOptions SaveOptions, bool UseCSS, Rvclasses::TRVList* Bullets);
	DYNAMIC void __fastcall Assign(TCustomRVItemInfo* Source);
	virtual int __fastcall GetMinWidth(Rvstyle::PRVScreenAndDevice sad, Graphics::TCanvas* Canvas, Classes::TPersistent* RVData);
	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, Dlines::TRVDrawLineInfo* dli, int Part, Rvstyle::TRVColorMode ColorMode);
	DYNAMIC bool __fastcall ReadRVFHeaderTail(char * &P, Classes::TPersistent* RVData, bool UTF8Strings, bool &AssStyleNameUsed);
	DYNAMIC bool __fastcall ReadRVFLine(const Rvtypes::TRVRawByteString s, Classes::TPersistent* RVData, int ReadType, int LineNo, int LineCount, Rvtypes::TRVRawByteString &Name, TRVFReadMode &ReadMode, TRVFReadState &ReadState, bool UTF8Strings, bool &AssStyleNameUsed);
	DYNAMIC void __fastcall SaveRVF(Classes::TStream* Stream, Classes::TPersistent* RVData, int ItemNo, int ParaNo, const Rvtypes::TRVRawByteString Name, TRVMultiDrawItemPart* Part, bool ForceSameAsPrev);
	DYNAMIC void __fastcall SaveRTF(Classes::TStream* Stream, const System::UnicodeString Path, Classes::TPersistent* RVData, int ItemNo, double TwipsPerPixel, int Level, Rvclasses::TRVColorList* ColorList, Rvclasses::TRVIntegerList* StyleToFont, Rvclasses::TRVIntegerList* ListOverrideOffsetsList1, Rvclasses::TRVIntegerList* ListOverrideOffsetsList2, Rvclasses::TRVList* FontTable);
	virtual bool __fastcall GetBoolValue(TRVItemBoolProperty Prop);
	virtual bool __fastcall GetBoolValueEx(TRVItemBoolPropertyEx Prop, Rvstyle::TRVStyle* RVStyle);
	DYNAMIC bool __fastcall SetExtraIntProperty(TRVExtraItemProperty Prop, int Value);
	DYNAMIC bool __fastcall GetExtraIntProperty(TRVExtraItemProperty Prop, int &Value);
	DYNAMIC bool __fastcall SetExtraStrProperty(TRVExtraItemStrProperty Prop, const System::UnicodeString Value);
	DYNAMIC bool __fastcall GetExtraStrProperty(TRVExtraItemStrProperty Prop, System::UnicodeString &Value);
	virtual int __fastcall GetImageHeight(Rvstyle::TRVStyle* RVStyle);
	virtual int __fastcall GetImageWidth(Rvstyle::TRVStyle* RVStyle);
public:
	/* TRVRectItemInfo.Create */ inline __fastcall virtual TRVBulletItemInfo(Classes::TPersistent* RVData) : TRVRectItemInfo(RVData) { }
	
public:
	/* TCustomRVItemInfo.Destroy */ inline __fastcall virtual ~TRVBulletItemInfo(void) { }
	
};


class DELPHICLASS TRVHotspotItemInfo;
class PASCALIMPLEMENTATION TRVHotspotItemInfo : public TRVBulletItemInfo
{
	typedef TRVBulletItemInfo inherited;
	
protected:
	virtual int __fastcall GetImageIndex(bool Hot);
	DYNAMIC Rvtypes::TRVRawByteString __fastcall SaveRVFHeaderTail(Classes::TPersistent* RVData);
	
public:
	int HotImageIndex;
	__fastcall TRVHotspotItemInfo(Classes::TPersistent* RVData, int AImageIndex, int AHotImageIndex, Imglist::TCustomImageList* AImageList, Rvstyle::TRVVAlign AVAlign);
	DYNAMIC void __fastcall Assign(TCustomRVItemInfo* Source);
	DYNAMIC bool __fastcall ReadRVFHeaderTail(char * &P, Classes::TPersistent* RVData, bool UTF8Strings, bool &AssStyleNameUsed);
	DYNAMIC void __fastcall SaveRVF(Classes::TStream* Stream, Classes::TPersistent* RVData, int ItemNo, int ParaNo, const Rvtypes::TRVRawByteString Name, TRVMultiDrawItemPart* Part, bool ForceSameAsPrev);
	virtual bool __fastcall GetBoolValueEx(TRVItemBoolPropertyEx Prop, Rvstyle::TRVStyle* RVStyle);
	DYNAMIC void __fastcall Execute(Classes::TPersistent* RVData);
public:
	/* TRVRectItemInfo.Create */ inline __fastcall virtual TRVHotspotItemInfo(Classes::TPersistent* RVData) : TRVBulletItemInfo(RVData) { }
	
public:
	/* TCustomRVItemInfo.Destroy */ inline __fastcall virtual ~TRVHotspotItemInfo(void) { }
	
};


class DELPHICLASS TRVBreakItemInfo;
class PASCALIMPLEMENTATION TRVBreakItemInfo : public TRVFullLineItemInfo
{
	typedef TRVFullLineItemInfo inherited;
	
protected:
	DYNAMIC Rvtypes::TRVRawByteString __fastcall SaveRVFHeaderTail(Classes::TPersistent* RVData);
	
public:
	System::Byte LineWidth;
	Rvstyle::TRVBreakStyle Style;
	Graphics::TColor Color;
	__fastcall TRVBreakItemInfo(Classes::TPersistent* RVData, System::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 Types::TRect &ClipRect, Dlines::TRVDrawLineInfo* dli, int ExtraX, int ExtraY);
	virtual void __fastcall Print(Graphics::TCanvas* Canvas, int x, int y, int x2, bool Preview, bool Correction, const Rvstyle::TRVScreenAndDevice &sad, Rvscroll::TRVScroller* RichView, Dlines::TRVDrawLineInfo* dli, int Part, Rvstyle::TRVColorMode ColorMode, Classes::TPersistent* RVData);
	DYNAMIC Rvtypes::TRVRawByteString __fastcall AsText(int LineWidth, Classes::TPersistent* RVData, const Rvtypes::TRVRawByteString Text, const System::UnicodeString Path, bool TextOnly, bool Unicode);
	DYNAMIC void __fastcall SaveToHTML(Classes::TStream* Stream, Classes::TPersistent* RVData, int ItemNo, const Rvtypes::TRVRawByteString Text, const System::UnicodeString Path, const System::UnicodeString imgSavePrefix, int &imgSaveNo, Graphics::TColor CurrentFileColor, Rvstyle::TRVSaveOptions SaveOptions, bool UseCSS, Rvclasses::TRVList* Bullets);
	DYNAMIC bool __fastcall ReadRVFHeaderTail(char * &P, Classes::TPersistent* RVData, bool UTF8Strings, bool &AssStyleNameUsed);
	DYNAMIC void __fastcall SaveRVF(Classes::TStream* Stream, Classes::TPersistent* RVData, int ItemNo, int ParaNo, const Rvtypes::TRVRawByteString Name, TRVMultiDrawItemPart* Part, bool ForceSameAsPrev);
	DYNAMIC void __fastcall SaveRTF(Classes::TStream* Stream, const System::UnicodeString Path, Classes::TPersistent* RVData, int ItemNo, double TwipsPerPixel, int Level, Rvclasses::TRVColorList* ColorList, Rvclasses::TRVIntegerList* StyleToFont, Rvclasses::TRVIntegerList* ListOverrideOffsetsList1, Rvclasses::TRVIntegerList* ListOverrideOffsetsList2, Rvclasses::TRVList* FontTable);
	DYNAMIC void __fastcall FillRTFTables(Rvclasses::TRVColorList* ColorList, Rvclasses::TRVIntegerList* ListOverrideCountList, Classes::TPersistent* RVData);
	virtual bool __fastcall GetBoolValue(TRVItemBoolProperty Prop);
	virtual bool __fastcall GetBoolValueEx(TRVItemBoolPropertyEx Prop, Rvstyle::TRVStyle* RVStyle);
public:
	/* TCustomRVItemInfo.Create */ inline __fastcall virtual TRVBreakItemInfo(Classes::TPersistent* RVData) : TRVFullLineItemInfo(RVData) { }
	/* TCustomRVItemInfo.Destroy */ inline __fastcall virtual ~TRVBreakItemInfo(void) { }
	
};


//-- var, const, procedure ---------------------------------------------------
extern PACKAGE TRVTextItemInfoClass RichViewTextItemClass;
static const ShortInt RVItemOptionsMask = 0xf;
extern PACKAGE void __fastcall WriteRVFExtraIntPropertyStr(Classes::TStream* Stream, TRVExtraItemProperty Prop, int Value);
extern PACKAGE void __fastcall WriteRVFExtraStrPropertyStr(Classes::TStream* Stream, TRVExtraItemStrProperty Prop, const System::UnicodeString Value);
extern PACKAGE void __fastcall RegisterRichViewItemClass(int StyleNo, TCustomRVItemInfoClass ItemClass);
extern PACKAGE TCustomRVItemInfo* __fastcall CreateRichViewItem(int StyleNo, Classes::TPersistent* RVData);
extern PACKAGE TCustomRVItemInfo* __fastcall RV_DuplicateItem(TCustomRVItemInfo* Source, Classes::TPersistent* RVData, bool DuplicateCheckpoint);
extern PACKAGE TRVItemOptions __fastcall RVFGetItemOptions(TRVItemOptions ItemOptions, bool ForceSameAsPrev);
extern PACKAGE Rvtypes::TRVAnsiString __fastcall RV_GetExtraIMGStr(Rvstyle::TRVSaveOptions SaveOptions, int Width, int Height, bool NoHTMLImageSize);
extern PACKAGE void __fastcall RVSaveImageToRTF(Classes::TStream* Stream, double TwipsPerPixel, Graphics::TGraphic* Image, int ImageWidth, int ImageHeight, Rvstyle::TRVRTFOptions Options, System::TObject* Animator);
extern PACKAGE void __fastcall RVSaveImageListImageToRTF(Classes::TStream* Stream, double TwipsPerPixel, Imglist::TCustomImageList* ImageList, int ImageIndex, Rvstyle::TRVRTFOptions RTFOptions);
extern PACKAGE void __fastcall RVSaveImageSharedImageInHTML(Imglist::TCustomImageList* ImageList, int ImageIndex, Graphics::TGraphic* Graphic, System::UnicodeString &Location, Classes::TPersistent* RVData, const System::UnicodeString Path, const System::UnicodeString imgSavePrefix, int &imgSaveNo, Graphics::TColor CurrentFileColor, Rvstyle::TRVSaveOptions SaveOptions, Rvclasses::TRVList* Bullets);

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

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