NO HAY CÓDIGO FUENTE git-svn-id: https://192.168.0.254/svn/Componentes.Terceros.TRichView@1 b34d35ef-135b-4489-b9d1-9916e9c25524
510 lines
21 KiB
C++
510 lines
21 KiB
C++
// Borland C++ Builder
|
|
// Copyright (c) 1995, 2005 by Borland Software Corporation
|
|
// All rights reserved
|
|
|
|
// (DO NOT EDIT: machine generated header) 'Ptrvdata.pas' rev: 10.00
|
|
|
|
#ifndef PtrvdataHPP
|
|
#define PtrvdataHPP
|
|
|
|
#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 <Classes.hpp> // Pascal unit
|
|
#include <Windows.hpp> // Pascal unit
|
|
#include <Graphics.hpp> // Pascal unit
|
|
#include <Printers.hpp> // Pascal unit
|
|
#include <Dlines.hpp> // Pascal unit
|
|
#include <Rvfuncs.hpp> // Pascal unit
|
|
#include <Rvitem.hpp> // Pascal unit
|
|
#include <Rvback.hpp> // Pascal unit
|
|
#include <Crvdata.hpp> // Pascal unit
|
|
#include <Crvfdata.hpp> // Pascal unit
|
|
#include <Rvrvdata.hpp> // Pascal unit
|
|
#include <Rvmarker.hpp> // Pascal unit
|
|
#include <Rvnote.hpp> // Pascal unit
|
|
#include <Rvstyle.hpp> // Pascal unit
|
|
#include <Rvscroll.hpp> // Pascal unit
|
|
#include <Richview.hpp> // Pascal unit
|
|
#include <Rvuni.hpp> // Pascal unit
|
|
#include <Rvclasses.hpp> // Pascal unit
|
|
#include <Rvctrldata.hpp> // Pascal unit
|
|
|
|
//-- user supplied -----------------------------------------------------------
|
|
|
|
namespace Ptrvdata
|
|
{
|
|
//-- type declarations -------------------------------------------------------
|
|
class DELPHICLASS TRVFootnoteRefList;
|
|
class DELPHICLASS TRVFootnotePtblRVData;
|
|
class PASCALIMPLEMENTATION TRVFootnoteRefList : public Classes::TList
|
|
{
|
|
typedef Classes::TList inherited;
|
|
|
|
public:
|
|
TRVFootnotePtblRVData* operator[](int Index) { return Items[Index]; }
|
|
|
|
private:
|
|
HIDESBASE TRVFootnotePtblRVData* __fastcall Get(int Index);
|
|
HIDESBASE void __fastcall Put(int Index, const TRVFootnotePtblRVData* Value);
|
|
|
|
public:
|
|
void __fastcall DeleteByFootnote(Rvnote::TRVFootnoteItemInfo* Footnote);
|
|
HIDESBASE void __fastcall Sort(void);
|
|
int __fastcall GetFootnoteIndex(Rvnote::TRVFootnoteItemInfo* Footnote);
|
|
__property TRVFootnotePtblRVData* Items[int Index] = {read=Get, write=Put/*, default*/};
|
|
public:
|
|
#pragma option push -w-inl
|
|
/* TList.Destroy */ inline __fastcall virtual ~TRVFootnoteRefList(void) { }
|
|
#pragma option pop
|
|
|
|
public:
|
|
#pragma option push -w-inl
|
|
/* TObject.Create */ inline __fastcall TRVFootnoteRefList(void) : Classes::TList() { }
|
|
#pragma option pop
|
|
|
|
};
|
|
|
|
|
|
class DELPHICLASS TRVMultiDrawItemPartsList;
|
|
class PASCALIMPLEMENTATION TRVMultiDrawItemPartsList : public Rvclasses::TRVList
|
|
{
|
|
typedef Rvclasses::TRVList inherited;
|
|
|
|
public:
|
|
Rvitem::TRVMultiDrawItemPart* operator[](int Index) { return Items[Index]; }
|
|
|
|
private:
|
|
HIDESBASE Rvitem::TRVMultiDrawItemPart* __fastcall Get(int Index);
|
|
HIDESBASE void __fastcall Put(int Index, const Rvitem::TRVMultiDrawItemPart* Value);
|
|
|
|
public:
|
|
__property Rvitem::TRVMultiDrawItemPart* Items[int Index] = {read=Get, write=Put/*, default*/};
|
|
public:
|
|
#pragma option push -w-inl
|
|
/* TRVList.Destroy */ inline __fastcall virtual ~TRVMultiDrawItemPartsList(void) { }
|
|
#pragma option pop
|
|
|
|
public:
|
|
#pragma option push -w-inl
|
|
/* TObject.Create */ inline __fastcall TRVMultiDrawItemPartsList(void) : Rvclasses::TRVList() { }
|
|
#pragma option pop
|
|
|
|
};
|
|
|
|
|
|
class DELPHICLASS TRVMultiDrawItemInfo;
|
|
class PASCALIMPLEMENTATION TRVMultiDrawItemInfo : public Dlines::TRVComplexLineHeightDrawLineInfo
|
|
{
|
|
typedef Dlines::TRVComplexLineHeightDrawLineInfo inherited;
|
|
|
|
private:
|
|
TRVMultiDrawItemPartsList* FPartsList;
|
|
|
|
public:
|
|
__fastcall TRVMultiDrawItemInfo(void);
|
|
__fastcall virtual ~TRVMultiDrawItemInfo(void);
|
|
DYNAMIC void __fastcall ResetPages(TRVFootnoteRefList* &FootnoteRVDataList, int &ReleasedHeightAfterFootnotes, bool FootnotesChangeHeight);
|
|
DYNAMIC void __fastcall UnformatLastPage(TRVFootnoteRefList* &FootnoteRVDataList, int &ReleasedHeightAfterFootnotes, bool FootnotesChangeHeight);
|
|
DYNAMIC void __fastcall AddAllFootnotes(TRVFootnoteRefList* &FootnoteRVDataList, int &Height, bool FootnotesChangeHeight);
|
|
DYNAMIC void __fastcall DecHeightByFootnotes(int &Height, bool &ThisPageHasFootnotes);
|
|
DYNAMIC void __fastcall RemoveAllFootnotes(TRVFootnoteRefList* &FootnoteRVDataList, int &Height, bool FootnotesChangeHeight);
|
|
__property TRVMultiDrawItemPartsList* PartsList = {read=FPartsList};
|
|
public:
|
|
#pragma option push -w-inl
|
|
/* TRVDrawLineInfo.CreateEx */ inline __fastcall TRVMultiDrawItemInfo(int ALeft, int ATop, int AWidth, int AHeight, int AItemNo, Byte AFromNewLine) : Dlines::TRVComplexLineHeightDrawLineInfo(ALeft, ATop, AWidth, AHeight, AItemNo, AFromNewLine) { }
|
|
#pragma option pop
|
|
|
|
};
|
|
|
|
|
|
class DELPHICLASS TRVPageInfo;
|
|
class PASCALIMPLEMENTATION TRVPageInfo : public Classes::TCollectionItem
|
|
{
|
|
typedef Classes::TCollectionItem inherited;
|
|
|
|
public:
|
|
int StartY;
|
|
int StartDrawItemNo;
|
|
int StartPart;
|
|
int StartY2;
|
|
int DocumentHeight;
|
|
TRVFootnoteRefList* FootnoteRVDataList;
|
|
__fastcall virtual ~TRVPageInfo(void);
|
|
virtual void __fastcall Assign(Classes::TPersistent* Source);
|
|
public:
|
|
#pragma option push -w-inl
|
|
/* TCollectionItem.Create */ inline __fastcall virtual TRVPageInfo(Classes::TCollection* Collection) : Classes::TCollectionItem(Collection) { }
|
|
#pragma option pop
|
|
|
|
};
|
|
|
|
|
|
class DELPHICLASS TRVPageCollection;
|
|
class PASCALIMPLEMENTATION TRVPageCollection : public Classes::TCollection
|
|
{
|
|
typedef Classes::TCollection inherited;
|
|
|
|
public:
|
|
TRVPageInfo* operator[](int Index) { return Items[Index]; }
|
|
|
|
private:
|
|
HIDESBASE TRVPageInfo* __fastcall GetItem(int Index);
|
|
HIDESBASE void __fastcall SetItem(int Index, const TRVPageInfo* Value);
|
|
|
|
public:
|
|
__fastcall TRVPageCollection(void);
|
|
HIDESBASE TRVPageInfo* __fastcall Add(void);
|
|
__property TRVPageInfo* Items[int Index] = {read=GetItem, write=SetItem/*, default*/};
|
|
public:
|
|
#pragma option push -w-inl
|
|
/* TCollection.Destroy */ inline __fastcall virtual ~TRVPageCollection(void) { }
|
|
#pragma option pop
|
|
|
|
};
|
|
|
|
|
|
class DELPHICLASS TCustomPrintableRVData;
|
|
class PASCALIMPLEMENTATION TCustomPrintableRVData : public Rvrvdata::TRichViewRVData
|
|
{
|
|
typedef Rvrvdata::TRichViewRVData inherited;
|
|
|
|
private:
|
|
Graphics::TBitmap* FBackgroundBmp;
|
|
Dlines::TRVDrawLineInfo* FDrawItem;
|
|
int FItemTop;
|
|
int FPageNo;
|
|
|
|
protected:
|
|
virtual Rvback::TRVBackground* __fastcall GetBack(void);
|
|
virtual int __fastcall GetTopCoord(int PageNo);
|
|
virtual int __fastcall GetPrintableAreaTop(void);
|
|
virtual int __fastcall GetTopCoord2(int PageNo);
|
|
virtual void __fastcall DoPagePrepaint(Graphics::TCanvas* Canvas, int PageNo, bool Preview, bool Correction);
|
|
virtual void __fastcall DoPagePostpaint(Graphics::TCanvas* Canvas, int PageNo, bool Preview);
|
|
virtual void __fastcall CheckPageNo(int PageNo);
|
|
DYNAMIC bool __fastcall ShareItems(void);
|
|
DYNAMIC Graphics::TCanvas* __fastcall InitPrinterCanvas(void);
|
|
DYNAMIC void __fastcall DonePrinterCanvas(Graphics::TCanvas* Canvas);
|
|
virtual Rvstyle::TRVColorMode __fastcall GetColorMode(void);
|
|
DYNAMIC Crvdata::TCustomRVData* __fastcall GetSourceRVDataForPrinting(void);
|
|
virtual void __fastcall DoOnHyperlink(Crvdata::TCustomRVData* RVData, int ItemNo, const Types::TRect &R);
|
|
virtual void __fastcall DoOnCheckpoint(Crvdata::TCustomRVData* RVData, int ItemNo, int X, int Y);
|
|
virtual bool __fastcall PageExists(int PageNo);
|
|
DYNAMIC bool __fastcall IgnoreFootnotes(void);
|
|
void __fastcall CalcFootnoteCoords(TRVFootnoteRefList* References, int PageNo);
|
|
|
|
public:
|
|
bool ParentDrawsBack;
|
|
virtual void __fastcall GetDrawItemsRange(int PageNo, int &StartNo, int &EndNo, int &Part);
|
|
virtual int __fastcall GetPrintableAreaLeft(int PageNo);
|
|
virtual void __fastcall DrawPage(int pgNo, Graphics::TCanvas* Canvas, bool Preview, bool Correction);
|
|
virtual void __fastcall DrawBackToBitmap(int Left, int Top, Graphics::TBitmap* bmp, const Rvstyle::TRVScreenAndDevice &sad, int ItemBackgroundLayer, bool RelativeToItem);
|
|
public:
|
|
#pragma option push -w-inl
|
|
/* TRichViewRVData.Destroy */ inline __fastcall virtual ~TCustomPrintableRVData(void) { }
|
|
#pragma option pop
|
|
#pragma option push -w-inl
|
|
/* TRichViewRVData.Create */ inline __fastcall virtual TCustomPrintableRVData(Rvscroll::TRVScroller* RichView) : Rvrvdata::TRichViewRVData(RichView) { }
|
|
#pragma option pop
|
|
|
|
};
|
|
|
|
|
|
class DELPHICLASS TCustomMultiPagePtblRVData;
|
|
class PASCALIMPLEMENTATION TCustomMultiPagePtblRVData : public TCustomPrintableRVData
|
|
{
|
|
typedef TCustomPrintableRVData inherited;
|
|
|
|
protected:
|
|
int StreamSavePage;
|
|
DYNAMIC void __fastcall DoFormatting(int PageCompleted, Richview::TRVPrintingStep Step);
|
|
DYNAMIC int __fastcall GetInitialStartAt(void);
|
|
DYNAMIC int __fastcall GetFurtherStartAt(void);
|
|
DYNAMIC void __fastcall SetEndAt(int Value);
|
|
DYNAMIC void __fastcall IncEndAtByStartAt(int PageNo);
|
|
virtual int __fastcall GetTopCoord(int PageNo);
|
|
virtual int __fastcall GetTopCoord2(int PageNo);
|
|
DYNAMIC void __fastcall RVFGetLimits(Crvdata::TRVFSaveScope SaveScope, int &StartItem, int &EndItem, int &StartOffs, int &EndOffs, Rvitem::TRVMultiDrawItemPart* &StartPart, Rvitem::TRVMultiDrawItemPart* &EndPart, Rvitem::TCustomRVItemInfo* &SelectedItem);
|
|
virtual bool __fastcall PageExists(int PageNo);
|
|
DYNAMIC bool __fastcall AllowEmptyFirstPage(void);
|
|
TRVFootnotePtblRVData* __fastcall GetFootnoteRVData(Rvnote::TRVFootnoteItemInfo* Footnote);
|
|
|
|
public:
|
|
TRVPageCollection* Pages;
|
|
__fastcall virtual ~TCustomMultiPagePtblRVData(void);
|
|
virtual void __fastcall GetDrawItemsRange(int PageNo, int &StartNo, int &EndNo, int &Part);
|
|
void __fastcall FormatNextPage(int &i, int &StartAt, int &StartY, int &Y, bool &Splitting, int &MaxHeight, TRVFootnoteRefList* &FootnoteRVDataList, bool FootnotesChangeHeight);
|
|
bool __fastcall CanPlaceFirstPageHere(int &Height, bool ParentIsFirstItemOnPage, const Rvstyle::TRVScreenAndDevice &sad, bool ThisPageHasFootnotes, bool FootnotesChangeHeight);
|
|
bool __fastcall SavePageAsRVF(Classes::TStream* Stream, int PageNo, Graphics::TColor Color, Rvback::TRVBackground* Background, Crvdata::TRVLayoutInfo* Layout);
|
|
int __fastcall GetNoteSeparatorHeight(void);
|
|
void __fastcall GetFirstItemOnPageEx(int PageNo, int &ItemNo, int &OffsetInItem, int &ExtraData);
|
|
bool __fastcall IsComplexSoftPageBreak(int PageNo);
|
|
void __fastcall AssignComplexSoftPageBreakToItem(int PageNo, Crvfdata::TCustomRVFormattedData* RVData);
|
|
public:
|
|
#pragma option push -w-inl
|
|
/* TRichViewRVData.Create */ inline __fastcall virtual TCustomMultiPagePtblRVData(Rvscroll::TRVScroller* RichView) : TCustomPrintableRVData(RichView) { }
|
|
#pragma option pop
|
|
|
|
};
|
|
|
|
|
|
class DELPHICLASS TCustomMainPtblRVData;
|
|
class PASCALIMPLEMENTATION TCustomMainPtblRVData : public TCustomMultiPagePtblRVData
|
|
{
|
|
typedef TCustomMultiPagePtblRVData inherited;
|
|
|
|
private:
|
|
Rvmarker::TRVMarkerList* FPrevMarkers;
|
|
|
|
protected:
|
|
DYNAMIC void __fastcall DoFormatting(int PageCompleted, Richview::TRVPrintingStep Step);
|
|
virtual Rvback::TRVBackground* __fastcall GetBack(void);
|
|
virtual int __fastcall GetTopCoord(int PageNo);
|
|
virtual int __fastcall GetTopCoord2(int PageNo);
|
|
virtual void __fastcall GetSADForFormatting(Graphics::TCanvas* Canvas, Rvstyle::TRVScreenAndDevice &sad);
|
|
virtual int __fastcall GetPrintableAreaTop(void);
|
|
virtual void __fastcall CheckPageNo(int PageNo);
|
|
DYNAMIC void __fastcall Prepare(void);
|
|
virtual Rvstyle::TRVColorMode __fastcall GetColorMode(void);
|
|
virtual bool __fastcall GetFirstItemMarker(int &ListNo, int &Level);
|
|
DYNAMIC Crvdata::TCustomRVData* __fastcall GetSourceRVDataForPrinting(void);
|
|
DYNAMIC int __fastcall GetInitialStartAt(void);
|
|
DYNAMIC void __fastcall SetEndAt(int Value);
|
|
DYNAMIC void __fastcall IncEndAtByStartAt(int PageNo);
|
|
virtual void __fastcall DoPagePostpaint(Graphics::TCanvas* Canvas, int PageNo, bool Preview);
|
|
|
|
public:
|
|
Graphics::TCanvas* PrinterCanvas;
|
|
int TmpTMPix;
|
|
int TmpBMPix;
|
|
Rvstyle::TRVScreenAndDevice PrnSad;
|
|
int FTopMarginPix;
|
|
int FBottomMarginPix;
|
|
bool Transparent;
|
|
#pragma pack(push,1)
|
|
Types::TRect TmpM;
|
|
#pragma pack(pop)
|
|
#pragma pack(push,1)
|
|
Types::TRect PhysM;
|
|
#pragma pack(pop)
|
|
Rvstyle::TRVColorMode ColorMode;
|
|
bool FIsDestinationReady;
|
|
DYNAMIC void __fastcall Clear(void);
|
|
DYNAMIC int __fastcall GetPageWidth(void);
|
|
DYNAMIC int __fastcall GetPageHeight(void);
|
|
virtual int __fastcall GetPrintableAreaLeft(int PageNo);
|
|
void __fastcall InitFormatPages(void);
|
|
int __fastcall FormatPages(void);
|
|
void __fastcall FinalizeFormatPages(void);
|
|
virtual Graphics::TCanvas* __fastcall GetCanvas(void);
|
|
virtual void __fastcall DrawPage(int pgNo, Graphics::TCanvas* Canvas, bool Preview, bool Correction);
|
|
virtual Graphics::TColor __fastcall GetColor(void);
|
|
DYNAMIC Rvmarker::TRVMarkerList* __fastcall GetPrevMarkers(void);
|
|
__fastcall virtual TCustomMainPtblRVData(Rvscroll::TRVScroller* RichView);
|
|
public:
|
|
#pragma option push -w-inl
|
|
/* TCustomMultiPagePtblRVData.Destroy */ inline __fastcall virtual ~TCustomMainPtblRVData(void) { }
|
|
#pragma option pop
|
|
|
|
};
|
|
|
|
|
|
class DELPHICLASS TPrintableRVData;
|
|
class DELPHICLASS TRVHeaderFooterRVData;
|
|
class DELPHICLASS TRectPtblRVData;
|
|
class PASCALIMPLEMENTATION TRectPtblRVData : public TCustomMultiPagePtblRVData
|
|
{
|
|
typedef TCustomMultiPagePtblRVData inherited;
|
|
|
|
protected:
|
|
virtual void __fastcall GetSADForFormatting(Graphics::TCanvas* Canvas, Rvstyle::TRVScreenAndDevice &sad);
|
|
virtual int __fastcall GetPrintableAreaTop(void);
|
|
virtual int __fastcall GetTopCoord(int PageNo);
|
|
virtual int __fastcall GetTopCoord2(int PageNo);
|
|
DYNAMIC Graphics::TCanvas* __fastcall InitPrinterCanvas(void);
|
|
virtual Rvstyle::TRVColorMode __fastcall GetColorMode(void);
|
|
DYNAMIC Crvdata::TCustomRVData* __fastcall GetSourceRVDataForPrinting(void);
|
|
virtual void __fastcall DoOnHyperlink(Crvdata::TCustomRVData* RVData, int ItemNo, const Types::TRect &R);
|
|
virtual void __fastcall DoOnCheckpoint(Crvdata::TCustomRVData* RVData, int ItemNo, int X, int Y);
|
|
DYNAMIC bool __fastcall IgnoreFootnotes(void);
|
|
|
|
public:
|
|
Crvdata::TCustomRVData* FSourceDataForPrinting;
|
|
TCustomPrintableRVData* FParentPrintData;
|
|
int Left;
|
|
int Top;
|
|
int DX;
|
|
int DY;
|
|
int Width;
|
|
int Height;
|
|
bool Transparent;
|
|
Graphics::TColor FColor;
|
|
DYNAMIC void __fastcall CreateFontInfoCache(Graphics::TCanvas* ACanvas, Graphics::TCanvas* AFormatCanvas);
|
|
DYNAMIC void __fastcall DestroyFontInfoCache(Crvfdata::TRVFontInfoCache* &Cache);
|
|
DYNAMIC Crvfdata::TRVFontInfoCache* __fastcall GetFontInfoCache(Graphics::TCanvas* ACanvas, Graphics::TCanvas* AFormatCanvas, Crvfdata::TCustomRVFormattedData* RVData);
|
|
virtual int __fastcall GetMaxTextWidth(void);
|
|
virtual int __fastcall GetMinTextWidth(void);
|
|
virtual int __fastcall GetPrintableAreaLeft(int PageNo);
|
|
virtual Crvdata::TCustomRVData* __fastcall GetParentData(void);
|
|
virtual Crvdata::TCustomRVData* __fastcall GetRootData(void);
|
|
virtual Crvdata::TCustomRVData* __fastcall GetAbsoluteParentData(void);
|
|
virtual Crvdata::TCustomRVData* __fastcall GetAbsoluteRootData(void);
|
|
__fastcall TRectPtblRVData(Rvscroll::TRVScroller* RichView, Crvdata::TCustomRVData* SourceDataForPrinting, TCustomPrintableRVData* ParentPrintData);
|
|
virtual void __fastcall DrawBackToBitmap(int Left, int Top, Graphics::TBitmap* bmp, const Rvstyle::TRVScreenAndDevice &sad, int ItemBackgroundLayer, bool RelativeToItem);
|
|
virtual int __fastcall GetWidth(void);
|
|
virtual int __fastcall GetHeight(void);
|
|
virtual int __fastcall GetLeftMargin(void);
|
|
virtual int __fastcall GetRightMargin(void);
|
|
virtual int __fastcall GetTopMargin(void);
|
|
virtual int __fastcall GetBottomMargin(void);
|
|
virtual Graphics::TCanvas* __fastcall GetCanvas(void);
|
|
virtual Graphics::TColor __fastcall GetColor(void);
|
|
public:
|
|
#pragma option push -w-inl
|
|
/* TCustomMultiPagePtblRVData.Destroy */ inline __fastcall virtual ~TRectPtblRVData(void) { }
|
|
#pragma option pop
|
|
|
|
};
|
|
|
|
|
|
class PASCALIMPLEMENTATION TRVHeaderFooterRVData : public TRectPtblRVData
|
|
{
|
|
typedef TRectPtblRVData inherited;
|
|
|
|
protected:
|
|
DYNAMIC bool __fastcall IgnoreFootnotes(void);
|
|
|
|
public:
|
|
int FLeftMargin;
|
|
int FRightMargin;
|
|
int FTopMargin;
|
|
int FBottomMargin;
|
|
__fastcall TRVHeaderFooterRVData(Rvscroll::TRVScroller* RichView, Crvdata::TCustomRVData* SourceDataForPrinting, TCustomPrintableRVData* ParentPrintData);
|
|
virtual Rvstyle::TRVStyle* __fastcall GetRVStyle(void);
|
|
DYNAMIC void __fastcall CreateFontInfoCache(Graphics::TCanvas* ACanvas, Graphics::TCanvas* AFormatCanvas);
|
|
DYNAMIC Crvfdata::TRVFontInfoCache* __fastcall GetFontInfoCache(Graphics::TCanvas* ACanvas, Graphics::TCanvas* AFormatCanvas, Crvfdata::TCustomRVFormattedData* RVData);
|
|
virtual int __fastcall GetLeftMargin(void);
|
|
virtual int __fastcall GetRightMargin(void);
|
|
virtual int __fastcall GetTopMargin(void);
|
|
virtual int __fastcall GetBottomMargin(void);
|
|
public:
|
|
#pragma option push -w-inl
|
|
/* TCustomMultiPagePtblRVData.Destroy */ inline __fastcall virtual ~TRVHeaderFooterRVData(void) { }
|
|
#pragma option pop
|
|
|
|
};
|
|
|
|
|
|
class PASCALIMPLEMENTATION TPrintableRVData : public TCustomMainPtblRVData
|
|
{
|
|
typedef TCustomMainPtblRVData inherited;
|
|
|
|
private:
|
|
HRGN rgn;
|
|
int rgnres;
|
|
|
|
protected:
|
|
DYNAMIC void __fastcall DoFormatting(int PageCompleted, Richview::TRVPrintingStep Step);
|
|
DYNAMIC Graphics::TCanvas* __fastcall InitPrinterCanvas(void);
|
|
DYNAMIC void __fastcall DonePrinterCanvas(Graphics::TCanvas* Canvas);
|
|
virtual void __fastcall DoPagePrepaint(Graphics::TCanvas* Canvas, int PageNo, bool Preview, bool Correction);
|
|
virtual void __fastcall DoPagePostpaint(Graphics::TCanvas* Canvas, int PageNo, bool Preview);
|
|
DYNAMIC void __fastcall Prepare(void);
|
|
|
|
public:
|
|
int TmpLMMir;
|
|
TRVHeaderFooterRVData* Header;
|
|
TRVHeaderFooterRVData* Footer;
|
|
int HeaderY;
|
|
int FooterY;
|
|
virtual int __fastcall GetPrintableAreaLeft(int PageNo);
|
|
__fastcall virtual TPrintableRVData(Rvscroll::TRVScroller* RichView);
|
|
__fastcall virtual ~TPrintableRVData(void);
|
|
DYNAMIC int __fastcall GetPageWidth(void);
|
|
DYNAMIC int __fastcall GetPageHeight(void);
|
|
};
|
|
|
|
|
|
class DELPHICLASS TRVEndnotePtblRVData;
|
|
class PASCALIMPLEMENTATION TRVEndnotePtblRVData : public TCustomMultiPagePtblRVData
|
|
{
|
|
typedef TCustomMultiPagePtblRVData inherited;
|
|
|
|
protected:
|
|
DYNAMIC Crvdata::TCustomRVData* __fastcall GetSourceRVDataForPrinting(void);
|
|
DYNAMIC int __fastcall GetInitialStartAt(void);
|
|
DYNAMIC int __fastcall GetFurtherStartAt(void);
|
|
DYNAMIC void __fastcall SetEndAt(int Value);
|
|
DYNAMIC void __fastcall IncEndAtByStartAt(int PageNo);
|
|
virtual void __fastcall GetSADForFormatting(Graphics::TCanvas* Canvas, Rvstyle::TRVScreenAndDevice &sad);
|
|
virtual int __fastcall GetTopCoord(int PageNo);
|
|
virtual int __fastcall GetTopCoord2(int PageNo);
|
|
DYNAMIC bool __fastcall AllowEmptyFirstPage(void);
|
|
DYNAMIC bool __fastcall IgnoreFootnotes(void);
|
|
|
|
public:
|
|
Rvnote::TRVEndnoteItemInfo* Endnote;
|
|
int StartAt;
|
|
int NextStartAt;
|
|
int EndAt;
|
|
bool FromNewPage;
|
|
__fastcall virtual TRVEndnotePtblRVData(Rvscroll::TRVScroller* RichView);
|
|
virtual Graphics::TCanvas* __fastcall GetCanvas(void);
|
|
DYNAMIC Classes::TStringList* __fastcall GetDocProperties(void);
|
|
virtual int __fastcall GetPrintableAreaLeft(int PageNo);
|
|
virtual int __fastcall GetPrintableAreaTop(void);
|
|
virtual Crvdata::TCustomRVData* __fastcall GetParentData(void);
|
|
virtual Crvdata::TCustomRVData* __fastcall GetRootData(void);
|
|
virtual Crvdata::TCustomRVData* __fastcall GetAbsoluteParentData(void);
|
|
virtual Crvdata::TCustomRVData* __fastcall GetAbsoluteRootData(void);
|
|
public:
|
|
#pragma option push -w-inl
|
|
/* TCustomMultiPagePtblRVData.Destroy */ inline __fastcall virtual ~TRVEndnotePtblRVData(void) { }
|
|
#pragma option pop
|
|
|
|
};
|
|
|
|
|
|
class PASCALIMPLEMENTATION TRVFootnotePtblRVData : public TRectPtblRVData
|
|
{
|
|
typedef TRectPtblRVData inherited;
|
|
|
|
protected:
|
|
DYNAMIC bool __fastcall IgnoreFootnotes(void);
|
|
|
|
public:
|
|
int IndexOnPage;
|
|
Rvnote::TRVFootnoteItemInfo* Footnote;
|
|
Crvfdata::TCustomRVFormattedData* FootnoteItemRVData;
|
|
int FootnoteDItemNo;
|
|
void __fastcall AdjustFootnoteRefWidths(void);
|
|
public:
|
|
#pragma option push -w-inl
|
|
/* TRectPtblRVData.Create */ inline __fastcall TRVFootnotePtblRVData(Rvscroll::TRVScroller* RichView, Crvdata::TCustomRVData* SourceDataForPrinting, TCustomPrintableRVData* ParentPrintData) : TRectPtblRVData(RichView, SourceDataForPrinting, ParentPrintData) { }
|
|
#pragma option pop
|
|
|
|
public:
|
|
#pragma option push -w-inl
|
|
/* TCustomMultiPagePtblRVData.Destroy */ inline __fastcall virtual ~TRVFootnotePtblRVData(void) { }
|
|
#pragma option pop
|
|
|
|
};
|
|
|
|
|
|
//-- var, const, procedure ---------------------------------------------------
|
|
|
|
} /* namespace Ptrvdata */
|
|
using namespace Ptrvdata;
|
|
#pragma pack(pop)
|
|
#pragma option pop
|
|
|
|
#pragma delphiheader end.
|
|
//-- end unit ----------------------------------------------------------------
|
|
#endif // Ptrvdata
|