Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QPlatformPrintDevice Class Reference

#include <qplatformprintdevice.h>

Inheritance diagram for QPlatformPrintDevice:
Collaboration diagram for QPlatformPrintDevice:

Public Member Functions

 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 isValid () const
virtual bool isDefault () const
virtual bool isRemote () const
virtual QPrint::DeviceState state () const
virtual bool isValidPageLayout (const QPageLayout &layout, int resolution) const
virtual bool supportsMultipleCopies () const
virtual bool supportsCollateCopies () const
virtual QPageSize defaultPageSize () 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 QMarginsF printableMargins (const QPageSize &pageSize, QPageLayout::Orientation orientation, int resolution) const
virtual int defaultResolution () const
virtual QList< int > supportedResolutions () const
virtual QPrint::InputSlot defaultInputSlot () const
virtual QList< QPrint::InputSlotsupportedInputSlots () const
virtual QPrint::OutputBin defaultOutputBin () const
virtual QList< QPrint::OutputBinsupportedOutputBins () const
virtual QPrint::DuplexMode defaultDuplexMode () const
virtual QList< QPrint::DuplexModesupportedDuplexModes () const
virtual QPrint::ColorMode defaultColorMode () 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

Static Public Member Functions

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

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

Protected Attributes

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 36 of file qplatformprintdevice.h.

Constructor & Destructor Documentation

◆ QPlatformPrintDevice()

QT_BEGIN_NAMESPACE QPlatformPrintDevice::QPlatformPrintDevice ( const QString & id = QString())
explicit

Definition at line 16 of file qplatformprintdevice.cpp.

◆ ~QPlatformPrintDevice()

QPlatformPrintDevice::~QPlatformPrintDevice ( )
virtual

Definition at line 34 of file qplatformprintdevice.cpp.

Member Function Documentation

◆ createPageSize() [1/2]

QPageSize QPlatformPrintDevice::createPageSize ( const QString & key,
const QSize & size,
const QString & localizedName )
static

Definition at line 363 of file qplatformprintdevice.cpp.

◆ createPageSize() [2/2]

QPageSize QPlatformPrintDevice::createPageSize ( int windowsId,
const QSize & size,
const QString & localizedName )
static

Definition at line 368 of file qplatformprintdevice.cpp.

◆ defaultColorMode()

QPrint::ColorMode QPlatformPrintDevice::defaultColorMode ( ) const
virtual

Reimplemented in QCocoaPrintDevice, QPpdPrintDevice, and QWindowsPrintDevice.

Definition at line 313 of file qplatformprintdevice.cpp.

◆ defaultDuplexMode()

QPrint::DuplexMode QPlatformPrintDevice::defaultDuplexMode ( ) const
virtual

Reimplemented in QCocoaPrintDevice, QPpdPrintDevice, and QWindowsPrintDevice.

Definition at line 297 of file qplatformprintdevice.cpp.

◆ defaultInputSlot()

QPrint::InputSlot QPlatformPrintDevice::defaultInputSlot ( ) const
virtual

Reimplemented in QCocoaPrintDevice, QPpdPrintDevice, and QWindowsPrintDevice.

Definition at line 257 of file qplatformprintdevice.cpp.

◆ defaultOutputBin()

QPrint::OutputBin QPlatformPrintDevice::defaultOutputBin ( ) const
virtual

Reimplemented in QCocoaPrintDevice, and QPpdPrintDevice.

Definition at line 277 of file qplatformprintdevice.cpp.

◆ defaultPageSize()

QPageSize QPlatformPrintDevice::defaultPageSize ( ) const
virtual

Reimplemented in QCocoaPrintDevice, QPpdPrintDevice, and QWindowsPrintDevice.

Definition at line 111 of file qplatformprintdevice.cpp.

◆ defaultResolution()

int QPlatformPrintDevice::defaultResolution ( ) const
virtual

Reimplemented in QCocoaPrintDevice, QPpdPrintDevice, and QWindowsPrintDevice.

Definition at line 241 of file qplatformprintdevice.cpp.

◆ id()

