11 #ifndef KDREPORTSXMLPARSER_H
12 #define KDREPORTSXMLPARSER_H
30 #include <QtCore/QHash>
39 class XmlElementHandler;
40 class AbstractTableElement;
50 : m_textValues(textValues)
51 , m_imageValues(imageValues)
52 , m_xmlElementHandler(xmlHandler)
54 , m_errorDetails(details)
67 QString extractText(
const QDomElement &element, QString *
id,
const QAbstractItemModel *currentModel =
nullptr,
int currentRow = -1)
const;
68 QImage extractImage(
const QDomElement &element, QString *pId)
const;
69 bool testForErrorAndFillErrorDetails();
70 void error(
const QString &errorString);
72 QHash<QString, QString> m_textValues;
73 QHash<QString, QImage> m_imageValues;
bool processDocument(const QDomDocument &document, KDReports::ReportBuilder *builder)
XmlParser(const QHash< QString, QString > &textValues, const QHash< QString, QImage > &imageValues, XmlElementHandler *xmlHandler, KDReports::Report *report, ErrorDetails *details)