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

#include <qprintdevice_p.h>

+ Collaboration diagram for QPrintDevice:

Public Types

enum  PrintDevicePropertyKey { PDPK_CustomBase = 0xff00 }
 

Public Member Functions

 QPrintDevice ()
 
 QPrintDevice (const QString &id)
 
 QPrintDevice (const QPrintDevice &other)
 
 ~QPrintDevice ()
 
QPrintDeviceoperator= (const QPrintDevice &other)
 
QPrintDeviceoperator= (QPrintDevice &&other)
 
void swap (QPrintDevice &other)
 
bool operator== (const QPrintDevice &other) const
 
QString id () const
 
QString name () const
 
QString location () const
 
QString makeAndModel () const
 
bool isValid () const
 
bool isDefault () const
 
bool isRemote () const
 
QPrint::DeviceState state () const
 
bool isValidPageLayout (const QPageLayout &layout, int resolution) const
 
bool supportsMultipleCopies () const
 
bool supportsCollateCopies () const
 
QPageSize defaultPageSize () const
 
QList< QPageSizesupportedPageSizes () const
 
QPageSize supportedPageSize (const QPageSize &pageSize) const
 
QPageSize supportedPageSize (QPageSize::PageSizeId pageSizeId) const
 
QPageSize supportedPageSize (const QString &pageName) const
 
QPageSize supportedPageSize (const QSize &pointSize) const
 
QPageSize supportedPageSize (const QSizeF &size, QPageSize::Unit units=QPageSize::Point) const
 
bool supportsCustomPageSizes () const
 
QSize minimumPhysicalPageSize () const
 
QSize maximumPhysicalPageSize () const
 
QMarginsF printableMargins (const QPageSize &pageSize, QPageLayout::Orientation orientation, int resolution) const
 
int defaultResolution () const
 
QList< int > supportedResolutions () const
 
QPrint::InputSlot defaultInputSlot () const
 
QList< QPrint::InputSlotsupportedInputSlots () const
 
QPrint::OutputBin defaultOutputBin () const
 
QList< QPrint::OutputBinsupportedOutputBins () const
 
QPrint::DuplexMode defaultDuplexMode () const
 
QList< QPrint::DuplexModesupportedDuplexModes () const
 
QPrint::ColorMode defaultColorMode () const
 
QList< QPrint::ColorModesupportedColorModes () const
 
QVariant property (PrintDevicePropertyKey key) const
 
bool setProperty (PrintDevicePropertyKey key, const QVariant &value)
 
bool isFeatureAvailable (PrintDevicePropertyKey key, const QVariant &params) const
 
void format (QDebug debug) const
 

Friends

class QPlatformPrinterSupport
 
class QPlatformPrintDevice
 

Detailed Description

Definition at line 33 of file qprintdevice_p.h.

Member Enumeration Documentation

◆ PrintDevicePropertyKey

Enumerator
PDPK_CustomBase 

Definition at line 96 of file qprintdevice_p.h.

Constructor & Destructor Documentation

◆ QPrintDevice() [1/3]

QT_BEGIN_NAMESPACE QPrintDevice::QPrintDevice ( )

Definition at line 13 of file qprintdevice.cpp.

◆ QPrintDevice() [2/3]

QPrintDevice::QPrintDevice ( const QString & id)

Definition at line 18 of file qprintdevice.cpp.

◆ QPrintDevice() [3/3]

QPrintDevice::QPrintDevice ( const QPrintDevice & other)

Definition at line 28 of file qprintdevice.cpp.

◆ ~QPrintDevice()

QPrintDevice::~QPrintDevice ( )

Definition at line 33 of file qprintdevice.cpp.

Member Function Documentation

◆ defaultColorMode()

QPrint::ColorMode QPrintDevice::defaultColorMode ( ) const

Definition at line 202 of file qprintdevice.cpp.

References QPlatformPrintDevice::defaultColorMode(), QPrint::GrayScale, and isValid().

Referenced by format().

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

◆ defaultDuplexMode()

QPrint::DuplexMode QPrintDevice::defaultDuplexMode ( ) const

Definition at line 192 of file qprintdevice.cpp.

References QPlatformPrintDevice::defaultDuplexMode(), QPrint::DuplexNone, and isValid().

Referenced by format().

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

◆ defaultInputSlot()

QPrint::InputSlot QPrintDevice::defaultInputSlot ( ) const

Definition at line 172 of file qprintdevice.cpp.

References QPlatformPrintDevice::defaultInputSlot(), and isValid().

+ Here is the call graph for this function:

◆ defaultOutputBin()

QPrint::OutputBin QPrintDevice::defaultOutputBin ( ) const

Definition at line 182 of file qprintdevice.cpp.

