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.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
4
#ifndef QPAGEDPAINTDEVICE_H
5
#define QPAGEDPAINTDEVICE_H
6
7
#include <QtGui/qtguiglobal.h>
8
#include <QtGui/qpaintdevice.h>
9
#include <QtGui/qpagelayout.h>
10
#include <QtGui/qpageranges.h>
11
12
QT_BEGIN_NAMESPACE
13
14
#if defined(B0)
15
#undef B0
// Terminal hang-up. We assume that you do not want that.
16
#endif
17
18
class
QPagedPaintDevicePrivate
;
19
20
class
Q_GUI_EXPORT
QPagedPaintDevice
:
public
QPaintDevice
21
{
22
public
:
23
~QPagedPaintDevice
();
24
25
virtual
bool
newPage
() = 0;
26
27
// keep in sync with QPdfEngine::PdfVersion!
28
enum
PdfVersion
{ PdfVersion_1_4, PdfVersion_A1b, PdfVersion_1_6 };
29
30
virtual
bool
setPageLayout(
const
QPageLayout
&pageLayout);
31
virtual
bool
setPageSize(
const
QPageSize
&pageSize);
32
virtual
bool
setPageOrientation(
QPageLayout::Orientation
orientation);
33
virtual
bool
setPageMargins(
const
QMarginsF
&margins,
QPageLayout::Unit
units
=
QPageLayout::Millimeter
);
34
QPageLayout
pageLayout()
const
;
35
36
virtual
void
setPageRanges(
const
QPageRanges
&ranges);
37
QPageRanges
pageRanges()
const
;
38
39
protected
:
40
QPagedPaintDevice
(
QPagedPaintDevicePrivate
*dd);
41
QPagedPaintDevicePrivate
*dd();
42
friend
class
QPagedPaintDevicePrivate
;
43
QPagedPaintDevicePrivate
*
d
;
44
};
45
46
QT_END_NAMESPACE
47
48
#endif
QMarginsF
\inmodule QtCore
Definition
qmargins.h:270
QPageLayout
\inmodule QtGui
Definition
qpagelayout.h:20
QPageLayout::Unit
Unit
This enum type is used to specify the measurement unit for page layout and margins.
Definition
qpagelayout.h:24
QPageLayout::Millimeter
@ Millimeter
Definition
qpagelayout.h:25
QPageLayout::Orientation
Orientation
This enum type defines the page orientation.
Definition
qpagelayout.h:33
QPageRanges
The QPageRanges class represents a collection of page ranges.
Definition
qpageranges.h:21
QPageSize
\inmodule QtGui
Definition
qpagesize.h:22
QPagedPaintDevicePrivate
Definition
qpagedpaintdevice_p.h:24
QPagedPaintDevice
\inmodule QtGui
Definition
qpagedpaintdevice.h:21
QPagedPaintDevice::newPage
virtual bool newPage()=0
Starts a new page.
QPagedPaintDevice::d
QPagedPaintDevicePrivate * d
Definition
qpagedpaintdevice.h:43
QPagedPaintDevice::PdfVersion
PdfVersion
The PdfVersion enum describes the version of the PDF file that is produced by QPrinter or QPdfWriter.
Definition
qpagedpaintdevice.h:28
QPaintDevice
Definition
qpaintdevice.h:18
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
units
GLfloat units
Definition
qopengles2ext.h:1649
qtbase
src
gui
painting
qpagedpaintdevice.h
Generated by
1.10.0