Changeset View
Changeset View
Standalone View
Standalone View
src/common/KReportDesign_p.h
Show All 16 Lines | |||||
17 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | 17 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #ifndef KREPORTDESIGN_P_H | 20 | #ifndef KREPORTDESIGN_P_H | ||
21 | #define KREPORTDESIGN_P_H | 21 | #define KREPORTDESIGN_P_H | ||
22 | 22 | | |||
23 | #include "KReportDesign.h" | 23 | #include "KReportDesign.h" | ||
24 | #include "KReportUnit.h" | 24 | #include "KReportUnit.h" | ||
25 | #include "KReportUtils_p.h" | ||||
25 | 26 | | |||
26 | #include <QPageSize> | 27 | #include <QPageSize> | ||
27 | #include <QPageLayout> | 28 | #include <QPageLayout> | ||
28 | #include <QVarLengthArray> | 29 | #include <QVarLengthArray> | ||
29 | 30 | | |||
30 | class QDomDocument; | 31 | class QDomDocument; | ||
31 | class QDomElement; | 32 | class QDomElement; | ||
32 | class KReportPluginInterface; | 33 | class KReportPluginInterface; | ||
▲ Show 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | 45 | public: | |||
85 | 86 | | |||
86 | // Visual settings only | 87 | // Visual settings only | ||
87 | bool showGrid; | 88 | bool showGrid; | ||
88 | bool snapToGrid; | 89 | bool snapToGrid; | ||
89 | int gridDivisions; | 90 | int gridDivisions; | ||
90 | KReportUnit pageUnit; | 91 | KReportUnit pageUnit; | ||
91 | // END OF: Visual settings only | 92 | // END OF: Visual settings only | ||
92 | QString title; | 93 | QString title; | ||
93 | QPageLayout pageLayout; | 94 | KReportPrivate::PageLayout pageLayout; | ||
94 | QVarLengthArray<KReportSection*, KReportSection::Detail> sections; | 95 | QVarLengthArray<KReportSection*, KReportSection::Detail> sections; | ||
95 | #ifdef KREPORT_SCRIPTING | 96 | #ifdef KREPORT_SCRIPTING | ||
96 | QString script; | 97 | QString script; | ||
97 | QString originalInterpreter; //!< used for backward-compatibility to save the original | 98 | QString originalInterpreter; //!< used for backward-compatibility to save the original | ||
98 | #endif | 99 | #endif | ||
99 | }; | 100 | }; | ||
100 | 101 | | |||
101 | class KReportDesignGlobal | 102 | class KReportDesignGlobal | ||
102 | { | 103 | { | ||
103 | public: | 104 | public: | ||
104 | KReportDesignGlobal(); | 105 | KReportDesignGlobal(); | ||
105 | 106 | | |||
106 | static KReportDesignGlobal* self(); | 107 | static KReportDesignGlobal* self(); | ||
107 | 108 | | |||
108 | struct SectionTypeInfo { | 109 | struct SectionTypeInfo { | ||
109 | KReportSection::Type type; | 110 | KReportSection::Type type; | ||
110 | const char *name; | 111 | const char *name; | ||
111 | }; | 112 | }; | ||
112 | 113 | | |||
113 | KReportSection::Type sectionType(const QString& typeName); | 114 | KReportSection::Type sectionType(const QString& typeName); | ||
114 | 115 | | |||
115 | QString sectionTypeName(KReportSection::Type sectionType); | 116 | QString sectionTypeName(KReportSection::Type sectionType); | ||
116 | 117 | | |||
117 | QPageLayout defaultPageLayout; | 118 | KReportPrivate::PageLayout defaultPageLayout; | ||
118 | qreal defaultSectionHeight; | 119 | qreal defaultSectionHeight; | ||
119 | QColor defaultSectionBackgroundColor; | 120 | QColor defaultSectionBackgroundColor; | ||
120 | 121 | | |||
121 | private: | 122 | private: | ||
122 | void initSectionTypes(); | 123 | void initSectionTypes(); | ||
123 | 124 | | |||
124 | static const SectionTypeInfo sectionTypes[]; | 125 | static const SectionTypeInfo sectionTypes[]; | ||
125 | QHash<QString, KReportSection::Type> sectionTypesForName; | 126 | QHash<QString, KReportSection::Type> sectionTypesForName; | ||
126 | QHash<KReportSection::Type, QString> sectionTypeNames; | 127 | QHash<KReportSection::Type, QString> sectionTypeNames; | ||
127 | }; | 128 | }; | ||
128 | 129 | | |||
129 | #endif | 130 | #endif |