References QPlatformPrintDevice::defaultOutputBin(), and isValid().

+ Here is the call graph for this function:

◆ defaultPageSize()

QPageSize QPrintDevice::defaultPageSize ( ) const

Definition at line 105 of file qprintdevice.cpp.

References QPlatformPrintDevice::defaultPageSize(), and isValid().

Referenced by format().

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

◆ defaultResolution()

int QPrintDevice::defaultResolution ( ) const

Definition at line 162 of file qprintdevice.cpp.

References QPlatformPrintDevice::defaultResolution(), and isValid().

Referenced by format().

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

◆ format()

void QPrintDevice::format ( QDebug debug) const

Definition at line 235 of file qprintdevice.cpp.

References debug, defaultColorMode(), defaultDuplexMode(), defaultPageSize(), defaultResolution(), QtDebugUtils::formatQSize(), id(), isDefault(), QString::isEmpty(), isRemote(), isValid(), location(), makeAndModel(), maximumPhysicalPageSize(), mimeType, minimumPhysicalPageSize(), name(), state(), and supportsCustomPageSizes().

+ Here is the call graph for this function:

◆ id()

QString QPrintDevice::id ( ) const

Definition at line 50 of file qprintdevice.cpp.

References QPlatformPrintDevice::id(), and isValid().

Referenced by format(), and QWin32PrintEnginePrivate::initialize().

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

◆ isDefault()

bool QPrintDevice::isDefault ( ) const

Definition at line 75 of file qprintdevice.cpp.

References QPlatformPrintDevice::isDefault(), and isValid().

Referenced by format().

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

◆ isFeatureAvailable()

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

Definition at line 222 of file qprintdevice.cpp.

References QPlatformPrintDevice::isFeatureAvailable(), and isValid().

+ Here is the call graph for this function:

◆ isRemote()

bool QPrintDevice::isRemote ( ) const

Definition at line 80 of file qprintdevice.cpp.

References QPlatformPrintDevice::isRemote(), and isValid().

Referenced by format().

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

◆ isValid()

◆ isValidPageLayout()

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

Definition at line 90 of file qprintdevice.cpp.

References isValid(), QPlatformPrintDevice::isValidPageLayout(), and layout.

+ Here is the call graph for this function:

◆ location()

QString QPrintDevice::location ( ) const

Definition at line 60 of file qprintdevice.cpp.

References isValid(), and QPlatformPrintDevice::location().

Referenced by format().

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

◆ makeAndModel()

QString QPrintDevice::makeAndModel ( ) const

Definition at line 65 of file qprintdevice.cpp.

References isValid(), and QPlatformPrintDevice::makeAndModel().

Referenced by format().

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

◆ maximumPhysicalPageSize()

QSize QPrintDevice::maximumPhysicalPageSize ( ) const

Definition at line 150 of file qprintdevice.cpp.

References isValid(), and QPlatformPrintDevice::maximumPhysicalPageSize().

Referenced by format().

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

◆ minimumPhysicalPageSize()

QSize QPrintDevice::minimumPhysicalPageSize ( ) const

Definition at line 145 of file qprintdevice.cpp.

References isValid(), and QPlatformPrintDevice::minimumPhysicalPageSize().

Referenced by format().

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

◆ name()

QString QPrintDevice::name ( ) const

Definition at line 55 of file qprintdevice.cpp.

References isValid(), and QPlatformPrintDevice::name().

Referenced by format().

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

◆ operator=() [1/2]

QPrintDevice & QPrintDevice::operator= ( const QPrintDevice & other)

Definition at line 37 of file qprintdevice.cpp.

References other().

+ Here is the call graph for this function:

◆ operator=() [2/2]

QPrintDevice & QPrintDevice::operator= ( QPrintDevice && other)
inline

Definition at line 43 of file qprintdevice_p.h.

References other(), and swap().

+ Here is the call graph for this function:

◆ operator==()

bool QPrintDevice::operator== ( const QPrintDevice & other) const

Definition at line 43 of file qprintdevice.cpp.

References QPlatformPrintDevice::id(), and other().

+ Here is the call graph for this function:

◆ printableMargins()

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

Definition at line 155 of file qprintdevice.cpp.

References isValid(), and QPlatformPrintDevice::printableMargins().

Referenced by QWin32PrintEnginePrivate::setPageSize().

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

◆ property()

QVariant QPrintDevice::property ( PrintDevicePropertyKey key) const

Definition at line 212 of file qprintdevice.cpp.

References isValid(), and QPlatformPrintDevice::property().

+ Here is the call graph for this function:

◆ setProperty()

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

Definition at line 217 of file qprintdevice.cpp.

References isValid(), and QPlatformPrintDevice::setProperty().

+ Here is the call graph for this function:

