Changeset View
Changeset View
Standalone View
Standalone View
src/common/KReportDocument.cpp
Show All 13 Lines | |||||
14 | * You should have received a copy of the GNU Lesser General Public | 14 | * You should have received a copy of the GNU Lesser General Public | ||
15 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | 15 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | 16 | */ | ||
17 | 17 | | |||
18 | #include "KReportDocument.h" | 18 | #include "KReportDocument.h" | ||
19 | #include "KReportUnit.h" | 19 | #include "KReportUnit.h" | ||
20 | #include "KReportDetailSectionData.h" | 20 | #include "KReportDetailSectionData.h" | ||
21 | #include "KReportItemBase.h" | 21 | #include "KReportItemBase.h" | ||
22 | #include "KReportDpi.h" | 22 | #include "KReportUtils_p.h" | ||
23 | #include "KReportPageSize.h" | 23 | #include "KReportPageSize.h" | ||
24 | 24 | | |||
25 | #include <QDomElement> | 25 | #include <QDomElement> | ||
26 | #include <QApplication> | 26 | #include <QApplication> | ||
27 | #include "kreport_debug.h" | 27 | #include "kreport_debug.h" | ||
28 | 28 | | |||
29 | class Q_DECL_HIDDEN KReportDocument::Private | 29 | class Q_DECL_HIDDEN KReportDocument::Private | ||
30 | { | 30 | { | ||
Show All 37 Lines | 66 | { | |||
68 | init(); | 68 | init(); | ||
69 | //kreportDebug(); | 69 | //kreportDebug(); | ||
70 | if (elemSource.tagName() != QLatin1String("report:content")) { | 70 | if (elemSource.tagName() != QLatin1String("report:content")) { | ||
71 | kreportWarning() << "QDomElement is not <report:content> tag" | 71 | kreportWarning() << "QDomElement is not <report:content> tag" | ||
72 | << elemSource.text(); | 72 | << elemSource.text(); | ||
73 | return; | 73 | return; | ||
74 | } | 74 | } | ||
75 | 75 | | |||
76 | const qreal dpiX = KReportDpi::dpiX(); | 76 | const qreal dpiX = KReportPrivate::dpiX(); | ||
77 | const qreal dpiY = KReportDpi::dpiY(); | 77 | const qreal dpiY = KReportPrivate::dpiY(); | ||
78 | 78 | | |||
79 | 79 | | |||
80 | QDomNodeList sections = elemSource.childNodes(); | 80 | QDomNodeList sections = elemSource.childNodes(); | ||
81 | for (int nodeCounter = 0; nodeCounter < sections.count(); nodeCounter++) { | 81 | for (int nodeCounter = 0; nodeCounter < sections.count(); nodeCounter++) { | ||
82 | QDomElement elemThis = sections.item(nodeCounter).toElement(); | 82 | QDomElement elemThis = sections.item(nodeCounter).toElement(); | ||
83 | if (elemThis.tagName() == QLatin1String("report:title")) { | 83 | if (elemThis.tagName() == QLatin1String("report:title")) { | ||
84 | d->title = elemThis.text(); | 84 | d->title = elemThis.text(); | ||
85 | #ifdef KREPORT_SCRIPTING | 85 | #ifdef KREPORT_SCRIPTING | ||
▲ Show 20 Lines • Show All 303 Lines • Show Last 20 Lines |