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
13
14#if defined(B0)
15#undef B0 // Terminal hang-up. We assume that you do not want that.
16#endif
17
19
20class Q_GUI_EXPORT QPagedPaintDevice : public QPaintDevice
21{
22public:
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
39protected:
44};
45
47
48#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
\inmodule QtGui
virtual bool newPage()=0
Starts a new page.
QPagedPaintDevicePrivate * d
PdfVersion
The PdfVersion enum describes the version of the PDF file that is produced by QPrinter or QPdfWriter.
Combined button and popup list for selecting options.
GLfloat units