/src/qtbase/src/gui/painting/qpagedpaintdevice_p.h
Line | Count | Source |
1 | | // Copyright (C) 2016 The Qt Company Ltd. |
2 | | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | | // Qt-Security score:significant reason:default |
4 | | |
5 | | #ifndef QPAGEDPAINTDEVICE_P_H |
6 | | #define QPAGEDPAINTDEVICE_P_H |
7 | | |
8 | | // |
9 | | // W A R N I N G |
10 | | // ------------- |
11 | | // |
12 | | // This file is not part of the Qt API. It exists purely as an |
13 | | // implementation detail. This header file may change from version to |
14 | | // version without notice, or even be removed. |
15 | | // |
16 | | // We mean it. |
17 | | // |
18 | | |
19 | | #include <QtGui/private/qtguiglobal_p.h> |
20 | | #include <qpagedpaintdevice.h> |
21 | | |
22 | | QT_BEGIN_NAMESPACE |
23 | | |
24 | | class Q_GUI_EXPORT QPagedPaintDevicePrivate |
25 | | { |
26 | | public: |
27 | | QPagedPaintDevicePrivate() |
28 | | : pageOrderAscending(true), |
29 | | printSelectionOnly(false) |
30 | 0 | { |
31 | 0 | } |
32 | | |
33 | | virtual ~QPagedPaintDevicePrivate(); |
34 | | |
35 | | |
36 | | virtual bool setPageLayout(const QPageLayout &newPageLayout) = 0; |
37 | | |
38 | | virtual bool setPageSize(const QPageSize &pageSize) = 0; |
39 | | |
40 | | virtual bool setPageOrientation(QPageLayout::Orientation orientation) = 0; |
41 | | |
42 | | virtual bool setPageMargins(const QMarginsF &margins, QPageLayout::Unit units) = 0; |
43 | | |
44 | | virtual QPageLayout pageLayout() const = 0; |
45 | | |
46 | 0 | static inline QPagedPaintDevicePrivate *get(QPagedPaintDevice *pd) { return pd->d; } |
47 | | |
48 | | // These are currently required to keep QPrinter functionality working in QTextDocument::print() |
49 | | QPageRanges pageRanges; |
50 | | bool pageOrderAscending; |
51 | | bool printSelectionOnly; |
52 | | }; |
53 | | |
54 | | QT_END_NAMESPACE |
55 | | |
56 | | #endif |