Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QCocoaPrintDevice Class Reference

#include <qcocoaprintdevice_p.h>

+ Inheritance diagram for QCocoaPrintDevice:
+ Collaboration diagram for QCocoaPrintDevice:

Public Member Functions

 QCocoaPrintDevice ()
 
 QCocoaPrintDevice (const QString &id)
 
virtual ~QCocoaPrintDevice ()
 
bool isValid () const override
 
bool isDefault () const override
 
QPrint::DeviceState state () const override
 
QPageSize defaultPageSize () const override
 
QMarginsF printableMargins (const QPageSize &pageSize, QPageLayout::Orientation orientation, int resolution) const override
 
int defaultResolution () const override
 
QPrint::InputSlot defaultInputSlot () const override
 
QPrint::OutputBin defaultOutputBin () const override
 
QPrint::DuplexMode defaultDuplexMode () const override
 
QPrint::ColorMode defaultColorMode () const override
 
PMPrinter macPrinter () const
 
PMPaper macPaper (const QPageSize &pageSize) const
 
- Public Member Functions inherited from QPlatformPrintDevice
 QPlatformPrintDevice (const QString &id=QString())
 
virtual ~QPlatformPrintDevice ()
 
virtual QString id () const
 
virtual QString name () const
 
virtual QString location () const
 
virtual QString makeAndModel () const
 
virtual bool isRemote () const
 
virtual bool isValidPageLayout (const QPageLayout &layout, int resolution) const
 
virtual bool supportsMultipleCopies () const
 
virtual bool supportsCollateCopies () const
 
virtual QList< QPageSizesupportedPageSizes () const
 
virtual QPageSize supportedPageSize (const QPageSize &pageSize) const
 
virtual QPageSize supportedPageSize (QPageSize::PageSizeId pageSizeId) const
 
virtual QPageSize supportedPageSize (const QString &pageName) const
 
virtual QPageSize supportedPageSize (const QSize &pointSize) const
 
virtual QPageSize supportedPageSize (const QSizeF &size, QPageSize::Unit units) const
 
virtual bool supportsCustomPageSizes () const
 
virtual QSize minimumPhysicalPageSize () const
 
virtual QSize maximumPhysicalPageSize () const
 
virtual QList< int > supportedResolutions () const
 
virtual QList< QPrint::InputSlotsupportedInputSlots () const
 
virtual QList< QPrint::OutputBinsupportedOutputBins () const
 
virtual QList< QPrint::DuplexModesupportedDuplexModes () const
 
virtual QList< QPrint::ColorModesupportedColorModes () const
 
virtual QVariant property (QPrintDevice::PrintDevicePropertyKey key) const
 
virtual bool setProperty (QPrintDevice::PrintDevicePropertyKey key, const QVariant &value)
 
virtual bool isFeatureAvailable (QPrintDevice::PrintDevicePropertyKey key, const QVariant &params) const
 

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
 
- Protected Member Functions inherited from QPlatformPrintDevice
QPageSize supportedPageSizeMatch (const QPageSize &pageSize) const
 

Additional Inherited Members

- Static Public Member Functions inherited from QPlatformPrintDevice
static QPageSize createPageSize (const QString &key, const QSize &size, const QString &localizedName)
 
static QPageSize createPageSize (int windowsId, const QSize &size, const QString &localizedName)
 
- Protected Attributes inherited from QPlatformPrintDevice
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< QPageSizem_pageSizes
 
bool m_supportsCustomPageSizes
 
QSize m_minimumPhysicalPageSize
 
QSize m_maximumPhysicalPageSize
 
bool m_haveResolutions
 
QList< int > m_resolutions
 
bool m_haveInputSlots
 
QList< QPrint::InputSlotm_inputSlots
 
bool m_haveOutputBins
 
QList< QPrint::OutputBinm_outputBins
 
bool m_haveDuplexModes
 
QList< QPrint::DuplexModem_duplexModes
 
bool m_haveColorModes
 
QList< QPrint::ColorModem_colorModes
 

Detailed Description

Definition at line 32 of file qcocoaprintdevice_p.h.

Constructor & Destructor Documentation

