xlsxdocpropsapp_p.h 882 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // xlsxdocpropsapp_p.h
  2. #ifndef XLSXDOCPROPSAPP_H
  3. #define XLSXDOCPROPSAPP_H
  4. #include <QList>
  5. #include <QStringList>
  6. #include <QMap>
  7. #include "xlsxglobal.h"
  8. #include "xlsxabstractooxmlfile.h"
  9. class QIODevice;
  10. QT_BEGIN_NAMESPACE_XLSX
  11. class DocPropsApp : public AbstractOOXmlFile
  12. {
  13. public:
  14. DocPropsApp(CreateFlag flag);
  15. void addPartTitle(const QString &title);
  16. void addHeadingPair(const QString &name, int value);
  17. bool setProperty(const QString &name, const QString &value);
  18. QString property(const QString &name) const;
  19. QStringList propertyNames() const;
  20. void saveToXmlFile(QIODevice *device) const;
  21. bool loadFromXmlFile(QIODevice *device);
  22. private:
  23. QStringList m_titlesOfPartsList;
  24. QList<std::pair<QString, int> > m_headingPairsList;
  25. QMap<QString, QString> m_properties;
  26. };
  27. QT_END_NAMESPACE_XLSX
  28. #endif // XLSXDOCPROPSAPP_H