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

#include <qprintengine_mac_p.h>

+ Inheritance diagram for QMacPrintEnginePrivate:
+ Collaboration diagram for QMacPrintEnginePrivate:

Public Member Functions

 QMacPrintEnginePrivate ()
 
 ~QMacPrintEnginePrivate ()
 
void initialize ()
 
void releaseSession ()
 
bool newPage_helper ()
 
void setPageSize (const QPageSize &pageSize)
 
bool isPrintSessionInitialized () const
 
PMPageFormat format () const
 
PMPrintSession session () const
 
PMPrintSettings settings () const
 
QPaintEngineaggregateEngine () override
 
Qt::HANDLE nativeHandle () override
 
- Public Member Functions inherited from QPaintEnginePrivate
 QPaintEnginePrivate ()
 
virtual ~QPaintEnginePrivate ()
 
void updateSystemClip ()
 
void setSystemTransform (const QTransform &xform)
 
void setSystemViewport (const QRegion &region)
 
void setSystemTransformAndViewport (const QTransform &xform, const QRegion &region)
 
virtual void systemStateChanged ()
 
void drawBoxTextItem (const QPointF &p, const QTextItemInt &ti)
 

Public Attributes

QPrinter::PrinterMode mode
 
QPrinter::PrinterState state
 
QSharedPointer< QCocoaPrintDevicem_printDevice
 
QPageLayout m_pageLayout
 
NSPrintInfo * printInfo
 
PMResolution resolution
 
QString outputFilename
 
QString m_creator
 
QPaintEnginepaintEngine
 
QHash< QMacPrintEngine::PrintEnginePropertyKey, QVariantvalueCache
 
uint embedFonts
 
- Public Attributes inherited from QPaintEnginePrivate
QPaintDevicepdev
 
QPaintEngineq_ptr
 
QRegion baseSystemClip
 
QRegion systemClip
 
QRect systemRect
 
QRegion systemViewport
 
QTransform systemTransform
 
QPaintDevicecurrentClipDevice
 
uint hasSystemTransform: 1
 
uint hasSystemViewport: 1
 

Additional Inherited Members

- Static Public Member Functions inherited from QPaintEnginePrivate
static QPaintEnginePrivateget (QPaintEngine *paintEngine)
 

Detailed Description

Definition at line 81 of file qprintengine_mac_p.h.

Constructor & Destructor Documentation

◆ QMacPrintEnginePrivate()

QMacPrintEnginePrivate::QMacPrintEnginePrivate ( )
inline

Definition at line 97 of file qprintengine_mac_p.h.

◆ ~QMacPrintEnginePrivate()

QMacPrintEnginePrivate::~QMacPrintEnginePrivate ( )

Definition at line 111 of file qprintengine_mac.mm.

References paintEngine, printInfo, and release().

+ Here is the call graph for this function:

Member Function Documentation

◆ aggregateEngine()

QPaintEngine * QMacPrintEnginePrivate::aggregateEngine ( )
inlineoverridevirtual

Reimplemented from QPaintEnginePrivate.

Definition at line 115 of file qprintengine_mac_p.h.

References paintEngine.

◆ format()

PMPageFormat QMacPrintEnginePrivate::format ( ) const
inline

Definition at line 111 of file qprintengine_mac_p.h.

References printInfo.

Referenced by newPage_helper(), and setPageSize().

+ Here is the caller graph for this function:

◆ initialize()

void QMacPrintEnginePrivate::initialize ( )

Definition at line 204 of file qprintengine_mac.mm.

References QHash< Key, T >::constBegin(), QHash< Key, T >::constEnd(), dictionary, QPaintEngine::gccaps, QPrinter::HighResolution, m_pageLayout, m_printDevice, QPageLayout::pageSize(), paintEngine, pool, printInfo, Q_ASSERT, qt_defaultDpi(), resolution, QPrinter::ScreenResolution, setPageSize(), QPlatformPrintDevice::supportedResolutions(), and valueCache.

+ Here is the call graph for this function:

◆ isPrintSessionInitialized()

bool QMacPrintEnginePrivate::isPrintSessionInitialized ( ) const
inline

Definition at line 106 of file qprintengine_mac_p.h.

References printInfo.

◆ nativeHandle()

Qt::HANDLE QMacPrintEnginePrivate::nativeHandle ( )
inlineoverridevirtual

Reimplemented from QPaintEnginePrivate.

Definition at line 116 of file qprintengine_mac_p.h.

◆ newPage_helper()

bool QMacPrintEnginePrivate::newPage_helper ( )

◆ releaseSession()

void QMacPrintEnginePrivate::releaseSession ( )

Definition at line 239 of file qprintengine_mac.mm.

References printInfo, release(), and session().

+ Here is the call graph for this function:

◆ session()

PMPrintSession QMacPrintEnginePrivate::session ( ) const
inline

Definition at line 112 of file qprintengine_mac_p.h.

References printInfo.

Referenced by newPage_helper(), releaseSession(), and setPageSize().

+ Here is the caller graph for this function:

◆ setPageSize()

void QMacPrintEnginePrivate::setPageSize ( const QPageSize & pageSize)

Definition at line 302 of file qprintengine_mac.mm.

References format(), QPageSize::isValid(), QPageLayout::Landscape, m_pageLayout, m_printDevice, QCocoaPrintDevice::macPaper(), QPageLayout::orientation(), QPageLayout::Point, QCocoaPrintDevice::printableMargins(), qt_convertMargins(), qWarning, resolution, session(), QPageLayout::setPageSize(), QPlatformPrintDevice::supportedPageSize(), and QPageLayout::units().

Referenced by initialize().

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

◆ settings()

PMPrintSettings QMacPrintEnginePrivate::settings ( ) const
inline

Definition at line 113 of file qprintengine_mac_p.h.

References printInfo.

Member Data Documentation

◆ embedFonts

uint QMacPrintEnginePrivate::embedFonts

Definition at line 95 of file qprintengine_mac_p.h.

◆ m_creator

QString QMacPrintEnginePrivate::m_creator

Definition at line 92 of file qprintengine_mac_p.h.

◆ m_pageLayout

QPageLayout QMacPrintEnginePrivate::m_pageLayout

Definition at line 88 of file qprintengine_mac_p.h.

Referenced by initialize(), newPage_helper(), and setPageSize().

◆ m_printDevice

QSharedPointer<QCocoaPrintDevice> QMacPrintEnginePrivate::m_printDevice

Definition at line 87 of file qprintengine_mac_p.h.

Referenced by initialize(), and setPageSize().

◆ mode

QPrinter::PrinterMode QMacPrintEnginePrivate::mode

Definition at line 85 of file qprintengine_mac_p.h.

◆ outputFilename

QString QMacPrintEnginePrivate::outputFilename

Definition at line 91 of file qprintengine_mac_p.h.

◆ paintEngine

QPaintEngine* QMacPrintEnginePrivate::paintEngine

◆ printInfo

NSPrintInfo* QMacPrintEnginePrivate::printInfo

◆ resolution

PMResolution QMacPrintEnginePrivate::resolution

Definition at line 90 of file qprintengine_mac_p.h.

Referenced by initialize(), newPage_helper(), and setPageSize().

◆ state

QPrinter::PrinterState QMacPrintEnginePrivate::state

Definition at line 86 of file qprintengine_mac_p.h.

Referenced by newPage_helper().

◆ valueCache

QHash<QMacPrintEngine::PrintEnginePropertyKey, QVariant> QMacPrintEnginePrivate::valueCache

Definition at line 94 of file qprintengine_mac_p.h.

Referenced by initialize().


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