31 bool operator==(
const QWindowsPrinterInfo &other)
const
34 return m_id == other.m_id && m_name == other.m_name &&
35 m_location == other.m_location &&
36 m_makeAndModel == other.m_makeAndModel &&
37 m_isRemote == other.m_isRemote;
42 QString m_makeAndModel;
43 QList<QPageSize> m_pageSizes;
44 QList<
int> m_resolutions;
45 QList<QPrint::InputSlot> m_inputSlots;
46 QList<QPrint::OutputBin> m_outputBins;
47 QList<QPrint::DuplexMode> m_duplexModes;
48 QList<QPrint::ColorMode> m_colorModes;
49 QSize m_minimumPhysicalPageSize;
50 QSize m_maximumPhysicalPageSize;
51 bool m_isRemote =
false;
52 bool m_havePageSizes =
false;
53 bool m_haveResolutions =
false;
54 bool m_haveCopies =
false;
55 bool m_supportsMultipleCopies =
false;
56 bool m_supportsCollateCopies =
false;
57 bool m_haveMinMaxPageSizes =
false;
58 bool m_supportsCustomPageSizes =
false;
59 bool m_haveInputSlots =
false;
60 bool m_haveOutputBins =
false;
61 bool m_haveDuplexModes =
false;
62 bool m_haveColorModes =
false;
68 QWindowsPrintDevice();
69 explicit QWindowsPrintDevice(
const QString &id);
70 virtual ~QWindowsPrintDevice();
72 bool isValid()
const override;
73 bool isDefault()
const override;
75 QPrint::DeviceState state()
const override;
77 QPageSize defaultPageSize()
const override;
79 QMarginsF printableMargins(
const QPageSize &pageSize, QPageLayout::Orientation orientation,
80 int resolution)
const override;
82 int defaultResolution()
const override;
84 QPrint::InputSlot defaultInputSlot()
const override;
86 QPrint::DuplexMode defaultDuplexMode()
const override;
88 QPrint::ColorMode defaultColorMode()
const override;
90 static QStringList availablePrintDeviceIds();
91 static QString defaultPrintDeviceId();
93 bool supportsCollateCopies()
const override;
94 bool supportsMultipleCopies()
const override;
95 bool supportsCustomPageSizes()
const override;
96 QSize minimumPhysicalPageSize()
const override;
97 QSize maximumPhysicalPageSize()
const override;
100 void loadPageSizes()
const override;
101 void loadResolutions()
const override;
102 void loadInputSlots()
const override;
103 void loadOutputBins()
const override;
104 void loadDuplexModes()
const override;
105 void loadColorModes()
const override;
106 void loadCopiesSupport()
const;
107 void loadMinMaxPageSizes()
const;
110 LPCWSTR wcharId()
const {
return reinterpret_cast<LPCWSTR>(m_id.utf16()); }
113 mutable bool m_haveCopies;
114 mutable bool m_haveMinMaxPageSizes;