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

#include <qohosprintdevice.h>

Inheritance diagram for QOhosPrintDevice:
Collaboration diagram for QOhosPrintDevice:

Public Member Functions

 QOhosPrintDevice ()
 QOhosPrintDevice (const QString &id)
virtual ~QOhosPrintDevice ()
bool isValid () const override
bool isDefault () const override
QPrint::DeviceState state () const override
QPageSize defaultPageSize () const override
QPrint::DuplexMode defaultDuplexMode () const override
QPrint::ColorMode defaultColorMode () const override
int defaultResolution () 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 QMarginsF printableMargins (const QPageSize &pageSize, QPageLayout::Orientation orientation, int resolution) 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 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

Static Public Member Functions

static QStringList availablePrintDeviceIds ()
static QString defaultPrintDeviceId ()
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 Member Functions

void loadPageSizes () const override
void loadDuplexModes () const override
void loadColorModes () const override
void loadResolutions () const override
Protected Member Functions inherited from QPlatformPrintDevice
virtual void loadInputSlots () const
virtual void loadOutputBins () const
QPageSize supportedPageSizeMatch (const QPageSize &pageSize) const

Additional Inherited Members

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 11 of file qohosprintdevice.h.

Constructor & Destructor Documentation

◆ QOhosPrintDevice() [1/2]

QOhosPrintDevice::QOhosPrintDevice ( )

Definition at line 46 of file qohosprintdevice.cpp.

References QOhosPrintDevice().

Referenced by QOhosPrintDevice().

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

◆ QOhosPrintDevice() [2/2]

QOhosPrintDevice::QOhosPrintDevice ( const QString & id)
explicit

Definition at line 51 of file qohosprintdevice.cpp.

References QOhosPrintDevice(), and QOhosNativePrint::queryPrinterInfo().

Referenced by QOhosPrintDevice().

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

◆ ~QOhosPrintDevice()

QOhosPrintDevice::~QOhosPrintDevice ( )
virtualdefault

Member Function Documentation

◆ availablePrintDeviceIds()

QStringList QOhosPrintDevice::availablePrintDeviceIds ( )
static

Definition at line 168 of file qohosprintdevice.cpp.

◆ defaultColorMode()

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

Reimplemented from QPlatformPrintDevice.

Definition at line 142 of file qohosprintdevice.cpp.

◆ defaultDuplexMode()

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

Reimplemented from QPlatformPrintDevice.

Definition at line 129 of file qohosprintdevice.cpp.

◆ defaultPageSize()

QPageSize QOhosPrintDevice::defaultPageSize ( ) const
overridevirtual

Reimplemented from QPlatformPrintDevice.

Definition at line 107 of file qohosprintdevice.cpp.

References QOhosNativePrint::queryPrinterInfo().

Here is the call graph for this function:

◆ defaultPrintDeviceId()

QString QOhosPrintDevice::defaultPrintDeviceId ( )
static

Definition at line 179 of file qohosprintdevice.cpp.

◆ defaultResolution()

int QOhosPrintDevice::defaultResolution ( ) const
overridevirtual

Reimplemented from QPlatformPrintDevice.

Definition at line 155 of file qohosprintdevice.cpp.

◆ isDefault()

bool QOhosPrintDevice::isDefault ( ) const
overridevirtual

Reimplemented from QPlatformPrintDevice.

Definition at line 73 of file qohosprintdevice.cpp.

References QOhosNativePrint::PrinterInfo::isDefault.

◆ isValid()

bool QOhosPrintDevice::isValid ( ) const
overridevirtual

Reimplemented from QPlatformPrintDevice.

Definition at line 65 of file qohosprintdevice.cpp.

◆ loadColorModes()

void QOhosPrintDevice::loadColorModes ( ) const
overrideprotectedvirtual

Reimplemented from QPlatformPrintDevice.

Definition at line 243 of file qohosprintdevice.cpp.

◆ loadDuplexModes()

void QOhosPrintDevice::loadDuplexModes ( ) const
overrideprotectedvirtual

Reimplemented from QPlatformPrintDevice.

Definition at line 219 of file qohosprintdevice.cpp.

◆ loadPageSizes()

void QOhosPrintDevice::loadPageSizes ( ) const
overrideprotectedvirtual

Reimplemented from QPlatformPrintDevice.

Definition at line 192 of file qohosprintdevice.cpp.

◆ loadResolutions()

void QOhosPrintDevice::loadResolutions ( ) const
overrideprotectedvirtual

Reimplemented from QPlatformPrintDevice.

Definition at line 267 of file qohosprintdevice.cpp.

◆ state()

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

Reimplemented from QPlatformPrintDevice.

Definition at line 84 of file qohosprintdevice.cpp.


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