Changeset View
Changeset View
Standalone View
Standalone View
src/common/KReportDocument.h
Show All 38 Lines | |||||
39 | { | 39 | { | ||
40 | Q_OBJECT | 40 | Q_OBJECT | ||
41 | 41 | | |||
42 | public: | 42 | public: | ||
43 | explicit KReportDocument(const QDomElement & elemSource, QObject *parent = 0); | 43 | explicit KReportDocument(const QDomElement & elemSource, QObject *parent = 0); | ||
44 | explicit KReportDocument(QObject *parent = 0); | 44 | explicit KReportDocument(QObject *parent = 0); | ||
45 | ~KReportDocument(); | 45 | ~KReportDocument(); | ||
46 | 46 | | |||
47 | bool isValid() const { | 47 | bool isValid() const; | ||
48 | return m_valid; | | |||
49 | } | | |||
50 | 48 | | |||
51 | /** | 49 | /** | ||
52 | \return a list of all objects in the report | 50 | \return a list of all objects in the report | ||
53 | */ | 51 | */ | ||
54 | QList<KReportItemBase*> objects() const; | 52 | QList<KReportItemBase*> objects() const; | ||
55 | 53 | | |||
56 | /** | 54 | /** | ||
57 | \return a report object given its name | 55 | \return a report object given its name | ||
Show All 10 Lines | |||||
68 | */ | 66 | */ | ||
69 | KReportSectionData* section(KReportSectionData::Section) const; | 67 | KReportSectionData* section(KReportSectionData::Section) const; | ||
70 | 68 | | |||
71 | /** | 69 | /** | ||
72 | \return a sectiondata given its name | 70 | \return a sectiondata given its name | ||
73 | */ | 71 | */ | ||
74 | KReportSectionData* section(const QString&) const; | 72 | KReportSectionData* section(const QString&) const; | ||
75 | 73 | | |||
76 | QString query() const { | 74 | QString query() const; | ||
staniek: ' ;' -> ; | |||||
77 | return m_query; | | |||
78 | } | | |||
79 | #ifdef KREPORT_SCRIPTING | 75 | #ifdef KREPORT_SCRIPTING | ||
80 | QString script() const { | 76 | QString script() const; | ||
81 | return m_script; | 77 | | ||
82 | }; | 78 | QString interpreter() const; | ||
83 | QString interpreter() const { | | |||
84 | return m_interpreter; | | |||
85 | } | | |||
86 | #endif | 79 | #endif | ||
87 | 80 | | |||
88 | bool externalData() const { | 81 | bool externalData() const; | ||
89 | return m_externalData; | | |||
90 | } | | |||
91 | 82 | | |||
92 | KReportDetailSectionData* detail() const { | 83 | KReportDetailSectionData* detail() const { | ||
93 | return m_detailSection; | 84 | return m_detailSection; | ||
94 | } | 85 | } | ||
95 | 86 | | |||
96 | void setName(const QString&n) { | 87 | void setName(const QString&n); | ||
97 | m_name = n; | 88 | QString name() const; | ||
98 | } | | |||
99 | QString name() const { | | |||
100 | return m_name; | | |||
101 | } | | |||
102 | 89 | | |||
90 | QString title() const; | ||||
103 | KReportPageOptions pageOptions() const; | 91 | KReportPageOptions pageOptions() const; | ||
104 | 92 | | |||
105 | protected: | 93 | protected: | ||
106 | QString m_title; | | |||
107 | QString m_name; | | |||
108 | QString m_query; | | |||
109 | #ifdef KREPORT_SCRIPTING | | |||
110 | QString m_script; | | |||
111 | QString m_interpreter; | | |||
112 | #endif | | |||
113 | bool m_externalData; | | |||
114 | 94 | | |||
115 | KReportPageOptions page; | | |||
116 | 95 | | |||
117 | KReportSectionData * m_pageHeaderFirst; | 96 | KReportSectionData * m_pageHeaderFirst; | ||
118 | KReportSectionData * m_pageHeaderOdd; | 97 | KReportSectionData * m_pageHeaderOdd; | ||
119 | KReportSectionData * m_pageHeaderEven; | 98 | KReportSectionData * m_pageHeaderEven; | ||
120 | KReportSectionData * m_pageHeaderLast; | 99 | KReportSectionData * m_pageHeaderLast; | ||
121 | KReportSectionData * m_pageHeaderAny; | 100 | KReportSectionData * m_pageHeaderAny; | ||
122 | 101 | | |||
123 | KReportSectionData * m_reportHeader; | 102 | KReportSectionData * m_reportHeader; | ||
124 | KReportSectionData * m_reportFooter; | 103 | KReportSectionData * m_reportFooter; | ||
125 | 104 | | |||
126 | KReportSectionData * m_pageFooterFirst; | 105 | KReportSectionData * m_pageFooterFirst; | ||
127 | KReportSectionData * m_pageFooterOdd; | 106 | KReportSectionData * m_pageFooterOdd; | ||
128 | KReportSectionData * m_pageFooterEven; | 107 | KReportSectionData * m_pageFooterEven; | ||
129 | KReportSectionData * m_pageFooterLast; | 108 | KReportSectionData * m_pageFooterLast; | ||
130 | KReportSectionData * m_pageFooterAny; | 109 | KReportSectionData * m_pageFooterAny; | ||
131 | 110 | | |||
132 | KReportDetailSectionData* m_detailSection; | 111 | KReportDetailSectionData* m_detailSection; | ||
133 | 112 | | |||
134 | private: | 113 | private: | ||
135 | bool m_valid; | | |||
136 | void init(); | 114 | void init(); | ||
staniek: Please move these 2 lines to the very end line | |||||
137 | 115 | | |||
138 | friend class KReportPreRendererPrivate; | 116 | friend class KReportPreRendererPrivate; | ||
139 | friend class KReportPreRenderer; | 117 | friend class KReportPreRenderer; | ||
140 | #ifdef KREPORT_SCRIPTING | 118 | #ifdef KREPORT_SCRIPTING | ||
141 | friend class KReportScriptHandler; | 119 | friend class KReportScriptHandler; | ||
142 | friend class Scripting::Report; | 120 | friend class Scripting::Report; | ||
143 | #endif | 121 | #endif | ||
122 | class Private; | ||||
123 | Private * const d; | ||||
144 | }; | 124 | }; | ||
145 | 125 | | |||
146 | #endif | 126 | #endif |
' ;' -> ;