// Borland C++ Builder
// Copyright (c) 1995, 2005 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Rvnote.pas' rev: 10.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 <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:
	AnsiString FNoteTextForPrinting;
	DYNAMIC AnsiString __fastcall GetNoteText();
	AnsiString __fastcall GetNoteTextForPrinting();
public:
	#pragma option push -w-inl
	/* TRVSubData.Create */ inline __fastcall TRVNoteData(Rvitem::TCustomRVItemInfo* AOwner, Crvdata::TCustomRVData* AMainRVData) : Rvsubdata::TRVSubData(AOwner, AMainRVData) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TCustomRVData.Destroy */ inline __fastcall virtual ~TRVNoteData(void) { }
	#pragma option pop
	
};


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 AnsiString __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 AnsiString Name, Rvitem::TRVMultiDrawItemPart* Part, bool ForceSameAsPrev);
	DYNAMIC bool __fastcall ReadRVFLine(const AnsiString s, Classes::TPersistent* RVData, int ReadType, int LineNo, int LineCount, AnsiString &Name, Rvitem::TRVFReadMode &ReadMode, Rvitem::TRVFReadState &ReadState, bool UTF8Strings, bool &AssStyleNameUsed);
	DYNAMIC void __fastcall SaveRTF(Classes::TStream* Stream, const AnsiString 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 AnsiString __fastcall GetHTMLAnchorName();
	DYNAMIC void __fastcall SaveToHTML(Classes::TStream* Stream, Classes::TPersistent* RVData, int ItemNo, const AnsiString Text, const AnsiString Path, const AnsiString 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:
	#pragma option push -w-inl
	/* TRVSeqItemInfo.CreateEx */ inline __fastcall TCustomRVNoteItemInfo(Classes::TPersistent* RVData, const AnsiString ASeqName, Rvstyle::TRVSeqType ANumberType, int ATextStyleNo, int AStartFrom, bool AReset) : Rvseqitem::TRVSeqItemInfo(RVData, ASeqName, ANumberType, ATextStyleNo, AStartFrom, AReset) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TRVSeqItemInfo.Create */ inline __fastcall virtual TCustomRVNoteItemInfo(Classes::TPersistent* RVData) : Rvseqitem::TRVSeqItemInfo(RVData) { }
	#pragma option pop
	
};


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 AnsiString __fastcall GetRTFDestinationModifier();
	
public:
	__fastcall TRVEndnoteItemInfo(Classes::TPersistent* RVData, int ATextStyleNo, int AStartFrom, bool AReset);
	__fastcall virtual TRVEndnoteItemInfo(Classes::TPersistent* RVData);
	DYNAMIC AnsiString __fastcall GetHTMLAnchorName();
public:
	#pragma option push -w-inl
	/* TCustomRVNoteItemInfo.Destroy */ inline __fastcall virtual ~TRVEndnoteItemInfo(void) { }
	#pragma option pop
	
};


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 AnsiString __fastcall GetTextForPrintMeasuring(Classes::TPersistent* RVData);
	virtual AnsiString __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 AnsiString __fastcall GetHTMLAnchorName();
public:
	#pragma option push -w-inl
	/* TCustomRVNoteItemInfo.Destroy */ inline __fastcall virtual ~TRVFootnoteItemInfo(void) { }
	#pragma option pop
	
};


class DELPHICLASS TRVNoteReferenceItemInfo;
class PASCALIMPLEMENTATION TRVNoteReferenceItemInfo : public Rvlabelitem::TRVLabelItemInfo 
{
	typedef Rvlabelitem::TRVLabelItemInfo inherited;
	
protected:
	virtual AnsiString __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 AnsiString Name, Rvitem::TRVMultiDrawItemPart* Part, bool ForceSameAsPrev);
	DYNAMIC bool __fastcall ReadRVFLine(const AnsiString s, Classes::TPersistent* RVData, int ReadType, int LineNo, int LineCount, AnsiString &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 AnsiString 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 AnsiString Text, const AnsiString Path, const AnsiString imgSavePrefix, int &imgSaveNo, Graphics::TColor CurrentFileColor, Rvstyle::TRVSaveOptions SaveOptions, bool UseCSS, Rvclasses::TRVList* Bullets);
public:
	#pragma option push -w-inl
	/* TCustomRVItemInfo.Destroy */ inline __fastcall virtual ~TRVNoteReferenceItemInfo(void) { }
	#pragma option pop
	
};


typedef TMetaClass* TCustomRVNoteItemInfoClass;

typedef TMetaClass* TRVEndnoteItemInfoClass;

//-- var, const, procedure ---------------------------------------------------
#define RV_FOOTNOTE_SEQNAME "@footnote@"
#define RV_ENDNOTE_SEQNAME "@endnote@"
#define RV_FOOTNOTE_HTML_ANCHOR "footnote%d"
#define RV_ENDNOTE_HTML_ANCHOR "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, TMetaClass* 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	// Rvnote
