Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QPrinterPrivate Class Reference

#include <qprinter_p.h>

+ Collaboration diagram for QPrinterPrivate:

Public Member Functions

 QPrinterPrivate (QPrinter *printer)
 
 ~QPrinterPrivate ()
 
void init (const QPrinterInfo &printer, QPrinter::PrinterMode mode)
 
QPrinterInfo findValidPrinter (const QPrinterInfo &printer=QPrinterInfo())
 
void initEngines (QPrinter::OutputFormat format, const QPrinterInfo &printer)
 
void changeEngines (QPrinter::OutputFormat format, const QPrinterInfo &printer)
 
void setProperty (QPrintEngine::PrintEnginePropertyKey key, const QVariant &value)
 

Static Public Member Functions

static QPrinterPrivateget (QPrinter *printer)
 

Public Attributes

QPrinter::PrinterMode printerMode
 
QPrinter::OutputFormat outputFormat
 
QPrinter::PdfVersion pdfVersion
 
QPrintEngineprintEngine
 
QPaintEnginepaintEngine
 
QPrintEnginerealPrintEngine
 
QPaintEnginerealPaintEngine
 
QPrinterq_ptr
 
QPrinter::PrintRange printRange
 
uint use_default_engine: 1
 
uint had_default_engines: 1
 
uint validPrinter: 1
 
uint hasCustomPageMargins: 1
 
QSet< QPrintEngine::PrintEnginePropertyKeym_properties
 

Detailed Description

Definition at line 37 of file qprinter_p.h.

Constructor & Destructor Documentation

◆ QPrinterPrivate()

QPrinterPrivate::QPrinterPrivate ( QPrinter printer)
inline

Definition at line 41 of file qprinter_p.h.

◆ ~QPrinterPrivate()

QPrinterPrivate::~QPrinterPrivate ( )
inline

Definition at line 57 of file qprinter_p.h.

Member Function Documentation

◆ changeEngines()

void QPrinterPrivate::changeEngines ( QPrinter::OutputFormat  format,
const QPrinterInfo printer 
)

Definition at line 97 of file qprinter.cpp.

References QPrinter::copyCount(), initEngines(), QVariant::isValid(), m_properties, QPrintEngine::PPK_NumberOfCopies, QPrintEngine::PPK_PrinterName, printEngine, properties, QPrintEngine::property(), q_ptr, setProperty(), and use_default_engine.

+ Here is the call graph for this function:

◆ findValidPrinter()

QPrinterInfo QPrinterPrivate::findValidPrinter ( const QPrinterInfo printer = QPrinterInfo())

Definition at line 45 of file qprinter.cpp.

References QPrinterInfo::availablePrinterNames(), QPrinterInfo::defaultPrinter(), QPrinterInfo::isNull(), and QPrinterInfo::printerInfo().

Referenced by initEngines().

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

◆ get()

static QPrinterPrivate * QPrinterPrivate::get ( QPrinter printer)
inlinestatic

Definition at line 61 of file qprinter_p.h.

References QScopedPointer< T, Cleanup >::get().

Referenced by QPrinterPagedPaintDevicePrivate::pageLayout(), QPrinterPagedPaintDevicePrivate::setPageLayout(), QPrinterPagedPaintDevicePrivate::setPageMargins(), QPrinterPagedPaintDevicePrivate::setPageOrientation(), and QPrinterPagedPaintDevicePrivate::setPageSize().

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

◆ init()

void QPrinterPrivate::init ( const QPrinterInfo printer,
QPrinter::PrinterMode  mode 
)

Definition at line 460 of file qprinter.cpp.

References initEngines(), QCoreApplication::instance(), QPrinter::NativeFormat, printerMode, Q_UNLIKELY, and qFatal.

Referenced by QPrinter::QPrinter(), and QPrinter::QPrinter().

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

◆ initEngines()

void QPrinterPrivate::initEngines ( QPrinter::OutputFormat  format,
const QPrinterInfo printer 
)

Definition at line 60 of file qprinter.cpp.

References QPlatformPrinterSupport::createNativePrintEngine(), QPlatformPrinterSupport::createPaintEngine(), findValidPrinter(), QPlatformPrinterSupportPlugin::get(), had_default_engines, QPrinterInfo::isNull(), QPrinter::NativeFormat, outputFormat, paintEngine, QPrinter::PdfFormat, pdfVersion, QPagedPaintDevice::PdfVersion_1_4, QPagedPaintDevice::PdfVersion_1_6, QPagedPaintDevice::PdfVersion_A1b, printEngine, printerMode, QPrinterInfo::printerName(), use_default_engine, validPrinter, QPdfEngine::Version_1_4, QPdfEngine::Version_1_6, and QPdfEngine::Version_A1b.

Referenced by changeEngines(), and init().

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

◆ setProperty()

void QPrinterPrivate::setProperty ( QPrintEngine::PrintEnginePropertyKey  key,
const QVariant value 
)

Definition at line 151 of file qprinter.cpp.

References QSet< T >::insert(), m_properties, printEngine, and QPrintEngine::setProperty().

Referenced by changeEngines(), QPrinterPagedPaintDevicePrivate::setPageLayout(), QPrinterPagedPaintDevicePrivate::setPageMargins(), QPrinterPagedPaintDevicePrivate::setPageOrientation(), and QPrinterPagedPaintDevicePrivate::setPageSize().

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

Member Data Documentation

◆ had_default_engines

uint QPrinterPrivate::had_default_engines

Definition at line 94 of file qprinter_p.h.

Referenced by initEngines().

◆ hasCustomPageMargins

uint QPrinterPrivate::hasCustomPageMargins

Definition at line 97 of file qprinter_p.h.

◆ m_properties

QSet<QPrintEngine::PrintEnginePropertyKey> QPrinterPrivate::m_properties

Definition at line 100 of file qprinter_p.h.

Referenced by changeEngines(), and setProperty().

◆ outputFormat

QPrinter::OutputFormat QPrinterPrivate::outputFormat

Definition at line 78 of file qprinter_p.h.

Referenced by initEngines().

◆ paintEngine

◆ pdfVersion

QPrinter::PdfVersion QPrinterPrivate::pdfVersion

Definition at line 79 of file qprinter_p.h.

Referenced by initEngines().

◆ printEngine

◆ printerMode

QPrinter::PrinterMode QPrinterPrivate::printerMode

Definition at line 77 of file qprinter_p.h.

Referenced by init(), and initEngines().

◆ printRange

QPrinter::PrintRange QPrinterPrivate::printRange

Definition at line 91 of file qprinter_p.h.

◆ q_ptr

QPrinter* QPrinterPrivate::q_ptr

Definition at line 89 of file qprinter_p.h.

Referenced by changeEngines().

◆ realPaintEngine

QPaintEngine* QPrinterPrivate::realPaintEngine

Definition at line 84 of file qprinter_p.h.

◆ realPrintEngine

QPrintEngine* QPrinterPrivate::realPrintEngine

Definition at line 83 of file qprinter_p.h.

◆ use_default_engine

uint QPrinterPrivate::use_default_engine

Definition at line 93 of file qprinter_p.h.

Referenced by changeEngines(), and initEngines().

◆ validPrinter

uint QPrinterPrivate::validPrinter

Definition at line 96 of file qprinter_p.h.

Referenced by initEngines().


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