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

Constructor & Destructor Documentation

◆ QPlatformPrintDevice()

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

Definition at line 15 of file qplatformprintdevice.cpp.

◆ ~QPlatformPrintDevice()

QPlatformPrintDevice::~QPlatformPrintDevice ( )
virtual

Definition at line 33 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 362 of file qplatformprintdevice.cpp.

◆ createPageSize() [2/2]

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

Definition at line 367 of file qplatformprintdevice.cpp.

◆ defaultColorMode()

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

Reimplemented in QCocoaPrintDevice, QPpdPrintDevice, and QWindowsPrintDevice.

Definition at line 312 of file qplatformprintdevice.cpp.

◆ defaultDuplexMode()

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

Reimplemented in QCocoaPrintDevice, QPpdPrintDevice, and QWindowsPrintDevice.

Definition at line 296 of file qplatformprintdevice.cpp.

◆ defaultInputSlot()

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

Reimplemented in QCocoaPrintDevice, QPpdPrintDevice, and QWindowsPrintDevice.

Definition at line 256 of file qplatformprintdevice.cpp.

◆ defaultOutputBin()

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

Reimplemented in QCocoaPrintDevice, and QPpdPrintDevice.

Definition at line 276 of file qplatformprintdevice.cpp.

◆ defaultPageSize()

QPageSize QPlatformPrintDevice::defaultPageSize ( ) const
virtual

Reimplemented in QCocoaPrintDevice, QPpdPrintDevice, and QWindowsPrintDevice.

Definition at line 110 of file qplatformprintdevice.cpp.

◆ defaultResolution()

int QPlatformPrintDevice::defaultResolution ( ) const
virtual

Reimplemented in QCocoaPrintDevice, QPpdPrintDevice, and QWindowsPrintDevice.

Definition at line 240 of file qplatformprintdevice.cpp.

◆ id()

QString QPlatformPrintDevice::id ( ) const
virtual

Definition at line 37 of file qplatformprintdevice.cpp.

◆ isDefault()

bool QPlatformPrintDevice::isDefault ( ) const
virtual

Reimplemented in QCocoaPrintDevice, QPpdPrintDevice, and QWindowsPrintDevice.

Definition at line 62 of file qplatformprintdevice.cpp.

◆ isFeatureAvailable()

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

Reimplemented in QPpdPrintDevice.

Definition at line 345 of file qplatformprintdevice.cpp.

◆ isRemote()

bool QPlatformPrintDevice::isRemote ( ) const
virtual

Definition at line 67 of file qplatformprintdevice.cpp.

◆ isValid()

bool QPlatformPrintDevice::isValid ( ) const
virtual

Reimplemented in QCocoaPrintDevice, QPpdPrintDevice, and QWindowsPrintDevice.

Definition at line 57 of file qplatformprintdevice.cpp.

◆ isValidPageLayout()

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

Definition at line 72 of file qplatformprintdevice.cpp.

◆ loadColorModes()

void QPlatformPrintDevice::loadColorModes ( ) const
protectedvirtual

Reimplemented in QCocoaPrintDevice, QPpdPrintDevice, and QWindowsPrintDevice.

Definition at line 308 of file qplatformprintdevice.cpp.

◆ loadDuplexModes()

void QPlatformPrintDevice::loadDuplexModes ( ) const
protectedvirtual

Reimplemented in QCocoaPrintDevice, QPpdPrintDevice, and QWindowsPrintDevice.

Definition at line 292 of file qplatformprintdevice.cpp.

◆ loadInputSlots()

void QPlatformPrintDevice::loadInputSlots ( ) const
protectedvirtual

Reimplemented in QCocoaPrintDevice, QPpdPrintDevice, and QWindowsPrintDevice.

Definition at line 252 of file qplatformprintdevice.cpp.

◆ loadOutputBins()

void QPlatformPrintDevice::loadOutputBins ( ) const
protectedvirtual

Reimplemented in QCocoaPrintDevice, QPpdPrintDevice, and QWindowsPrintDevice.

Definition at line 272 of file qplatformprintdevice.cpp.

◆ loadPageSizes()

void QPlatformPrintDevice::loadPageSizes ( ) const
protectedvirtual

Reimplemented in QCocoaPrintDevice, QPpdPrintDevice, and QWindowsPrintDevice.

Definition at line 106 of file qplatformprintdevice.cpp.

◆ loadResolutions()

void QPlatformPrintDevice::loadResolutions ( ) const
protectedvirtual

Reimplemented in QCocoaPrintDevice, QPpdPrintDevice, and QWindowsPrintDevice.

Definition at line 236 of file qplatformprintdevice.cpp.

◆ location()

QString QPlatformPrintDevice::location ( ) const
virtual

Definition at line 47 of file qplatformprintdevice.cpp.

◆ makeAndModel()

QString QPlatformPrintDevice::makeAndModel ( ) const
virtual

Definition at line 52 of file qplatformprintdevice.cpp.

◆ maximumPhysicalPageSize()

QSize QPlatformPrintDevice::maximumPhysicalPageSize ( ) const
virtual

Reimplemented in QWindowsPrintDevice.

Definition at line 221 of file qplatformprintdevice.cpp.

◆ minimumPhysicalPageSize()

QSize QPlatformPrintDevice::minimumPhysicalPageSize ( ) const
virtual

Reimplemented in QWindowsPrintDevice.

Definition at line 216 of file qplatformprintdevice.cpp.

◆ name()

QString QPlatformPrintDevice::name ( ) const
virtual

Definition at line 42 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 226 of file qplatformprintdevice.cpp.

◆ property()

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

Reimplemented in QPpdPrintDevice.

