Changeset View
Changeset View
Standalone View
Standalone View
src/common/KReportDetailSectionData.h
Show All 15 Lines | |||||
16 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | 16 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
17 | */ | 17 | */ | ||
18 | 18 | | |||
19 | #ifndef KREPORTDETAILSECTIONDATA_H | 19 | #ifndef KREPORTDETAILSECTIONDATA_H | ||
20 | #define KREPORTDETAILSECTIONDATA_H | 20 | #define KREPORTDETAILSECTIONDATA_H | ||
21 | 21 | | |||
22 | #include <QObject> | 22 | #include <QObject> | ||
23 | 23 | | |||
24 | #include "KReportData.h" | 24 | #include "KReportDataSource.h" | ||
25 | 25 | | |||
26 | class KReportSectionData; | 26 | class KReportSectionData; | ||
27 | class KReportDetailGroupSectionData; | 27 | class KReportDetailGroupSectionData; | ||
28 | class KReportDocument; | 28 | class KReportDocument; | ||
29 | 29 | | |||
30 | class QDomElement; | 30 | class QDomElement; | ||
31 | 31 | | |||
32 | /** | 32 | /** | ||
33 | */ | 33 | */ | ||
34 | class KReportDetailSectionData : public QObject | 34 | class KReportDetailSectionData : public QObject | ||
35 | { | 35 | { | ||
36 | Q_OBJECT | 36 | Q_OBJECT | ||
37 | public: | 37 | public: | ||
38 | explicit KReportDetailSectionData(QObject *parent = 0); | 38 | explicit KReportDetailSectionData(QObject *parent = 0); | ||
39 | KReportDetailSectionData(const QDomElement &elemSource, KReportDocument *report); | 39 | KReportDetailSectionData(const QDomElement &elemSource, KReportDocument *report); | ||
40 | ~KReportDetailSectionData(); | 40 | ~KReportDetailSectionData(); | ||
41 | 41 | | |||
42 | enum PageBreak { | 42 | enum PageBreak { | ||
43 | BreakNone = 0, | 43 | BreakNone = 0, | ||
44 | BreakAtEnd = 1 | 44 | BreakAtEnd = 1 | ||
45 | }; | 45 | }; | ||
46 | 46 | | |||
47 | QString m_name; | 47 | QString m_name; | ||
48 | int m_pageBreak; | 48 | int m_pageBreak; | ||
49 | QList<KReportData::SortedField> m_sortedFields; | 49 | QList<KReportDataSource::SortedField> m_sortedFields; | ||
50 | 50 | | |||
51 | KReportSectionData * m_detailSection; | 51 | KReportSectionData * m_detailSection; | ||
52 | 52 | | |||
53 | QList<KReportDetailGroupSectionData*> m_groupList; | 53 | QList<KReportDetailGroupSectionData*> m_groupList; | ||
54 | 54 | | |||
55 | bool isValid() const { | 55 | bool isValid() const { | ||
56 | return m_valid; | 56 | return m_valid; | ||
57 | } | 57 | } | ||
Show All 26 Lines |