QString QPlatformPrintDevice::id ( ) const
virtual

Definition at line 38 of file qplatformprintdevice.cpp.

◆ isDefault()

bool QPlatformPrintDevice::isDefault ( ) const
virtual

Reimplemented in QCocoaPrintDevice, QPpdPrintDevice, and QWindowsPrintDevice.

Definition at line 63 of file qplatformprintdevice.cpp.

◆ isFeatureAvailable()

bool QPlatformPrintDevice::isFeatureAvailable ( QPrintDevice::PrintDevicePropertyKey key,
const QVariant & params ) const
virtual

Reimplemented in QPpdPrintDevice.

Definition at line 346 of file qplatformprintdevice.cpp.

◆ isRemote()

bool QPlatformPrintDevice::isRemote ( ) const
virtual

Definition at line 68 of file qplatformprintdevice.cpp.

◆ isValid()

bool QPlatformPrintDevice::isValid ( ) const
virtual

Reimplemented in QCocoaPrintDevice, QPpdPrintDevice, and QWindowsPrintDevice.

Definition at line 58 of file qplatformprintdevice.cpp.

◆ isValidPageLayout()

bool QPlatformPrintDevice::isValidPageLayout ( const QPageLayout & layout,
int resolution ) const
virtual

Definition at line 73 of file qplatformprintdevice.cpp.

◆ loadColorModes()

void QPlatformPrintDevice::loadColorModes ( ) const
protectedvirtual

Reimplemented in QCocoaPrintDevice, QPpdPrintDevice, and QWindowsPrintDevice.

Definition at line 309 of file qplatformprintdevice.cpp.

◆ loadDuplexModes()

void QPlatformPrintDevice::loadDuplexModes ( ) const
protectedvirtual

Reimplemented in QCocoaPrintDevice, QPpdPrintDevice, and QWindowsPrintDevice.

Definition at line 293 of file qplatformprintdevice.cpp.

◆ loadInputSlots()

void QPlatformPrintDevice::loadInputSlots ( ) const
protectedvirtual

Reimplemented in QCocoaPrintDevice, QPpdPrintDevice, and QWindowsPrintDevice.

Definition at line 253 of file qplatformprintdevice.cpp.

◆ loadOutputBins()

void QPlatformPrintDevice::loadOutputBins ( ) const
protectedvirtual

Reimplemented in QCocoaPrintDevice, QPpdPrintDevice, and QWindowsPrintDevice.

Definition at line 273 of file qplatformprintdevice.cpp.

◆ loadPageSizes()

void QPlatformPrintDevice::loadPageSizes ( ) const
protectedvirtual

Reimplemented in QCocoaPrintDevice, QPpdPrintDevice, and QWindowsPrintDevice.

Definition at line 107 of file qplatformprintdevice.cpp.

◆ loadResolutions()

void QPlatformPrintDevice::loadResolutions ( ) const
protectedvirtual

Reimplemented in QCocoaPrintDevice, QPpdPrintDevice, and QWindowsPrintDevice.

Definition at line 237 of file qplatformprintdevice.cpp.

◆ location()

QString QPlatformPrintDevice::location ( ) const
virtual

Definition at line 48 of file qplatformprintdevice.cpp.

Referenced by UnreachableVisitor::visit().

Here is the caller graph for this function:

◆ makeAndModel()

QString QPlatformPrintDevice::makeAndModel ( ) const
virtual

Definition at line 53 of file qplatformprintdevice.cpp.

◆ maximumPhysicalPageSize()

QSize QPlatformPrintDevice::maximumPhysicalPageSize ( ) const
virtual

Reimplemented in QWindowsPrintDevice.

Definition at line 222 of file qplatformprintdevice.cpp.

◆ minimumPhysicalPageSize()

QSize QPlatformPrintDevice::minimumPhysicalPageSize ( ) const
virtual

Reimplemented in QWindowsPrintDevice.

Definition at line 217 of file qplatformprintdevice.cpp.

◆ name()

QString QPlatformPrintDevice::name ( ) const
virtual

Definition at line 43 of file qplatformprintdevice.cpp.

