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

// (DO NOT EDIT: machine generated header) 'Rvmarker.pas' rev: 10.00

#ifndef RvmarkerHPP
#define RvmarkerHPP

#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 <Sysutils.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Rvfuncs.hpp>	// Pascal unit
#include <Rvitem.hpp>	// Pascal unit
#include <Rvstyle.hpp>	// Pascal unit
#include <Dlines.hpp>	// Pascal unit
#include <Rvfmisc.hpp>	// Pascal unit
#include <Rvscroll.hpp>	// Pascal unit
#include <Rvuni.hpp>	// Pascal unit
#include <Rvclasses.hpp>	// Pascal unit
#include <Rvstr.hpp>	// Pascal unit
#include <Rvtypes.hpp>	// Pascal unit

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

namespace Rvmarker
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TRVMarkerItemInfo;
class DELPHICLASS TRVMarkerList;
class PASCALIMPLEMENTATION TRVMarkerItemInfo : public Rvitem::TRVRectItemInfo 
{
	typedef Rvitem::TRVRectItemInfo inherited;
	
private:
	int FWidth;
	int FHeight;
	int FDescent;
	int FOverhang;
	int FCachedIndexInList;
	void __fastcall DoPaint(int x, int y, Graphics::TCanvas* Canvas, Rvitem::TRVItemDrawStates State, Rvstyle::TRVStyle* Style, Dlines::TRVDrawLineInfo* dli, Rvstyle::TRVColorMode ColorMode);
	
protected:
	DYNAMIC AnsiString __fastcall SaveRVFHeaderTail(Classes::TPersistent* RVData);
	void __fastcall CalcSize(Graphics::TCanvas* Canvas, Classes::TPersistent* RVData, int &Width, int &Height, int &Desc, int &Overhang, Rvstyle::PRVScreenAndDevice sad, bool ForMinWidth, int &HShift, int &SpaceBefore);
	void __fastcall CalcDisplayString(Rvstyle::TRVStyle* RVStyle, TRVMarkerList* List, int Index);
	virtual int __fastcall GetHeight(void);
	virtual int __fastcall GetWidth(void);
	Rvstyle::TRVListLevel* __fastcall GetLevelInfoEx(Rvstyle::TRVStyle* RVStyle, int LevelNo);
	DYNAMIC int __fastcall GetRVFExtraPropertyCount(void);
	DYNAMIC void __fastcall SaveRVFExtraProperties(Classes::TStream* Stream);
	
public:
	int ListNo;
	int Level;
	int Counter;
	bool Reset;
	int StartFrom;
	AnsiString DisplayString;
	bool NoHTMLImageSize;
	__fastcall TRVMarkerItemInfo(Classes::TPersistent* RVData, int AListNo, int ALevel, int AStartFrom, bool AReset);
	__fastcall virtual TRVMarkerItemInfo(Classes::TPersistent* RVData);
	DYNAMIC void __fastcall Assign(Rvitem::TCustomRVItemInfo* Source);
	Rvstyle::TRVListLevel* __fastcall GetLevelInfo(Rvstyle::TRVStyle* RVStyle);
	virtual int __fastcall GetMinWidth(Rvstyle::PRVScreenAndDevice sad, Graphics::TCanvas* Canvas, Classes::TPersistent* RVData);
	virtual bool __fastcall GetBoolValue(Rvitem::TRVItemBoolProperty Prop);
	virtual bool __fastcall GetBoolValueEx(Rvitem::TRVItemBoolPropertyEx Prop, Rvstyle::TRVStyle* RVStyle);
	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);
	virtual void __fastcall Paint(int x, int y, Graphics::TCanvas* Canvas, Rvitem::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);
	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 void __fastcall SaveRVF(Classes::TStream* Stream, Classes::TPersistent* RVData, int ItemNo, int ParaNo, const AnsiString Name, Rvitem::TRVMultiDrawItemPart* Part, bool ForceSameAsPrev);
	DYNAMIC void __fastcall MovingToUndoList(int ItemNo, System::TObject* RVData, System::TObject* AContainerUndoItem);
	DYNAMIC void __fastcall MovingFromUndoList(int ItemNo, System::TObject* RVData);
	virtual int __fastcall GetImageWidth(Rvstyle::TRVStyle* RVStyle);
	virtual int __fastcall GetImageHeight(Rvstyle::TRVStyle* RVStyle);
	virtual int __fastcall GetLeftOverhang(void);
	void __fastcall HTMLOpenOrCloseTags(Classes::TStream* Stream, int OldLevelNo, int NewLevelNo, Rvstyle::TRVStyle* RVStyle, bool UseCSS);
	void __fastcall SaveHTMLSpecial(Classes::TStream* Stream, TRVMarkerItemInfo* Prev, Rvstyle::TRVStyle* RVStyle, bool UseCSS);
	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);
	AnsiString __fastcall GetLICSS(Classes::TPersistent* RVData, int ItemNo, const AnsiString Path, const AnsiString imgSavePrefix, int &imgSaveNo, Graphics::TColor CurrentFileColor, Rvstyle::TRVSaveOptions SaveOptions, Rvclasses::TRVList* Bullets);
	DYNAMIC void __fastcall FillRTFTables(Rvclasses::TRVColorList* ColorList, Rvclasses::TRVIntegerList* ListOverrideCountList, Classes::TPersistent* RVData);
	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 MarkStylesInUse(Rvitem::TRVDeleteUnusedStylesData* Data);
	DYNAMIC void __fastcall UpdateStyles(Rvitem::TRVDeleteUnusedStylesData* Data);
	DYNAMIC AnsiString __fastcall AsText(int LineWidth, Classes::TPersistent* RVData, const AnsiString Text, const AnsiString Path, bool TextOnly, bool Unicode);
	int __fastcall GetIndexInList(Classes::TList* List);
	DYNAMIC bool __fastcall SetExtraIntProperty(Rvitem::TRVExtraItemProperty Prop, int Value);
	DYNAMIC bool __fastcall GetExtraIntProperty(Rvitem::TRVExtraItemProperty Prop, int &Value);
