// CodeGear C++Builder
// Copyright (c) 1995, 2010 by Embarcadero Technologies, Inc.
// All rights reserved

// (DO NOT EDIT: machine generated header) 'RVNote.pas' rev: 22.00

#ifndef RvnoteHPP
#define RvnoteHPP

#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 <Classes.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <RVStyle.hpp>	// Pascal unit
#include <CRVData.hpp>	// Pascal unit
#include <RVItem.hpp>	// Pascal unit
#include <DLines.hpp>	// Pascal unit
#include <RVClasses.hpp>	// Pascal unit
#include <RVUni.hpp>	// Pascal unit
#include <RVLabelItem.hpp>	// Pascal unit
#include <RVSeqItem.hpp>	// Pascal unit
#include <RVRVData.hpp>	// Pascal unit
#include <RVSubData.hpp>	// Pascal unit
#include <RichView.hpp>	// Pascal unit
#include <RVFMisc.hpp>	// Pascal unit
#include <RVScroll.hpp>	// Pascal unit
#include <RVStr.hpp>	// Pascal unit
#include <RVTypes.hpp>	// Pascal unit

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

namespace Rvnote
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TRVNoteData;
class PASCALIMPLEMENTATION TRVNoteData : public Rvsubdata::TRVSubData
{
	typedef Rvsubdata::TRVSubData inherited;
	
public:
	int SRVHeight;
	System::UnicodeString FNoteTextForPrinting;
	DYNAMIC System::UnicodeString __fastcall GetNoteText(void);
	System::UnicodeString __fastcall GetNoteTextForPrinting(void);
public:
	/* TRVSubData.Create */ inline __fastcall TRVNoteData(Rvitem::TCustomRVItemInfo* AOwner, Crvdata::TCustomRVData* AMainRVData) : Rvsubdata::TRVSubData(AOwner, AMainRVData) { }
	
public:
	/* TCustomRVData.Destroy */ inline __fastcall virtual ~TRVNoteData(void) { }
	
};


class DELPHICLASS TCustomRVNoteItemInfo;
class PASCALIMPLEMENTATION TCustomRVNoteItemInfo : public Rvseqitem::TRVSeqItemInfo
{
	typedef Rvseqitem::TRVSeqItemInfo inherited;
	
private:
	TRVNoteData* FDocument;
	
protected:
	virtual void __fastcall SetParentRVData(const Classes::TPersistent* Value);
	virtual void __fastcall SetNumberType(const Rvstyle::TRVSeqType Value);
	DYNAMIC Rvtypes::TRVAnsiString __fastcall GetRTFDestinationModifier(void);
	void __fastcall Do_ChangeDoc(Classes::TStream* Stream, int ItemNo);
	
public:
	__fastcall virtual ~TCustomRVNoteItemInfo(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 SaveRVF(Classes::TStream* Stream, Classes::TPersistent* RVData, int ItemNo, int ParaNo, const Rvtypes::TRVRawByteString Name, Rvitem::TRVMultiDrawItemPart* Part, bool ForceSameAsPrev);
	DYNAMIC bool __fastcall ReadRVFLine(const Rvtypes::TRVRawByteString s, Classes::TPersistent* RVData, int ReadType, int LineNo, int LineCount, Rvtypes::TRVRawByteString &Name, Rvitem::TRVFReadMode &ReadMode, Rvitem::TRVFReadState &ReadState, bool UTF8Strings, bool &AssStyleNameUsed);
	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, bool HiddenParent);
	DYNAMIC void __fastcall FillRTFTables(Rvclasses::TRVColorList* ColorList, Rvclasses::TRVIntegerList* ListOverrideCountList, Classes::TPersistent* RVData);
	DYNAMIC Rvtypes::TRVAnsiString __fastcall GetHTMLAnchorName(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);
	virtual bool __fastcall GetBoolValue(Rvitem::TRVItemBoolProperty Prop);
	DYNAMIC void __fastcall MarkStylesInUse(Rvitem::TRVDeleteUnusedStylesData* Data);
	DYNAMIC void __fastcall UpdateStyles(Rvitem::TRVDeleteUnusedStylesData* Data);
	DYNAMIC void __fastcall Assign(Rvitem::TCustomRVItemInfo* Source);
	void __fastcall ReplaceDocumentEd(Classes::TStream* Stream);
	__property TRVNoteData* Document = {read=FDocument};
public:
	/* TRVSeqItemInfo.CreateEx */ inline __fastcall TCustomRVNoteItemInfo(Classes::TPersistent* RVData, const System::UnicodeString ASeqName, Rvstyle::TRVSeqType ANumberType, int ATextStyleNo, int AStartFrom, bool AReset) : Rvseqitem::TRVSeqItemInfo(RVData, ASeqName, ANumberType, ATextStyleNo, AStartFrom, AReset) { }
	/* TRVSeqItemInfo.Create */ inline __fastcall virtual TCustomRVNoteItemInfo(Classes::TPersistent* RVData) : Rvseqitem::TRVSeqItemInfo(RVData) { }
	
};


