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
qprintdialog_win.cpp File Reference

(7e8ae9cf12611439462e8b26946473fd6492afcc)

#include <QtPrintSupport/qtprintsupportglobal.h>
#include "qprintdialog.h"
#include <qwidget.h>
#include <qapplication.h>
#include <qmessagebox.h>
#include <private/qapplication_p.h>
#include "qabstractprintdialog_p.h"
#include <private/qprintengine_win_p.h>
#include "../kernel/qprinter_p.h"
#include "moc_qprintdialog.cpp"
+ Include dependency graph for qprintdialog_win.cpp:

Go to the source code of this file.

Classes

class  QPrintDialogPrivate
 

Macros

#define PD_NOCURRENTPAGE   0x00800000
 
#define PD_RESULT_PRINT   1
 
#define PD_RESULT_APPLY   2
 
#define START_PAGE_GENERAL   0XFFFFFFFF
 

Functions

static void qt_win_setup_PRINTDLGEX (PRINTDLGEX *pd, QWindow *parentWindow, QPrintDialog *pdlg, QPrintDialogPrivate *d, HGLOBAL *tempDevNames)
 
static void qt_win_read_back_PRINTDLGEX (PRINTDLGEX *pd, QPrintDialog *pdlg, QPrintDialogPrivate *d)
 
static bool warnIfNotNative (QPrinter *printer)
 

Macro Definition Documentation

◆ PD_NOCURRENTPAGE

#define PD_NOCURRENTPAGE   0x00800000

Definition at line 18 of file qprintdialog_win.cpp.

Referenced by qt_win_setup_PRINTDLGEX().

◆ PD_RESULT_APPLY

#define PD_RESULT_APPLY   2

◆ PD_RESULT_PRINT

#define PD_RESULT_PRINT   1

◆ START_PAGE_GENERAL

#define START_PAGE_GENERAL   0XFFFFFFFF

Definition at line 21 of file qprintdialog_win.cpp.

Referenced by qt_win_setup_PRINTDLGEX().

Function Documentation

◆ qt_win_read_back_PRINTDLGEX()

static void qt_win_read_back_PRINTDLGEX ( PRINTDLGEX * pd,
QPrintDialog * pdlg,
QPrintDialogPrivate * d )
static

Definition at line 115 of file qprintdialog_win.cpp.

References QAbstractPrintDialog::AllPages, QAbstractPrintDialog::CurrentPage, d, QAbstractPrintDialog::PageRange, and QAbstractPrintDialog::Selection.

Referenced by QPrintDialogPrivate::openWindowsPrintDialogModally().

+ Here is the caller graph for this function:

◆ qt_win_setup_PRINTDLGEX()

static void qt_win_setup_PRINTDLGEX ( PRINTDLGEX * pd,
QWindow * parentWindow,
QPrintDialog * pdlg,
QPrintDialogPrivate * d,
HGLOBAL * tempDevNames )
static

Definition at line 45 of file qprintdialog_win.cpp.

References QAbstractPrintDialog::CurrentPage, d, QAbstractPrintDialog::PageRange, PD_NOCURRENTPAGE, QAbstractPrintDialog::PrintCurrentPage, QAbstractPrintDialog::PrintPageRange, QAbstractPrintDialog::PrintSelection, QAbstractPrintDialog::PrintToFile, qMax(), qMin(), QAbstractPrintDialog::Selection, and START_PAGE_GENERAL.

Referenced by QPrintDialogPrivate::openWindowsPrintDialogModally().

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

◆ warnIfNotNative()

static bool warnIfNotNative ( QPrinter * printer)
static

Definition at line 141 of file qprintdialog_win.cpp.

References QPrinter::NativeFormat, QPrinter::outputFormat(), and qWarning.

+ Here is the call graph for this function: