NO HAY CÓDIGO FUENTE git-svn-id: https://192.168.0.254/svn/Componentes.Terceros.TRichView@1 b34d35ef-135b-4489-b9d1-9916e9c25524
282 lines
10 KiB
C++
282 lines
10 KiB
C++
// Borland C++ Builder
|
|
// Copyright (c) 1995, 2005 by Borland Software Corporation
|
|
// All rights reserved
|
|
|
|
// (DO NOT EDIT: machine generated header) 'Dlines.pas' rev: 10.00
|
|
|
|
#ifndef DlinesHPP
|
|
#define DlinesHPP
|
|
|
|
#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 <Rvstyle.hpp> // Pascal unit
|
|
#include <Rvtypes.hpp> // Pascal unit
|
|
#include <Rvclasses.hpp> // Pascal unit
|
|
|
|
//-- user supplied -----------------------------------------------------------
|
|
|
|
namespace Dlines
|
|
{
|
|
//-- type declarations -------------------------------------------------------
|
|
class DELPHICLASS TRVDrawLineInfo;
|
|
class PASCALIMPLEMENTATION TRVDrawLineInfo : public System::TObject
|
|
{
|
|
typedef System::TObject inherited;
|
|
|
|
private:
|
|
void __fastcall RaiseWrongAssignException(const int Value);
|
|
|
|
protected:
|
|
virtual int __fastcall GetSpaceBefore(void);
|
|
virtual void __fastcall SetSpaceBefore(const int Value);
|
|
virtual int __fastcall GetExtraSpaceAbove(void);
|
|
virtual void __fastcall SetExtraSpaceAbove(const int Value);
|
|
virtual int __fastcall GetExtraSpaceBelow(void);
|
|
virtual void __fastcall SetExtraSpaceBelow(const int Value);
|
|
virtual int __fastcall GetObjectHeight(void);
|
|
virtual int __fastcall GetObjectLeft(void);
|
|
virtual int __fastcall GetObjectTop(void);
|
|
virtual int __fastcall GetObjectWidth(void);
|
|
|
|
public:
|
|
int Left;
|
|
int Top;
|
|
int Width;
|
|
int Height;
|
|
int ItemNo;
|
|
int Offs;
|
|
int Length;
|
|
Byte FromNewLine;
|
|
Byte FloatingAboveUsed;
|
|
__fastcall TRVDrawLineInfo(int ALeft, int ATop, int AWidth, int AHeight, int AItemNo, Byte AFromNewLine);
|
|
virtual void __fastcall SetData(int ALeft, int ATop, int AItemNo, Byte AFromNewLine);
|
|
virtual void __fastcall SetSize(int AWidth, int AHeight);
|
|
DYNAMIC bool __fastcall InitSplit(const Rvstyle::TRVScreenAndDevice &SaD);
|
|
DYNAMIC bool __fastcall CanSplitFirst(int Y, const Rvstyle::TRVScreenAndDevice &SaD, bool FirstOnPage, bool PageHasFootnotes, bool FootnotesChangeHeight);
|
|
DYNAMIC bool __fastcall SplitAt(int Y, const Rvstyle::TRVScreenAndDevice &SaD, bool FirstOnPage, Classes::TList* &FootnoteRVDataList, int &MaxHeight, bool FootnotesChangeHeight);
|
|
__property int SpaceBefore = {read=GetSpaceBefore, write=SetSpaceBefore, nodefault};
|
|
__property int ExtraSpaceBelow = {read=GetExtraSpaceBelow, write=SetExtraSpaceBelow, nodefault};
|
|
__property int ExtraSpaceAbove = {read=GetExtraSpaceAbove, write=SetExtraSpaceAbove, nodefault};
|
|
__property int ObjectWidth = {read=GetObjectWidth, nodefault};
|
|
__property int ObjectHeight = {read=GetObjectHeight, nodefault};
|
|
__property int ObjectLeft = {read=GetObjectLeft, nodefault};
|
|
__property int ObjectTop = {read=GetObjectTop, nodefault};
|
|
public:
|
|
#pragma option push -w-inl
|
|
/* TObject.Create */ inline __fastcall TRVDrawLineInfo(void) : System::TObject() { }
|
|
#pragma option pop
|
|
#pragma option push -w-inl
|
|
/* TObject.Destroy */ inline __fastcall virtual ~TRVDrawLineInfo(void) { }
|
|
#pragma option pop
|
|
|
|
};
|
|
|
|
|
|
class DELPHICLASS TRVJustifyDrawLineInfo;
|
|
class PASCALIMPLEMENTATION TRVJustifyDrawLineInfo : public TRVDrawLineInfo
|
|
{
|
|
typedef TRVDrawLineInfo inherited;
|
|
|
|
private:
|
|
int FSpaceBefore;
|
|
|
|
protected:
|
|
virtual int __fastcall GetSpaceBefore(void);
|
|
virtual void __fastcall SetSpaceBefore(const int Value);
|
|
|
|
public:
|
|
int SpaceBefore;
|
|
public:
|
|
#pragma option push -w-inl
|
|
/* TRVDrawLineInfo.CreateEx */ inline __fastcall TRVJustifyDrawLineInfo(int ALeft, int ATop, int AWidth, int AHeight, int AItemNo, Byte AFromNewLine) : TRVDrawLineInfo(ALeft, ATop, AWidth, AHeight, AItemNo, AFromNewLine) { }
|
|
#pragma option pop
|
|
|
|
public:
|
|
#pragma option push -w-inl
|
|
/* TObject.Create */ inline __fastcall TRVJustifyDrawLineInfo(void) : TRVDrawLineInfo() { }
|
|
#pragma option pop
|
|
#pragma option push -w-inl
|
|
/* TObject.Destroy */ inline __fastcall virtual ~TRVJustifyDrawLineInfo(void) { }
|
|
#pragma option pop
|
|
|
|
};
|
|
|
|
|
|
class DELPHICLASS TRVSimpleLineHeightDrawLineInfo;
|
|
class PASCALIMPLEMENTATION TRVSimpleLineHeightDrawLineInfo : public TRVJustifyDrawLineInfo
|
|
{
|
|
typedef TRVJustifyDrawLineInfo inherited;
|
|
|
|
private:
|
|
int FExtraSpaceBelow;
|
|
|
|
protected:
|
|
virtual int __fastcall GetExtraSpaceBelow(void);
|
|
virtual void __fastcall SetExtraSpaceBelow(const int Value);
|
|
public:
|
|
#pragma option push -w-inl
|
|
/* TRVDrawLineInfo.CreateEx */ inline __fastcall TRVSimpleLineHeightDrawLineInfo(int ALeft, int ATop, int AWidth, int AHeight, int AItemNo, Byte AFromNewLine) : TRVJustifyDrawLineInfo(ALeft, ATop, AWidth, AHeight, AItemNo, AFromNewLine) { }
|
|
#pragma option pop
|
|
|
|
public:
|
|
#pragma option push -w-inl
|
|
/* TObject.Create */ inline __fastcall TRVSimpleLineHeightDrawLineInfo(void) : TRVJustifyDrawLineInfo() { }
|
|
#pragma option pop
|
|
#pragma option push -w-inl
|
|
/* TObject.Destroy */ inline __fastcall virtual ~TRVSimpleLineHeightDrawLineInfo(void) { }
|
|
#pragma option pop
|
|
|
|
};
|
|
|
|
|
|
class DELPHICLASS TRVComplexLineHeightDrawLineInfo;
|
|
class PASCALIMPLEMENTATION TRVComplexLineHeightDrawLineInfo : public TRVSimpleLineHeightDrawLineInfo
|
|
{
|
|
typedef TRVSimpleLineHeightDrawLineInfo inherited;
|
|
|
|
private:
|
|
int FExtraSpaceAbove;
|
|
|
|
protected:
|
|
virtual int __fastcall GetExtraSpaceAbove(void);
|
|
virtual void __fastcall SetExtraSpaceAbove(const int Value);
|
|
public:
|
|
#pragma option push -w-inl
|
|
/* TRVDrawLineInfo.CreateEx */ inline __fastcall TRVComplexLineHeightDrawLineInfo(int ALeft, int ATop, int AWidth, int AHeight, int AItemNo, Byte AFromNewLine) : TRVSimpleLineHeightDrawLineInfo(ALeft, ATop, AWidth, AHeight, AItemNo, AFromNewLine) { }
|
|
#pragma option pop
|
|
|
|
public:
|
|
#pragma option push -w-inl
|
|
/* TObject.Create */ inline __fastcall TRVComplexLineHeightDrawLineInfo(void) : TRVSimpleLineHeightDrawLineInfo() { }
|
|
#pragma option pop
|
|
#pragma option push -w-inl
|
|
/* TObject.Destroy */ inline __fastcall virtual ~TRVComplexLineHeightDrawLineInfo(void) { }
|
|
#pragma option pop
|
|
|
|
};
|
|
|
|
|
|
#pragma option push -b-
|
|
enum TRVDItemFloatingType { rvdifLeft, rvdifRight };
|
|
#pragma option pop
|
|
|
|
class DELPHICLASS TRVFloatingDrawLineInfo;
|
|
class PASCALIMPLEMENTATION TRVFloatingDrawLineInfo : public TRVComplexLineHeightDrawLineInfo
|
|
{
|
|
typedef TRVComplexLineHeightDrawLineInfo inherited;
|
|
|
|
private:
|
|
int __fastcall GetFloatBottom(void);
|
|
int __fastcall GetFloatRight(void);
|
|
|
|
protected:
|
|
virtual int __fastcall GetObjectHeight(void);
|
|
virtual int __fastcall GetObjectLeft(void);
|
|
virtual int __fastcall GetObjectTop(void);
|
|
virtual int __fastcall GetObjectWidth(void);
|
|
|
|
public:
|
|
int FloatLeft;
|
|
int FloatTop;
|
|
int FloatWidth;
|
|
int FloatHeight;
|
|
TRVDItemFloatingType FloatType;
|
|
__property int FloatRight = {read=GetFloatRight, nodefault};
|
|
__property int FloatBottom = {read=GetFloatBottom, nodefault};
|
|
public:
|
|
#pragma option push -w-inl
|
|
/* TRVDrawLineInfo.CreateEx */ inline __fastcall TRVFloatingDrawLineInfo(int ALeft, int ATop, int AWidth, int AHeight, int AItemNo, Byte AFromNewLine) : TRVComplexLineHeightDrawLineInfo(ALeft, ATop, AWidth, AHeight, AItemNo, AFromNewLine) { }
|
|
#pragma option pop
|
|
|
|
public:
|
|
#pragma option push -w-inl
|
|
/* TObject.Create */ inline __fastcall TRVFloatingDrawLineInfo(void) : TRVComplexLineHeightDrawLineInfo() { }
|
|
#pragma option pop
|
|
#pragma option push -w-inl
|
|
/* TObject.Destroy */ inline __fastcall virtual ~TRVFloatingDrawLineInfo(void) { }
|
|
#pragma option pop
|
|
|
|
};
|
|
|
|
|
|
typedef TMetaClass* TRVDrawLineInfoClass;
|
|
|
|
class DELPHICLASS TRVDrawLines;
|
|
class PASCALIMPLEMENTATION TRVDrawLines : public Classes::TList
|
|
{
|
|
typedef Classes::TList inherited;
|
|
|
|
public:
|
|
TRVDrawLineInfo* operator[](int Index) { return Items[Index]; }
|
|
|
|
private:
|
|
int FStartDeletedIndex;
|
|
int FDeletedCount;
|
|
HIDESBASE TRVDrawLineInfo* __fastcall Get(int Index);
|
|
HIDESBASE void __fastcall Put(int Index, const TRVDrawLineInfo* Value);
|
|
void __fastcall DeleteRange(int Index1, int Index2);
|
|
|
|
public:
|
|
__fastcall TRVDrawLines(void);
|
|
void __fastcall MarkForDelete(int Index1, int Index2);
|
|
void __fastcall DeleteMarked(void);
|
|
HIDESBASE void __fastcall Insert(int Index, void * Item);
|
|
HIDESBASE void __fastcall Delete(int Index);
|
|
AnsiString __fastcall GetString(int Index, Classes::TList* AItems);
|
|
AnsiString __fastcall GetSubString(int Index, Classes::TList* AItems, int AStartIndex, int ALength);
|
|
AnsiString __fastcall GetRightString(int Index, Classes::TList* AItems, int AStartIndex);
|
|
int __fastcall FindFirstFloatingAboveDrawItem(int Index, int MinIndex, int Bottom, bool UseBottom);
|
|
__property TRVDrawLineInfo* Items[int Index] = {read=Get, write=Put/*, default*/};
|
|
public:
|
|
#pragma option push -w-inl
|
|
/* TList.Destroy */ inline __fastcall virtual ~TRVDrawLines(void) { }
|
|
#pragma option pop
|
|
|
|
};
|
|
|
|
|
|
class DELPHICLASS TRVFloatingDrawItems;
|
|
class PASCALIMPLEMENTATION TRVFloatingDrawItems : public TRVDrawLines
|
|
{
|
|
typedef TRVDrawLines inherited;
|
|
|
|
private:
|
|
bool __fastcall MarkedHaveFloatType(Rvclasses::TRVIntegerList* Marks, TRVDItemFloatingType FloatType);
|
|
|
|
public:
|
|
void __fastcall FillFloatingAboveDrawItem(int DItemNo, TRVDrawLines* Source);
|
|
void __fastcall FillFloatingCrossingY(int Y, int DItemNo, TRVDrawLines* Source);
|
|
void __fastcall RemoveNonOverlapping(int Y);
|
|
void __fastcall MarkNonOverlapping(int Y, Rvclasses::TRVIntegerList* Marks);
|
|
void __fastcall AdjustLineSize(int MinLeftIndent, int MinWidth, int MaxRightSide, int &Y, int &LeftIndent, int &LineWidth, bool AllowDelete, bool ClearLeft, bool ClearRight, Classes::TList* ClearIgnore);
|
|
int __fastcall GetFloatBottom(void);
|
|
public:
|
|
#pragma option push -w-inl
|
|
/* TRVDrawLines.Create */ inline __fastcall TRVFloatingDrawItems(void) : TRVDrawLines() { }
|
|
#pragma option pop
|
|
|
|
public:
|
|
#pragma option push -w-inl
|
|
/* TList.Destroy */ inline __fastcall virtual ~TRVFloatingDrawItems(void) { }
|
|
#pragma option pop
|
|
|
|
};
|
|
|
|
|
|
//-- var, const, procedure ---------------------------------------------------
|
|
|
|
} /* namespace Dlines */
|
|
using namespace Dlines;
|
|
#pragma pack(pop)
|
|
#pragma option pop
|
|
|
|
#pragma delphiheader end.
|
|
//-- end unit ----------------------------------------------------------------
|
|
#endif // Dlines
|