|
@ -41,7 +41,7 @@ class Workbook : public QObject |
|
|
{ |
|
|
{ |
|
|
Q_OBJECT |
|
|
Q_OBJECT |
|
|
public: |
|
|
public: |
|
|
Workbook(const QString &name, QObject *parent=0); |
|
|
Workbook(QObject *parent=0); |
|
|
~Workbook(); |
|
|
~Workbook(); |
|
|
|
|
|
|
|
|
Worksheet *addWorksheet(const QString &name = QString()); |
|
|
Worksheet *addWorksheet(const QString &name = QString()); |
|
@ -51,7 +51,7 @@ public: |
|
|
void setOptimizationEnabled(bool enable=true); |
|
|
void setOptimizationEnabled(bool enable=true); |
|
|
void setStringsToNumbersEnabled(bool enable=true); |
|
|
void setStringsToNumbersEnabled(bool enable=true); |
|
|
|
|
|
|
|
|
void close(); |
|
|
void save(const QString &name); |
|
|
|
|
|
|
|
|
private: |
|
|
private: |
|
|
friend class Package; |
|
|
friend class Package; |
|
@ -60,14 +60,9 @@ private: |
|
|
QList<Worksheet *> worksheets() const; |
|
|
QList<Worksheet *> worksheets() const; |
|
|
SharedStrings *sharedStrings(); |
|
|
SharedStrings *sharedStrings(); |
|
|
Styles *styles(); |
|
|
Styles *styles(); |
|
|
QString fileName() const; |
|
|
|
|
|
bool isOptimizationEnabled() const; |
|
|
bool isOptimizationEnabled() const; |
|
|
bool isStringsToNumbersEnabled() const; |
|
|
bool isStringsToNumbersEnabled() const; |
|
|
void saveToXmlFile(QIODevice *device); |
|
|
void saveToXmlFile(QIODevice *device); |
|
|
void saveWorkbook(); |
|
|
|
|
|
|
|
|
|
|
|
QString m_fileName; |
|
|
|
|
|
bool m_closed; |
|
|
|
|
|
|
|
|
|
|
|
SharedStrings *m_sharedStrings; |
|
|
SharedStrings *m_sharedStrings; |
|
|
QList<Worksheet *> m_worksheets; |
|
|
QList<Worksheet *> m_worksheets; |
|
|