public:
	#pragma option push -w-inl
	/* TCustomRVItemInfo.Destroy */ inline __fastcall virtual ~TRVMarkerItemInfo(void) { }
	#pragma option pop
	
};


class PASCALIMPLEMENTATION TRVMarkerList : public Classes::TList 
{
	typedef Classes::TList inherited;
	
public:
	TRVMarkerList* PrevMarkerList;
	int __fastcall InsertAfter(TRVMarkerItemInfo* InsertMe, TRVMarkerItemInfo* AfterMe);
	void __fastcall RecalcCounters(int StartFrom, Rvstyle::TRVStyle* RVStyle);
	bool __fastcall FindParentMarker(int Index, TRVMarkerItemInfo* Marker, TRVMarkerList* &ParentList, int &ParentIndex);
	void __fastcall RecalcDisplayStrings(Rvstyle::TRVStyle* RVStyle);
	void __fastcall SaveToStream(Classes::TStream* Stream, int Count, bool IncludeSize);
	void __fastcall LoadFromStream(Classes::TStream* Stream, Classes::TPersistent* RVData, bool IncludeSize);
	void __fastcall SaveTextToStream(Classes::TStream* Stream, int Count);
	void __fastcall LoadText(const AnsiString s, Classes::TPersistent* RVData);
	void __fastcall LoadBinary(const AnsiString s, Classes::TPersistent* RVData);
public:
	#pragma option push -w-inl
	/* TList.Destroy */ inline __fastcall virtual ~TRVMarkerList(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TObject.Create */ inline __fastcall TRVMarkerList(void) : Classes::TList() { }
	#pragma option pop
	
};


//-- var, const, procedure ---------------------------------------------------
extern PACKAGE Rvstyle::TRVListLevel* __fastcall RVGetLevelInfo(Rvstyle::TRVStyle* RVStyle, int ListNo, int Level);

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

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