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
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 34 of file qprintdevice_p.h.

Member Enumeration Documentation

◆ PrintDevicePropertyKey

Enumerator
PDPK_CustomBase 

Definition at line 97 of file qprintdevice_p.h.

Constructor & Destructor Documentation

◆ QPrintDevice() [1/3]

QT_BEGIN_NAMESPACE QPrintDevice::QPrintDevice ( )

Definition at line 14 of file qprintdevice.cpp.

◆ QPrintDevice() [2/3]

QPrintDevice::QPrintDevice ( const QString & id)

Definition at line 19 of file qprintdevice.cpp.

◆ QPrintDevice() [3/3]

QPrintDevice::QPrintDevice ( const QPrintDevice & other)

Definition at line 29 of file qprintdevice.cpp.

◆ ~QPrintDevice()

QPrintDevice::~QPrintDevice ( )

Definition at line 34 of file qprintdevice.cpp.

Member Function Documentation

◆ defaultColorMode()

QPrint::ColorMode QPrintDevice::defaultColorMode ( ) const

Definition at line 203 of file qprintdevice.cpp.

◆ defaultDuplexMode()

QPrint::DuplexMode QPrintDevice::defaultDuplexMode ( ) const

Definition at line 193 of file qprintdevice.cpp.

◆ defaultInputSlot()

QPrint::InputSlot QPrintDevice::defaultInputSlot ( ) const

Definition at line 173 of file qprintdevice.cpp.

◆ defaultOutputBin()

QPrint::OutputBin QPrintDevice::defaultOutputBin ( ) const

Definition at line 183 of file qprintdevice.cpp.

◆ defaultPageSize()

QPageSize QPrintDevice::defaultPageSize ( ) const

Definition at line 106 of file qprintdevice.cpp.

◆ defaultResolution()

int QPrintDevice::defaultResolution ( ) const

Definition at line 163 of file qprintdevice.cpp.

◆ format()

void QPrintDevice::format ( QDebug debug) const

Definition at line 236 of file qprintdevice.cpp.

◆ id()

QString QPrintDevice::id ( ) const

Definition at line 51 of file qprintdevice.cpp.

◆ isDefault()

bool QPrintDevice::isDefault ( ) const

Definition at line 76 of file qprintdevice.cpp.

◆ isFeatureAvailable()

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

Definition at line 223 of file qprintdevice.cpp.

◆ isRemote()

bool QPrintDevice::isRemote ( ) const

Definition at line 81 of file qprintdevice.cpp.

◆ isValid()

bool QPrintDevice::isValid ( ) const

Definition at line 71 of file qprintdevice.cpp.

◆ isValidPageLayout()

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

Definition at line 91 of file qprintdevice.cpp.

◆ location()

QString QPrintDevice::location ( ) const

Definition at line 61 of file qprintdevice.cpp.

◆ makeAndModel()

QString QPrintDevice::makeAndModel ( ) const

Definition at line 66 of file qprintdevice.cpp.

◆ maximumPhysicalPageSize()

QSize QPrintDevice::maximumPhysicalPageSize ( ) const

Definition at line 151 of file qprintdevice.cpp.

◆ minimumPhysicalPageSize()

QSize QPrintDevice::minimumPhysicalPageSize ( ) const

Definition at line 146 of file qprintdevice.cpp.

◆ name()

QString QPrintDevice::name ( ) const

Definition at line 56 of file qprintdevice.cpp.

◆ operator=() [1/2]

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

Definition at line 38 of file qprintdevice.cpp.

◆ operator=() [2/2]

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

Definition at line 44 of file qprintdevice_p.h.

◆ operator==()

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

Definition at line 44 of file qprintdevice.cpp.

◆ printableMargins()

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

Definition at line 156 of file qprintdevice.cpp.

◆ property()

QVariant QPrintDevice::property ( PrintDevicePropertyKey key) const

Definition at line 213 of file qprintdevice.cpp.

◆ setProperty()

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

Definition at line 218 of file qprintdevice.cpp.

◆ state()

QPrint::DeviceState QPrintDevice::state ( ) const

Definition at line 86 of file qprintdevice.cpp.

◆ supportedColorModes()

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

Definition at line 208 of file qprintdevice.cpp.

◆ supportedDuplexModes()

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

Definition at line 198 of file qprintdevice.cpp.

◆ supportedInputSlots()

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

Definition at line 178 of file qprintdevice.cpp.

◆ supportedOutputBins()

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

Definition at line 188 of file qprintdevice.cpp.

◆ supportedPageSize() [1/5]

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

Definition at line 116 of file qprintdevice.cpp.

◆ supportedPageSize() [2/5]

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

Definition at line 131 of file qprintdevice.cpp.

◆ supportedPageSize() [3/5]

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

Definition at line 136 of file qprintdevice.cpp.

◆ supportedPageSize() [4/5]

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

Definition at line 126 of file qprintdevice.cpp.

◆ supportedPageSize() [5/5]

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

Definition at line 121 of file qprintdevice.cpp.

◆ supportedPageSizes()

QList< QPageSize > QPrintDevice::supportedPageSizes ( ) const

Definition at line 111 of file qprintdevice.cpp.

◆ supportedResolutions()

QList< int > QPrintDevice::supportedResolutions ( ) const

Definition at line 168 of file qprintdevice.cpp.

◆ supportsCollateCopies()

bool QPrintDevice::supportsCollateCopies ( ) const

Definition at line 101 of file qprintdevice.cpp.

◆ supportsCustomPageSizes()

bool QPrintDevice::supportsCustomPageSizes ( ) const

Definition at line 141 of file qprintdevice.cpp.

◆ supportsMultipleCopies()

bool QPrintDevice::supportsMultipleCopies ( ) const

Definition at line 96 of file qprintdevice.cpp.

◆ swap()

void QPrintDevice::swap ( QPrintDevice & other)
inline

Definition at line 46 of file qprintdevice_p.h.

◆ QPlatformPrintDevice

friend class QPlatformPrintDevice
friend

Definition at line 115 of file qprintdevice_p.h.

◆ QPlatformPrinterSupport

friend class QPlatformPrinterSupport
friend

Definition at line 114 of file qprintdevice_p.h.


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