◆ QCocoaPrintDevice() [1/2]

QCocoaPrintDevice::QCocoaPrintDevice ( )

Definition at line 35 of file qcocoaprintdevice.mm.

◆ QCocoaPrintDevice() [2/2]

◆ ~QCocoaPrintDevice()

QCocoaPrintDevice::~QCocoaPrintDevice ( )
virtual

Definition at line 81 of file qcocoaprintdevice.mm.

Member Function Documentation

◆ defaultColorMode()

QPrint::ColorMode QCocoaPrintDevice::defaultColorMode ( ) const
overridevirtual

Reimplemented from QPlatformPrintDevice.

Definition at line 371 of file qcocoaprintdevice.mm.

References QPrint::Color, contains(), QPrint::GrayScale, qstrcmp(), and QPlatformPrintDevice::supportedColorModes().

+ Here is the call graph for this function:

◆ defaultDuplexMode()

QPrint::DuplexMode QCocoaPrintDevice::defaultDuplexMode ( ) const
overridevirtual

Reimplemented from QPlatformPrintDevice.

Definition at line 346 of file qcocoaprintdevice.mm.

References QPrint::DuplexNone, macToDuplexMode(), and settings.

+ Here is the call graph for this function:

◆ defaultInputSlot()

QPrint::InputSlot QCocoaPrintDevice::defaultInputSlot ( ) const
overridevirtual

Reimplemented from QPlatformPrintDevice.

Definition at line 258 of file qcocoaprintdevice.mm.

References QPlatformPrintDevice::defaultInputSlot().

+ Here is the call graph for this function:

◆ defaultOutputBin()

QPrint::OutputBin QCocoaPrintDevice::defaultOutputBin ( ) const
overridevirtual

Reimplemented from QPlatformPrintDevice.

Definition at line 300 of file qcocoaprintdevice.mm.

References QPlatformPrintDevice::defaultOutputBin().

+ Here is the call graph for this function:

◆ defaultPageSize()

QPageSize QCocoaPrintDevice::defaultPageSize ( ) const
overridevirtual

Reimplemented from QPlatformPrintDevice.

Definition at line 163 of file qcocoaprintdevice.mm.

◆ defaultResolution()

int QCocoaPrintDevice::defaultResolution ( ) const
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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isDefault()

bool QCocoaPrintDevice::isDefault ( ) const
overridevirtual

Reimplemented from QPlatformPrintDevice.

Definition at line 99 of file qcocoaprintdevice.mm.

◆ isValid()

bool QCocoaPrintDevice::isValid ( ) const
overridevirtual

Reimplemented from QPlatformPrintDevice.

Definition at line 94 of file qcocoaprintdevice.mm.

◆ loadColorModes()

void QCocoaPrintDevice::loadColorModes ( ) const
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.

+ Here is the call graph for this function:

◆ loadDuplexModes()

void QCocoaPrintDevice::loadDuplexModes ( ) const
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().

+ Here is the call graph for this function:

◆ loadInputSlots()

void QCocoaPrintDevice::loadInputSlots ( ) const
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().

+ Here is the call graph for this function:

◆ loadOutputBins()

void QCocoaPrintDevice::loadOutputBins ( ) const
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().

+ Here is the call graph for this function:

◆ loadPageSizes()

void QCocoaPrintDevice::loadPageSizes ( ) const
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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ loadResolutions()

void QCocoaPrintDevice::loadResolutions ( ) const
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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ macPaper()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ macPrinter()

PMPrinter QCocoaPrintDevice::macPrinter ( ) const

Definition at line 427 of file qcocoaprintdevice.mm.

◆ printableMargins()

QMarginsF QCocoaPrintDevice::printableMargins ( const QPageSize & pageSize,
QPageLayout::Orientation orientation,
int resolution ) const
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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ state()

QPrint::DeviceState QCocoaPrintDevice::state ( ) const
overridevirtual

Reimplemented from QPlatformPrintDevice.

Definition at line 104 of file qcocoaprintdevice.mm.

References QPrint::Active, QPrint::Error, QPrint::Idle, and state().

Referenced by state().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: