Changeset View
Changeset View
Standalone View
Standalone View
src/common/KReportPageOptions.h
- This file was deleted.
1 | /* This file is part of the KDE project | | |||
---|---|---|---|---|---|
2 | * Copyright (C) 2001-2007 by OpenMFG, LLC (info@openmfg.com) | | |||
3 | * Copyright (C) 2007-2008 by Adam Pigg (adam@piggz.co.uk) | | |||
4 | * | | |||
5 | * This library is free software; you can redistribute it and/or | | |||
6 | * modify it under the terms of the GNU Lesser General Public | | |||
7 | * License as published by the Free Software Foundation; either | | |||
8 | * version 2.1 of the License, or (at your option) any later version. | | |||
9 | * | | |||
10 | * This library is distributed in the hope that it will be useful, | | |||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | | |||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | | |||
13 | * Lesser General Public License for more details. | | |||
14 | * | | |||
15 | * You should have received a copy of the GNU Lesser General Public | | |||
16 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | | |||
17 | */ | | |||
18 | | ||||
19 | #ifndef KREPORTPAGEOPTIONS_H | | |||
20 | #define KREPORTPAGEOPTIONS_H | | |||
21 | | ||||
22 | #include <QObject> | | |||
23 | #include <QString> | | |||
24 | | ||||
25 | #include "kreport_export.h" | | |||
26 | | ||||
27 | class KREPORT_EXPORT KReportPageOptions : public QObject | | |||
28 | { | | |||
29 | Q_OBJECT | | |||
30 | public: | | |||
31 | KReportPageOptions(); | | |||
32 | KReportPageOptions(const KReportPageOptions &); | | |||
33 | | ||||
34 | KReportPageOptions & operator=(const KReportPageOptions &); | | |||
35 | | ||||
36 | enum PageOrientation { | | |||
37 | Landscape = 0, // essentially false | | |||
38 | Portrait = 1 // and true | | |||
39 | }; | | |||
40 | | ||||
41 | qreal getMarginTop() const; | | |||
42 | void setMarginTop(qreal v); | | |||
43 | qreal getMarginBottom() const; | | |||
44 | void setMarginBottom(qreal v); | | |||
45 | qreal getMarginLeft() const; | | |||
46 | void setMarginLeft(qreal v); | | |||
47 | qreal getMarginRight() const; | | |||
48 | void setMarginRight(qreal v); | | |||
49 | | ||||
50 | QSizeF pixelSize() const; | | |||
51 | | ||||
52 | const QString & getPageSize() const; | | |||
53 | void setPageSize(const QString & s); | | |||
54 | qreal getCustomWidth() const; | | |||
55 | void setCustomWidth(qreal v); | | |||
56 | qreal getCustomHeight() const; | | |||
57 | void setCustomHeight(qreal v); | | |||
58 | | ||||
59 | PageOrientation getOrientation() const; | | |||
60 | bool isPortrait() const; | | |||
61 | void setOrientation(PageOrientation o); | | |||
62 | void setPortrait(bool yes); | | |||
63 | | ||||
64 | void setLabelType(const QString &); | | |||
65 | const QString & getLabelType() const; | | |||
66 | | ||||
67 | Q_SIGNALS: | | |||
68 | void pageOptionsChanged(); | | |||
69 | | ||||
70 | private: | | |||
71 | qreal m_marginTop; | | |||
72 | qreal m_marginBottom; | | |||
73 | qreal m_marginLeft; | | |||
74 | qreal m_marginRight; | | |||
75 | | ||||
76 | QString m_pageSize; | | |||
77 | qreal m_customWidth; | | |||
78 | qreal m_customHeight; | | |||
79 | | ||||
80 | PageOrientation m_orientation; | | |||
81 | | ||||
82 | QString m_labelType; | | |||
83 | }; | | |||
84 | | ||||
85 | #endif | |