◆ printableMargins()

QMarginsF QPlatformPrintDevice::printableMargins ( const QPageSize & pageSize,
QPageLayout::Orientation orientation,
int resolution ) const
virtual

Reimplemented in QCocoaPrintDevice, QPpdPrintDevice, and QWindowsPrintDevice.

Definition at line 227 of file qplatformprintdevice.cpp.

◆ property()

QVariant QPlatformPrintDevice::property ( QPrintDevice::PrintDevicePropertyKey key) const
virtual

Reimplemented in QPpdPrintDevice.

Definition at line 331 of file qplatformprintdevice.cpp.

◆ setProperty()

bool QPlatformPrintDevice::setProperty ( QPrintDevice::PrintDevicePropertyKey key,
const QVariant & value )
virtual

Reimplemented in QPpdPrintDevice.

Definition at line 338 of file qplatformprintdevice.cpp.

◆ state()

QPrint::DeviceState QPlatformPrintDevice::state ( ) const
virtual

Reimplemented in QCocoaPrintDevice, QPpdPrintDevice, and QWindowsPrintDevice.

Definition at line 92 of file qplatformprintdevice.cpp.

◆ supportedColorModes()

QList< QPrint::ColorMode > QPlatformPrintDevice::supportedColorModes ( ) const
virtual

Definition at line 318 of file qplatformprintdevice.cpp.

◆ supportedDuplexModes()

QList< QPrint::DuplexMode > QPlatformPrintDevice::supportedDuplexModes ( ) const
virtual

Definition at line 302 of file qplatformprintdevice.cpp.

◆ supportedInputSlots()

QList< QPrint::InputSlot > QPlatformPrintDevice::supportedInputSlots ( ) const
virtual

Definition at line 266 of file qplatformprintdevice.cpp.

◆ supportedOutputBins()

QList< QPrint::OutputBin > QPlatformPrintDevice::supportedOutputBins ( ) const
virtual

Definition at line 286 of file qplatformprintdevice.cpp.

◆ supportedPageSize() [1/5]

QPageSize QPlatformPrintDevice::supportedPageSize ( const QPageSize & pageSize) const
virtual

Definition at line 123 of file qplatformprintdevice.cpp.

◆ supportedPageSize() [2/5]

QPageSize QPlatformPrintDevice::supportedPageSize ( const QSize & pointSize) const
virtual

Definition at line 180 of file qplatformprintdevice.cpp.

◆ supportedPageSize() [3/5]

QPageSize QPlatformPrintDevice::supportedPageSize ( const QSizeF & size,
QPageSize::Unit units ) const
virtual

Definition at line 189 of file qplatformprintdevice.cpp.

◆ supportedPageSize() [4/5]

QPageSize QPlatformPrintDevice::supportedPageSize ( const QString & pageName) const
virtual

Definition at line 167 of file qplatformprintdevice.cpp.

◆ supportedPageSize() [5/5]

QPageSize QPlatformPrintDevice::supportedPageSize ( QPageSize::PageSizeId pageSizeId) const
virtual

Definition at line 153 of file qplatformprintdevice.cpp.

◆ supportedPageSizeMatch()

QPageSize QPlatformPrintDevice::supportedPageSizeMatch ( const QPageSize & pageSize) const
protected

Definition at line 198 of file qplatformprintdevice.cpp.

◆ supportedPageSizes()

QList< QPageSize > QPlatformPrintDevice::supportedPageSizes ( ) const
virtual

Definition at line 116 of file qplatformprintdevice.cpp.

◆ supportedResolutions()

QList< int > QPlatformPrintDevice::supportedResolutions ( ) const
virtual

Definition at line 246 of file qplatformprintdevice.cpp.

◆ supportsCollateCopies()

bool QPlatformPrintDevice::supportsCollateCopies ( ) const
virtual

Reimplemented in QWindowsPrintDevice.

Definition at line 102 of file qplatformprintdevice.cpp.

◆ supportsCustomPageSizes()

bool QPlatformPrintDevice::supportsCustomPageSizes ( ) const
virtual

