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_p.h
Go to the documentation of this file.
1// Copyright (C) 2020 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
4#ifndef WINDOWSPRINTERSUPPORT_H
5#define WINDOWSPRINTERSUPPORT_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of internal files. This header file may change from version to version
13// without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtPrintSupport/qtprintsupportglobal.h>
19
20#include <qpa/qplatformprintersupport.h>
21#include <private/qglobal_p.h>
22#ifndef QT_NO_PRINTER
23
25
26class Q_PRINTSUPPORT_EXPORT QWindowsPrinterSupport : public QPlatformPrinterSupport
27{
28 Q_DISABLE_COPY_MOVE(QWindowsPrinterSupport)
29public:
31 ~QWindowsPrinterSupport() override;
32
33 QPrintEngine *createNativePrintEngine(QPrinter::PrinterMode printerMode, const QString &deviceId = QString()) override;
34 QPaintEngine *createPaintEngine(QPrintEngine *printEngine, QPrinter::PrinterMode) override;
35
36 QPrintDevice createPrintDevice(const QString &id) override;
37 QStringList availablePrintDeviceIds() const override;
38 QString defaultPrintDeviceId() const override;
39};
40
42
43#endif // QT_NO_PRINTER
44#endif // WINDOWSPRINTERSUPPORT_H
\inmodule QtGui
The QPlatformPrinterSupport class provides an abstraction for print support.
\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
Combined button and popup list for selecting options.