19 #ifndef TIANCHI_TCMSEXCEL_H
20 #define TIANCHI_TCMSEXCEL_H
22 #include <tianchi/tcglobal.h>
25 #include <QStringList>
28 class TcMSExcelPrivate;
46 TcMSExcelPrivate*
const d_ptr;
60 bool create(
const QString& filename = QString());
62 bool open(
const QString& filename = QString());
64 void save(
const QString& filename = QString());
73 void setVisible(
bool value);
75 void setCaption(
const QString& value);
84 QStringList sheetNames();
91 bool setCurrentSheet(
int index);
94 QString currentSheetName();
100 QVariant read(
int row,
int col);
106 inline QVariant
cell(
int row,
int col) {
return read(row, col); }
112 void write(
int row,
int col,
const QVariant& value);
114 void cellFormat(
int row,
int col,
const QString& format);
115 void cellAlign(
int row,
int col, Alignment hAlign, Alignment vAlign);
122 bool usedRange(
int& rowStart,
int& colStart,
int &rowEnd,
int &colEnd);
125 #endif // TIANCHI_MSEXCEL_H