Warning, file /include/QtGui/qpagedpaintdevice.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
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
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
0028 enum PdfVersion { PdfVersion_1_4, PdfVersion_A1b, PdfVersion_1_6 };
0029
0030 virtual bool setPageLayout(const QPageLayout &pageLayout);
0031 virtual bool setPageSize(const QPageSize &pageSize);
0032 virtual bool setPageOrientation(QPageLayout::Orientation orientation);
0033 virtual bool setPageMargins(const QMarginsF &margins, QPageLayout::Unit units = QPageLayout::Millimeter);
0034 QPageLayout pageLayout() const;
0035
0036 virtual void setPageRanges(const QPageRanges &ranges);
0037 QPageRanges pageRanges() const;
0038
0039 protected:
0040 QPagedPaintDevice(QPagedPaintDevicePrivate *dd);
0041 QPagedPaintDevicePrivate *dd();
0042 friend class QPagedPaintDevicePrivate;
0043 QPagedPaintDevicePrivate *d;
0044 };
0045
0046 QT_END_NAMESPACE
0047
0048 #endif