![]() |
Qt 6.x
The Qt SDK
|
#include <qcocoaprintdevice_p.h>
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 |
![]() | |
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 | |
![]() | |
static QPageSize | createPageSize (const QString &key, const QSize &size, const QString &localizedName) |
static QPageSize | createPageSize (int windowsId, const QSize &size, const QString &localizedName) |
![]() | |
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 32 of file qcocoaprintdevice_p.h.
QCocoaPrintDevice::QCocoaPrintDevice | ( | ) |
Definition at line 35 of file qcocoaprintdevice.mm.
|
explicit |
Definition at line 43 of file qcocoaprintdevice.mm.
References Boolean, QPlatformPrintDevice::isRemote(), QPlatformPrintDevice::m_isRemote, QPlatformPrintDevice::m_location, QPlatformPrintDevice::m_makeAndModel, QPlatformPrintDevice::m_maximumPhysicalPageSize, QPlatformPrintDevice::m_minimumPhysicalPageSize, QPlatformPrintDevice::m_name, QPlatformPrintDevice::m_supportsCollateCopies, QPlatformPrintDevice::m_supportsCustomPageSizes, and QPlatformPrintDevice::m_supportsMultipleCopies.
|
virtual |
Definition at line 81 of file qcocoaprintdevice.mm.
|
overridevirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 371 of file qcocoaprintdevice.mm.
References QPrint::Color, contains(), QPrint::GrayScale, qstrcmp(), and QPlatformPrintDevice::supportedColorModes().
|
overridevirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 346 of file qcocoaprintdevice.mm.
References QPrint::DuplexNone, macToDuplexMode(), and settings.
|
overridevirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 258 of file qcocoaprintdevice.mm.
References QPlatformPrintDevice::defaultInputSlot().
|
overridevirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 300 of file qcocoaprintdevice.mm.
References QPlatformPrintDevice::defaultOutputBin().
|
overridevirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 163 of file qcocoaprintdevice.mm.
|
overridevirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 206 of file qcocoaprintdevice.mm.
References QList< T >::at(), QList< T >::count(), defaultResolution(), loadResolutions(), QPlatformPrintDevice::m_haveResolutions, QPlatformPrintDevice::m_resolutions, and settings.
Referenced by defaultResolution().
|
overridevirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 99 of file qcocoaprintdevice.mm.
|
overridevirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 94 of file qcocoaprintdevice.mm.
|
overrideprotectedvirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 361 of file qcocoaprintdevice.mm.
References QList< T >::append(), QList< T >::clear(), QPrint::Color, QPrint::GrayScale, QPlatformPrintDevice::m_colorModes, and QPlatformPrintDevice::m_haveColorModes.
|
overrideprotectedvirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 318 of file qcocoaprintdevice.mm.
References QList< T >::append(), QList< T >::clear(), QListSpecialMethodsBase< T >::contains(), QPrint::DuplexAuto, QPrint::DuplexLongSide, QPrint::DuplexNone, QPrint::DuplexShortSide, i, QPlatformPrintDevice::m_duplexModes, QPlatformPrintDevice::m_haveDuplexModes, and QList< T >::size().
|
overrideprotectedvirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 231 of file qcocoaprintdevice.mm.
References QList< T >::append(), QList< T >::clear(), QPlatformPrintDevice::defaultInputSlot(), i, QPlatformPrintDevice::m_haveInputSlots, QPlatformPrintDevice::m_inputSlots, and QList< T >::size().
|
overrideprotectedvirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 276 of file qcocoaprintdevice.mm.
References QList< T >::append(), QList< T >::clear(), QPlatformPrintDevice::defaultOutputBin(), i, QPlatformPrintDevice::m_haveOutputBins, QPlatformPrintDevice::m_outputBins, and QList< T >::size().
|
overrideprotectedvirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 136 of file qcocoaprintdevice.mm.
References QList< T >::append(), QList< T >::clear(), QHash< Key, T >::clear(), i, QHash< Key, T >::insert(), QPageSize::isValid(), QPageSize::key(), QPlatformPrintDevice::m_havePageSizes, and QPlatformPrintDevice::m_pageSizes.
Referenced by macPaper(), and printableMargins().
|
overrideprotectedvirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 191 of file qcocoaprintdevice.mm.
References QList< T >::append(), QList< T >::clear(), i, QPlatformPrintDevice::m_haveResolutions, and QPlatformPrintDevice::m_resolutions.
Referenced by defaultResolution().
PMPaper QCocoaPrintDevice::macPaper | ( | const QPageSize & | pageSize | ) | const |
Definition at line 434 of file qcocoaprintdevice.mm.
References QMarginsF::bottom(), QHash< Key, T >::contains(), QSize::height(), QHash< Key, T >::insert(), QPageSize::key(), QMarginsF::left(), loadPageSizes(), QPlatformPrintDevice::m_havePageSizes, QPageSize::name(), QMarginsF::right(), QPageSize::sizePoints(), QMarginsF::top(), QHash< Key, T >::value(), and QSize::width().
Referenced by QMacPrintEnginePrivate::setPageSize().
PMPrinter QCocoaPrintDevice::macPrinter | ( | ) | const |
Definition at line 427 of file qcocoaprintdevice.mm.
|
overridevirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 178 of file qcocoaprintdevice.mm.
References QHash< Key, T >::contains(), QPageSize::key(), loadPageSizes(), QPlatformPrintDevice::m_havePageSizes, Q_UNUSED, and QHash< Key, T >::value().
Referenced by QMacPrintEnginePrivate::setPageSize().
|
overridevirtual |
Reimplemented from QPlatformPrintDevice.
Definition at line 104 of file qcocoaprintdevice.mm.
References QPrint::Active, QPrint::Error, QPrint::Idle, and state().
Referenced by state().