uxlshyperlink.hpp
来自「TMSPack基本上涵盖了Delphi所有的基础控件」· HPP 代码 · 共 172 行
HPP
172 行
// Borland C++ Builder
// Copyright (c) 1995, 2005 by Borland Software Corporation
// All rights reserved
// (DO NOT EDIT: machine generated header) 'Uxlshyperlink.pas' rev: 10.00
#ifndef UxlshyperlinkHPP
#define UxlshyperlinkHPP
#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 <Uxlsbaserecords.hpp> // Pascal unit
#include <Xlsmessages.hpp> // Pascal unit
#include <Uflxmessages.hpp> // Pascal unit
#include <Uxlsbaselist.hpp> // Pascal unit
#include <Contnrs.hpp> // Pascal unit
//-- user supplied -----------------------------------------------------------
namespace Uxlshyperlink
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS THLinkRecord;
class DELPHICLASS TScreenTipRecord;
class PASCALIMPLEMENTATION TScreenTipRecord : public Uxlsbaserecords::TBaseRecord
{
typedef Uxlsbaserecords::TBaseRecord inherited;
protected:
int __fastcall GetFirstRow(void);
int __fastcall GetLastRow(void);
int __fastcall GetFirstCol(void);
int __fastcall GetLastCol(void);
WideString __fastcall GetText();
void __fastcall SetFirstRow(int Value);
void __fastcall SetLastRow(int Value);
void __fastcall SetFirstCol(int Value);
void __fastcall SetLastCol(int Value);
void __fastcall SetText(WideString Value);
public:
__fastcall virtual TScreenTipRecord(const Word aId, const Xlsmessages::PArrayOfByte aData, const int aDataSize);
__fastcall TScreenTipRecord(WideString aDescription);
__property int FirstRow = {read=GetFirstRow, write=SetFirstRow, nodefault};
__property int LastRow = {read=GetLastRow, write=SetLastRow, nodefault};
__property int FirstCol = {read=GetFirstCol, write=SetFirstCol, nodefault};
__property int LastCol = {read=GetLastCol, write=SetLastCol, nodefault};
__property WideString Text = {read=GetText, write=SetText};
public:
#pragma option push -w-inl
/* TBaseRecord.Destroy */ inline __fastcall virtual ~TScreenTipRecord(void) { }
#pragma option pop
};
class PASCALIMPLEMENTATION THLinkRecord : public Uxlsbaserecords::TBaseRecord
{
typedef Uxlsbaserecords::TBaseRecord inherited;
private:
TScreenTipRecord* Hint;
WideString __fastcall ReadString(int &Pos, const int OptMask, const int ByteSize);
WideString __fastcall ReadLocalFile(int &Pos);
void __fastcall SetString(int &Pos, const int OptMask, const WideString value);
void __fastcall SetString2(int &Pos, const Xlsmessages::PArrayOfByte GUID, const WideString value, const int ByteCount);
void __fastcall SetLocalFile(int &Pos, const WideString value);
bool __fastcall IsUrl(int pos);
bool __fastcall IsFile(int pos);
bool __fastcall IsUNC(int pos);
WideString __fastcall GetText(int &pos, Uflxmessages::THyperLinkType &HType);
void __fastcall SetText(int &pos, WideString Text, Uflxmessages::THyperLinkType HType);
void __fastcall ClearData(void);
int __fastcall GetFirstRow(void);
int __fastcall GetLastRow(void);
int __fastcall GetFirstCol(void);
int __fastcall GetLastCol(void);
int __fastcall GetOptionFlags(void);
void __fastcall SetFirstRow(int Value);
void __fastcall SetLastRow(int Value);
void __fastcall SetFirstCol(int Value);
void __fastcall SetLastCol(int Value);
void __fastcall SetOptionFlags(int Value);
protected:
virtual Uxlsbaserecords::TBaseRecord* __fastcall DoCopyTo(void);
public:
void __fastcall AddHint(const TScreenTipRecord* aHint);
__fastcall virtual THLinkRecord(const Word aId, const Xlsmessages::PArrayOfByte aData, const int aDataSize);
__fastcall THLinkRecord(const Uflxmessages::TXlsCellRange &CellRange, const Uflxmessages::THyperLink &HLink);
__fastcall virtual ~THLinkRecord(void);
__property int FirstRow = {read=GetFirstRow, write=SetFirstRow, nodefault};
__property int LastRow = {read=GetLastRow, write=SetLastRow, nodefault};
__property int FirstCol = {read=GetFirstCol, write=SetFirstCol, nodefault};
__property int LastCol = {read=GetLastCol, write=SetLastCol, nodefault};
__property int OptionFlags = {read=GetOptionFlags, write=SetOptionFlags, nodefault};
virtual void __fastcall SaveToStream(const Classes::TStream* Workbook, const bool NeedsRecalc);
void __fastcall SaveRangeToStream(const Classes::TStream* Workbook, const Uflxmessages::TXlsCellRange &CellRange, const bool NeedsRecalc);
int __fastcall TotalRangeSize(const Uflxmessages::TXlsCellRange &CellRange);
virtual int __fastcall TotalSize(void);
virtual int __fastcall TotalSizeNoHeaders(void);
Uflxmessages::THyperLink __fastcall GetProperties();
void __fastcall SetProperties(const Uflxmessages::THyperLink &value);
Uflxmessages::TXlsCellRange __fastcall GetCellRange();
void __fastcall SetCellRange(const Uflxmessages::TXlsCellRange &CellRange);
void __fastcall ArrangeInsertRange(const Uflxmessages::TXlsCellRange &CellRange, int aRowCount, int aColCount, const Xlsmessages::TSheetInfo &SheetInfo);
THLinkRecord* __fastcall Offset(int DeltaRow, int DeltaCol);
};
class DELPHICLASS THLinkList;
class PASCALIMPLEMENTATION THLinkList : public Uxlsbaselist::TBaseList
{
typedef Uxlsbaselist::TBaseList inherited;
public:
THLinkRecord* operator[](int index) { return Items[index]; }
private:
THLinkRecord* __fastcall GetItems(int index);
void __fastcall SetItems(int index, const THLinkRecord* Value);
public:
__property THLinkRecord* Items[int index] = {read=GetItems, write=SetItems/*, default*/};
HIDESBASE int __fastcall Add(THLinkRecord* aRecord);
HIDESBASE void __fastcall Insert(int Index, THLinkRecord* aRecord);
private:
bool Sorted;
public:
HIDESBASE void __fastcall Sort(void);
void __fastcall CopyFrom(THLinkList* aHLinkList);
void __fastcall CopyObjectsFrom(THLinkList* aHLinkList, const Uflxmessages::TXlsCellRange &CopyRange, int RowOfs, int ColOfs);
void __fastcall SaveToStream(Classes::TStream* DataStream);
void __fastcall SaveRangeToStream(Classes::TStream* DataStream, const Uflxmessages::TXlsCellRange &CellRange);
__int64 __fastcall TotalSize(void);
__int64 __fastcall TotalRangeSize(const Uflxmessages::TXlsCellRange &CellRange);
void __fastcall InsertAndCopyRange(const Uflxmessages::TXlsCellRange &SourceRange, int DestRow, int DestCol, int aRowCount, int aColCount, const Xlsmessages::TSheetInfo &SheetInfo);
void __fastcall DeleteRange(const Uflxmessages::TXlsCellRange &CellRange, int aRowCount, int aColCount, const Xlsmessages::TSheetInfo &SheetInfo);
public:
#pragma option push -w-inl
/* TObjectList.Create */ inline __fastcall THLinkList(void)/* overload */ : Uxlsbaselist::TBaseList() { }
#pragma option pop
public:
#pragma option push -w-inl
/* TList.Destroy */ inline __fastcall virtual ~THLinkList(void) { }
#pragma option pop
};
//-- var, const, procedure ---------------------------------------------------
} /* namespace Uxlshyperlink */
using namespace Uxlshyperlink;
#pragma pack(pop)
#pragma option pop
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // Uxlshyperlink
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?