xlsxworkbook_p.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // xlsxworkbook_p.h
  2. #ifndef XLSXWORKBOOK_P_H
  3. #define XLSXWORKBOOK_P_H
  4. #include <QtGlobal>
  5. #include <QSharedPointer>
  6. #include <QPair>
  7. #include <QStringList>
  8. #include "xlsxworkbook.h"
  9. #include "xlsxabstractooxmlfile_p.h"
  10. #include "xlsxtheme_p.h"
  11. #include "xlsxsimpleooxmlfile_p.h"
  12. #include "xlsxrelationships_p.h"
  13. QT_BEGIN_NAMESPACE_XLSX
  14. struct XlsxDefineNameData
  15. {
  16. XlsxDefineNameData()
  17. :sheetId(-1)
  18. {}
  19. XlsxDefineNameData(const QString &name, const QString &formula, const QString &comment, int sheetId=-1)
  20. :name(name), formula(formula), comment(comment), sheetId(sheetId)
  21. {
  22. }
  23. QString name;
  24. QString formula;
  25. QString comment;
  26. //using internal sheetId, instead of the localSheetId(order in the workbook)
  27. int sheetId;
  28. };
  29. class WorkbookPrivate : public AbstractOOXmlFilePrivate
  30. {
  31. Q_DECLARE_PUBLIC(Workbook)
  32. public:
  33. WorkbookPrivate(Workbook *q, Workbook::CreateFlag flag);
  34. QSharedPointer<SharedStrings> sharedStrings;
  35. QList<QSharedPointer<AbstractSheet> > sheets;
  36. QList<QSharedPointer<SimpleOOXmlFile> > externalLinks;
  37. QStringList sheetNames;
  38. QSharedPointer<Styles> styles;
  39. QSharedPointer<Theme> theme;
  40. QList<QSharedPointer<MediaFile> > mediaFiles;
  41. QList<QSharedPointer<Chart> > chartFiles;
  42. QList<XlsxDefineNameData> definedNamesList;
  43. bool strings_to_numbers_enabled;
  44. bool strings_to_hyperlinks_enabled;
  45. bool html_to_richstring_enabled;
  46. bool date1904;
  47. QString defaultDateFormat;
  48. int x_window;
  49. int y_window;
  50. int window_width;
  51. int window_height;
  52. int activesheetIndex;
  53. int firstsheet;
  54. int table_count;
  55. //Used to generate new sheet name and id
  56. int last_worksheet_index;
  57. int last_chartsheet_index;
  58. int last_sheet_id;
  59. };
  60. QT_END_NAMESPACE_XLSX
  61. #endif // XLSXWORKBOOK_P_H