You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
900 B
40 lines
900 B
// xlsxdocpropsapp_p.h
|
|
|
|
#ifndef XLSXDOCPROPSAPP_H
|
|
#define XLSXDOCPROPSAPP_H
|
|
|
|
#include <QList>
|
|
#include <QStringList>
|
|
#include <QMap>
|
|
|
|
#include "xlsxglobal.h"
|
|
#include "xlsxabstractooxmlfile.h"
|
|
|
|
class QIODevice;
|
|
|
|
QT_BEGIN_NAMESPACE_XLSX
|
|
|
|
class DocPropsApp : public AbstractOOXmlFile
|
|
{
|
|
public:
|
|
DocPropsApp(CreateFlag flag);
|
|
|
|
void addPartTitle(const QString &title);
|
|
void addHeadingPair(const QString &name, int value);
|
|
|
|
bool setProperty(const QString &name, const QString &value);
|
|
QString property(const QString &name) const;
|
|
QStringList propertyNames() const;
|
|
|
|
void saveToXmlFile(QIODevice *device) const override;
|
|
bool loadFromXmlFile(QIODevice *device) override;
|
|
|
|
private:
|
|
QStringList m_titlesOfPartsList;
|
|
QList<std::pair<QString, int> > m_headingPairsList;
|
|
QMap<QString, QString> m_properties;
|
|
};
|
|
|
|
QT_END_NAMESPACE_XLSX
|
|
|
|
#endif // XLSXDOCPROPSAPP_H
|
|
|