uxlssheet.hpp
来自「TMSPack基本上涵盖了Delphi所有的基础控件」· HPP 代码 · 共 410 行 · 第 1/2 页
HPP
410 行
private:
TFlxChart* __fastcall GetItems(int index);
void __fastcall SetItems(int index, const TFlxChart* Value);
public:
__property TFlxChart* Items[int index] = {read=GetItems, write=SetItems/*, default*/};
HIDESBASE int __fastcall Add(TFlxChart* aRecord);
HIDESBASE void __fastcall Insert(int Index, TFlxChart* aRecord);
void __fastcall SaveToStream(const Classes::TStream* DataStream);
void __fastcall ArrangeInsertRowsAndCols(const int InsRowPos, const int InsRowCount, const int InsColPos, const int InsColCount, const Xlsmessages::TSheetInfo &SheetInfo);
public:
#pragma option push -w-inl
/* TObjectList.Create */ inline __fastcall TChartList(void)/* overload */ : Uxlsbaselist::TBaseList() { }
#pragma option pop
public:
#pragma option push -w-inl
/* TList.Destroy */ inline __fastcall virtual ~TChartList(void) { }
#pragma option pop
};
class DELPHICLASS TFlxUnsupportedSheet;
class PASCALIMPLEMENTATION TFlxUnsupportedSheet : public TSheet
{
typedef TSheet inherited;
private:
TSheetRecordList* FSheetRecords;
protected:
virtual void __fastcall SetPageHeaderFooter(const Uxlsbaserecords::TPageHeaderFooterRecord* P, const WideString s);
virtual void __fastcall AddZoomRecord(void);
virtual void __fastcall FixCachePointers(void);
public:
__fastcall virtual TFlxUnsupportedSheet(const Uxlsworkbookglobals::TWorkbookGlobals* aWorkbookGlobals);
__fastcall virtual ~TFlxUnsupportedSheet(void);
virtual TSheet* __fastcall DoCopyTo(void);
virtual __int64 __fastcall TotalSize(void);
virtual __int64 __fastcall TotalRangeSize(const int SheetIndex, const Uflxmessages::TXlsCellRange &CellRange);
virtual void __fastcall LoadFromStream(const Classes::TStream* DataStream, const Uxlsotherrecords::TBOFRecord* First, const Uxlssst::TSST* SST);
virtual void __fastcall SaveToStream(const Classes::TStream* DataStream, const bool NeedsRecalc);
virtual void __fastcall SaveRangeToStream(const Classes::TStream* DataStream, const int SheetIndex, const Uflxmessages::TXlsCellRange &CellRange, const bool NeedsRecalc);
virtual void __fastcall Clear(void);
virtual void __fastcall ArrangeCopySheet(const Xlsmessages::TSheetInfo &SheetInfo);
virtual void __fastcall ArrangeInsertRowsAndCols(const int InsRowPos, const int InsRowCount, const int InsColPos, const int InsColCount, const Xlsmessages::TSheetInfo &SheetInfo);
virtual void __fastcall InsertAndCopyRowsAndCols(const int FirstRow, const int LastRow, const int DestRow, const int aRowCount, const int FirstCol, const int LastCol, const int DestCol, const int aColCount, const Xlsmessages::TSheetInfo &SheetInfo, const bool OnlyFormulas);
virtual void __fastcall DeleteRowsAndCols(const Word aRow, const Word aRowCount, const Word aCol, const Word aColCount, const Xlsmessages::TSheetInfo &SheetInfo);
};
class DELPHICLASS TWorkSheet;
class PASCALIMPLEMENTATION TWorkSheet : public TSheet
{
typedef TSheet inherited;
private:
Uxlsbaserecordlists::TBaseRecordList* FMiscRecords1;
Uxlsbaserecordlists::TBaseRecordList* FMiscRecords2;
Uxlspagebreaks::THPageBreakList* FHPageBreaks;
Uxlspagebreaks::TVPageBreakList* FVPageBreaks;
Uxlsescher::TDrawing* FDrawing;
Uxlsrowcolentries::TCells* FCells;
Uxlsrowcolentries::TRangeList* FRanges;
Uxlsnotes::TNoteList* FNotes;
Uxlscolinfo::TColInfoList* FColumns;
Uxlshyperlink::THLinkList* FHLinks;
int FDefRowHeight;
int FDefColWidth;
int __fastcall GetDrawingRow(int index);
WideString __fastcall GetDrawingName(int index);
Word __fastcall GetPrintNumberOfHorizontalPages(void);
Word __fastcall GetPrintNumberOfVerticalPages(void);
int __fastcall GetPrintScale(void);
bool __fastcall GetPrintToFit(void);
void __fastcall SetPrintNumberOfHorizontalPages(const Word Value);
void __fastcall SetPrintNumberOfVerticalPages(const Word Value);
void __fastcall SetPrintScale(const int Value);
void __fastcall SetPrintToFit(const bool Value);
Word __fastcall GetPrintOptions(void);
void __fastcall SetPrintOptions(const Word Value);
int __fastcall GetPrintCopies(void);
Uflxmessages::TPrinterDriverSettings __fastcall GetPrinterDriverSettings();
int __fastcall GetPrintPaperSize(void);
int __fastcall GetPrintXResolution(void);
int __fastcall GetPrintYResolution(void);
void __fastcall SetPrintCopies(const int Value);
void __fastcall SetPrinterDriverSettings(const Uflxmessages::TPrinterDriverSettings &Value);
void __fastcall SetPrintPaperSize(const int Value);
void __fastcall SetPrintXResolution(const int Value);
void __fastcall SetPrintYResolution(const int Value);
int __fastcall GetColOutlineLevel(int col);
int __fastcall GetRowOutlineLevel(int row);
void __fastcall SetColOulineLevel(int col, const int Value);
void __fastcall SetRowOulineLevel(int row, const int Value);
void __fastcall EnsureGuts(void);
void __fastcall AddPrinterDriverRecord(const Uxlsbaserecords::TPlsRecord* aPlsRecord, const Uxlsbaserecordlists::TBaseRecordList* FRecords);
void __fastcall RemovePrinterDriverRecord(void)/* overload */;
void __fastcall RemovePrinterDriverRecord(const Uxlsbaserecordlists::TBaseRecordList* FRecords)/* overload */;
bool __fastcall GetOutlineSummaryColsRightOfDetail(void);
bool __fastcall GetOutlineSummaryRowsBelowDetail(void);
bool __fastcall GetOutlineAutomaticStyles(void);
void __fastcall SetOutlineSummaryColsRightOfDetail(const bool value);
void __fastcall SetOutlineSummaryRowsBelowDetail(const bool value);
void __fastcall SetOutlineAutomaticStyles(const bool value);
protected:
virtual void __fastcall AddZoomRecord(void);
virtual void __fastcall SetPageHeaderFooter(const Uxlsbaserecords::TPageHeaderFooterRecord* P, const WideString s);
virtual void __fastcall FixCachePointers(void);
virtual void __fastcall AddOrRemovePane(const bool Add);
public:
__fastcall virtual TWorkSheet(const Uxlsworkbookglobals::TWorkbookGlobals* aWorkbookGlobals);
__fastcall TWorkSheet(const Uxlsworkbookglobals::TWorkbookGlobals* aWorkbookGlobals, const Uxlssst::TSST* SST);
__fastcall virtual ~TWorkSheet(void);
virtual TSheet* __fastcall DoCopyTo(void);
virtual __int64 __fastcall TotalSize(void);
virtual __int64 __fastcall TotalRangeSize(const int SheetIndex, const Uflxmessages::TXlsCellRange &CellRange);
virtual void __fastcall LoadFromStream(const Classes::TStream* DataStream, const Uxlsotherrecords::TBOFRecord* First, const Uxlssst::TSST* SST);
virtual void __fastcall SaveToStream(const Classes::TStream* DataStream, const bool NeedsRecalc);
virtual void __fastcall SaveRangeToStream(const Classes::TStream* DataStream, const int SheetIndex, const Uflxmessages::TXlsCellRange &CellRange, const bool NeedsRecalc);
virtual void __fastcall Clear(void);
virtual void __fastcall InsertAndCopyRowsAndCols(const int FirstRow, const int LastRow, const int DestRow, const int aRowCount, const int FirstCol, const int LastCol, const int DestCol, const int aColCount, const Xlsmessages::TSheetInfo &SheetInfo, const bool OnlyFormulas);
virtual void __fastcall DeleteRowsAndCols(const Word aRow, const Word aRowCount, const Word aCol, const Word aColCount, const Xlsmessages::TSheetInfo &SheetInfo);
virtual void __fastcall ArrangeInsertRowsAndCols(const int InsRowPos, const int InsRowCount, const int InsColPos, const int InsColCount, const Xlsmessages::TSheetInfo &SheetInfo);
virtual void __fastcall ArrangeCopySheet(const Xlsmessages::TSheetInfo &SheetInfo);
void __fastcall ClearValues(void);
__property Uxlsnotes::TNoteList* Notes = {read=FNotes};
__property Uxlsrowcolentries::TCells* Cells = {read=FCells};
__property Uxlshyperlink::THLinkList* HLinks = {read=FHLinks};
int __fastcall DrawingCount(void);
void __fastcall AssignDrawing(const int Index, const AnsiString Data, const Uflxmessages::TXlsImgTypes DataType);
void __fastcall GetDrawingFromStream(const int Index, const Classes::TStream* Data, Uflxmessages::TXlsImgTypes &DataType);
__property int DrawingRow[int index] = {read=GetDrawingRow};
__property WideString DrawingName[int index] = {read=GetDrawingName};
Uflxmessages::TClientAnchor __fastcall GetAnchor(const int Index);
void __fastcall SetAnchor(const int Index, const Uflxmessages::TClientAnchor &aAnchor);
void __fastcall DeleteImage(const int Index);
void __fastcall ClearImage(const int Index);
void __fastcall AddImage(const AnsiString Data, const Uflxmessages::TXlsImgTypes DataType, const Uflxmessages::TImageProperties &Properties, const Uflxmessages::TFlxAnchorType Anchor);
void __fastcall AddNewComment(const int Row, const int Col, const WideString Txt, const Uflxmessages::TImageProperties &Properties);
virtual void __fastcall DeleteHPageBreak(const Word aRow);
virtual void __fastcall DeleteVPageBreak(const Word aCol);
virtual void __fastcall InsertHPageBreak(const Word aRow);
virtual void __fastcall InsertVPageBreak(const Word aCol);
int __fastcall GetRowHeight(const int aRow)/* overload */;
int __fastcall GetRowHeight(const int aRow, const bool HiddenIsZero)/* overload */;
int __fastcall GetColWidth(const Word aCol)/* overload */;
int __fastcall GetColWidth(const Word aCol, const bool HiddenIsZero)/* overload */;
void __fastcall SetRowHeight(const int aRow, const int Value);
void __fastcall SetColWidth(const Word aCol, const int Value);
bool __fastcall GetRowHidden(const int aRow);
bool __fastcall GetColHidden(const Word aCol);
void __fastcall SetRowHidden(const int aRow, const bool Value);
void __fastcall SetColHidden(const Word aCol, const bool Value);
__property int DefRowHeight = {read=FDefRowHeight, nodefault};
__property int DefColWidth = {read=FDefColWidth, nodefault};
int __fastcall GetRowFormat(const int aRow);
int __fastcall GetColFormat(const int aCol);
void __fastcall SetRowFormat(const int aRow, const int Value);
void __fastcall SetColFormat(const int aCol, const int Value);
Uflxmessages::TXlsCellRange __fastcall CellMergedBounds(const int aRow, const int aCol);
Uflxmessages::TXlsCellRange __fastcall CellMergedList(const int index);
int __fastcall CellMergedListCount(void);
void __fastcall MergeCells(int aRow1, int aCol1, int aRow2, int aCol2);
void __fastcall UnMergeCells(int aRow1, int aCol1, int aRow2, int aCol2);
bool __fastcall HasHPageBreak(const int Row);
bool __fastcall HasVPageBreak(const int Col);
__property bool PrintToFit = {read=GetPrintToFit, write=SetPrintToFit, nodefault};
__property int PrintScale = {read=GetPrintScale, write=SetPrintScale, nodefault};
__property Word PrintNumberOfHorizontalPages = {read=GetPrintNumberOfHorizontalPages, write=SetPrintNumberOfHorizontalPages, nodefault};
__property Word PrintNumberOfVerticalPages = {read=GetPrintNumberOfVerticalPages, write=SetPrintNumberOfVerticalPages, nodefault};
__property Word PrintOptions = {read=GetPrintOptions, write=SetPrintOptions, nodefault};
__property int PrintPaperSize = {read=GetPrintPaperSize, write=SetPrintPaperSize, nodefault};
__property int PrintCopies = {read=GetPrintCopies, write=SetPrintCopies, nodefault};
__property int PrintXResolution = {read=GetPrintXResolution, write=SetPrintXResolution, nodefault};
__property int PrintYResolution = {read=GetPrintYResolution, write=SetPrintYResolution, nodefault};
__property Uflxmessages::TPrinterDriverSettings PrinterDriverSettings = {read=GetPrinterDriverSettings, write=SetPrinterDriverSettings};
__fastcall TWorkSheet(const Uxlssst::TSST* SST);
__property int RowOutlineLevel[int row] = {read=GetRowOutlineLevel, write=SetRowOulineLevel};
__property int ColOutlineLevel[int col] = {read=GetColOutlineLevel, write=SetColOulineLevel};
__property bool OutlineSummaryRowsBelowDetail = {read=GetOutlineSummaryRowsBelowDetail, write=SetOutlineSummaryRowsBelowDetail, nodefault};
__property bool OutlineSummaryColsRightOfDetail = {read=GetOutlineSummaryColsRightOfDetail, write=SetOutlineSummaryColsRightOfDetail, nodefault};
__property bool OutlineAutomaticStyles = {read=GetOutlineAutomaticStyles, write=SetOutlineAutomaticStyles, nodefault};
virtual void __fastcall RestoreObjectCoords(void);
void __fastcall RecalcRowHeights(const void * Workbook, const int Row1, const int Row2, const bool Forced, const bool KeepAutoFit, const Extended Adjustment);
void __fastcall RecalcColWidths(const void * Workbook, const int Col1, const int Col2, const bool IgnoreStrings, const Extended Adjustment);
};
//-- var, const, procedure ---------------------------------------------------
} /* namespace Uxlssheet */
using namespace Uxlssheet;
#pragma pack(pop)
#pragma option pop
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // Uxlssheet
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?