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
#
if
defined
(
B0
)
16
#
undef
B0
// Terminal hang-up. We assume that you do not want that.
17
#
endif
18
19
class
QPagedPaintDevicePrivate;
20
21
class
Q_GUI_EXPORT
QPagedPaintDevice
:
public
QPaintDevice
22
{
23
public
:
24
~QPagedPaintDevice();
25
26
virtual
bool
newPage() = 0;
27
28
// keep in sync with QPdfEngine::PdfVersion!
29
enum
PdfVersion {
30
PdfVersion_1_4,
31
PdfVersion_A1b,
32
PdfVersion_1_6,
33
PdfVersion_X4,
34
};
35
36
virtual
bool
setPageLayout(
const
QPageLayout &pageLayout);
37
virtual
bool
setPageSize(
const
QPageSize &pageSize);
38
virtual
bool
setPageOrientation(QPageLayout::Orientation orientation);
39
virtual
bool
setPageMargins(
const
QMarginsF &margins, QPageLayout::Unit units = QPageLayout::Millimeter);
40
QPageLayout pageLayout()
const
;
41
42
virtual
void
setPageRanges(
const
QPageRanges &ranges);
43
QPageRanges pageRanges()
const
;
44
45
protected
:
46
QPagedPaintDevice(QPagedPaintDevicePrivate *dd);
47
QPagedPaintDevicePrivate *dd();
48
friend
class
QPagedPaintDevicePrivate;
49
QPagedPaintDevicePrivate *d;
50
};
51
52
QT_END_NAMESPACE
53
54
#
endif
QPagedPaintDevicePrivate
Definition
qpagedpaintdevice_p.h:25
QPagedPaintDevice
\inmodule QtGui
Definition
qpagedpaintdevice.h:22
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