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

// (DO NOT EDIT: machine generated header) 'Rvnote.pas' rev: 20.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 <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:
	System::UnicodeString FNoteTextForPrinting;
	DYNAMIC System::UnicodeString __fastcall GetNoteText();
	System::UnicodeString __fastcall GetNoteTextForPrinting();
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 __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);
	DYNAMIC void __fastcall FillRTFTables(Rvclasses::TRVColorList* ColorList, Rvclasses::TRVIntegerList* ListOverrideCountList, Classes::TPersistent* RVData);
	DYNAMIC Rvtypes::TRVAnsiString __fastcall GetHTMLAnchorName();
	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 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();
	
public:
	__fastcall TRVEndnoteItemInfo(Classes::TPersistent* RVData, int ATextStyleNo, int AStartFrom, bool AReset);
	__fastcall virtual TRVEndnoteItemInfo(Classes::TPersistent* RVData);
	DYNAMIC Rvtypes::TRVAnsiString __fastcall GetHTMLAnchorName();
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:
	__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, const Rvstyle::TRVScreenAndDevice &sad);
	DYNAMIC Rvtypes::TRVAnsiString __fastcall GetHTMLAnchorName();
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);
	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);
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);
extern PACKAGE TRVEndnoteItemInfo* __fastcall RVGetFirstEndnote(Richview::TCustomRichView* RichView);
extern PACKAGE TRVEndnoteItemInfo* __fastcall RVGetFirstEndnoteInRootRVData(Crvdata::TCustomRVData* RVData);
extern PACKAGE TRVEndnoteItemInfo* __fastcall RVGetNextEndnote(Richview::TCustomRichView* RichView, TRVEndnoteItemInfo* Endnote);
extern PACKAGE TRVFootnoteItemInfo* __fastcall RVGetFirstFootnote(Richview::TCustomRichView* RichView);
extern PACKAGE TRVFootnoteItemInfo* __fastcall RVGetNextFootnote(Richview::TCustomRichView* RichView, TRVFootnoteItemInfo* Footnote);
extern PACKAGE TRVFootnoteItemInfo* __fastcall RVGetFirstFootnoteInRootRVData(Crvdata::TCustomRVData* RVData);

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

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