KReport

KReportDetailSectionData.h
1/* This file is part of the KDE project
2 * Copyright (C) 2001-2007 by OpenMFG, LLC (info@openmfg.com)
3 * Copyright (C) 2007-2008 by Adam Pigg (adam@piggz.co.uk)
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef KREPORTDETAILSECTIONDATA_H
20#define KREPORTDETAILSECTIONDATA_H
21
22#include <QObject>
23
24#include "KReportDataSource.h"
25
27class KReportDetailGroupSectionData;
28class KReportDocument;
29
30class QDomElement;
31
32/**
33*/
34class KReportDetailSectionData : public QObject
35{
37public:
38 explicit KReportDetailSectionData(QObject *parent = nullptr);
39 KReportDetailSectionData(const QDomElement &elemSource, KReportDocument *report);
40 ~KReportDetailSectionData() override;
41
42 enum class PageBreak {
43 None,
44 AtEnd
45 };
46
47 QString name;
48 PageBreak pageBreak;
50
51 KReportSectionData *detailSection;
52
54
55 bool isValid() const {
56 return m_valid;
57 }
58
59private:
60 bool m_valid;
61};
62
63class KReportDetailGroupSectionData
64{
65public:
66 KReportDetailGroupSectionData();
67
68 enum class PageBreak {
69 None,
70 AfterGroupFooter,
71 BeforeGroupHeader
72 };
73
74 QString column;
75 PageBreak pagebreak;
76 Qt::SortOrder m_sort;
77
78 KReportSectionData *groupHeader;
79 KReportSectionData *groupFooter;
80};
81
82#endif
Top level report document definition. A KReportDocment defines the design of a document,...
KReportSectionData is used to store the information about a specific report section.
Q_OBJECTQ_OBJECT
QObject * parent() const const
SortOrder
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.