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