Changeset View
Changeset View
Standalone View
Standalone View
src/common/KReportPageOptions.h
Show All 32 Lines | 30 | public: | |||
---|---|---|---|---|---|
33 | 33 | | |||
34 | KReportPageOptions & operator=(const KReportPageOptions &); | 34 | KReportPageOptions & operator=(const KReportPageOptions &); | ||
35 | 35 | | |||
36 | enum PageOrientation { | 36 | enum PageOrientation { | ||
37 | Landscape = 0, // essentially false | 37 | Landscape = 0, // essentially false | ||
38 | Portrait = 1 // and true | 38 | Portrait = 1 // and true | ||
39 | }; | 39 | }; | ||
40 | 40 | | |||
41 | qreal getMarginTop(); | 41 | qreal getMarginTop() const; | ||
42 | void setMarginTop(qreal v); | 42 | void setMarginTop(qreal v); | ||
43 | qreal getMarginBottom(); | 43 | qreal getMarginBottom() const; | ||
44 | void setMarginBottom(qreal v); | 44 | void setMarginBottom(qreal v); | ||
45 | qreal getMarginLeft(); | 45 | qreal getMarginLeft() const; | ||
46 | void setMarginLeft(qreal v); | 46 | void setMarginLeft(qreal v); | ||
47 | qreal getMarginRight(); | 47 | qreal getMarginRight() const; | ||
48 | void setMarginRight(qreal v); | 48 | void setMarginRight(qreal v); | ||
49 | 49 | | |||
50 | qreal widthPx(); | 50 | QSizeF pixelSize() const; | ||
51 | qreal heightPx(); | | |||
52 | 51 | | |||
53 | const QString & getPageSize(); | 52 | const QString & getPageSize() const; | ||
54 | void setPageSize(const QString & s); | 53 | void setPageSize(const QString & s); | ||
55 | qreal getCustomWidth(); | 54 | qreal getCustomWidth() const; | ||
56 | void setCustomWidth(qreal v); | 55 | void setCustomWidth(qreal v); | ||
57 | qreal getCustomHeight(); | 56 | qreal getCustomHeight() const; | ||
58 | void setCustomHeight(qreal v); | 57 | void setCustomHeight(qreal v); | ||
59 | 58 | | |||
60 | PageOrientation getOrientation(); | 59 | PageOrientation getOrientation() const; | ||
61 | bool isPortrait(); | 60 | bool isPortrait() const; | ||
62 | void setOrientation(PageOrientation o); | 61 | void setOrientation(PageOrientation o); | ||
63 | void setPortrait(bool yes); | 62 | void setPortrait(bool yes); | ||
64 | 63 | | |||
65 | void setLabelType(const QString &); | 64 | void setLabelType(const QString &); | ||
66 | const QString & getLabelType(); | 65 | const QString & getLabelType() const; | ||
67 | 66 | | |||
68 | Q_SIGNALS: | 67 | Q_SIGNALS: | ||
69 | void pageOptionsChanged(); | 68 | void pageOptionsChanged(); | ||
70 | 69 | | |||
71 | private: | 70 | private: | ||
72 | qreal m_marginTop; | 71 | qreal m_marginTop; | ||
73 | qreal m_marginBottom; | 72 | qreal m_marginBottom; | ||
74 | qreal m_marginLeft; | 73 | qreal m_marginLeft; | ||
Show All 12 Lines |