class DELPHICLASS TRVEndnoteItemInfo;
class PASCALIMPLEMENTATION TRVEndnoteItemInfo : public TCustomRVNoteItemInfo
{
	typedef TCustomRVNoteItemInfo inherited;
	
private:
	void __fastcall Init(Classes::TPersistent* RVData);
	
protected:
	virtual Rvstyle::TRVSeqType __fastcall GetNumberType(void);
	DYNAMIC Rvtypes::TRVAnsiString __fastcall GetRTFDestinationModifier(void);
	
public:
	__fastcall TRVEndnoteItemInfo(Classes::TPersistent* RVData, int ATextStyleNo, int AStartFrom, bool AReset);
	__fastcall virtual TRVEndnoteItemInfo(Classes::TPersistent* RVData);
	DYNAMIC Rvtypes::TRVAnsiString __fastcall GetHTMLAnchorName(void);
	DYNAMIC Rvtypes::TRVRawByteString __fastcall AsText(int LineWidth, Classes::TPersistent* RVData, const Rvtypes::TRVRawByteString Text, const System::UnicodeString Path, bool TextOnly, bool Unicode);
public:
	/* TCustomRVNoteItemInfo.Destroy */ inline __fastcall virtual ~TRVEndnoteItemInfo(void) { }
	
};


class DELPHICLASS TRVFootnoteItemInfo;
class PASCALIMPLEMENTATION TRVFootnoteItemInfo : public TCustomRVNoteItemInfo
{
	typedef TCustomRVNoteItemInfo inherited;
	
private:
	void __fastcall Init(Classes::TPersistent* RVData);
	
protected:
	virtual Rvstyle::TRVSeqType __fastcall GetNumberType(void);
	DYNAMIC System::UnicodeString __fastcall GetTextForPrintMeasuring(Classes::TPersistent* RVData);
	virtual System::UnicodeString __fastcall GetTextForPrinting(Classes::TPersistent* RVData, Dlines::TRVDrawLineInfo* DrawItem);
	
public:
	int SRVCounter;
	int SRVOldCounter;
	__fastcall TRVFootnoteItemInfo(Classes::TPersistent* RVData, int ATextStyleNo, int AStartFrom, bool AReset);
	__fastcall virtual TRVFootnoteItemInfo(Classes::TPersistent* RVData);
	virtual Dlines::TRVDrawLineInfo* __fastcall CreatePrintingDrawItem(System::TObject* RVData, System::TObject* ParaStyle, const Rvstyle::TRVScreenAndDevice &sad);
	DYNAMIC Rvtypes::TRVAnsiString __fastcall GetHTMLAnchorName(void);
	DYNAMIC void __fastcall CalcDisplayString(Rvseqitem::TRVSeqList* List);
	DYNAMIC Rvtypes::TRVRawByteString __fastcall AsText(int LineWidth, Classes::TPersistent* RVData, const Rvtypes::TRVRawByteString Text, const System::UnicodeString Path, bool TextOnly, bool Unicode);
	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, bool UseFormatCanvas);