◆ state()

QPrint::DeviceState QPrintDevice::state ( ) const

Definition at line 85 of file qprintdevice.cpp.

References QPrint::Error, isValid(), and QPlatformPrintDevice::state().

Referenced by format().

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

◆ supportedColorModes()

QList< QPrint::ColorMode > QPrintDevice::supportedColorModes ( ) const

Definition at line 207 of file qprintdevice.cpp.

References isValid(), and QPlatformPrintDevice::supportedColorModes().

+ Here is the call graph for this function:

◆ supportedDuplexModes()

QList< QPrint::DuplexMode > QPrintDevice::supportedDuplexModes ( ) const

Definition at line 197 of file qprintdevice.cpp.

References isValid(), and QPlatformPrintDevice::supportedDuplexModes().

+ Here is the call graph for this function:

◆ supportedInputSlots()

QList< QPrint::InputSlot > QPrintDevice::supportedInputSlots ( ) const

Definition at line 177 of file qprintdevice.cpp.

References isValid(), and QPlatformPrintDevice::supportedInputSlots().

+ Here is the call graph for this function:

◆ supportedOutputBins()

QList< QPrint::OutputBin > QPrintDevice::supportedOutputBins ( ) const

Definition at line 187 of file qprintdevice.cpp.

References isValid(), and QPlatformPrintDevice::supportedOutputBins().

+ Here is the call graph for this function:

◆ supportedPageSize() [1/5]

QPageSize QPrintDevice::supportedPageSize ( const QPageSize & pageSize) const

Definition at line 115 of file qprintdevice.cpp.

References isValid(), and QPlatformPrintDevice::supportedPageSize().

Referenced by QWin32PrintEnginePrivate::setPageSize().

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

◆ supportedPageSize() [2/5]

QPageSize QPrintDevice::supportedPageSize ( const QSize & pointSize) const

Definition at line 130 of file qprintdevice.cpp.

References isValid(), and QPlatformPrintDevice::supportedPageSize().

+ Here is the call graph for this function:

◆ supportedPageSize() [3/5]

QPageSize QPrintDevice::supportedPageSize ( const QSizeF & size,
QPageSize::Unit units = QPageSize::Point ) const

Definition at line 135 of file qprintdevice.cpp.

References isValid(), and QPlatformPrintDevice::supportedPageSize().

+ Here is the call graph for this function:

◆ supportedPageSize() [4/5]

QPageSize QPrintDevice::supportedPageSize ( const QString & pageName) const

Definition at line 125 of file qprintdevice.cpp.

References isValid(), and QPlatformPrintDevice::supportedPageSize().

+ Here is the call graph for this function:

◆ supportedPageSize() [5/5]

QPageSize QPrintDevice::supportedPageSize ( QPageSize::PageSizeId pageSizeId) const

Definition at line 120 of file qprintdevice.cpp.

References isValid(), and QPlatformPrintDevice::supportedPageSize().

+ Here is the call graph for this function:

◆ supportedPageSizes()

QList< QPageSize > QPrintDevice::supportedPageSizes ( ) const

Definition at line 110 of file qprintdevice.cpp.

References isValid(), and QPlatformPrintDevice::supportedPageSizes().

+ Here is the call graph for this function:

◆ supportedResolutions()

QList< int > QPrintDevice::supportedResolutions ( ) const

Definition at line 167 of file qprintdevice.cpp.

References isValid(), and QPlatformPrintDevice::supportedResolutions().

+ Here is the call graph for this function:

◆ supportsCollateCopies()

bool QPrintDevice::supportsCollateCopies ( ) const

Definition at line 100 of file qprintdevice.cpp.

References isValid(), and QPlatformPrintDevice::supportsCollateCopies().

+ Here is the call graph for this function:

◆ supportsCustomPageSizes()

bool QPrintDevice::supportsCustomPageSizes ( ) const

Definition at line 140 of file qprintdevice.cpp.

References isValid(), and QPlatformPrintDevice::supportsCustomPageSizes().

Referenced by format().

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

◆ supportsMultipleCopies()

bool QPrintDevice::supportsMultipleCopies ( ) const

Definition at line 95 of file qprintdevice.cpp.

References isValid(), and QPlatformPrintDevice::supportsMultipleCopies().

+ Here is the call graph for this function:

◆ swap()

void QPrintDevice::swap ( QPrintDevice & other)
inline

Definition at line 45 of file qprintdevice_p.h.

References d, and other().

+ Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ QPlatformPrintDevice

friend class QPlatformPrintDevice
friend

Definition at line 114 of file qprintdevice_p.h.

◆ QPlatformPrinterSupport

friend class QPlatformPrinterSupport
friend

Definition at line 113 of file qprintdevice_p.h.


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