Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-17 09:10:18

0001 // Copyright (C) 2020 The Qt Company Ltd.
0002 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
0003 
0004 #ifndef QPAGEDPAINTDEVICE_H
0005 #define QPAGEDPAINTDEVICE_H
0006 
0007 #include <QtGui/qtguiglobal.h>
0008 #include <QtGui/qpaintdevice.h>
0009 #include <QtGui/qpagelayout.h>
0010 #include <QtGui/qpageranges.h>
0011 
0012 QT_BEGIN_NAMESPACE
0013 
0014 #if defined(B0)
0015 #undef B0 // Terminal hang-up.  We assume that you do not want that.
0016 #endif
0017 
0018 class QPagedPaintDevicePrivate;
0019 
0020 class Q_GUI_EXPORT QPagedPaintDevice : public QPaintDevice
0021 {
0022 public:
0023     ~QPagedPaintDevice();
0024 
0025     virtual bool newPage() = 0;
0026 
0027     // keep in sync with QPdfEngine::PdfVersion!
0028     enum PdfVersion {
0029         PdfVersion_1_4,
0030         PdfVersion_A1b,
0031         PdfVersion_1_6,
0032         PdfVersion_X4,
0033     };
0034 
0035     virtual bool setPageLayout(const QPageLayout &pageLayout);
0036     virtual bool setPageSize(const QPageSize &pageSize);
0037     virtual bool setPageOrientation(QPageLayout::Orientation orientation);
0038     virtual bool setPageMargins(const QMarginsF &margins, QPageLayout::Unit units = QPageLayout::Millimeter);
0039     QPageLayout pageLayout() const;
0040 
0041     virtual void setPageRanges(const QPageRanges &ranges);
0042     QPageRanges pageRanges() const;
0043 
0044 protected:
0045     QPagedPaintDevice(QPagedPaintDevicePrivate *dd);
0046     QPagedPaintDevicePrivate *dd();
0047     friend class QPagedPaintDevicePrivate;
0048     QPagedPaintDevicePrivate *d;
0049 };
0050 
0051 QT_END_NAMESPACE
0052 
0053 #endif