Refactoring: Rename OOXmlFile to AbstractOOXmlFile
This commit is contained in:
+3
-3
@@ -39,8 +39,8 @@ HEADERS += $$PWD/xlsxdocpropscore_p.h \
|
|||||||
$$PWD/xlsxnumformatparser_p.h \
|
$$PWD/xlsxnumformatparser_p.h \
|
||||||
$$PWD/xlsxdrawinganchor_p.h \
|
$$PWD/xlsxdrawinganchor_p.h \
|
||||||
$$PWD/xlsxmediafile_p.h \
|
$$PWD/xlsxmediafile_p.h \
|
||||||
$$PWD/xlsxooxmlfile.h \
|
$$PWD/xlsxabstractooxmlfile.h \
|
||||||
$$PWD/xlsxooxmlfile_p.h \
|
$$PWD/xlsxabstractooxmlfile_p.h \
|
||||||
$$PWD/xlsxchart.h \
|
$$PWD/xlsxchart.h \
|
||||||
$$PWD/xlsxchart_p.h \
|
$$PWD/xlsxchart_p.h \
|
||||||
$$PWD/xlsxexternallink_p.h
|
$$PWD/xlsxexternallink_p.h
|
||||||
@@ -70,7 +70,7 @@ SOURCES += $$PWD/xlsxdocpropscore.cpp \
|
|||||||
$$PWD/xlsxnumformatparser.cpp \
|
$$PWD/xlsxnumformatparser.cpp \
|
||||||
$$PWD/xlsxdrawinganchor.cpp \
|
$$PWD/xlsxdrawinganchor.cpp \
|
||||||
$$PWD/xlsxmediafile.cpp \
|
$$PWD/xlsxmediafile.cpp \
|
||||||
$$PWD/xlsxooxmlfile.cpp \
|
$$PWD/xlsxabstractooxmlfile.cpp \
|
||||||
$$PWD/xlsxchart.cpp \
|
$$PWD/xlsxchart.cpp \
|
||||||
$$PWD/xlsxexternallink.cpp
|
$$PWD/xlsxexternallink.cpp
|
||||||
|
|
||||||
|
|||||||
@@ -23,21 +23,21 @@
|
|||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include "xlsxooxmlfile.h"
|
#include "xlsxabstractooxmlfile.h"
|
||||||
#include "xlsxooxmlfile_p.h"
|
#include "xlsxabstractooxmlfile_p.h"
|
||||||
|
|
||||||
#include <QBuffer>
|
#include <QBuffer>
|
||||||
#include <QByteArray>
|
#include <QByteArray>
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE_XLSX
|
QT_BEGIN_NAMESPACE_XLSX
|
||||||
|
|
||||||
OOXmlFilePrivate::OOXmlFilePrivate(OOXmlFile *q)
|
AbstractOOXmlFilePrivate::AbstractOOXmlFilePrivate(AbstractOOXmlFile *q)
|
||||||
:relationships(new Relationships), q_ptr(q)
|
:relationships(new Relationships), q_ptr(q)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
OOXmlFilePrivate::~OOXmlFilePrivate()
|
AbstractOOXmlFilePrivate::~AbstractOOXmlFilePrivate()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -50,25 +50,25 @@ OOXmlFilePrivate::~OOXmlFilePrivate()
|
|||||||
* Base class of all the ooxml part file.
|
* Base class of all the ooxml part file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
OOXmlFile::OOXmlFile()
|
AbstractOOXmlFile::AbstractOOXmlFile()
|
||||||
:d_ptr(new OOXmlFilePrivate(this))
|
:d_ptr(new AbstractOOXmlFilePrivate(this))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
OOXmlFile::OOXmlFile(OOXmlFilePrivate *d)
|
AbstractOOXmlFile::AbstractOOXmlFile(AbstractOOXmlFilePrivate *d)
|
||||||
:d_ptr(d)
|
:d_ptr(d)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
OOXmlFile::~OOXmlFile()
|
AbstractOOXmlFile::~AbstractOOXmlFile()
|
||||||
{
|
{
|
||||||
if (d_ptr->relationships)
|
if (d_ptr->relationships)
|
||||||
delete d_ptr->relationships;
|
delete d_ptr->relationships;
|
||||||
delete d_ptr;
|
delete d_ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
QByteArray OOXmlFile::saveToXmlData() const
|
QByteArray AbstractOOXmlFile::saveToXmlData() const
|
||||||
{
|
{
|
||||||
QByteArray data;
|
QByteArray data;
|
||||||
QBuffer buffer(&data);
|
QBuffer buffer(&data);
|
||||||
@@ -78,7 +78,7 @@ QByteArray OOXmlFile::saveToXmlData() const
|
|||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool OOXmlFile::loadFromXmlData(const QByteArray &data)
|
bool AbstractOOXmlFile::loadFromXmlData(const QByteArray &data)
|
||||||
{
|
{
|
||||||
QBuffer buffer;
|
QBuffer buffer;
|
||||||
buffer.setData(data);
|
buffer.setData(data);
|
||||||
@@ -90,18 +90,18 @@ bool OOXmlFile::loadFromXmlData(const QByteArray &data)
|
|||||||
/*!
|
/*!
|
||||||
* \internal
|
* \internal
|
||||||
*/
|
*/
|
||||||
void OOXmlFile::setFilePath(const QString path)
|
void AbstractOOXmlFile::setFilePath(const QString path)
|
||||||
{
|
{
|
||||||
Q_D(OOXmlFile);
|
Q_D(AbstractOOXmlFile);
|
||||||
d->filePathInPackage = path;
|
d->filePathInPackage = path;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \internal
|
* \internal
|
||||||
*/
|
*/
|
||||||
QString OOXmlFile::filePath() const
|
QString AbstractOOXmlFile::filePath() const
|
||||||
{
|
{
|
||||||
Q_D(const OOXmlFile);
|
Q_D(const AbstractOOXmlFile);
|
||||||
return d->filePathInPackage;
|
return d->filePathInPackage;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -109,9 +109,9 @@ QString OOXmlFile::filePath() const
|
|||||||
/*!
|
/*!
|
||||||
* \internal
|
* \internal
|
||||||
*/
|
*/
|
||||||
Relationships *OOXmlFile::relationships() const
|
Relationships *AbstractOOXmlFile::relationships() const
|
||||||
{
|
{
|
||||||
Q_D(const OOXmlFile);
|
Q_D(const AbstractOOXmlFile);
|
||||||
return d->relationships;
|
return d->relationships;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -23,8 +23,8 @@
|
|||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifndef QXLSX_XLSXOOXMLFILE_H
|
#ifndef QXLSX_XLSXABSTRACTOOXMLFILE_H
|
||||||
#define QXLSX_XLSXOOXMLFILE_H
|
#define QXLSX_XLSXABSTRACTOOXMLFILE_H
|
||||||
|
|
||||||
#include "xlsxglobal.h"
|
#include "xlsxglobal.h"
|
||||||
|
|
||||||
@@ -33,13 +33,13 @@ class QByteArray;
|
|||||||
|
|
||||||
QT_BEGIN_NAMESPACE_XLSX
|
QT_BEGIN_NAMESPACE_XLSX
|
||||||
class Relationships;
|
class Relationships;
|
||||||
class OOXmlFilePrivate;
|
class AbstractOOXmlFilePrivate;
|
||||||
|
|
||||||
class Q_XLSX_EXPORT OOXmlFile
|
class Q_XLSX_EXPORT AbstractOOXmlFile
|
||||||
{
|
{
|
||||||
Q_DECLARE_PRIVATE(OOXmlFile)
|
Q_DECLARE_PRIVATE(AbstractOOXmlFile)
|
||||||
public:
|
public:
|
||||||
virtual ~OOXmlFile();
|
virtual ~AbstractOOXmlFile();
|
||||||
|
|
||||||
virtual void saveToXmlFile(QIODevice *device) const = 0;
|
virtual void saveToXmlFile(QIODevice *device) const = 0;
|
||||||
virtual bool loadFromXmlFile(QIODevice *device) = 0;
|
virtual bool loadFromXmlFile(QIODevice *device) = 0;
|
||||||
@@ -52,12 +52,12 @@ public:
|
|||||||
void setFilePath(const QString path);
|
void setFilePath(const QString path);
|
||||||
QString filePath() const;
|
QString filePath() const;
|
||||||
protected:
|
protected:
|
||||||
OOXmlFile();
|
AbstractOOXmlFile();
|
||||||
OOXmlFile(OOXmlFilePrivate *d);
|
AbstractOOXmlFile(AbstractOOXmlFilePrivate *d);
|
||||||
|
|
||||||
OOXmlFilePrivate *d_ptr;
|
AbstractOOXmlFilePrivate *d_ptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
QT_END_NAMESPACE_XLSX
|
QT_END_NAMESPACE_XLSX
|
||||||
|
|
||||||
#endif // QXLSX_XLSXOOXMLFILE_H
|
#endif // QXLSX_XLSXABSTRACTOOXMLFILE_H
|
||||||
@@ -37,25 +37,25 @@
|
|||||||
// We mean it.
|
// We mean it.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "xlsxooxmlfile.h"
|
#include "xlsxabstractooxmlfile.h"
|
||||||
#include "xlsxrelationships_p.h"
|
#include "xlsxrelationships_p.h"
|
||||||
|
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE_XLSX
|
QT_BEGIN_NAMESPACE_XLSX
|
||||||
|
|
||||||
class XLSX_AUTOTEST_EXPORT OOXmlFilePrivate
|
class XLSX_AUTOTEST_EXPORT AbstractOOXmlFilePrivate
|
||||||
{
|
{
|
||||||
Q_DECLARE_PUBLIC(OOXmlFile)
|
Q_DECLARE_PUBLIC(AbstractOOXmlFile)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
OOXmlFilePrivate(OOXmlFile *q);
|
AbstractOOXmlFilePrivate(AbstractOOXmlFile *q);
|
||||||
virtual ~OOXmlFilePrivate();
|
virtual ~AbstractOOXmlFilePrivate();
|
||||||
|
|
||||||
QString filePathInPackage;//such as "xl/worksheets/sheet1.xml"
|
QString filePathInPackage;//such as "xl/worksheets/sheet1.xml"
|
||||||
//used when load the .xlsx file
|
//used when load the .xlsx file
|
||||||
Relationships *relationships;
|
Relationships *relationships;
|
||||||
OOXmlFile *q_ptr;
|
AbstractOOXmlFile *q_ptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
QT_END_NAMESPACE_XLSX
|
QT_END_NAMESPACE_XLSX
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
QT_BEGIN_NAMESPACE_XLSX
|
QT_BEGIN_NAMESPACE_XLSX
|
||||||
|
|
||||||
AbstractSheetPrivate::AbstractSheetPrivate(AbstractSheet *p)
|
AbstractSheetPrivate::AbstractSheetPrivate(AbstractSheet *p)
|
||||||
: OOXmlFilePrivate(p)
|
: AbstractOOXmlFilePrivate(p)
|
||||||
{
|
{
|
||||||
hidden = false;
|
hidden = false;
|
||||||
type = AbstractSheet::ST_WorkSheet;
|
type = AbstractSheet::ST_WorkSheet;
|
||||||
@@ -58,7 +58,7 @@ AbstractSheetPrivate::~AbstractSheetPrivate()
|
|||||||
* \internal
|
* \internal
|
||||||
*/
|
*/
|
||||||
AbstractSheet::AbstractSheet(const QString &name, int id, Workbook *workbook, AbstractSheetPrivate *d) :
|
AbstractSheet::AbstractSheet(const QString &name, int id, Workbook *workbook, AbstractSheetPrivate *d) :
|
||||||
OOXmlFile(d)
|
AbstractOOXmlFile(d)
|
||||||
{
|
{
|
||||||
d_func()->name = name;
|
d_func()->name = name;
|
||||||
d_func()->id = id;
|
d_func()->id = id;
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
#ifndef XLSXABSTRACTSHEET_H
|
#ifndef XLSXABSTRACTSHEET_H
|
||||||
#define XLSXABSTRACTSHEET_H
|
#define XLSXABSTRACTSHEET_H
|
||||||
|
|
||||||
#include "xlsxooxmlfile.h"
|
#include "xlsxabstractooxmlfile.h"
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
#include <QSharedPointer>
|
#include <QSharedPointer>
|
||||||
|
|
||||||
@@ -33,7 +33,7 @@ QT_BEGIN_NAMESPACE_XLSX
|
|||||||
class Workbook;
|
class Workbook;
|
||||||
class Drawing;
|
class Drawing;
|
||||||
class AbstractSheetPrivate;
|
class AbstractSheetPrivate;
|
||||||
class Q_XLSX_EXPORT AbstractSheet : public OOXmlFile
|
class Q_XLSX_EXPORT AbstractSheet : public AbstractOOXmlFile
|
||||||
{
|
{
|
||||||
Q_DECLARE_PRIVATE(AbstractSheet)
|
Q_DECLARE_PRIVATE(AbstractSheet)
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -38,13 +38,13 @@
|
|||||||
|
|
||||||
#include "xlsxglobal.h"
|
#include "xlsxglobal.h"
|
||||||
#include "xlsxabstractsheet.h"
|
#include "xlsxabstractsheet.h"
|
||||||
#include "xlsxooxmlfile_p.h"
|
#include "xlsxabstractooxmlfile_p.h"
|
||||||
|
|
||||||
#include <QSharedPointer>
|
#include <QSharedPointer>
|
||||||
|
|
||||||
namespace QXlsx {
|
namespace QXlsx {
|
||||||
|
|
||||||
class XLSX_AUTOTEST_EXPORT AbstractSheetPrivate : public OOXmlFilePrivate
|
class XLSX_AUTOTEST_EXPORT AbstractSheetPrivate : public AbstractOOXmlFilePrivate
|
||||||
{
|
{
|
||||||
Q_DECLARE_PUBLIC(AbstractSheet)
|
Q_DECLARE_PUBLIC(AbstractSheet)
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
QT_BEGIN_NAMESPACE_XLSX
|
QT_BEGIN_NAMESPACE_XLSX
|
||||||
|
|
||||||
ChartPrivate::ChartPrivate(Chart *q)
|
ChartPrivate::ChartPrivate(Chart *q)
|
||||||
:OOXmlFilePrivate(q), chartType(static_cast<Chart::ChartType>(0))
|
:AbstractOOXmlFilePrivate(q), chartType(static_cast<Chart::ChartType>(0))
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -78,7 +78,7 @@ ChartPrivate::~ChartPrivate()
|
|||||||
* \internal
|
* \internal
|
||||||
*/
|
*/
|
||||||
Chart::Chart(Worksheet *parent)
|
Chart::Chart(Worksheet *parent)
|
||||||
:OOXmlFile(new ChartPrivate(this))
|
:AbstractOOXmlFile(new ChartPrivate(this))
|
||||||
{
|
{
|
||||||
d_func()->sheet = parent;
|
d_func()->sheet = parent;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
#ifndef QXLSX_CHART_H
|
#ifndef QXLSX_CHART_H
|
||||||
#define QXLSX_CHART_H
|
#define QXLSX_CHART_H
|
||||||
|
|
||||||
#include "xlsxooxmlfile.h"
|
#include "xlsxabstractooxmlfile.h"
|
||||||
|
|
||||||
#include <QSharedPointer>
|
#include <QSharedPointer>
|
||||||
|
|
||||||
@@ -40,7 +40,7 @@ class ChartPrivate;
|
|||||||
class CellRange;
|
class CellRange;
|
||||||
class DrawingAnchor;
|
class DrawingAnchor;
|
||||||
|
|
||||||
class Q_XLSX_EXPORT Chart : public OOXmlFile
|
class Q_XLSX_EXPORT Chart : public AbstractOOXmlFile
|
||||||
{
|
{
|
||||||
Q_DECLARE_PRIVATE(Chart)
|
Q_DECLARE_PRIVATE(Chart)
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
// We mean it.
|
// We mean it.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "xlsxooxmlfile_p.h"
|
#include "xlsxabstractooxmlfile_p.h"
|
||||||
#include "xlsxchart.h"
|
#include "xlsxchart.h"
|
||||||
|
|
||||||
#include <QSharedPointer>
|
#include <QSharedPointer>
|
||||||
@@ -87,7 +87,7 @@ public:
|
|||||||
int crossAx;
|
int crossAx;
|
||||||
};
|
};
|
||||||
|
|
||||||
class ChartPrivate : public OOXmlFilePrivate
|
class ChartPrivate : public AbstractOOXmlFilePrivate
|
||||||
{
|
{
|
||||||
Q_DECLARE_PUBLIC(Chart)
|
Q_DECLARE_PUBLIC(Chart)
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
// We mean it.
|
// We mean it.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "xlsxooxmlfile.h"
|
#include "xlsxabstractooxmlfile.h"
|
||||||
|
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
@@ -46,7 +46,7 @@ class QIODevice;
|
|||||||
|
|
||||||
namespace QXlsx {
|
namespace QXlsx {
|
||||||
|
|
||||||
class ContentTypes : public OOXmlFile
|
class ContentTypes : public AbstractOOXmlFile
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ContentTypes();
|
ContentTypes();
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#include "xlsxglobal.h"
|
#include "xlsxglobal.h"
|
||||||
#include "xlsxooxmlfile.h"
|
#include "xlsxabstractooxmlfile.h"
|
||||||
#include <QList>
|
#include <QList>
|
||||||
#include <QPair>
|
#include <QPair>
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
@@ -47,7 +47,7 @@ class QIODevice;
|
|||||||
|
|
||||||
namespace QXlsx {
|
namespace QXlsx {
|
||||||
|
|
||||||
class XLSX_AUTOTEST_EXPORT DocPropsApp : public OOXmlFile
|
class XLSX_AUTOTEST_EXPORT DocPropsApp : public AbstractOOXmlFile
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DocPropsApp();
|
DocPropsApp();
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#include "xlsxglobal.h"
|
#include "xlsxglobal.h"
|
||||||
#include "xlsxooxmlfile.h"
|
#include "xlsxabstractooxmlfile.h"
|
||||||
#include <QMap>
|
#include <QMap>
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
|
|
||||||
@@ -45,7 +45,7 @@ class QIODevice;
|
|||||||
|
|
||||||
namespace QXlsx {
|
namespace QXlsx {
|
||||||
|
|
||||||
class XLSX_AUTOTEST_EXPORT DocPropsCore : public OOXmlFile
|
class XLSX_AUTOTEST_EXPORT DocPropsCore : public AbstractOOXmlFile
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit DocPropsCore();
|
explicit DocPropsCore();
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#include "xlsxrelationships_p.h"
|
#include "xlsxrelationships_p.h"
|
||||||
#include "xlsxooxmlfile.h"
|
#include "xlsxabstractooxmlfile.h"
|
||||||
|
|
||||||
#include <QList>
|
#include <QList>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
@@ -54,7 +54,7 @@ class Workbook;
|
|||||||
class Worksheet;
|
class Worksheet;
|
||||||
class MediaFile;
|
class MediaFile;
|
||||||
|
|
||||||
class Drawing : public OOXmlFile
|
class Drawing : public AbstractOOXmlFile
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Drawing(Worksheet *workbook);
|
Drawing(Worksheet *workbook);
|
||||||
|
|||||||
@@ -35,14 +35,14 @@
|
|||||||
//
|
//
|
||||||
// We mean it.
|
// We mean it.
|
||||||
//
|
//
|
||||||
#include "xlsxooxmlfile.h"
|
#include "xlsxabstractooxmlfile.h"
|
||||||
|
|
||||||
#include <QString>
|
#include <QString>
|
||||||
class QIODevice;
|
class QIODevice;
|
||||||
|
|
||||||
namespace QXlsx {
|
namespace QXlsx {
|
||||||
|
|
||||||
class ExternalLinK : public OOXmlFile
|
class ExternalLinK : public AbstractOOXmlFile
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ExternalLinK();
|
ExternalLinK();
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
|
|
||||||
#include "xlsxglobal.h"
|
#include "xlsxglobal.h"
|
||||||
#include "xlsxrichstring.h"
|
#include "xlsxrichstring.h"
|
||||||
#include "xlsxooxmlfile.h"
|
#include "xlsxabstractooxmlfile.h"
|
||||||
#include <QHash>
|
#include <QHash>
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
#include <QSharedPointer>
|
#include <QSharedPointer>
|
||||||
@@ -61,7 +61,7 @@ public:
|
|||||||
int count;
|
int count;
|
||||||
};
|
};
|
||||||
|
|
||||||
class XLSX_AUTOTEST_EXPORT SharedStrings : public OOXmlFile
|
class XLSX_AUTOTEST_EXPORT SharedStrings : public AbstractOOXmlFile
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SharedStrings();
|
SharedStrings();
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
|
|
||||||
#include "xlsxglobal.h"
|
#include "xlsxglobal.h"
|
||||||
#include "xlsxformat.h"
|
#include "xlsxformat.h"
|
||||||
#include "xlsxooxmlfile.h"
|
#include "xlsxabstractooxmlfile.h"
|
||||||
#include <QSharedPointer>
|
#include <QSharedPointer>
|
||||||
#include <QHash>
|
#include <QHash>
|
||||||
#include <QList>
|
#include <QList>
|
||||||
@@ -64,7 +64,7 @@ struct XlsxFormatNumberData
|
|||||||
QString formatString;
|
QString formatString;
|
||||||
};
|
};
|
||||||
|
|
||||||
class XLSX_AUTOTEST_EXPORT Styles : public OOXmlFile
|
class XLSX_AUTOTEST_EXPORT Styles : public AbstractOOXmlFile
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Styles(bool createEmpty=false);
|
Styles(bool createEmpty=false);
|
||||||
|
|||||||
@@ -35,14 +35,14 @@
|
|||||||
//
|
//
|
||||||
// We mean it.
|
// We mean it.
|
||||||
//
|
//
|
||||||
#include "xlsxooxmlfile.h"
|
#include "xlsxabstractooxmlfile.h"
|
||||||
|
|
||||||
#include <QString>
|
#include <QString>
|
||||||
class QIODevice;
|
class QIODevice;
|
||||||
|
|
||||||
namespace QXlsx {
|
namespace QXlsx {
|
||||||
|
|
||||||
class Theme : public OOXmlFile
|
class Theme : public AbstractOOXmlFile
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Theme();
|
Theme();
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
QT_BEGIN_NAMESPACE_XLSX
|
QT_BEGIN_NAMESPACE_XLSX
|
||||||
|
|
||||||
WorkbookPrivate::WorkbookPrivate(Workbook *q) :
|
WorkbookPrivate::WorkbookPrivate(Workbook *q) :
|
||||||
OOXmlFilePrivate(q)
|
AbstractOOXmlFilePrivate(q)
|
||||||
{
|
{
|
||||||
sharedStrings = QSharedPointer<SharedStrings> (new SharedStrings);
|
sharedStrings = QSharedPointer<SharedStrings> (new SharedStrings);
|
||||||
styles = QSharedPointer<Styles>(new Styles);
|
styles = QSharedPointer<Styles>(new Styles);
|
||||||
@@ -66,7 +66,7 @@ WorkbookPrivate::WorkbookPrivate(Workbook *q) :
|
|||||||
}
|
}
|
||||||
|
|
||||||
Workbook::Workbook()
|
Workbook::Workbook()
|
||||||
: OOXmlFile(new WorkbookPrivate(this))
|
: AbstractOOXmlFile(new WorkbookPrivate(this))
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
#define XLSXWORKBOOK_H
|
#define XLSXWORKBOOK_H
|
||||||
|
|
||||||
#include "xlsxglobal.h"
|
#include "xlsxglobal.h"
|
||||||
#include "xlsxooxmlfile.h"
|
#include "xlsxabstractooxmlfile.h"
|
||||||
#include "xlsxabstractsheet.h"
|
#include "xlsxabstractsheet.h"
|
||||||
#include <QList>
|
#include <QList>
|
||||||
#include <QImage>
|
#include <QImage>
|
||||||
@@ -47,7 +47,7 @@ class MediaFile;
|
|||||||
class Chart;
|
class Chart;
|
||||||
|
|
||||||
class WorkbookPrivate;
|
class WorkbookPrivate;
|
||||||
class Q_XLSX_EXPORT Workbook : public OOXmlFile
|
class Q_XLSX_EXPORT Workbook : public AbstractOOXmlFile
|
||||||
{
|
{
|
||||||
Q_DECLARE_PRIVATE(Workbook)
|
Q_DECLARE_PRIVATE(Workbook)
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#include "xlsxworkbook.h"
|
#include "xlsxworkbook.h"
|
||||||
#include "xlsxooxmlfile_p.h"
|
#include "xlsxabstractooxmlfile_p.h"
|
||||||
#include "xlsxtheme_p.h"
|
#include "xlsxtheme_p.h"
|
||||||
#include "xlsxexternallink_p.h"
|
#include "xlsxexternallink_p.h"
|
||||||
#include "xlsxrelationships_p.h"
|
#include "xlsxrelationships_p.h"
|
||||||
@@ -65,7 +65,7 @@ struct XlsxDefineNameData
|
|||||||
int sheetId;
|
int sheetId;
|
||||||
};
|
};
|
||||||
|
|
||||||
class WorkbookPrivate : public OOXmlFilePrivate
|
class WorkbookPrivate : public AbstractOOXmlFilePrivate
|
||||||
{
|
{
|
||||||
Q_DECLARE_PUBLIC(Workbook)
|
Q_DECLARE_PUBLIC(Workbook)
|
||||||
public:
|
public:
|
||||||
|
|||||||
Reference in New Issue
Block a user