xlsxdocument_p.h 948 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // xlsxdocument_p.h
  2. #ifndef XLSXDOCUMENT_P_H
  3. #define XLSXDOCUMENT_P_H
  4. #include <QtGlobal>
  5. #include <QMap>
  6. #include "xlsxglobal.h"
  7. #include "xlsxdocument.h"
  8. #include "xlsxworkbook.h"
  9. #include "xlsxcontenttypes_p.h"
  10. QT_BEGIN_NAMESPACE_XLSX
  11. class DocumentPrivate
  12. {
  13. Q_DECLARE_PUBLIC(Document)
  14. public:
  15. DocumentPrivate(Document *p);
  16. void init();
  17. bool loadPackage(QIODevice *device);
  18. bool savePackage(QIODevice *device) const;
  19. // copy style from one xlsx file to other
  20. static bool copyStyle(const QString &from, const QString &to);
  21. Document *q_ptr;
  22. const QString defaultPackageName; //default name when package name not specified
  23. QString packageName; //name of the .xlsx file
  24. QMap<QString, QString> documentProperties; //core, app and custom properties
  25. QSharedPointer<Workbook> workbook;
  26. QSharedPointer<ContentTypes> contentTypes;
  27. bool isLoad;
  28. };
  29. QT_END_NAMESPACE_XLSX
  30. #endif // XLSXDOCUMENT_P_H