public:
	/* TCustomRVNoteItemInfo.Destroy */ inline __fastcall virtual ~TRVFootnoteItemInfo(void) { }
	
};


class DELPHICLASS TRVNoteReferenceItemInfo;
class PASCALIMPLEMENTATION TRVNoteReferenceItemInfo : public Rvlabelitem::TRVLabelItemInfo
{
	typedef Rvlabelitem::TRVLabelItemInfo inherited;
	
protected:
	virtual System::UnicodeString __fastcall GetTextForPrinting(Classes::TPersistent* RVData, Dlines::TRVDrawLineInfo* DrawItem);
	
public:
	__fastcall virtual TRVNoteReferenceItemInfo(Classes::TPersistent* RVData);
	__fastcall TRVNoteReferenceItemInfo(Classes::TPersistent* RVData, int TextStyleNo);
	DYNAMIC void __fastcall SaveRVF(Classes::TStream* Stream, Classes::TPersistent* RVData, int ItemNo, int ParaNo, const Rvtypes::TRVRawByteString Name, Rvitem::TRVMultiDrawItemPart* Part, bool ForceSameAsPrev);
	DYNAMIC bool __fastcall ReadRVFLine(const Rvtypes::TRVRawByteString s, Classes::TPersistent* RVData, int ReadType, int LineNo, int LineCount, Rvtypes::TRVRawByteString &Name, Rvitem::TRVFReadMode &ReadMode, Rvitem::TRVFReadState &ReadState, bool UTF8Strings, bool &AssStyleNameUsed);
	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, bool UseFormatCanvas);
	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, bool HiddenParent);
	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);
public:
	/* TCustomRVItemInfo.Destroy */ inline __fastcall virtual ~TRVNoteReferenceItemInfo(void) { }
	
};


typedef TMetaClass* TCustomRVNoteItemInfoClass;

typedef TMetaClass* TRVEndnoteItemInfoClass;

//-- var, const, procedure ---------------------------------------------------
#define RV_FOOTNOTE_SEQNAME L"@footnote@"
#define RV_ENDNOTE_SEQNAME L"@endnote@"
#define RV_FOOTNOTE_HTML_ANCHOR L"footnote%d"
#define RV_ENDNOTE_HTML_ANCHOR L"endnote%d"
static const short rvsFootnote = -203;
static const short rvsEndnote = -204;
static const short rvsNoteReference = -205;
extern PACKAGE int __fastcall RVGetNoteTextStyleNo(Rvstyle::TRVStyle* RVStyle, int StyleNo);
extern PACKAGE TCustomRVNoteItemInfo* __fastcall GetNextNote(Crvdata::TCustomRVData* RVData, TCustomRVNoteItemInfo* Note, TCustomRVNoteItemInfoClass NoteClass, bool AllowHidden);
extern PACKAGE TRVEndnoteItemInfo* __fastcall RVGetFirstEndnote(Richview::TCustomRichView* RichView, bool AllowHidden);
extern PACKAGE TRVEndnoteItemInfo* __fastcall RVGetFirstEndnoteInRootRVData(Crvdata::TCustomRVData* RVData, bool AllowHidden);
extern PACKAGE TRVEndnoteItemInfo* __fastcall RVGetNextEndnote(Richview::TCustomRichView* RichView, TRVEndnoteItemInfo* Endnote, bool AllowHidden);
extern PACKAGE TRVFootnoteItemInfo* __fastcall RVGetFirstFootnote(Richview::TCustomRichView* RichView, bool AllowHidden);
extern PACKAGE TRVFootnoteItemInfo* __fastcall RVGetNextFootnote(Richview::TCustomRichView* RichView, TRVFootnoteItemInfo* Footnote, bool AllowHidden);
extern PACKAGE TRVFootnoteItemInfo* __fastcall RVGetFirstFootnoteInRootRVData(Crvdata::TCustomRVData* RVData, bool AllowHidden);

}	/* namespace Rvnote */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE)
using namespace Rvnote;
#endif
#pragma pack(pop)
#pragma option pop

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