xlsxchartsheet.h 774 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. // xlsxchartsheet.h
  2. #ifndef XLSXCHARTSHEET_H
  3. #define XLSXCHARTSHEET_H
  4. #include <QtGlobal>
  5. #include <QStringList>
  6. #include <QSharedPointer>
  7. #include "xlsxabstractsheet.h"
  8. QT_BEGIN_NAMESPACE_XLSX
  9. class Workbook;
  10. class DocumentPrivate;
  11. class ChartsheetPrivate;
  12. class Chart;
  13. class Chartsheet : public AbstractSheet
  14. {
  15. Q_DECLARE_PRIVATE(Chartsheet)
  16. public:
  17. ~Chartsheet();
  18. Chart *chart();
  19. private:
  20. friend class DocumentPrivate;
  21. friend class Workbook;
  22. Chartsheet(const QString &sheetName, int sheetId, Workbook *book, CreateFlag flag);
  23. Chartsheet *copy(const QString &distName, int distId) const;
  24. void saveToXmlFile(QIODevice *device) const;
  25. bool loadFromXmlFile(QIODevice *device);
  26. };
  27. QT_END_NAMESPACE_XLSX
  28. #endif // XLSXCHARTSHEET_H