Definition at line 330 of file qplatformprintdevice.cpp.

◆ setProperty()

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

Reimplemented in QPpdPrintDevice.

Definition at line 337 of file qplatformprintdevice.cpp.

◆ state()

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

Reimplemented in QCocoaPrintDevice, QPpdPrintDevice, and QWindowsPrintDevice.

Definition at line 91 of file qplatformprintdevice.cpp.

◆ supportedColorModes()

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

Definition at line 317 of file qplatformprintdevice.cpp.

◆ supportedDuplexModes()

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

Definition at line 301 of file qplatformprintdevice.cpp.

◆ supportedInputSlots()

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

Definition at line 265 of file qplatformprintdevice.cpp.

◆ supportedOutputBins()

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

Definition at line 285 of file qplatformprintdevice.cpp.

◆ supportedPageSize() [1/5]

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

Definition at line 122 of file qplatformprintdevice.cpp.

◆ supportedPageSize() [2/5]

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

Definition at line 179 of file qplatformprintdevice.cpp.

◆ supportedPageSize() [3/5]

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

Definition at line 188 of file qplatformprintdevice.cpp.

◆ supportedPageSize() [4/5]

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

Definition at line 166 of file qplatformprintdevice.cpp.

◆ supportedPageSize() [5/5]

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

Definition at line 152 of file qplatformprintdevice.cpp.

◆ supportedPageSizeMatch()

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

Definition at line 197 of file qplatformprintdevice.cpp.

◆ supportedPageSizes()

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

Definition at line 115 of file qplatformprintdevice.cpp.

◆ supportedResolutions()

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

Definition at line 245 of file qplatformprintdevice.cpp.

◆ supportsCollateCopies()

bool QPlatformPrintDevice::supportsCollateCopies ( ) const
virtual

Reimplemented in QWindowsPrintDevice.

Definition at line 101 of file qplatformprintdevice.cpp.

◆ supportsCustomPageSizes()

bool QPlatformPrintDevice::supportsCustomPageSizes ( ) const
virtual

Reimplemented in QWindowsPrintDevice.

Definition at line 211 of file qplatformprintdevice.cpp.

◆ supportsMultipleCopies()

bool QPlatformPrintDevice::supportsMultipleCopies ( ) const
virtual

Reimplemented in QWindowsPrintDevice.

Definition at line 96 of file qplatformprintdevice.cpp.

Member Data Documentation

◆ m_colorModes

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

Definition at line 145 of file qplatformprintdevice.h.

◆ m_duplexModes

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

Definition at line 142 of file qplatformprintdevice.h.

◆ m_haveColorModes

bool QPlatformPrintDevice::m_haveColorModes
mutableprotected

Definition at line 144 of file qplatformprintdevice.h.

◆ m_haveDuplexModes

bool QPlatformPrintDevice::m_haveDuplexModes
mutableprotected

Definition at line 141 of file qplatformprintdevice.h.

◆ m_haveInputSlots

bool QPlatformPrintDevice::m_haveInputSlots
mutableprotected

Definition at line 135 of file qplatformprintdevice.h.

◆ m_haveOutputBins

bool QPlatformPrintDevice::m_haveOutputBins
mutableprotected

Definition at line 138 of file qplatformprintdevice.h.

◆ m_havePageSizes

bool QPlatformPrintDevice::m_havePageSizes
mutableprotected

Definition at line 124 of file qplatformprintdevice.h.

◆ m_haveResolutions

bool QPlatformPrintDevice::m_haveResolutions
mutableprotected

Definition at line 132 of file qplatformprintdevice.h.

◆ m_id

QString QPlatformPrintDevice::m_id
protected

Definition at line 114 of file qplatformprintdevice.h.

◆ m_inputSlots

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

Definition at line 136 of file qplatformprintdevice.h.

◆ m_isRemote

bool QPlatformPrintDevice::m_isRemote
protected

Definition at line 119 of file qplatformprintdevice.h.

◆ m_location

QString QPlatformPrintDevice::m_location
protected

Definition at line 116 of file qplatformprintdevice.h.

◆ m_makeAndModel

QString QPlatformPrintDevice::m_makeAndModel
protected

Definition at line 117 of file qplatformprintdevice.h.

◆ m_maximumPhysicalPageSize

QSize QPlatformPrintDevice::m_maximumPhysicalPageSize
mutableprotected

Definition at line 130 of file qplatformprintdevice.h.

◆ m_minimumPhysicalPageSize

QSize QPlatformPrintDevice::m_minimumPhysicalPageSize
mutableprotected

Definition at line 129 of file qplatformprintdevice.h.

◆ m_name

QString QPlatformPrintDevice::m_name
protected

Definition at line 115 of file qplatformprintdevice.h.

◆ m_outputBins

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

Definition at line 139 of file qplatformprintdevice.h.

◆ m_pageSizes

QList<QPageSize> QPlatformPrintDevice::m_pageSizes
mutableprotected

Definition at line 125 of file qplatformprintdevice.h.

◆ m_resolutions

QList<int> QPlatformPrintDevice::m_resolutions
mutableprotected

Definition at line 133 of file qplatformprintdevice.h.

◆ m_supportsCollateCopies

bool QPlatformPrintDevice::m_supportsCollateCopies
mutableprotected

Definition at line 122 of file qplatformprintdevice.h.

◆ m_supportsCustomPageSizes

bool QPlatformPrintDevice::m_supportsCustomPageSizes
mutableprotected

Definition at line 127 of file qplatformprintdevice.h.

◆ m_supportsMultipleCopies

bool QPlatformPrintDevice::m_supportsMultipleCopies
mutableprotected

Definition at line 121 of file qplatformprintdevice.h.


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