xlsxdocpropscore_p.h 687 B

12345678910111213141516171819202122232425262728293031323334
  1. // xlsxdocpropscore_p.h
  2. #ifndef XLSXDOCPROPSCORE_H
  3. #define XLSXDOCPROPSCORE_H
  4. #include "xlsxglobal.h"
  5. #include "xlsxabstractooxmlfile.h"
  6. #include <QMap>
  7. #include <QStringList>
  8. class QIODevice;
  9. QT_BEGIN_NAMESPACE_XLSX
  10. class DocPropsCore : public AbstractOOXmlFile
  11. {
  12. public:
  13. explicit DocPropsCore(CreateFlag flag);
  14. bool setProperty(const QString &name, const QString &value);
  15. QString property(const QString &name) const;
  16. QStringList propertyNames() const;
  17. void saveToXmlFile(QIODevice *device) const;
  18. bool loadFromXmlFile(QIODevice *device);
  19. private:
  20. QMap<QString, QString> m_properties;
  21. };
  22. QT_END_NAMESPACE_XLSX
  23. #endif // XLSXDOCPROPSCORE_H