You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.3 KiB
50 lines
1.3 KiB
2 years ago
|
// xlsxabstractsheet.h
|
||
|
|
||
|
#ifndef XLSXABSTRACTSHEET_H
|
||
|
#define XLSXABSTRACTSHEET_H
|
||
|
|
||
|
#include "xlsxglobal.h"
|
||
|
#include "xlsxabstractooxmlfile.h"
|
||
|
|
||
|
QT_BEGIN_NAMESPACE_XLSX
|
||
|
|
||
|
class Workbook;
|
||
|
class Drawing;
|
||
|
class AbstractSheetPrivate;
|
||
|
|
||
|
class QXLSX_EXPORT AbstractSheet : public AbstractOOXmlFile
|
||
|
{
|
||
|
Q_DECLARE_PRIVATE(AbstractSheet)
|
||
|
|
||
|
public:
|
||
|
Workbook *workbook() const;
|
||
|
|
||
|
public:
|
||
|
// NOTE: If all Qt compiler supports C++1x, recommend to use a 'class enum'.
|
||
|
enum SheetType { ST_WorkSheet, ST_ChartSheet, ST_DialogSheet, ST_MacroSheet };
|
||
|
enum SheetState { SS_Visible,SS_Hidden, SS_VeryHidden };
|
||
|
|
||
|
public:
|
||
|
QString sheetName() const;
|
||
|
SheetType sheetType() const;
|
||
|
SheetState sheetState() const;
|
||
|
void setSheetState(SheetState ss);
|
||
|
bool isHidden() const;
|
||
|
bool isVisible() const;
|
||
|
void setHidden(bool hidden);
|
||
|
void setVisible(bool visible);
|
||
|
|
||
|
protected:
|
||
|
friend class Workbook;
|
||
|
AbstractSheet(const QString &sheetName, int sheetId, Workbook *book, AbstractSheetPrivate *d);
|
||
|
virtual AbstractSheet *copy(const QString &distName, int distId) const = 0;
|
||
|
void setSheetName(const QString &sheetName);
|
||
|
void setSheetType(SheetType type);
|
||
|
int sheetId() const;
|
||
|
|
||
|
Drawing *drawing() const;
|
||
|
};
|
||
|
|
||
|
QT_END_NAMESPACE_XLSX
|
||
|
#endif // XLSXABSTRACTSHEET_H
|