Reimplemented in QWindowsPrintDevice.

Definition at line 212 of file qplatformprintdevice.cpp.

◆ supportsMultipleCopies()

bool QPlatformPrintDevice::supportsMultipleCopies ( ) const
virtual

Reimplemented in QWindowsPrintDevice.

Definition at line 97 of file qplatformprintdevice.cpp.

Member Data Documentation

◆ m_colorModes

QList<QPrint::ColorMode> QPlatformPrintDevice::m_colorModes
mutableprotected

Definition at line 146 of file qplatformprintdevice.h.

◆ m_duplexModes

QList<QPrint::DuplexMode> QPlatformPrintDevice::m_duplexModes
mutableprotected

Definition at line 143 of file qplatformprintdevice.h.

◆ m_haveColorModes

bool QPlatformPrintDevice::m_haveColorModes
mutableprotected

Definition at line 145 of file qplatformprintdevice.h.

◆ m_haveDuplexModes

bool QPlatformPrintDevice::m_haveDuplexModes
mutableprotected

Definition at line 142 of file qplatformprintdevice.h.

◆ m_haveInputSlots

bool QPlatformPrintDevice::m_haveInputSlots
mutableprotected

Definition at line 136 of file qplatformprintdevice.h.

◆ m_haveOutputBins

bool QPlatformPrintDevice::m_haveOutputBins
mutableprotected

Definition at line 139 of file qplatformprintdevice.h.

◆ m_havePageSizes

bool QPlatformPrintDevice::m_havePageSizes
mutableprotected

Definition at line 125 of file qplatformprintdevice.h.

◆ m_haveResolutions

bool QPlatformPrintDevice::m_haveResolutions
mutableprotected

Definition at line 133 of file qplatformprintdevice.h.

◆ m_id

QString QPlatformPrintDevice::m_id
protected

Definition at line 115 of file qplatformprintdevice.h.

◆ m_inputSlots

QList<QPrint::InputSlot> QPlatformPrintDevice::m_inputSlots
mutableprotected

Definition at line 137 of file qplatformprintdevice.h.

◆ m_isRemote

bool QPlatformPrintDevice::m_isRemote
protected

Definition at line 120 of file qplatformprintdevice.h.

◆ m_location

QString QPlatformPrintDevice::m_location
protected

Definition at line 117 of file qplatformprintdevice.h.

◆ m_makeAndModel

QString QPlatformPrintDevice::m_makeAndModel
protected

Definition at line 118 of file qplatformprintdevice.h.

◆ m_maximumPhysicalPageSize

QSize QPlatformPrintDevice::m_maximumPhysicalPageSize
mutableprotected

Definition at line 131 of file qplatformprintdevice.h.

◆ m_minimumPhysicalPageSize

QSize QPlatformPrintDevice::m_minimumPhysicalPageSize
mutableprotected

Definition at line 130 of file qplatformprintdevice.h.

◆ m_name

QString QPlatformPrintDevice::m_name
protected

Definition at line 116 of file qplatformprintdevice.h.

◆ m_outputBins

QList<QPrint::OutputBin> QPlatformPrintDevice::m_outputBins
mutableprotected

Definition at line 140 of file qplatformprintdevice.h.

◆ m_pageSizes

QList<QPageSize> QPlatformPrintDevice::m_pageSizes
mutableprotected

Definition at line 126 of file qplatformprintdevice.h.

◆ m_resolutions

QList<int> QPlatformPrintDevice::m_resolutions
mutableprotected

Definition at line 134 of file qplatformprintdevice.h.

◆ m_supportsCollateCopies

bool QPlatformPrintDevice::m_supportsCollateCopies
mutableprotected

Definition at line 123 of file qplatformprintdevice.h.

◆ m_supportsCustomPageSizes

bool QPlatformPrintDevice::m_supportsCustomPageSizes
mutableprotected

Definition at line 128 of file qplatformprintdevice.h.

◆ m_supportsMultipleCopies

bool QPlatformPrintDevice::m_supportsMultipleCopies
mutableprotected

Definition at line 122 of file qplatformprintdevice.h.


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