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
qwindowsprintersupport.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
5
6#ifndef QT_NO_PRINTER
7
9
10#include <QtCore/QStringList>
11#include <private/qprintengine_win_p.h>
12#include <private/qprintdevice_p.h>
13
14#define QT_STATICPLUGIN
15#include <qpa/qplatformprintplugin.h>
16
18
19using namespace Qt::StringLiterals;
20
25
29
31{
32 return new QWin32PrintEngine(printerMode, deviceId);
33}
34
40
45
50
55
64
66{
67 if (key.compare(key, "windowsprintsupport"_L1, Qt::CaseInsensitive) == 0)
68 return new QWindowsPrinterSupport;
69 return nullptr;
70}
71
73
74#include "qwindowsprintersupport.moc"
75
76#endif // QT_NO_PRINTER
\inmodule QtGui
The QPlatformPrinterSupport class provides an abstraction for print support.
virtual QPrintDevice createPrintDevice(const QString &id)
\reentrant
PrinterMode
This enum describes the mode the printer should work in.
Definition qprinter.h:31
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
static QString defaultPrintDeviceId()
static QStringList availablePrintDeviceIds()
QPlatformPrinterSupport * create(const QString &) override
QString defaultPrintDeviceId() const override
QStringList availablePrintDeviceIds() const override
QPrintDevice createPrintDevice(const QString &id) override
QPrintEngine * createNativePrintEngine(QPrinter::PrinterMode printerMode, const QString &deviceId=QString()) override
QPaintEngine * createPaintEngine(QPrintEngine *printEngine, QPrinter::PrinterMode) override
Combined button and popup list for selecting options.
@ CaseInsensitive
GLuint64 key
#define QPlatformPrinterSupportFactoryInterface_iid
#define Q_OBJECT
#define Q_PLUGIN_METADATA(x)
#define Q_UNUSED(x)
view create()
QJSEngine engine
[0]