KD Reports API Documentation  2.2
KDReportsXmlElementHandler.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** This file is part of the KD Reports library.
4 **
5 ** SPDX-FileCopyrightText: 2007 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6 **
7 ** SPDX-License-Identifier: MIT
8 **
9 ****************************************************************************/
10 
13 #ifdef Q_CC_MSVC
14 // Q_UNUSED requires the type to be known in msvc
16 #include "KDReportsCell.h"
17 #include "KDReportsChartElement.h"
18 #include "KDReportsHLineElement.h"
19 #include "KDReportsHeader.h"
20 #include "KDReportsHtmlElement.h"
21 #include "KDReportsImageElement.h"
22 #include "KDReportsReport.h"
23 #include "KDReportsTableElement.h"
24 #include "KDReportsTextElement.h"
25 #endif
26 #include <QDomElement>
27 
28 class KDReports::XmlElementHandlerPrivate
29 {
30 public:
31  KDReports::ErrorDetails m_details;
32 };
33 
35  : d(new XmlElementHandlerPrivate)
36 {
37 }
38 
40 
41 bool KDReports::XmlElementHandler::startReport(KDReports::Report &report, QDomElement &xmlElement)
42 {
43  Q_UNUSED(report);
44  Q_UNUSED(xmlElement);
45  return true;
46 }
47 
48 bool KDReports::XmlElementHandler::startHeader(KDReports::Header &header, QDomElement &xmlElement)
49 {
50  Q_UNUSED(header);
51  Q_UNUSED(xmlElement);
52  return true;
53 }
54 
55 void KDReports::XmlElementHandler::endHeader(KDReports::Header &header, const QDomElement &xmlElement)
56 {
57  Q_UNUSED(header);
58  Q_UNUSED(xmlElement);
59 }
60 
61 bool KDReports::XmlElementHandler::startFooter(KDReports::Footer &footer, QDomElement &xmlElement)
62 {
63  Q_UNUSED(footer);
64  Q_UNUSED(xmlElement);
65  return true;
66 }
67 
68 void KDReports::XmlElementHandler::endFooter(KDReports::Footer &footer, const QDomElement &xmlElement)
69 {
70  Q_UNUSED(footer);
71  Q_UNUSED(xmlElement);
72 }
73 
74 bool KDReports::XmlElementHandler::textElement(KDReports::TextElement &textElement, QDomElement &xmlElement)
75 {
76  Q_UNUSED(textElement);
77  Q_UNUSED(xmlElement);
78  return true;
79 }
80 
81 bool KDReports::XmlElementHandler::htmlElement(KDReports::HtmlElement &htmlElement, QDomElement &xmlElement)
82 {
83  Q_UNUSED(htmlElement);
84  Q_UNUSED(xmlElement);
85  return true;
86 }
87 
89 {
90  Q_UNUSED(tableElement);
91  Q_UNUSED(xmlElement);
92  return true;
93 }
94 
95 bool KDReports::XmlElementHandler::endTableElement(KDReports::TableElement &tableElement, QDomElement &xmlElement)
96 {
97  Q_UNUSED(tableElement);
98  Q_UNUSED(xmlElement);
99  return true;
100 }
101 
102 bool KDReports::XmlElementHandler::startCell(KDReports::Cell &cell, QDomElement &xmlElement)
103 {
104  Q_UNUSED(cell);
105  Q_UNUSED(xmlElement);
106  return true;
107 }
108 
109 bool KDReports::XmlElementHandler::endCell(KDReports::Cell &cell, QDomElement &xmlElement)
110 {
111  Q_UNUSED(cell);
112  Q_UNUSED(xmlElement);
113  return true;
114 }
115 
117 {
118  Q_UNUSED(tableElement);
119  Q_UNUSED(xmlElement);
120  return true;
121 }
122 
123 bool KDReports::XmlElementHandler::chartElement(KDReports::ChartElement &chartElement, QDomElement &xmlElement)
124 {
125  Q_UNUSED(chartElement);
126  Q_UNUSED(xmlElement);
127  return true;
128 }
129 
130 bool KDReports::XmlElementHandler::imageElement(KDReports::ImageElement &imageElement, QDomElement &xmlElement)
131 {
132  Q_UNUSED(imageElement);
133  Q_UNUSED(xmlElement);
134  return true;
135 }
136 
137 bool KDReports::XmlElementHandler::pageBreak(QDomElement &xmlElement)
138 {
139  Q_UNUSED(xmlElement);
140  return true;
141 }
142 
143 bool KDReports::XmlElementHandler::hLineElement(KDReports::HLineElement &hLineElement, QDomElement &xmlElement)
144 {
145  Q_UNUSED(hLineElement);
146  Q_UNUSED(xmlElement);
147  return true;
148 }
149 
150 void KDReports::XmlElementHandler::customElement(const QDomElement &xmlElement)
151 {
152  Q_UNUSED(xmlElement);
153 }
154 
155 void KDReports::XmlElementHandler::endReport(KDReports::Report &report, const QDomElement &xmlElement)
156 {
157  Q_UNUSED(report);
158  Q_UNUSED(xmlElement);
159 }
160 
161 bool KDReports::XmlElementHandler::vspace(int &size, QDomElement &xmlElement)
162 {
163  Q_UNUSED(xmlElement);
164  Q_UNUSED(size);
165  return true;
166 }
167 
169 {
170  Q_UNUSED(type);
171  Q_UNUSED(xmlElement);
172  return true;
173 }
174 
175 bool KDReports::XmlElementHandler::paragraphMargin(qreal &left, qreal &top, qreal &right, qreal &bottom, const QDomElement &xmlElement)
176 {
177  Q_UNUSED(left);
178  Q_UNUSED(top);
179  Q_UNUSED(right);
180  Q_UNUSED(bottom);
181  Q_UNUSED(xmlElement)
182  return true;
183 }
184 
185 bool KDReports::XmlElementHandler::tabs(QList<QTextOption::Tab> &tabs, const QDomElement &xmlElement)
186 {
187  Q_UNUSED(tabs);
188  Q_UNUSED(xmlElement);
189  return true;
190 }
191 
193 {
194  d->m_details = details;
195 }
196 
198 {
199  return d->m_details;
200 }
201 
202 void KDReports::XmlElementHandler::virtual_hook(int id, void *data)
203 {
204  Q_UNUSED(id)
205  Q_UNUSED(data)
206 }
virtual bool vspace(int &size, QDomElement &xmlElement)
virtual bool variable(KDReports::VariableType &type, QDomElement &xmlElement)
virtual bool paragraphMargin(qreal &left, qreal &top, qreal &right, qreal &bottom, const QDomElement &xmlElement)
virtual void endReport(KDReports::Report &report, const QDomElement &xmlElement)
virtual bool startCell(KDReports::Cell &cell, QDomElement &xmlElement)
virtual bool pageBreak(QDomElement &xmlElement)
virtual void endHeader(KDReports::Header &header, const QDomElement &xmlElement)
virtual bool startHeader(KDReports::Header &header, QDomElement &xmlElement)
virtual bool hLineElement(KDReports::HLineElement &hLineElement, QDomElement &xmlElement)
virtual void customElement(const QDomElement &xmlElement)
virtual bool chartElement(KDReports::ChartElement &chartElement, QDomElement &xmlElement)
virtual bool endTableElement(KDReports::TableElement &tableElement, QDomElement &xmlElement)
virtual bool imageElement(KDReports::ImageElement &imageElement, QDomElement &xmlElement)
virtual bool startTableElement(KDReports::TableElement &tableElement, QDomElement &xmlElement)
virtual void endFooter(KDReports::Footer &footer, const QDomElement &xmlElement)
virtual bool tabs(QList< QTextOption::Tab > &tabs, const QDomElement &xmlElement)
virtual bool startFooter(KDReports::Footer &footer, QDomElement &xmlElement)
void setErrorDetails(const KDReports::ErrorDetails &details)
virtual bool textElement(KDReports::TextElement &textElement, QDomElement &xmlElement)
virtual bool startReport(KDReports::Report &report, QDomElement &xmlElement)
virtual bool autoTableElement(KDReports::AutoTableElement &tableElement, QDomElement &xmlElement)
virtual bool htmlElement(KDReports::HtmlElement &htmlElement, QDomElement &xmlElement)
virtual bool endCell(KDReports::Cell &cell, QDomElement &xmlElement)

© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-reports/
Generated by doxygen 1.9.1