40 QPrintDevice(
const QString & id);
41 QPrintDevice(
const QPrintDevice &other);
44 QPrintDevice &operator=(
const QPrintDevice &other);
45 QPrintDevice &operator=(QPrintDevice &&other) { swap(other);
return *
this; }
47 void swap(QPrintDevice &other) { d.swap(other.d); }
49 bool operator==(
const QPrintDevice &other)
const;
53 QString location()
const;
54 QString makeAndModel()
const;
57 bool isDefault()
const;
58 bool isRemote()
const;
60 QPrint::DeviceState state()
const;
62 bool isValidPageLayout(
const QPageLayout &layout,
int resolution)
const;
64 bool supportsMultipleCopies()
const;
65 bool supportsCollateCopies()
const;
67 QPageSize defaultPageSize()
const;
68 QList<QPageSize> supportedPageSizes()
const;
70 QPageSize supportedPageSize(
const QPageSize &pageSize)
const;
71 QPageSize supportedPageSize(QPageSize::PageSizeId pageSizeId)
const;
72 QPageSize supportedPageSize(
const QString &pageName)
const;
73 QPageSize supportedPageSize(
const QSize &pointSize)
const;
74 QPageSize supportedPageSize(
const QSizeF &size, QPageSize::Unit units = QPageSize::Point)
const;
76 bool supportsCustomPageSizes()
const;
78 QSize minimumPhysicalPageSize()
const;
79 QSize maximumPhysicalPageSize()
const;
81 QMarginsF printableMargins(
const QPageSize &pageSize, QPageLayout::Orientation orientation,
int resolution)
const;
83 int defaultResolution()
const;
84 QList<
int> supportedResolutions()
const;
86 QPrint::InputSlot defaultInputSlot()
const;
87 QList<QPrint::InputSlot> supportedInputSlots()
const;
89 QPrint::OutputBin defaultOutputBin()
const;
90 QList<QPrint::OutputBin> supportedOutputBins()
const;
92 QPrint::DuplexMode defaultDuplexMode()
const;
93 QList<QPrint::DuplexMode> supportedDuplexModes()
const;
95 QPrint::ColorMode defaultColorMode()
const;
96 QList<QPrint::ColorMode> supportedColorModes()
const;
98 enum PrintDevicePropertyKey {
99 PDPK_CustomBase = 0xff00
102 QVariant property(PrintDevicePropertyKey key,
const QVariant ¶ms = QVariant())
const;
103 bool setProperty(PrintDevicePropertyKey key,
const QVariant &value);
104 bool isFeatureAvailable(PrintDevicePropertyKey key,
const QVariant ¶ms)
const;
106#if QT_CONFIG(mimetype)
107 QList<QMimeType> supportedMimeTypes()
const;
110# ifndef QT_NO_DEBUG_STREAM
111 void format(QDebug debug)
const;
115 friend class QPlatformPrinterSupport;
116 friend class QPlatformPrintDevice;
117 QPrintDevice(QPlatformPrintDevice *dd);
118 QSharedPointer<QPlatformPrintDevice> d;