Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qwindowsprintdevice.cpp File Reference
#include "qwindowsprintdevice_p.h"
#include <QtCore/qdebug.h>
+ Include dependency graph for qwindowsprintdevice.cpp:

Go to the source code of this file.

Macros

#define DC_COLLATE   22
 

Typedefs

using WindowsPrinterLookup = QList< QWindowsPrinterInfo >
 

Functions

 Q_GLOBAL_STATIC (WindowsPrinterLookup, windowsDeviceLookup)
 
qreal qt_pointMultiplier (QPageLayout::Unit unit)
 
static uint qwcsnlen (const wchar_t *str, uint maxlen)
 
static LPDEVMODE getDevmode (HANDLE hPrinter, const QString &printerId)
 

Macro Definition Documentation

◆ DC_COLLATE

#define DC_COLLATE   22

Definition at line 10 of file qwindowsprintdevice.cpp.

Typedef Documentation

◆ WindowsPrinterLookup

Function Documentation

◆ getDevmode()

static LPDEVMODE getDevmode ( HANDLE  hPrinter,
const QString printerId 
)
static

Definition at line 30 of file qwindowsprintdevice.cpp.

References QString::utf16().

Referenced by QWindowsPrintDevice::defaultColorMode(), QWindowsPrintDevice::defaultDuplexMode(), QWindowsPrintDevice::defaultInputSlot(), QWindowsPrintDevice::defaultPageSize(), QWindowsPrintDevice::defaultResolution(), and QWindowsPrintDevice::printableMargins().

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

◆ Q_GLOBAL_STATIC()

Q_GLOBAL_STATIC ( WindowsPrinterLookup  ,
windowsDeviceLookup   
)

◆ qt_pointMultiplier()

qreal qt_pointMultiplier ( QPageLayout::Unit  unit)

Definition at line 20 of file qpagelayout.cpp.

References QPageLayout::Cicero, QPageLayout::Didot, QPageLayout::Inch, QPageLayout::Millimeter, QPageLayout::Pica, and QPageLayout::Point.

Referenced by QWindowsPrintDevice::loadMinMaxPageSizes(), QWindowsPrintDevice::loadPageSizes(), qt_convertMargins(), and qt_convertPoint().

+ Here is the caller graph for this function:

◆ qwcsnlen()

static uint qwcsnlen ( const wchar_t *  str,
uint  maxlen 
)
inlinestatic

Definition at line 20 of file qwindowsprintdevice.cpp.

References str.

Referenced by QWindowsPrintDevice::loadInputSlots(), and QWindowsPrintDevice::loadPageSizes().

+ Here is the caller graph for this function: