39 QPrintDevice(
const QString & id);
40 QPrintDevice(
const QPrintDevice &other);
43 QPrintDevice &operator=(
const QPrintDevice &other);
44 QPrintDevice &operator=(QPrintDevice &&other) { swap(other);
return *
this; }
46 void swap(QPrintDevice &other) { d.swap(other.d); }
48 bool operator==(
const QPrintDevice &other)
const;
52 QString location()
const;
53 QString makeAndModel()
const;
56 bool isDefault()
const;
57 bool isRemote()
const;
59 QPrint::DeviceState state()
const;
61 bool isValidPageLayout(
const QPageLayout &layout,
int resolution)
const;
63 bool supportsMultipleCopies()
const;
64 bool supportsCollateCopies()
const;
66 QPageSize defaultPageSize()
const;
67 QList<QPageSize> supportedPageSizes()
const;
69 QPageSize supportedPageSize(
const QPageSize &pageSize)
const;
70 QPageSize supportedPageSize(QPageSize::PageSizeId pageSizeId)
const;
71 QPageSize supportedPageSize(
const QString &pageName)
const;
72 QPageSize supportedPageSize(
const QSize &pointSize)
const;
73 QPageSize supportedPageSize(
const QSizeF &size, QPageSize::Unit units = QPageSize::Point)
const;
75 bool supportsCustomPageSizes()
const;
77 QSize minimumPhysicalPageSize()
const;
78 QSize maximumPhysicalPageSize()
const;
80 QMarginsF printableMargins(
const QPageSize &pageSize, QPageLayout::Orientation orientation,
int resolution)
const;
82 int defaultResolution()
const;
83 QList<
int> supportedResolutions()
const;
85 QPrint::InputSlot defaultInputSlot()
const;
86 QList<QPrint::InputSlot> supportedInputSlots()
const;
88 QPrint::OutputBin defaultOutputBin()
const;
89 QList<QPrint::OutputBin> supportedOutputBins()
const;
91 QPrint::DuplexMode defaultDuplexMode()
const;
92 QList<QPrint::DuplexMode> supportedDuplexModes()
const;
94 QPrint::ColorMode defaultColorMode()
const;
95 QList<QPrint::ColorMode> supportedColorModes()
const;
97 enum PrintDevicePropertyKey {
98 PDPK_CustomBase = 0xff00
101 QVariant property(PrintDevicePropertyKey key)
const;
102 bool setProperty(PrintDevicePropertyKey key,
const QVariant &value);
103 bool isFeatureAvailable(PrintDevicePropertyKey key,
const QVariant ¶ms)
const;
105#if QT_CONFIG(mimetype)
106 QList<QMimeType> supportedMimeTypes()
const;
109# ifndef QT_NO_DEBUG_STREAM
110 void format(QDebug debug)
const;
114 friend class QPlatformPrinterSupport;
115 friend class QPlatformPrintDevice;
116 QPrintDevice(QPlatformPrintDevice *dd);
117 QSharedPointer<QPlatformPrintDevice> d;