Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qpagedpaintdevice_p.h
Go to the documentation of this file.
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
4#ifndef QPAGEDPAINTDEVICE_P_H
5#define QPAGEDPAINTDEVICE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtGui/private/qtguiglobal_p.h>
19#include <qpagedpaintdevice.h>
20
22
23class Q_GUI_EXPORT QPagedPaintDevicePrivate
24{
25public:
27 : pageOrderAscending(true),
28 printSelectionOnly(false)
29 {
30 }
31
33
34
35 virtual bool setPageLayout(const QPageLayout &newPageLayout) = 0;
36
37 virtual bool setPageSize(const QPageSize &pageSize) = 0;
38
39 virtual bool setPageOrientation(QPageLayout::Orientation orientation) = 0;
40
41 virtual bool setPageMargins(const QMarginsF &margins, QPageLayout::Unit units) = 0;
42
43 virtual QPageLayout pageLayout() const = 0;
44
45 static inline QPagedPaintDevicePrivate *get(QPagedPaintDevice *pd) { return pd->d; }
46
47 // These are currently required to keep QPrinter functionality working in QTextDocument::print()
51};
52
54
55#endif
\inmodule QtCore
Definition qmargins.h:270
\inmodule QtGui
Definition qpagelayout.h:20
Unit
This enum type is used to specify the measurement unit for page layout and margins.
Definition qpagelayout.h:24
Orientation
This enum type defines the page orientation.
Definition qpagelayout.h:33
The QPageRanges class represents a collection of page ranges.
Definition qpageranges.h:21
\inmodule QtGui
Definition qpagesize.h:22
virtual bool setPageMargins(const QMarginsF &margins, QPageLayout::Unit units)=0
virtual ~QPagedPaintDevicePrivate()
virtual bool setPageLayout(const QPageLayout &newPageLayout)=0
virtual bool setPageOrientation(QPageLayout::Orientation orientation)=0
virtual QPageLayout pageLayout() const =0
static QPagedPaintDevicePrivate * get(QPagedPaintDevice *pd)
virtual bool setPageSize(const QPageSize &pageSize)=0
\inmodule QtGui
QPagedPaintDevicePrivate * d
Combined button and popup list for selecting options.
GLfloat units