Initial commit

This commit is contained in:
2026-09-13 11:54:43 +08:00
commit 498501c98a
58 changed files with 17145 additions and 0 deletions
+46
View File
@@ -0,0 +1,46 @@
///////////////////////////////////////////////////////////////////////////////
// //
// LibXL C++ headers version 4.0.3 //
// //
// Copyright (c) 2008-2022 XLware s.r.o. //
// //
// THIS FILE AND THE SOFTWARE CONTAINED HEREIN IS PROVIDED 'AS IS' AND //
// COMES WITH NO WARRANTIES OF ANY KIND. //
// //
// Please define LIBXL_STATIC variable for static linking. //
// //
///////////////////////////////////////////////////////////////////////////////
#ifndef LIBXL_IAUTOFILTER_H
#define LIBXL_IAUTOFILTER_H
#include "setup.h"
namespace libxl
{
template<class TCHAR> struct IFilterColumnT;
template<class TCHAR>
struct IAutoFilterT
{
virtual bool XLAPIENTRY getRef(int* rowFirst, int* rowLast, int* colFirst, int* colLast) = 0;
virtual void XLAPIENTRY setRef(int rowFirst, int rowLast, int colFirst, int colLast) = 0;
virtual IFilterColumnT<TCHAR>* XLAPIENTRY column(int colId) = 0;
virtual int XLAPIENTRY columnSize() const = 0;
virtual IFilterColumnT<TCHAR>* XLAPIENTRY columnByIndex(int index) = 0;
virtual bool XLAPIENTRY getSortRange(int* rowFirst, int* rowLast, int* colFirst, int* colLast) = 0;
virtual bool XLAPIENTRY getSort(int* columnIndex, bool* descending) = 0;
virtual bool XLAPIENTRY setSort(int columnIndex, bool descending = false) = 0;
virtual bool XLAPIENTRY addSort(int columnIndex, bool descending = false) = 0;
virtual ~IAutoFilterT() {}
};
}
#endif
+120
View File
@@ -0,0 +1,120 @@
///////////////////////////////////////////////////////////////////////////////
// //
// LibXL C++ headers version 4.0.3 //
// //
// Copyright (c) 2008-2022 XLware s.r.o. //
// //
// THIS FILE AND THE SOFTWARE CONTAINED HEREIN IS PROVIDED 'AS IS' AND //
// COMES WITH NO WARRANTIES OF ANY KIND. //
// //
// Please define LIBXL_STATIC variable for static linking. //
// //
///////////////////////////////////////////////////////////////////////////////
#ifndef LIBXL_IBOOKT_H
#define LIBXL_IBOOKT_H
#include <stddef.h>
#include "setup.h"
#include "enum.h"
namespace libxl {
template<class TCHAR> struct ISheetT;
template<class TCHAR> struct IFormatT;
template<class TCHAR> struct IFontT;
template<class TCHAR> struct IRichStringT;
template<class TCHAR>
struct IBookT
{
virtual bool XLAPIENTRY load(const TCHAR* filename, const TCHAR* tempFile = 0) = 0;
virtual bool XLAPIENTRY loadSheet(const TCHAR* filename, int sheetIndex, const TCHAR* tempFile = 0) = 0;
virtual bool XLAPIENTRY loadPartially(const TCHAR* filename, int sheetIndex, int firstRow, int lastRow, const TCHAR* tempFile = 0) = 0;
virtual bool XLAPIENTRY loadWithoutEmptyCells(const TCHAR* filename) = 0;
virtual bool XLAPIENTRY loadInfo(const TCHAR* filename) = 0;
virtual bool XLAPIENTRY save(const TCHAR* filename, bool useTempFile = false) = 0;
virtual bool XLAPIENTRY loadRaw(const char* data, unsigned size, int sheetIndex = -1, int firstRow = -1, int lastRow = -1) = 0;
virtual bool XLAPIENTRY saveRaw(const char** data, unsigned* size) = 0;
virtual ISheetT<TCHAR>* XLAPIENTRY addSheet(const TCHAR* name, ISheetT<TCHAR>* initSheet = 0) = 0;
virtual ISheetT<TCHAR>* XLAPIENTRY insertSheet(int index, const TCHAR* name, ISheetT<TCHAR>* initSheet = 0) = 0;
virtual ISheetT<TCHAR>* XLAPIENTRY getSheet(int index) const = 0;
virtual const TCHAR* XLAPIENTRY getSheetName(int index) const = 0;
virtual SheetType XLAPIENTRY sheetType(int index) const = 0;
virtual bool XLAPIENTRY moveSheet(int srcIndex, int dstIndex) = 0;
virtual bool XLAPIENTRY delSheet(int index) = 0;
virtual int XLAPIENTRY sheetCount() const = 0;
virtual IFormatT<TCHAR>* XLAPIENTRY addFormat(IFormatT<TCHAR>* initFormat = 0) = 0;
virtual IFontT<TCHAR>* XLAPIENTRY addFont(IFontT<TCHAR>* initFont = 0) = 0;
virtual IRichStringT<TCHAR>* XLAPIENTRY addRichString() = 0;
virtual int XLAPIENTRY addCustomNumFormat(const TCHAR* customNumFormat) = 0;
virtual const TCHAR* XLAPIENTRY customNumFormat(int fmt) = 0;
virtual IFormatT<TCHAR>* XLAPIENTRY format(int index) = 0;
virtual int XLAPIENTRY formatSize() = 0;
virtual IFontT<TCHAR>* XLAPIENTRY font(int index) = 0;
virtual int XLAPIENTRY fontSize() = 0;
virtual double XLAPIENTRY datePack(int year, int month, int day, int hour = 0, int min = 0, int sec = 0, int msec = 0) = 0;
virtual bool XLAPIENTRY dateUnpack(double value, int* year, int* month, int* day, int* hour = 0, int* min = 0, int* sec = 0, int* msec = 0) = 0;
virtual Color XLAPIENTRY colorPack(int red, int green, int blue) = 0;
virtual void XLAPIENTRY colorUnpack(Color color, int* red, int* green, int* blue) = 0;
virtual int XLAPIENTRY activeSheet() const = 0;
virtual void XLAPIENTRY setActiveSheet(int index) = 0;
virtual int XLAPIENTRY pictureSize() const = 0;
virtual PictureType XLAPIENTRY getPicture(int index, const char** data, unsigned* size) const = 0;
virtual int XLAPIENTRY addPicture(const TCHAR* filename) = 0;
virtual int XLAPIENTRY addPicture2(const char* data, unsigned size) = 0;
virtual int XLAPIENTRY addPictureAsLink(const TCHAR* filename, bool insert = false) = 0;
virtual const TCHAR* XLAPIENTRY defaultFont(int* fontSize) = 0;
virtual void XLAPIENTRY setDefaultFont(const TCHAR* fontName, int fontSize) = 0;
virtual bool XLAPIENTRY refR1C1() const = 0;
virtual void XLAPIENTRY setRefR1C1(bool refR1C1 = true) = 0;
virtual void XLAPIENTRY setKey(const TCHAR* name, const TCHAR* key) = 0;
virtual bool XLAPIENTRY rgbMode() = 0;
virtual void XLAPIENTRY setRgbMode(bool rgbMode = true) = 0;
virtual CalcModeType XLAPIENTRY calcMode() const = 0;
virtual void XLAPIENTRY setCalcMode(CalcModeType calcMode) = 0;
virtual int XLAPIENTRY version() const = 0;
virtual int XLAPIENTRY biffVersion() const = 0;
virtual bool XLAPIENTRY isDate1904() const = 0;
virtual void XLAPIENTRY setDate1904(bool date1904 = true) = 0;
virtual bool XLAPIENTRY isTemplate() const = 0;
virtual void XLAPIENTRY setTemplate(bool tmpl = true) = 0;
virtual bool XLAPIENTRY isWriteProtected() const = 0;
virtual bool XLAPIENTRY setLocale(const char* locale) = 0;
virtual const char* XLAPIENTRY errorMessage() const = 0;
virtual void XLAPIENTRY release() = 0;
virtual ~IBookT() {}
};
}
extern "C" XLAPI libxl::IBookT<char>* XLAPIENTRY xlCreateBookA();
extern "C" XLAPI libxl::IBookT<wchar_t>* XLAPIENTRY xlCreateBookW();
extern "C" XLAPI libxl::IBookT<char>* XLAPIENTRY xlCreateXMLBookA();
extern "C" XLAPI libxl::IBookT<wchar_t>* XLAPIENTRY xlCreateXMLBookW();
#endif
+45
View File
@@ -0,0 +1,45 @@
///////////////////////////////////////////////////////////////////////////////
// //
// LibXL C++ headers version 4.0.3 //
// //
// Copyright (c) 2008-2022 XLware s.r.o. //
// //
// THIS FILE AND THE SOFTWARE CONTAINED HEREIN IS PROVIDED 'AS IS' AND //
// COMES WITH NO WARRANTIES OF ANY KIND. //
// //
// Please define LIBXL_STATIC variable for static linking. //
// //
///////////////////////////////////////////////////////////////////////////////
#ifndef LIBXL_IFILTERCOLUMN_H
#define LIBXL_IFILTERCOLUMN_H
#include "setup.h"
#include "enum.h"
namespace libxl
{
template<class TCHAR>
struct IFilterColumnT
{
virtual int XLAPIENTRY index() const = 0;
virtual Filter XLAPIENTRY filterType() const = 0;
virtual int XLAPIENTRY filterSize() const = 0;
virtual const TCHAR* XLAPIENTRY filter(int index) const = 0;
virtual void XLAPIENTRY addFilter(const TCHAR* value) = 0;
virtual bool XLAPIENTRY getTop10(double* value, bool* top, bool* percent) = 0;
virtual void XLAPIENTRY setTop10(double value, bool top = true, bool percent = false) = 0;
virtual bool XLAPIENTRY getCustomFilter(Operator* op1, const TCHAR** v1, Operator* op2, const TCHAR** v2, bool* andOp) const = 0;
virtual void XLAPIENTRY setCustomFilter(Operator op1, const TCHAR* v1, Operator op2 = OPERATOR_EQUAL, const TCHAR* v2 = 0, bool andOp = false) = 0;
virtual void XLAPIENTRY clear() = 0;
};
}
#endif
+54
View File
@@ -0,0 +1,54 @@
///////////////////////////////////////////////////////////////////////////////
// //
// LibXL C++ headers version 4.0.3 //
// //
// Copyright (c) 2008-2022 XLware s.r.o. //
// //
// THIS FILE AND THE SOFTWARE CONTAINED HEREIN IS PROVIDED 'AS IS' AND //
// COMES WITH NO WARRANTIES OF ANY KIND. //
// //
// Please define LIBXL_STATIC variable for static linking. //
// //
///////////////////////////////////////////////////////////////////////////////
#ifndef LIBXL_IFONTT_H
#define LIBXL_IFONTT_H
#include "setup.h"
#include "enum.h"
namespace libxl {
template<class TCHAR>
struct IFontT
{
virtual int XLAPIENTRY size() const = 0;
virtual void XLAPIENTRY setSize(int size) = 0;
virtual bool XLAPIENTRY italic() const = 0;
virtual void XLAPIENTRY setItalic(bool italic = true) = 0;
virtual bool XLAPIENTRY strikeOut() const = 0;
virtual void XLAPIENTRY setStrikeOut(bool strikeOut = true) = 0;
virtual Color XLAPIENTRY color() const = 0;
virtual void XLAPIENTRY setColor(Color color) = 0;
virtual bool XLAPIENTRY bold() const = 0;
virtual void XLAPIENTRY setBold(bool bold = true) = 0;
virtual Script XLAPIENTRY script() const = 0;
virtual void XLAPIENTRY setScript(Script script) = 0;
virtual Underline XLAPIENTRY underline() const = 0;
virtual void XLAPIENTRY setUnderline(Underline underline) = 0;
virtual const TCHAR* XLAPIENTRY name() const = 0;
virtual bool XLAPIENTRY setName(const TCHAR* name) = 0;
virtual ~IFontT() {}
};
}
#endif
+95
View File
@@ -0,0 +1,95 @@
///////////////////////////////////////////////////////////////////////////////
// //
// LibXL C++ headers version 4.0.3 //
// //
// Copyright (c) 2008-2022 XLware s.r.o. //
// //
// THIS FILE AND THE SOFTWARE CONTAINED HEREIN IS PROVIDED 'AS IS' AND //
// COMES WITH NO WARRANTIES OF ANY KIND. //
// //
// Please define LIBXL_STATIC variable for static linking. //
// //
///////////////////////////////////////////////////////////////////////////////
#ifndef LIBXL_IFORMCONTROLT_H
#define LIBXL_IFORMCONTROLT_H
#include "setup.h"
#include "enum.h"
namespace libxl
{
template<class TCHAR>
struct IFormControlT
{
virtual ObjectType XLAPIENTRY objectType() const = 0;
virtual CheckedType XLAPIENTRY checked() const = 0;
virtual void XLAPIENTRY setChecked(CheckedType checked) = 0;
virtual const TCHAR* XLAPIENTRY fmlaGroup() = 0;
virtual void XLAPIENTRY setFmlaGroup(const TCHAR* group) = 0;
virtual const TCHAR* XLAPIENTRY fmlaLink() = 0;
virtual void XLAPIENTRY setFmlaLink(const TCHAR* link) = 0;
virtual const TCHAR* XLAPIENTRY fmlaRange() = 0;
virtual void XLAPIENTRY setFmlaRange(const TCHAR* range) = 0;
virtual const TCHAR* XLAPIENTRY fmlaTxbx() = 0;
virtual void XLAPIENTRY setFmlaTxbx(const TCHAR* txbx) = 0;
virtual const TCHAR* XLAPIENTRY name() = 0;
virtual const TCHAR* XLAPIENTRY linkedCell() = 0;
virtual const TCHAR* XLAPIENTRY listFillRange() = 0;
virtual const TCHAR* XLAPIENTRY macro() = 0;
virtual const TCHAR* XLAPIENTRY altText() = 0;
virtual bool XLAPIENTRY locked() const = 0;
virtual bool XLAPIENTRY defaultSize() const = 0;
virtual bool XLAPIENTRY print() const = 0;
virtual bool XLAPIENTRY disabled() const = 0;
virtual const TCHAR* XLAPIENTRY item(int index) = 0;
virtual int XLAPIENTRY itemSize() const = 0;
virtual void XLAPIENTRY addItem(const TCHAR* value) = 0;
virtual void XLAPIENTRY insertItem(int index, const TCHAR* value) = 0;
virtual void XLAPIENTRY clearItems() = 0;
virtual int XLAPIENTRY dropLines() const = 0;
virtual void XLAPIENTRY setDropLines(int lines) = 0;
virtual int XLAPIENTRY dx() const = 0;
virtual void XLAPIENTRY setDx(int dx) = 0;
virtual bool XLAPIENTRY firstButton() const = 0;
virtual void XLAPIENTRY setFirstButton(bool firstButton) = 0;
virtual bool XLAPIENTRY horiz() const = 0;
virtual void XLAPIENTRY setHoriz(bool horiz) = 0;
virtual int XLAPIENTRY inc() const = 0;
virtual void XLAPIENTRY setInc(int inc) = 0;
virtual int XLAPIENTRY getMax() const = 0;
virtual void XLAPIENTRY setMax(int max) = 0;
virtual int XLAPIENTRY getMin() const = 0;
virtual void XLAPIENTRY setMin(int min) = 0;
virtual const TCHAR* XLAPIENTRY multiSel() const = 0;
virtual void XLAPIENTRY setMultiSel(const TCHAR* value) = 0;
virtual int XLAPIENTRY sel() const = 0;
virtual void XLAPIENTRY setSel(int sel) = 0;
virtual bool XLAPIENTRY fromAnchor(int* col, int* colOff, int* row, int* rowOff) = 0;
virtual bool XLAPIENTRY toAnchor(int* col, int* colOff, int* row, int* rowOff) = 0;
virtual ~IFormControlT() {}
};
}
#endif
+107
View File
@@ -0,0 +1,107 @@
///////////////////////////////////////////////////////////////////////////////
// //
// LibXL C++ headers version 4.0.3 //
// //
// Copyright (c) 2008-2022 XLware s.r.o. //
// //
// THIS FILE AND THE SOFTWARE CONTAINED HEREIN IS PROVIDED 'AS IS' AND //
// COMES WITH NO WARRANTIES OF ANY KIND. //
// //
// Please define LIBXL_STATIC variable for static linking. //
// //
///////////////////////////////////////////////////////////////////////////////
#ifndef LIBXL_IFORMATT_H
#define LIBXL_IFORMATT_H
#include "setup.h"
#include "enum.h"
namespace libxl {
template<class TCHAR> struct IFontT;
template<class TCHAR>
struct IFormatT
{
virtual IFontT<TCHAR>* XLAPIENTRY font() const = 0;
virtual bool XLAPIENTRY setFont(IFontT<TCHAR>* font) = 0;
virtual int XLAPIENTRY numFormat() const = 0;
virtual void XLAPIENTRY setNumFormat(int numFormat) = 0;
virtual AlignH XLAPIENTRY alignH() const = 0;
virtual void XLAPIENTRY setAlignH(AlignH align) = 0;
virtual AlignV XLAPIENTRY alignV() const = 0;
virtual void XLAPIENTRY setAlignV(AlignV align) = 0;
virtual bool XLAPIENTRY wrap() const = 0;
virtual void XLAPIENTRY setWrap(bool wrap = true) = 0;
virtual int XLAPIENTRY rotation() const = 0;
virtual bool XLAPIENTRY setRotation(int rotation) = 0;
virtual int XLAPIENTRY indent() const = 0;
virtual void XLAPIENTRY setIndent(int indent) = 0;
virtual bool XLAPIENTRY shrinkToFit() const = 0;
virtual void XLAPIENTRY setShrinkToFit(bool shrinkToFit = true) = 0;
virtual void XLAPIENTRY setBorder(BorderStyle style = BORDERSTYLE_THIN) = 0;
virtual void XLAPIENTRY setBorderColor(Color color) = 0;
virtual BorderStyle XLAPIENTRY borderLeft() const = 0;
virtual void XLAPIENTRY setBorderLeft(BorderStyle style = BORDERSTYLE_THIN) = 0;
virtual BorderStyle XLAPIENTRY borderRight() const = 0;
virtual void XLAPIENTRY setBorderRight(BorderStyle style = BORDERSTYLE_THIN) = 0;
virtual BorderStyle XLAPIENTRY borderTop() const = 0;
virtual void XLAPIENTRY setBorderTop(BorderStyle style = BORDERSTYLE_THIN) = 0;
virtual BorderStyle XLAPIENTRY borderBottom() const = 0;
virtual void XLAPIENTRY setBorderBottom(BorderStyle style = BORDERSTYLE_THIN) = 0;
virtual Color XLAPIENTRY borderLeftColor() const = 0;
virtual void XLAPIENTRY setBorderLeftColor(Color color) = 0;
virtual Color XLAPIENTRY borderRightColor() const = 0;
virtual void XLAPIENTRY setBorderRightColor(Color color) = 0;
virtual Color XLAPIENTRY borderTopColor() const = 0;
virtual void XLAPIENTRY setBorderTopColor(Color color) = 0;
virtual Color XLAPIENTRY borderBottomColor() const = 0;
virtual void XLAPIENTRY setBorderBottomColor(Color color) = 0;
virtual BorderDiagonal XLAPIENTRY borderDiagonal() const = 0;
virtual void XLAPIENTRY setBorderDiagonal(BorderDiagonal border) = 0;
virtual BorderStyle XLAPIENTRY borderDiagonalStyle() const = 0;
virtual void XLAPIENTRY setBorderDiagonalStyle(BorderStyle style) = 0;
virtual Color XLAPIENTRY borderDiagonalColor() const = 0;
virtual void XLAPIENTRY setBorderDiagonalColor(Color color) = 0;
virtual FillPattern XLAPIENTRY fillPattern() const = 0;
virtual void XLAPIENTRY setFillPattern(FillPattern pattern) = 0;
virtual Color XLAPIENTRY patternForegroundColor() const = 0;
virtual void XLAPIENTRY setPatternForegroundColor(Color color) = 0;
virtual Color XLAPIENTRY patternBackgroundColor() const = 0;
virtual void XLAPIENTRY setPatternBackgroundColor(Color color) = 0;
virtual bool XLAPIENTRY locked() const = 0;
virtual void XLAPIENTRY setLocked(bool locked = true) = 0;
virtual bool XLAPIENTRY hidden() const = 0;
virtual void XLAPIENTRY setHidden(bool hidden = true) = 0;
virtual ~IFormatT() {}
};
}
#endif
+35
View File
@@ -0,0 +1,35 @@
///////////////////////////////////////////////////////////////////////////////
// //
// LibXL C++ headers version 4.0.3 //
// //
// Copyright (c) 2008-2022 XLware s.r.o. //
// //
// THIS FILE AND THE SOFTWARE CONTAINED HEREIN IS PROVIDED 'AS IS' AND //
// COMES WITH NO WARRANTIES OF ANY KIND. //
// //
// Please define LIBXL_STATIC variable for static linking. //
// //
///////////////////////////////////////////////////////////////////////////////
#ifndef LIBXL_IRICHSTRINGT_H
#define LIBXL_IRICHSTRINGT_H
#include "setup.h"
namespace libxl
{
template<class TCHAR> struct IFontT;
template<class TCHAR>
struct IRichStringT
{
virtual IFontT<TCHAR>* XLAPIENTRY addFont(IFontT<TCHAR>* initFont = 0) = 0;
virtual void XLAPIENTRY addText(const TCHAR* text, IFontT<TCHAR>* font = 0) = 0;
virtual const TCHAR* XLAPIENTRY getText(int index, IFontT<TCHAR>** font = 0) = 0;
virtual int XLAPIENTRY textSize() const = 0;
virtual ~IRichStringT() {}
};
}
#endif
+270
View File
@@ -0,0 +1,270 @@
///////////////////////////////////////////////////////////////////////////////
// //
// LibXL C++ headers version 4.0.3 //
// //
// Copyright (c) 2008-2022 XLware s.r.o. //
// //
// THIS FILE AND THE SOFTWARE CONTAINED HEREIN IS PROVIDED 'AS IS' AND //
// COMES WITH NO WARRANTIES OF ANY KIND. //
// //
// Please define LIBXL_STATIC variable for static linking. //
// //
///////////////////////////////////////////////////////////////////////////////
#ifndef LIBXL_ISHEETT_H
#define LIBXL_ISHEETT_H
#include "setup.h"
#include "enum.h"
namespace libxl
{
template<class TCHAR> struct IFormatT;
template<class TCHAR> struct IAutoFilterT;
template<class TCHAR> struct IRichStringT;
template<class TCHAR> struct IFormControlT;
template<class TCHAR>
struct ISheetT
{
virtual CellType XLAPIENTRY cellType(int row, int col) const = 0;
virtual bool XLAPIENTRY isFormula(int row, int col) const = 0;
virtual IFormatT<TCHAR>* XLAPIENTRY cellFormat(int row, int col) const = 0;
virtual void XLAPIENTRY setCellFormat(int row, int col, IFormatT<TCHAR>* format) = 0;
virtual const TCHAR* XLAPIENTRY readStr(int row, int col, IFormatT<TCHAR>** format = 0) = 0;
virtual bool XLAPIENTRY writeStr(int row, int col, const TCHAR* value, IFormatT<TCHAR>* format = 0, CellType type = CELLTYPE_STRING) = 0;
virtual IRichStringT<TCHAR>* XLAPIENTRY readRichStr(int row, int col, IFormatT<TCHAR>** format = 0) = 0;
virtual bool XLAPIENTRY writeRichStr(int row, int col, IRichStringT<TCHAR>* richString, IFormatT<TCHAR>* format = 0) = 0;
virtual double XLAPIENTRY readNum(int row, int col, IFormatT<TCHAR>** format = 0) const = 0;
virtual bool XLAPIENTRY writeNum(int row, int col, double value, IFormatT<TCHAR>* format = 0) = 0;
virtual bool XLAPIENTRY readBool(int row, int col, IFormatT<TCHAR>** format = 0) const = 0;
virtual bool XLAPIENTRY writeBool(int row, int col, bool value, IFormatT<TCHAR>* format = 0, int errCode = ERRORTYPE_NOERROR) = 0;
virtual bool XLAPIENTRY readBlank(int row, int col, IFormatT<TCHAR>** format) const = 0;
virtual bool XLAPIENTRY writeBlank(int row, int col, IFormatT<TCHAR>* format) = 0;
virtual const TCHAR* XLAPIENTRY readFormula(int row, int col, IFormatT<TCHAR>** format = 0) = 0;
virtual bool XLAPIENTRY writeFormula(int row, int col, const TCHAR* expr, IFormatT<TCHAR>* format = 0) = 0;
virtual bool XLAPIENTRY writeFormulaNum(int row, int col, const TCHAR* expr, double value, IFormatT<TCHAR>* format = 0) = 0;
virtual bool XLAPIENTRY writeFormulaStr(int row, int col, const TCHAR* expr, const TCHAR* value, IFormatT<TCHAR>* format = 0) = 0;
virtual bool XLAPIENTRY writeFormulaBool(int row, int col, const TCHAR* expr, bool value, IFormatT<TCHAR>* format = 0) = 0;
virtual const TCHAR* XLAPIENTRY readComment(int row, int col) const = 0;
virtual void XLAPIENTRY writeComment(int row, int col, const TCHAR* value, const TCHAR* author = 0, int width = 129, int height = 75) = 0;
virtual void XLAPIENTRY removeComment(int row, int col) = 0;
virtual bool XLAPIENTRY isDate(int row, int col) const = 0;
virtual bool XLAPIENTRY isRichStr(int row, int col) const = 0;
virtual ErrorType XLAPIENTRY readError(int row, int col) const = 0;
virtual void XLAPIENTRY writeError(int row, int col, ErrorType error, IFormatT<TCHAR>* format = 0) = 0;
virtual double XLAPIENTRY colWidth(int col) const = 0;
virtual double XLAPIENTRY rowHeight(int row) const = 0;
virtual int XLAPIENTRY colWidthPx(int col) const = 0;
virtual int XLAPIENTRY rowHeightPx(int row) const = 0;
virtual bool XLAPIENTRY setCol(int colFirst, int colLast, double width, IFormatT<TCHAR>* format = 0, bool hidden = false) = 0;
virtual bool XLAPIENTRY setRow(int row, double height, IFormatT<TCHAR>* format = 0, bool hidden = false) = 0;
virtual bool XLAPIENTRY rowHidden(int row) const = 0;
virtual bool XLAPIENTRY setRowHidden(int row, bool hidden) = 0;
virtual bool XLAPIENTRY colHidden(int col) const = 0;
virtual bool XLAPIENTRY setColHidden(int col, bool hidden) = 0;
virtual double XLAPIENTRY defaultRowHeight() const = 0;
virtual void XLAPIENTRY setDefaultRowHeight(double height) = 0;
virtual bool XLAPIENTRY getMerge(int row, int col, int* rowFirst = 0, int* rowLast = 0, int* colFirst = 0, int* colLast = 0) = 0;
virtual bool XLAPIENTRY setMerge(int rowFirst, int rowLast, int colFirst, int colLast) = 0;
virtual bool XLAPIENTRY delMerge(int row, int col) = 0;
virtual int XLAPIENTRY mergeSize() const = 0;
virtual bool XLAPIENTRY merge(int index, int* rowFirst, int* rowLast, int* colFirst, int* colLast) = 0;
virtual bool XLAPIENTRY delMergeByIndex(int index) = 0;
virtual int XLAPIENTRY pictureSize() const = 0;
virtual int XLAPIENTRY getPicture(int index, int* rowTop = 0, int* colLeft = 0, int* rowBottom = 0, int* colRight = 0,
int* width = 0, int* height = 0, int* offset_x = 0, int* offset_y = 0, const TCHAR** linkPath = 0) const = 0;
virtual bool XLAPIENTRY removePictureByIndex(int index) = 0;
virtual void XLAPIENTRY setPicture(int row, int col, int pictureId, double scale = 1.0, int offset_x = 0, int offset_y = 0, Position pos = POSITION_MOVE_AND_SIZE) = 0;
virtual void XLAPIENTRY setPicture2(int row, int col, int pictureId, int width = -1, int height = -1, int offset_x = 0, int offset_y = 0, Position pos = POSITION_MOVE_AND_SIZE) = 0;
virtual bool XLAPIENTRY removePicture(int row, int col) = 0;
virtual int XLAPIENTRY getHorPageBreak(int index) const = 0;
virtual int XLAPIENTRY getHorPageBreakSize() const = 0;
virtual int XLAPIENTRY getVerPageBreak(int index) const = 0;
virtual int XLAPIENTRY getVerPageBreakSize() const = 0;
virtual bool XLAPIENTRY setHorPageBreak(int row, bool pageBreak = true) = 0;
virtual bool XLAPIENTRY setVerPageBreak(int col, bool pageBreak = true) = 0;
virtual void XLAPIENTRY split(int row, int col) = 0;
virtual bool XLAPIENTRY splitInfo(int* row, int* col) const = 0;
virtual bool XLAPIENTRY groupRows(int rowFirst, int rowLast, bool collapsed = true) = 0;
virtual bool XLAPIENTRY groupCols(int colFirst, int colLast, bool collapsed = true) = 0;
virtual bool XLAPIENTRY groupSummaryBelow() const = 0;
virtual void XLAPIENTRY setGroupSummaryBelow(bool below) = 0;
virtual bool XLAPIENTRY groupSummaryRight() const = 0;
virtual void XLAPIENTRY setGroupSummaryRight(bool right) = 0;
virtual bool XLAPIENTRY clear(int rowFirst = 0, int rowLast = 1048575, int colFirst = 0, int colLast = 16383) = 0;
virtual bool XLAPIENTRY insertCol(int colFirst, int colLast, bool updateNamedRanges = true) = 0;
virtual bool XLAPIENTRY insertRow(int rowFirst, int rowLast, bool updateNamedRanges = true) = 0;
virtual bool XLAPIENTRY removeCol(int colFirst, int colLast, bool updateNamedRanges = true) = 0;
virtual bool XLAPIENTRY removeRow(int rowFirst, int rowLast, bool updateNamedRanges = true) = 0;
virtual bool XLAPIENTRY copyCell(int rowSrc, int colSrc, int rowDst, int colDst) = 0;
virtual int XLAPIENTRY firstRow() const = 0;
virtual int XLAPIENTRY lastRow() const = 0;
virtual int XLAPIENTRY firstCol() const = 0;
virtual int XLAPIENTRY lastCol() const = 0;
virtual int XLAPIENTRY firstFilledRow() const = 0;
virtual int XLAPIENTRY lastFilledRow() const = 0;
virtual int XLAPIENTRY firstFilledCol() const = 0;
virtual int XLAPIENTRY lastFilledCol() const = 0;
virtual bool XLAPIENTRY displayGridlines() const = 0;
virtual void XLAPIENTRY setDisplayGridlines(bool show = true) = 0;
virtual bool XLAPIENTRY printGridlines() const = 0;
virtual void XLAPIENTRY setPrintGridlines(bool print = true) = 0;
virtual int XLAPIENTRY zoom() const = 0;
virtual void XLAPIENTRY setZoom(int zoom) = 0;
virtual int XLAPIENTRY printZoom() const = 0;
virtual void XLAPIENTRY setPrintZoom(int zoom) = 0;
virtual bool XLAPIENTRY getPrintFit(int* wPages, int* hPages) const = 0;
virtual void XLAPIENTRY setPrintFit(int wPages = 1, int hPages = 1) = 0;
virtual bool XLAPIENTRY landscape() const = 0;
virtual void XLAPIENTRY setLandscape(bool landscape = true) = 0;
virtual Paper XLAPIENTRY paper() const = 0;
virtual void XLAPIENTRY setPaper(Paper paper = PAPER_DEFAULT) = 0;
virtual const TCHAR* XLAPIENTRY header() const = 0;
virtual bool XLAPIENTRY setHeader(const TCHAR* header, double margin = 0.5) = 0;
virtual double XLAPIENTRY headerMargin() const = 0;
virtual const TCHAR* XLAPIENTRY footer() const = 0;
virtual bool XLAPIENTRY setFooter(const TCHAR* footer, double margin = 0.5) = 0;
virtual double XLAPIENTRY footerMargin() const = 0;
virtual bool XLAPIENTRY hCenter() const = 0;
virtual void XLAPIENTRY setHCenter(bool hCenter = true) = 0;
virtual bool XLAPIENTRY vCenter() const = 0;
virtual void XLAPIENTRY setVCenter(bool vCenter = true) = 0;
virtual double XLAPIENTRY marginLeft() const = 0;
virtual void XLAPIENTRY setMarginLeft(double margin) = 0;
virtual double XLAPIENTRY marginRight() const = 0;
virtual void XLAPIENTRY setMarginRight(double margin) = 0;
virtual double XLAPIENTRY marginTop() const = 0;
virtual void XLAPIENTRY setMarginTop(double margin) = 0;
virtual double XLAPIENTRY marginBottom() const = 0;
virtual void XLAPIENTRY setMarginBottom(double margin) = 0;
virtual bool XLAPIENTRY printRowCol() const = 0;
virtual void XLAPIENTRY setPrintRowCol(bool print = true) = 0;
virtual bool XLAPIENTRY printRepeatRows(int* rowFirst, int* rowLast) = 0;
virtual void XLAPIENTRY setPrintRepeatRows(int rowFirst, int rowLast) = 0;
virtual bool XLAPIENTRY printRepeatCols(int* colFirst, int* colLast) = 0;
virtual void XLAPIENTRY setPrintRepeatCols(int colFirst, int colLast) = 0;
virtual bool XLAPIENTRY printArea(int* rowFirst, int* rowLast, int* colFirst, int* colLast) = 0;
virtual void XLAPIENTRY setPrintArea(int rowFirst, int rowLast, int colFirst, int colLast) = 0;
virtual void XLAPIENTRY clearPrintRepeats() = 0;
virtual void XLAPIENTRY clearPrintArea() = 0;
virtual bool XLAPIENTRY getNamedRange(const TCHAR* name, int* rowFirst, int* rowLast, int* colFirst, int* colLast, int scopeId = SCOPE_UNDEFINED, bool* hidden = 0) = 0;
virtual bool XLAPIENTRY setNamedRange(const TCHAR* name, int rowFirst, int rowLast, int colFirst, int colLast, int scopeId = SCOPE_UNDEFINED, bool hidden = false) = 0;
virtual bool XLAPIENTRY delNamedRange(const TCHAR* name, int scopeId = SCOPE_UNDEFINED) = 0;
virtual int XLAPIENTRY namedRangeSize() const = 0;
virtual const TCHAR* XLAPIENTRY namedRange(int index, int* rowFirst, int* rowLast, int* colFirst, int* colLast, int* scopeId = 0, bool* hidden = 0) = 0;
virtual int XLAPIENTRY tableSize() const = 0;
virtual const TCHAR* XLAPIENTRY table(int index, int* rowFirst, int* rowLast, int* colFirst, int* colLast, int* headerRowCount, int* totalsRowCount) = 0;
virtual int XLAPIENTRY hyperlinkSize() const = 0;
virtual const TCHAR* XLAPIENTRY hyperlink(int index, int* rowFirst, int* rowLast, int* colFirst, int* colLast) = 0;
virtual bool XLAPIENTRY delHyperlink(int index) = 0;
virtual void XLAPIENTRY addHyperlink(const TCHAR* hyperlink, int rowFirst, int rowLast, int colFirst, int colLast) = 0;
virtual bool XLAPIENTRY isAutoFilter() const = 0;
virtual IAutoFilterT<TCHAR>* XLAPIENTRY autoFilter() = 0;
virtual void XLAPIENTRY applyFilter() = 0;
virtual void XLAPIENTRY removeFilter() = 0;
virtual const TCHAR* XLAPIENTRY name() const = 0;
virtual void XLAPIENTRY setName(const TCHAR* name) = 0;
virtual bool XLAPIENTRY protect() const = 0;
virtual void XLAPIENTRY setProtect(bool protect = true, const TCHAR* password = 0, EnhancedProtection prot = PROT_DEFAULT) = 0;
virtual SheetState XLAPIENTRY hidden() const = 0;
virtual bool XLAPIENTRY setHidden(SheetState state = SHEETSTATE_HIDDEN) = 0;
virtual void XLAPIENTRY getTopLeftView(int* row, int* col) const = 0;
virtual void XLAPIENTRY setTopLeftView(int row, int col) = 0;
virtual bool XLAPIENTRY rightToLeft() const = 0;
virtual void XLAPIENTRY setRightToLeft(bool rightToLeft = true) = 0;
virtual void XLAPIENTRY setAutoFitArea(int rowFirst = 0, int colFirst = 0, int rowLast = -1, int colLast = -1) = 0;
virtual void XLAPIENTRY addrToRowCol(const TCHAR* addr, int* row, int* col, bool* rowRelative = 0, bool* colRelative = 0) = 0;
virtual const TCHAR* XLAPIENTRY rowColToAddr(int row, int col, bool rowRelative = true, bool colRelative = true) = 0;
virtual void XLAPIENTRY setTabColor(Color color) = 0;
virtual void XLAPIENTRY setTabColor(int red, int green, int blue) = 0;
virtual bool XLAPIENTRY addIgnoredError(int rowFirst, int colFirst, int rowLast, int colLast, IgnoredError iError) = 0;
virtual void XLAPIENTRY addDataValidation(DataValidationType type, DataValidationOperator op, int rowFirst, int rowLast, int colFirst, int colLast, const TCHAR* value1, const TCHAR* value2 = 0,
bool allowBlank = true, bool hideDropDown = false, bool showInputMessage = true, bool showErrorMessage = true, const TCHAR* promptTitle = 0, const TCHAR* prompt = 0,
const TCHAR* errorTitle = 0, const TCHAR* error = 0, DataValidationErrorStyle errorStyle = VALIDATION_ERRSTYLE_STOP) = 0;
virtual void XLAPIENTRY addDataValidationDouble(DataValidationType type, DataValidationOperator op, int rowFirst, int rowLast, int colFirst, int colLast, double value1, double value2,
bool allowBlank = true, bool hideDropDown = false, bool showInputMessage = true, bool showErrorMessage = true, const TCHAR* promptTitle = 0, const TCHAR* prompt = 0,
const TCHAR* errorTitle = 0, const TCHAR* error = 0, DataValidationErrorStyle errorStyle = VALIDATION_ERRSTYLE_STOP) = 0;
virtual void XLAPIENTRY removeDataValidations() = 0;
virtual int XLAPIENTRY formControlSize() const = 0;
virtual IFormControlT<TCHAR>* XLAPIENTRY formControl(int index) = 0;
virtual ~ISheetT() {}
};
}
#endif
+131
View File
@@ -0,0 +1,131 @@
///////////////////////////////////////////////////////////////////////////////
// //
// LibXL C++ headers version 4.0.3 //
// //
// Copyright (c) 2008-2022 XLware s.r.o. //
// //
// THIS FILE AND THE SOFTWARE CONTAINED HEREIN IS PROVIDED 'AS IS' AND //
// COMES WITH NO WARRANTIES OF ANY KIND. //
// //
// Please define LIBXL_STATIC variable for static linking. //
// //
///////////////////////////////////////////////////////////////////////////////
#ifndef LIBXL_ENUM_CPP_H
#define LIBXL_ENUM_CPP_H
namespace libxl {
enum Color {COLOR_BLACK = 8, COLOR_WHITE, COLOR_RED, COLOR_BRIGHTGREEN, COLOR_BLUE, COLOR_YELLOW, COLOR_PINK, COLOR_TURQUOISE, COLOR_DARKRED,
COLOR_GREEN, COLOR_DARKBLUE, COLOR_DARKYELLOW, COLOR_VIOLET, COLOR_TEAL, COLOR_GRAY25, COLOR_GRAY50, COLOR_PERIWINKLE_CF,
COLOR_PLUM_CF, COLOR_IVORY_CF, COLOR_LIGHTTURQUOISE_CF, COLOR_DARKPURPLE_CF, COLOR_CORAL_CF, COLOR_OCEANBLUE_CF, COLOR_ICEBLUE_CF,
COLOR_DARKBLUE_CL, COLOR_PINK_CL, COLOR_YELLOW_CL, COLOR_TURQUOISE_CL, COLOR_VIOLET_CL, COLOR_DARKRED_CL, COLOR_TEAL_CL,
COLOR_BLUE_CL, COLOR_SKYBLUE, COLOR_LIGHTTURQUOISE, COLOR_LIGHTGREEN, COLOR_LIGHTYELLOW, COLOR_PALEBLUE, COLOR_ROSE, COLOR_LAVENDER,
COLOR_TAN, COLOR_LIGHTBLUE, COLOR_AQUA, COLOR_LIME, COLOR_GOLD, COLOR_LIGHTORANGE, COLOR_ORANGE, COLOR_BLUEGRAY, COLOR_GRAY40,
COLOR_DARKTEAL, COLOR_SEAGREEN, COLOR_DARKGREEN, COLOR_OLIVEGREEN, COLOR_BROWN, COLOR_PLUM, COLOR_INDIGO, COLOR_GRAY80,
COLOR_DEFAULT_FOREGROUND = 0x0040, COLOR_DEFAULT_BACKGROUND = 0x0041, COLOR_TOOLTIP = 0x0051, COLOR_NONE = 0x7F, COLOR_AUTO = 0x7FFF};
enum NumFormat {NUMFORMAT_GENERAL, NUMFORMAT_NUMBER, NUMFORMAT_NUMBER_D2, NUMFORMAT_NUMBER_SEP, NUMFORMAT_NUMBER_SEP_D2,
NUMFORMAT_CURRENCY_NEGBRA, NUMFORMAT_CURRENCY_NEGBRARED, NUMFORMAT_CURRENCY_D2_NEGBRA, NUMFORMAT_CURRENCY_D2_NEGBRARED,
NUMFORMAT_PERCENT, NUMFORMAT_PERCENT_D2, NUMFORMAT_SCIENTIFIC_D2, NUMFORMAT_FRACTION_ONEDIG, NUMFORMAT_FRACTION_TWODIG,
NUMFORMAT_DATE, NUMFORMAT_CUSTOM_D_MON_YY, NUMFORMAT_CUSTOM_D_MON, NUMFORMAT_CUSTOM_MON_YY,
NUMFORMAT_CUSTOM_HMM_AM, NUMFORMAT_CUSTOM_HMMSS_AM, NUMFORMAT_CUSTOM_HMM, NUMFORMAT_CUSTOM_HMMSS,
NUMFORMAT_CUSTOM_MDYYYY_HMM,
NUMFORMAT_NUMBER_SEP_NEGBRA = 37, NUMFORMAT_NUMBER_SEP_NEGBRARED,
NUMFORMAT_NUMBER_D2_SEP_NEGBRA, NUMFORMAT_NUMBER_D2_SEP_NEGBRARED, NUMFORMAT_ACCOUNT, NUMFORMAT_ACCOUNTCUR,
NUMFORMAT_ACCOUNT_D2, NUMFORMAT_ACCOUNT_D2_CUR, NUMFORMAT_CUSTOM_MMSS, NUMFORMAT_CUSTOM_H0MMSS,
NUMFORMAT_CUSTOM_MMSS0, NUMFORMAT_CUSTOM_000P0E_PLUS0, NUMFORMAT_TEXT};
enum AlignH {ALIGNH_GENERAL, ALIGNH_LEFT, ALIGNH_CENTER, ALIGNH_RIGHT, ALIGNH_FILL, ALIGNH_JUSTIFY, ALIGNH_MERGE, ALIGNH_DISTRIBUTED};
enum AlignV {ALIGNV_TOP, ALIGNV_CENTER, ALIGNV_BOTTOM, ALIGNV_JUSTIFY, ALIGNV_DISTRIBUTED};
enum BorderStyle {BORDERSTYLE_NONE, BORDERSTYLE_THIN, BORDERSTYLE_MEDIUM, BORDERSTYLE_DASHED, BORDERSTYLE_DOTTED, BORDERSTYLE_THICK,
BORDERSTYLE_DOUBLE, BORDERSTYLE_HAIR, BORDERSTYLE_MEDIUMDASHED, BORDERSTYLE_DASHDOT, BORDERSTYLE_MEDIUMDASHDOT,
BORDERSTYLE_DASHDOTDOT, BORDERSTYLE_MEDIUMDASHDOTDOT, BORDERSTYLE_SLANTDASHDOT};
enum BorderDiagonal {BORDERDIAGONAL_NONE, BORDERDIAGONAL_DOWN, BORDERDIAGONAL_UP, BORDERDIAGONAL_BOTH};
enum FillPattern {FILLPATTERN_NONE, FILLPATTERN_SOLID, FILLPATTERN_GRAY50, FILLPATTERN_GRAY75, FILLPATTERN_GRAY25,
FILLPATTERN_HORSTRIPE, FILLPATTERN_VERSTRIPE, FILLPATTERN_REVDIAGSTRIPE, FILLPATTERN_DIAGSTRIPE,
FILLPATTERN_DIAGCROSSHATCH, FILLPATTERN_THICKDIAGCROSSHATCH, FILLPATTERN_THINHORSTRIPE, FILLPATTERN_THINVERSTRIPE,
FILLPATTERN_THINREVDIAGSTRIPE, FILLPATTERN_THINDIAGSTRIPE, FILLPATTERN_THINHORCROSSHATCH, FILLPATTERN_THINDIAGCROSSHATCH,
FILLPATTERN_GRAY12P5, FILLPATTERN_GRAY6P25};
enum Script {SCRIPT_NORMAL, SCRIPT_SUPER, SCRIPT_SUB};
enum Underline {UNDERLINE_NONE, UNDERLINE_SINGLE, UNDERLINE_DOUBLE, UNDERLINE_SINGLEACC = 0x21, UNDERLINE_DOUBLEACC = 0x22};
enum Paper {PAPER_DEFAULT, PAPER_LETTER, PAPER_LETTERSMALL, PAPER_TABLOID, PAPER_LEDGER, PAPER_LEGAL, PAPER_STATEMENT, PAPER_EXECUTIVE, PAPER_A3,
PAPER_A4, PAPER_A4SMALL, PAPER_A5, PAPER_B4, PAPER_B5, PAPER_FOLIO, PAPER_QUATRO, PAPER_10x14, PAPER_10x17, PAPER_NOTE, PAPER_ENVELOPE_9,
PAPER_ENVELOPE_10, PAPER_ENVELOPE_11, PAPER_ENVELOPE_12, PAPER_ENVELOPE_14, PAPER_C_SIZE, PAPER_D_SIZE, PAPER_E_SIZE, PAPER_ENVELOPE_DL,
PAPER_ENVELOPE_C5, PAPER_ENVELOPE_C3, PAPER_ENVELOPE_C4, PAPER_ENVELOPE_C6, PAPER_ENVELOPE_C65, PAPER_ENVELOPE_B4, PAPER_ENVELOPE_B5,
PAPER_ENVELOPE_B6, PAPER_ENVELOPE, PAPER_ENVELOPE_MONARCH, PAPER_US_ENVELOPE, PAPER_FANFOLD, PAPER_GERMAN_STD_FANFOLD,
PAPER_GERMAN_LEGAL_FANFOLD, PAPER_B4_ISO, PAPER_JAPANESE_POSTCARD, PAPER_9x11, PAPER_10x11, PAPER_15x11, PAPER_ENVELOPE_INVITE,
PAPER_US_LETTER_EXTRA = 50, PAPER_US_LEGAL_EXTRA, PAPER_US_TABLOID_EXTRA, PAPER_A4_EXTRA, PAPER_LETTER_TRANSVERSE, PAPER_A4_TRANSVERSE,
PAPER_LETTER_EXTRA_TRANSVERSE, PAPER_SUPERA, PAPER_SUPERB, PAPER_US_LETTER_PLUS, PAPER_A4_PLUS, PAPER_A5_TRANSVERSE, PAPER_B5_TRANSVERSE,
PAPER_A3_EXTRA, PAPER_A5_EXTRA, PAPER_B5_EXTRA, PAPER_A2, PAPER_A3_TRANSVERSE, PAPER_A3_EXTRA_TRANSVERSE, PAPER_JAPANESE_DOUBLE_POSTCARD,
PAPER_A6, PAPER_JAPANESE_ENVELOPE_KAKU2, PAPER_JAPANESE_ENVELOPE_KAKU3, PAPER_JAPANESE_ENVELOPE_CHOU3, PAPER_JAPANESE_ENVELOPE_CHOU4,
PAPER_LETTER_ROTATED, PAPER_A3_ROTATED, PAPER_A4_ROTATED, PAPER_A5_ROTATED, PAPER_B4_ROTATED, PAPER_B5_ROTATED,
PAPER_JAPANESE_POSTCARD_ROTATED, PAPER_DOUBLE_JAPANESE_POSTCARD_ROTATED, PAPER_A6_ROTATED, PAPER_JAPANESE_ENVELOPE_KAKU2_ROTATED,
PAPER_JAPANESE_ENVELOPE_KAKU3_ROTATED, PAPER_JAPANESE_ENVELOPE_CHOU3_ROTATED, PAPER_JAPANESE_ENVELOPE_CHOU4_ROTATED, PAPER_B6,
PAPER_B6_ROTATED, PAPER_12x11, PAPER_JAPANESE_ENVELOPE_YOU4, PAPER_JAPANESE_ENVELOPE_YOU4_ROTATED, PAPER_PRC16K, PAPER_PRC32K,
PAPER_PRC32K_BIG, PAPER_PRC_ENVELOPE1, PAPER_PRC_ENVELOPE2, PAPER_PRC_ENVELOPE3, PAPER_PRC_ENVELOPE4, PAPER_PRC_ENVELOPE5,
PAPER_PRC_ENVELOPE6, PAPER_PRC_ENVELOPE7, PAPER_PRC_ENVELOPE8, PAPER_PRC_ENVELOPE9, PAPER_PRC_ENVELOPE10, PAPER_PRC16K_ROTATED,
PAPER_PRC32K_ROTATED, PAPER_PRC32KBIG_ROTATED, PAPER_PRC_ENVELOPE1_ROTATED, PAPER_PRC_ENVELOPE2_ROTATED, PAPER_PRC_ENVELOPE3_ROTATED,
PAPER_PRC_ENVELOPE4_ROTATED, PAPER_PRC_ENVELOPE5_ROTATED, PAPER_PRC_ENVELOPE6_ROTATED, PAPER_PRC_ENVELOPE7_ROTATED,
PAPER_PRC_ENVELOPE8_ROTATED, PAPER_PRC_ENVELOPE9_ROTATED, PAPER_PRC_ENVELOPE10_ROTATED};
enum SheetType { SHEETTYPE_SHEET, SHEETTYPE_CHART, SHEETTYPE_UNKNOWN };
enum CellType {CELLTYPE_EMPTY, CELLTYPE_NUMBER, CELLTYPE_STRING, CELLTYPE_BOOLEAN, CELLTYPE_BLANK, CELLTYPE_ERROR, CELLTYPE_STRICTDATE};
enum ErrorType {ERRORTYPE_NULL = 0x00, ERRORTYPE_DIV_0 = 0x07, ERRORTYPE_VALUE = 0x0F, ERRORTYPE_REF = 0x17, ERRORTYPE_NAME = 0x1D,
ERRORTYPE_NUM = 0x24, ERRORTYPE_NA = 0x2A, ERRORTYPE_NOERROR = 0xFF};
enum PictureType {PICTURETYPE_PNG, PICTURETYPE_JPEG, PICTURETYPE_GIF, PICTURETYPE_WMF, PICTURETYPE_DIB, PICTURETYPE_EMF,
PICTURETYPE_PICT, PICTURETYPE_TIFF, PICTURETYPE_ERROR = 0xFF};
enum SheetState {SHEETSTATE_VISIBLE, SHEETSTATE_HIDDEN, SHEETSTATE_VERYHIDDEN};
enum Scope {SCOPE_UNDEFINED = -2, SCOPE_WORKBOOK = -1};
enum Position {POSITION_MOVE_AND_SIZE, POSITION_ONLY_MOVE, POSITION_ABSOLUTE};
enum Operator { OPERATOR_EQUAL, OPERATOR_GREATER_THAN, OPERATOR_GREATER_THAN_OR_EQUAL, OPERATOR_LESS_THAN, OPERATOR_LESS_THAN_OR_EQUAL, OPERATOR_NOT_EQUAL };
enum Filter { FILTER_VALUE, FILTER_TOP10, FILTER_CUSTOM, FILTER_DYNAMIC, FILTER_COLOR, FILTER_ICON, FILTER_EXT, FILTER_NOT_SET };
enum IgnoredError { IERR_NO_ERROR = 0, IERR_EVAL_ERROR = 1, IERR_EMPTY_CELLREF = 2, IERR_NUMBER_STORED_AS_TEXT = 4, IERR_INCONSIST_RANGE = 8,
IERR_INCONSIST_FMLA = 16, IERR_TWODIG_TEXTYEAR = 32, IERR_UNLOCK_FMLA = 64, IERR_DATA_VALIDATION = 128 };
enum EnhancedProtection { PROT_DEFAULT = -1, PROT_ALL = 0, PROT_OBJECTS = 1, PROT_SCENARIOS = 2, PROT_FORMAT_CELLS = 4, PROT_FORMAT_COLUMNS = 8, PROT_FORMAT_ROWS = 16,
PROT_INSERT_COLUMNS = 32, PROT_INSERT_ROWS = 64, PROT_INSERT_HYPERLINKS = 128, PROT_DELETE_COLUMNS = 256, PROT_DELETE_ROWS = 512,
PROT_SEL_LOCKED_CELLS = 1024, PROT_SORT = 2048, PROT_AUTOFILTER = 4096, PROT_PIVOTTABLES = 8192, PROT_SEL_UNLOCKED_CELLS = 16384 };
enum DataValidationType { VALIDATION_TYPE_NONE, VALIDATION_TYPE_WHOLE, VALIDATION_TYPE_DECIMAL, VALIDATION_TYPE_LIST,
VALIDATION_TYPE_DATE, VALIDATION_TYPE_TIME, VALIDATION_TYPE_TEXTLENGTH, VALIDATION_TYPE_CUSTOM };
enum DataValidationOperator { VALIDATION_OP_BETWEEN, VALIDATION_OP_NOTBETWEEN, VALIDATION_OP_EQUAL, VALIDATION_OP_NOTEQUAL,
VALIDATION_OP_LESSTHAN, VALIDATION_OP_LESSTHANOREQUAL, VALIDATION_OP_GREATERTHAN, VALIDATION_OP_GREATERTHANOREQUAL };
enum DataValidationErrorStyle { VALIDATION_ERRSTYLE_STOP, VALIDATION_ERRSTYLE_WARNING, VALIDATION_ERRSTYLE_INFORMATION };
enum CalcModeType { CALCMODE_MANUAL, CALCMODE_AUTO, CALCMODE_AUTONOTABLE };
enum CheckedType { CHECKEDTYPE_UNCHECKED, CHECKEDTYPE_CHECKED, CHECKEDTYPE_MIXED };
enum ObjectType { OBJECT_UNKNOWN, OBJECT_BUTTON, OBJECT_CHECKBOX, OBJECT_DROP, OBJECT_GBOX, OBJECT_LABEL, OBJECT_LIST, OBJECT_RADIO, OBJECT_SCROLL, OBJECT_SPIN, OBJECT_EDITBOX, OBJECT_DIALOG };
inline IgnoredError operator|(IgnoredError left, IgnoredError right)
{
return (IgnoredError)((int)left | (int)right);
}
inline EnhancedProtection operator|(EnhancedProtection left, EnhancedProtection right)
{
return (EnhancedProtection)((int)left | (int)right);
}
}
#endif
+56
View File
@@ -0,0 +1,56 @@
///////////////////////////////////////////////////////////////////////////////
// //
// LibXL C++ headers version 4.0.3 //
// //
// Copyright (c) 2008-2022 XLware s.r.o. //
// //
// THIS FILE AND THE SOFTWARE CONTAINED HEREIN IS PROVIDED 'AS IS' AND //
// COMES WITH NO WARRANTIES OF ANY KIND. //
// //
// Please define LIBXL_STATIC variable for static linking. //
// //
///////////////////////////////////////////////////////////////////////////////
#ifndef LIBXL_CPP_H
#define LIBXL_CPP_H
#define LIBXL_VERSION 0x04000301
#include "IBookT.h"
#include "ISheetT.h"
#include "IFormatT.h"
#include "IFontT.h"
#include "IAutoFilterT.h"
#include "IFilterColumnT.h"
#include "IRichStringT.h"
#include "IFormControlT.h"
namespace libxl {
#ifdef _UNICODE
typedef IBookT<wchar_t> Book;
typedef ISheetT<wchar_t> Sheet;
typedef IFormatT<wchar_t> Format;
typedef IFontT<wchar_t> Font;
typedef IAutoFilterT<wchar_t> AutoFilter;
typedef IFilterColumnT<wchar_t> FilterColumn;
typedef IRichStringT<wchar_t> RichString;
typedef IFormControlT<wchar_t> FormControl;
#define xlCreateBook xlCreateBookW
#define xlCreateXMLBook xlCreateXMLBookW
#else
typedef IBookT<char> Book;
typedef ISheetT<char> Sheet;
typedef IFormatT<char> Format;
typedef IFontT<char> Font;
typedef IAutoFilterT<char> AutoFilter;
typedef IFilterColumnT<char> FilterColumn;
typedef IRichStringT<char> RichString;
typedef IFormControlT<char> FormControl;
#define xlCreateBook xlCreateBookA
#define xlCreateXMLBook xlCreateXMLBookA
#endif
}
#endif
+49
View File
@@ -0,0 +1,49 @@
///////////////////////////////////////////////////////////////////////////////
// //
// LibXL C++ headers version 4.0.3 //
// //
// Copyright (c) 2008-2022 XLware s.r.o. //
// //
// THIS FILE AND THE SOFTWARE CONTAINED HEREIN IS PROVIDED 'AS IS' AND //
// COMES WITH NO WARRANTIES OF ANY KIND. //
// //
// Please define LIBXL_STATIC variable for static linking. //
// //
///////////////////////////////////////////////////////////////////////////////
#ifndef LIBXL_SETUP_CPP_H
#define LIBXL_SETUP_CPP_H
#ifdef LIBXL_STDCALL
#define LIBXL_CALLING __stdcall
#else
#define LIBXL_CALLING __cdecl
#endif
#if !defined(LIBXL_STATIC) && (defined(_MSC_VER) || defined(__WATCOMC__))
#ifdef libxl_EXPORTS
#define XLAPI __declspec(dllexport)
#else
#define XLAPI __declspec(dllimport)
#endif
#define XLAPIENTRY LIBXL_CALLING
#else
#ifdef libxl_EXPORTS
#define XLAPI __attribute__ ((visibility ("default")))
#else
#define XLAPI
#endif
#if defined(__MINGW32__)
#define XLAPIENTRY LIBXL_CALLING
#else
#define XLAPIENTRY
#endif
#endif
#endif