![]() |
Qt 6.x
The Qt SDK
|
#include <qwindowsprintdevice_p.h>
Static Public Member Functions | |
static QStringList | availablePrintDeviceIds () |
static QString | defaultPrintDeviceId () |
![]() | |
static QPageSize | createPageSize (const QString &key, const QSize &size, const QString &localizedName) |
static QPageSize | createPageSize (int windowsId, const QSize &size, const QString &localizedName) |
Protected Member Functions | |
void | loadPageSizes () const override |
void | loadResolutions () const override |
void | loadInputSlots () const override |
void | loadOutputBins () const override |
void | loadDuplexModes () const override |
void | loadColorModes () const override |
void | loadCopiesSupport () const |
void | loadMinMaxPageSizes () const |
![]() | |
virtual void | loadPageSizes () const |
virtual void | loadResolutions () const |
virtual void | loadInputSlots () const |
virtual void | loadOutputBins () const |
virtual void | loadDuplexModes () const |
virtual void | loadColorModes () const |
QPageSize | supportedPageSizeMatch (const QPageSize &pageSize) const |
Additional Inherited Members | |
![]() | |
QString | m_id |
QString | m_name |
QString | m_location |
QString | m_makeAndModel |
bool | m_isRemote |
bool | m_supportsMultipleCopies |
bool | m_supportsCollateCopies |
bool | m_havePageSizes |
QList< QPageSize > | m_pageSizes |
bool | m_supportsCustomPageSizes |
QSize | m_minimumPhysicalPageSize |
QSize | m_maximumPhysicalPageSize |
bool | m_haveResolutions |
QList< int > | m_resolutions |
bool | m_haveInputSlots |
QList< QPrint::InputSlot > | m_inputSlots |
bool | m_haveOutputBins |
QList< QPrint::OutputBin > | m_outputBins |
bool | m_haveDuplexModes |
QList< QPrint::DuplexMode > | m_duplexModes |
bool | m_haveColorModes |
QList< QPrint::ColorMode > | m_colorModes |
Definition at line 64 of file qwindowsprintdevice_p.h.
QWindowsPrintDevice::QWindowsPrintDevice | ( | ) |
Definition at line 47 of file qwindowsprintdevice.cpp.
|
explicit |
Definition at line 53 of file qwindowsprintdevice.cpp.
References availablePrintDeviceIds(), contains(), QString::fromWCharArray(), info, QPlatformPrintDevice::m_colorModes, QWindowsPrinterInfo::m_colorModes, QPlatformPrintDevice::m_duplexModes, QWindowsPrinterInfo::m_duplexModes, QPlatformPrintDevice::m_haveColorModes, QWindowsPrinterInfo::m_haveColorModes, QWindowsPrinterInfo::m_haveCopies, QPlatformPrintDevice::m_haveDuplexModes, QWindowsPrinterInfo::m_haveDuplexModes, QPlatformPrintDevice::m_haveInputSlots, QWindowsPrinterInfo::m_haveInputSlots, QWindowsPrinterInfo::m_haveMinMaxPageSizes, QPlatformPrintDevice::m_haveOutputBins, QWindowsPrinterInfo::m_haveOutputBins, QPlatformPrintDevice::m_havePageSizes, QWindowsPrinterInfo::m_havePageSizes, QPlatformPrintDevice::m_haveResolutions, QWindowsPrinterInfo::m_haveResolutions, QPlatformPrintDevice::m_id, QWindowsPrinterInfo::m_id, QPlatformPrintDevice::m_inputSlots, QWindowsPrinterInfo::m_inputSlots, QPlatformPrintDevice::m_isRemote, QWindowsPrinterInfo::m_isRemote, QPlatformPrintDevice::m_location, QWindowsPrinterInfo::m_location, QPlatformPrintDevice::m_makeAndModel, QWindowsPrinterInfo::m_makeAndModel, QPlatformPrintDevice::m_maximumPhysicalPageSize, QWindowsPrinterInfo::m_maximumPhysicalPageSize, QPlatformPrintDevice::m_minimumPhysicalPageSize, QWindowsPrinterInfo::m_minimumPhysicalPageSize, QPlatformPrintDevice::m_name, QWindowsPrinterInfo::m_name, QPlatformPrintDevice::m_outputBins, QWindowsPrinterInfo::m_outputBins, QPlatformPrintDevice::m_pageSizes, QWindowsPrinterInfo::m_pageSizes, QPlatformPrintDevice::m_resolutions, QWindowsPrinterInfo::m_resolutions, QPlatformPrintDevice::m_supportsCollateCopies, QWindowsPrinterInfo::m_supportsCollateCopies, QPlatformPrintDevice::m_supportsCustomPageSizes, QWindowsPrinterInfo::m_supportsCustomPageSizes, QPlatformPrintDevice::m_supportsMultipleCopies, and QWindowsPrinterInfo::m_supportsMultipleCopies.
|
virtual |
Definition at line 107 of file qwindowsprintdevice.cpp.
|
static |
Definition at line 426 of file qwindowsprintdevice.cpp.
References QList< T >::append(), QString::fromWCharArray(), i, and list.
Referenced by QWindowsPrintDevice(), and QWindowsPrinterSupport::availablePrintDeviceIds().
|
overridevirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 407 of file qwindowsprintdevice.cpp.
References QPrint::Color, QListSpecialMethodsBase< T >::contains(), getDevmode(), QPrint::GrayScale, loadColorModes(), QPlatformPrintDevice::m_colorModes, QPlatformPrintDevice::m_haveColorModes, and QPlatformPrintDevice::m_id.
|
overridevirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 377 of file qwindowsprintdevice.cpp.
References QPrint::DuplexLongSide, QPrint::DuplexNone, QPrint::DuplexShortSide, getDevmode(), and QPlatformPrintDevice::m_id.
|
overridevirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 329 of file qwindowsprintdevice.cpp.
References QPlatformPrintDevice::defaultInputSlot(), getDevmode(), QPrint::InputSlot::key, QPlatformPrintDevice::m_id, QPrintUtils::paperBinToInputSlot(), and QPlatformPrintDevice::supportedInputSlots().
|
overridevirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 184 of file qwindowsprintdevice.cpp.
References getDevmode(), loadPageSizes(), QPlatformPrintDevice::m_havePageSizes, QPlatformPrintDevice::m_id, and QPlatformPrintDevice::m_pageSizes.
|
static |
Definition at line 445 of file qwindowsprintdevice.cpp.
References QString::fromWCharArray(), and QPlatformPrintDevice::name().
Referenced by QWindowsPrinterSupport::defaultPrintDeviceId(), and isDefault().
|
overridevirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 280 of file qwindowsprintdevice.cpp.
References getDevmode(), and QPlatformPrintDevice::m_id.
|
overridevirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 117 of file qwindowsprintdevice.cpp.
References defaultPrintDeviceId(), and QPlatformPrintDevice::m_id.
|
overridevirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 112 of file qwindowsprintdevice.cpp.
|
overrideprotectedvirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 395 of file qwindowsprintdevice.cpp.
References QList< T >::append(), QPrint::Color, QPrint::GrayScale, info, QPlatformPrintDevice::m_colorModes, and QPlatformPrintDevice::m_haveColorModes.
Referenced by defaultColorMode().
|
protected |
Definition at line 456 of file qwindowsprintdevice.cpp.
References DC_COLLATE, info, QPlatformPrintDevice::m_supportsCollateCopies, and QPlatformPrintDevice::m_supportsMultipleCopies.
Referenced by supportsCollateCopies(), and supportsMultipleCopies().
|
overrideprotectedvirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 361 of file qwindowsprintdevice.cpp.
References QList< T >::append(), QPrint::DuplexAuto, QPrint::DuplexLongSide, QPrint::DuplexNone, QPrint::DuplexShortSide, info, QPlatformPrintDevice::m_duplexModes, and QPlatformPrintDevice::m_haveDuplexModes.
|
overrideprotectedvirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 298 of file qwindowsprintdevice.cpp.
References QList< T >::append(), QScopedPointer< T, Cleanup >::data(), QString::fromWCharArray(), i, info, QPlatformPrintDevice::m_haveInputSlots, QPlatformPrintDevice::m_inputSlots, QPrintUtils::paperBinToInputSlot(), and qwcsnlen().
|
protected |
Definition at line 503 of file qwindowsprintdevice.cpp.
References QSize::height(), info, QPlatformPrintDevice::m_maximumPhysicalPageSize, QPlatformPrintDevice::m_minimumPhysicalPageSize, QPlatformPrintDevice::m_supportsCollateCopies, QPlatformPrintDevice::m_supportsCustomPageSizes, QPlatformPrintDevice::m_supportsMultipleCopies, QPageLayout::Millimeter, qt_pointMultiplier(), and QSize::width().
Referenced by maximumPhysicalPageSize(), minimumPhysicalPageSize(), and supportsCustomPageSizes().
|
overrideprotectedvirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 352 of file qwindowsprintdevice.cpp.
References QList< T >::append(), QPlatformPrintDevice::defaultOutputBin(), info, QPlatformPrintDevice::m_haveOutputBins, and QPlatformPrintDevice::m_outputBins.
|
overrideprotectedvirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 148 of file qwindowsprintdevice.cpp.
References QList< T >::append(), QPlatformPrintDevice::createPageSize(), QScopedPointer< T, Cleanup >::data(), QString::fromWCharArray(), i, info, QPlatformPrintDevice::m_havePageSizes, QPlatformPrintDevice::m_pageSizes, QPageLayout::Millimeter, qRound(), qt_pointMultiplier(), and qwcsnlen().
Referenced by defaultPageSize().
|
overrideprotectedvirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 262 of file qwindowsprintdevice.cpp.
References QList< T >::append(), QScopedPointer< T, Cleanup >::data(), i, info, QPlatformPrintDevice::m_haveResolutions, and QPlatformPrintDevice::m_resolutions.
|
overridevirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 496 of file qwindowsprintdevice.cpp.
References loadMinMaxPageSizes(), and QPlatformPrintDevice::m_maximumPhysicalPageSize.
|
overridevirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 489 of file qwindowsprintdevice.cpp.
References loadMinMaxPageSizes(), and QPlatformPrintDevice::m_minimumPhysicalPageSize.
|
overridevirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 209 of file qwindowsprintdevice.cpp.
References QPageSize::Custom, DMPAPER_LAST, getDevmode(), QSizeF::height(), QPageSize::id(), info, QPlatformPrintDevice::m_id, QPageSize::Millimeter, QPageLayout::Portrait, QPageSize::size(), QSizeF::width(), and QPageSize::windowsId().
|
overridevirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 122 of file qwindowsprintdevice.cpp.
References QPrint::Active, QPrint::Error, QPrint::Idle, and info.
|
overridevirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 468 of file qwindowsprintdevice.cpp.
References loadCopiesSupport(), and QPlatformPrintDevice::m_supportsCollateCopies.
|
overridevirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 482 of file qwindowsprintdevice.cpp.
References loadMinMaxPageSizes(), and QPlatformPrintDevice::m_supportsCustomPageSizes.
|
overridevirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 475 of file qwindowsprintdevice.cpp.
References loadCopiesSupport(), and QPlatformPrintDevice::m_supportsMultipleCopies.