8#include <QtPrintSupport/qtprintsupportglobal.h>
9#include <QtCore/qvariant.h>
10#include <QtPrintSupport/qprinter.h>
13Q_DECLARE_METATYPE(QMarginsF)
20class Q_PRINTSUPPORT_EXPORT QPrintEngine
23 virtual ~QPrintEngine();
25 enum PrintEnginePropertyKey {
43 PPK_SupportedResolutions,
54 PPK_SupportsMultipleCopies,
59 PPK_PaperSize = PPK_PageSize,
61 PPK_CustomBase = 0xff00
64 virtual void setProperty(PrintEnginePropertyKey key,
const QVariant &value) = 0;
65 virtual QVariant property(PrintEnginePropertyKey key)
const = 0;
67 virtual bool newPage() = 0;
68 virtual bool abort() = 0;
70 virtual int metric(QPaintDevice::PaintDeviceMetric)
const = 0;
72 virtual QPrinter::PrinterState printerState()
const = 0;
~QOhosPdfPrintEnginePrivate()
bool begin(QPaintDevice *pdev) override
Reimplement this function to initialise your paint engine when painting is to start on the paint devi...
bool end() override
Reimplement this function to finish painting on the current paint device.
QVariant property(PrintEnginePropertyKey key) const override
Returns the print engine's property specified by key.
void setProperty(PrintEnginePropertyKey key, const QVariant &value) override
Sets the print engine's property specified by key to the given value.
~QOhosPdfPrintEngine() override
\inmodule QtCore\reentrant
Combined button and popup list for selecting options.