Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qpagedpaintdevice.h
Go to the documentation of this file.
1
// Copyright (C) 2020 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_H
6
#
define
QPAGEDPAINTDEVICE_H
7
8
#
include
<
QtGui
/
qtguiglobal
.
h
>
9
#
include
<
QtGui
/
qpaintdevice
.
h
>
10
#
include
<
QtGui
/
qpagelayout
.
h
>
11
#
include
<
QtGui
/
qpageranges
.
h
>
12
13
QT_BEGIN_NAMESPACE
14
15
class
QPagedPaintDevicePrivate;
16
17
class
Q_GUI_EXPORT
QPagedPaintDevice
:
public
QPaintDevice
18
{
19
public
:
20
~QPagedPaintDevice();
21
22
virtual
bool
newPage() = 0;
23
24
enum
PdfVersion {
25
PdfVersion_1_4,
26
PdfVersion_A1b,
27
PdfVersion_1_6,
28
PdfVersion_X4,
29
// bump NumPdfVersions when adding new enumerators
30
};
31
static
inline
constexpr
size_t NumPdfVersions = 4;
32
33
virtual
bool
setPageLayout(
const
QPageLayout &pageLayout);
34
virtual
bool
setPageSize(
const
QPageSize &pageSize);
35
virtual
bool
setPageOrientation(QPageLayout::Orientation orientation);
36
virtual
bool
setPageMargins(
const
QMarginsF &margins, QPageLayout::Unit units = QPageLayout::Millimeter);
37
QPageLayout pageLayout()
const
;
38
39
virtual
void
setPageRanges(
const
QPageRanges &ranges);
40
QPageRanges pageRanges()
const
;
41
42
protected
:
43
QPagedPaintDevice(QPagedPaintDevicePrivate *dd);
44
QPagedPaintDevicePrivate *dd();
45
friend
class
QPagedPaintDevicePrivate;
46
QPagedPaintDevicePrivate *d;
47
};
48
49
QT_END_NAMESPACE
50
51
#
endif
QPagedPaintDevicePrivate
Definition
qpagedpaintdevice_p.h:25
QPagedPaintDevice
\inmodule QtGui
Definition
qpagedpaintdevice.h:18
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtbase
src
gui
painting
qpagedpaintdevice.h
Generated on
for Qt by
1.18.0