Changeset View
Changeset View
Standalone View
Standalone View
src/common/KReportSectionData.h
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | 48 | enum class Type { | |||
---|---|---|---|---|---|
60 | PageFooterLast, | 60 | PageFooterLast, | ||
61 | PageFooterAny, | 61 | PageFooterAny, | ||
62 | GroupHeader, | 62 | GroupHeader, | ||
63 | GroupFooter, | 63 | GroupFooter, | ||
64 | Detail | 64 | Detail | ||
65 | }; | 65 | }; | ||
66 | 66 | | |||
67 | explicit KReportSectionData(QObject* parent = nullptr); | 67 | explicit KReportSectionData(QObject* parent = nullptr); | ||
68 | KReportSectionData(const QDomElement &, KReportDocument* report); | 68 | | ||
69 | explicit KReportSectionData(const QDomElement &elemSource, QObject* parent = nullptr); | ||||
70 | | ||||
69 | ~KReportSectionData() override; | 71 | ~KReportSectionData() override; | ||
72 | | ||||
70 | KPropertySet* propertySet() const { | 73 | KPropertySet* propertySet() const { | ||
71 | return m_set; | 74 | return m_set; | ||
72 | } | 75 | } | ||
73 | 76 | | |||
74 | bool isValid() const { | 77 | bool isValid() const { | ||
75 | return m_valid; | 78 | return m_valid; | ||
76 | } | 79 | } | ||
77 | 80 | | |||
Show All 19 Lines | |||||
97 | static QString sectionTypeString(KReportSectionData::Type type); | 100 | static QString sectionTypeString(KReportSectionData::Type type); | ||
98 | protected: | 101 | protected: | ||
99 | KPropertySet *m_set; | 102 | KPropertySet *m_set; | ||
100 | KProperty *m_height; | 103 | KProperty *m_height; | ||
101 | KProperty *m_backgroundColor; | 104 | KProperty *m_backgroundColor; | ||
102 | 105 | | |||
103 | private: | 106 | private: | ||
104 | void createProperties(const QDomElement & elemSource); | 107 | void createProperties(const QDomElement & elemSource); | ||
108 | void loadXml(const QDomElement &elemSource); | ||||
105 | 109 | | |||
106 | QList<KReportItemBase*> m_objects; | 110 | QList<KReportItemBase*> m_objects; | ||
107 | 111 | | |||
108 | Type m_type; | 112 | Type m_type; | ||
109 | 113 | | |||
110 | static bool zLessThan(KReportItemBase* s1, KReportItemBase* s2); | 114 | static bool zLessThan(KReportItemBase* s1, KReportItemBase* s2); | ||
111 | static bool xLessThan(KReportItemBase* s1, KReportItemBase* s2); | 115 | static bool xLessThan(KReportItemBase* s1, KReportItemBase* s2); | ||
112 | 116 | | |||
113 | bool m_valid; | 117 | bool m_valid; | ||
114 | 118 | | |||
115 | friend class Scripting::Section; | 119 | friend class Scripting::Section; | ||
116 | friend class KReportDesignerSection; | 120 | friend class KReportDesignerSection; | ||
117 | }; | 121 | }; | ||
118 | 122 | | |||
119 | #endif | 123 | #endif |