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
QPpdPrintDevice Class Reference

#include <qppdprintdevice.h>

+ Inheritance diagram for QPpdPrintDevice:
+ Collaboration diagram for QPpdPrintDevice:

Public Member Functions

 QPpdPrintDevice (const QString &id)
 
virtual ~QPpdPrintDevice ()
 
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
 
QVariant property (QPrintDevice::PrintDevicePropertyKey key) const override
 
bool setProperty (QPrintDevice::PrintDevicePropertyKey key, const QVariant &value) override
 
bool isFeatureAvailable (QPrintDevice::PrintDevicePropertyKey key, const QVariant &params) const override
 
- 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
 

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 29 of file qppdprintdevice.h.

Constructor & Destructor Documentation

◆ QPpdPrintDevice()

◆ ~QPpdPrintDevice()

QPpdPrintDevice::~QPpdPrintDevice ( )
virtual

Definition at line 74 of file qppdprintdevice.cpp.

Member Function Documentation

◆ defaultColorMode()

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

Reimplemented from QPlatformPrintDevice.

Definition at line 396 of file qppdprintdevice.cpp.

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

+ Here is the call graph for this function:

◆ defaultDuplexMode()

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

Reimplemented from QPlatformPrintDevice.

Definition at line 366 of file qppdprintdevice.cpp.

References QPrint::DuplexNone.

◆ defaultInputSlot()

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

Reimplemented from QPlatformPrintDevice.

Definition at line 276 of file qppdprintdevice.cpp.

References QPlatformPrintDevice::defaultInputSlot().

+ Here is the call graph for this function:

◆ defaultOutputBin()

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

Reimplemented from QPlatformPrintDevice.

Definition at line 317 of file qppdprintdevice.cpp.

References QPlatformPrintDevice::defaultOutputBin().

+ Here is the call graph for this function:

◆ defaultPageSize()

QPageSize QPpdPrintDevice::defaultPageSize ( ) const
overridevirtual

Reimplemented from QPlatformPrintDevice.

Definition at line 140 of file qppdprintdevice.cpp.

References QPlatformPrintDevice::createPageSize(), QString::fromUtf8(), and qRound().

+ Here is the call graph for this function:

◆ defaultResolution()

int QPpdPrintDevice::defaultResolution ( ) const
overridevirtual

Reimplemented from QPlatformPrintDevice.

Definition at line 214 of file qppdprintdevice.cpp.

◆ isDefault()

bool QPpdPrintDevice::isDefault ( ) const
overridevirtual

Reimplemented from QPlatformPrintDevice.

Definition at line 89 of file qppdprintdevice.cpp.

References QPlatformPrintDevice::id(), and QCupsPrinterSupport::staticDefaultPrintDeviceId().

+ Here is the call graph for this function:

◆ isFeatureAvailable()

bool QPpdPrintDevice::isFeatureAvailable ( QPrintDevice::PrintDevicePropertyKey key,
const QVariant & params ) const
overridevirtual

Reimplemented from QPlatformPrintDevice.

Definition at line 440 of file qppdprintdevice.cpp.

References QPlatformPrintDevice::isFeatureAvailable(), and PDPK_PpdChoiceIsInstallableConflict.

+ Here is the call graph for this function:

◆ isValid()

bool QPpdPrintDevice::isValid ( ) const
overridevirtual

Reimplemented from QPlatformPrintDevice.

Definition at line 84 of file qppdprintdevice.cpp.

◆ loadColorModes()

void QPpdPrintDevice::loadColorModes ( ) const
overrideprotectedvirtual

Reimplemented from QPlatformPrintDevice.

Definition at line 382 of file qppdprintdevice.cpp.

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 QPpdPrintDevice::loadDuplexModes ( ) const
overrideprotectedvirtual

Reimplemented from QPlatformPrintDevice.

Definition at line 334 of file qppdprintdevice.cpp.

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, QList< T >::reserve(), and QList< T >::size().

+ Here is the call graph for this function:

◆ loadInputSlots()

void QPpdPrintDevice::loadInputSlots ( ) const
overrideprotectedvirtual

Reimplemented from QPlatformPrintDevice.

Definition at line 248 of file qppdprintdevice.cpp.

References QList< T >::append(), QList< T >::clear(), QPlatformPrintDevice::defaultInputSlot(), i, QPlatformPrintDevice::m_haveInputSlots, QPlatformPrintDevice::m_inputSlots, QList< T >::reserve(), and QList< T >::size().

+ Here is the call graph for this function:

◆ loadOutputBins()

void QPpdPrintDevice::loadOutputBins ( ) const
overrideprotectedvirtual

Reimplemented from QPlatformPrintDevice.

Definition at line 293 of file qppdprintdevice.cpp.

References QList< T >::append(), QList< T >::clear(), QPlatformPrintDevice::defaultOutputBin(), i, QPlatformPrintDevice::m_haveOutputBins, QPlatformPrintDevice::m_outputBins, QList< T >::reserve(), and QList< T >::size().

+ Here is the call graph for this function:

◆ loadPageSizes()

void QPpdPrintDevice::loadPageSizes ( ) const
overrideprotectedvirtual

Reimplemented from QPlatformPrintDevice.

Definition at line 112 of file qppdprintdevice.cpp.

References QList< T >::append(), QList< T >::clear(), QHash< Key, T >::clear(), QPlatformPrintDevice::createPageSize(), QString::fromUtf8(), i, QHash< Key, T >::insert(), QPageSize::isValid(), QPlatformPrintDevice::m_havePageSizes, QPlatformPrintDevice::m_pageSizes, and qRound().

Referenced by printableMargins().

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

◆ loadResolutions()

void QPpdPrintDevice::loadResolutions ( ) const
overrideprotectedvirtual

Reimplemented from QPlatformPrintDevice.

Definition at line 170 of file qppdprintdevice.cpp.

References QList< T >::append(), QList< T >::clear(), i, QPlatformPrintDevice::m_haveResolutions, QPlatformPrintDevice::m_resolutions, and QList< T >::size().

+ Here is the call graph for this function:

◆ printableMargins()

QMarginsF QPpdPrintDevice::printableMargins ( const QPageSize & pageSize,
QPageLayout::Orientation orientation,
int resolution ) const
overridevirtual

Reimplemented from QPlatformPrintDevice.

Definition at line 156 of file qppdprintdevice.cpp.

References QHash< Key, T >::contains(), QPageSize::key(), loadPageSizes(), QPlatformPrintDevice::m_havePageSizes, Q_UNUSED, and QHash< Key, T >::value().

+ Here is the call graph for this function:

◆ property()

QVariant QPpdPrintDevice::property ( QPrintDevice::PrintDevicePropertyKey key) const
overridevirtual

Reimplemented from QPlatformPrintDevice.

Definition at line 411 of file qppdprintdevice.cpp.

References PDPK_CupsJobBilling, PDPK_CupsJobHoldUntil, PDPK_CupsJobPriority, PDPK_CupsJobSheets, PDPK_PpdFile, QPlatformPrintDevice::property(), and QStringLiteral.

+ Here is the call graph for this function:

◆ setProperty()

bool QPpdPrintDevice::setProperty ( QPrintDevice::PrintDevicePropertyKey key,
const QVariant & value )
overridevirtual

Reimplemented from QPlatformPrintDevice.

Definition at line 427 of file qppdprintdevice.cpp.

References PDPK_PpdOption, and QPlatformPrintDevice::setProperty().

+ Here is the call graph for this function:

◆ state()

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

Reimplemented from QPlatformPrintDevice.

Definition at line 99 of file qppdprintdevice.cpp.

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

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: