Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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// Qt-Security score:significant reason:default
4
5#ifndef WINDOWSPRINTERSUPPORT_H
6#define WINDOWSPRINTERSUPPORT_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists for the convenience
13// of internal files. This header file may change from version to version
14// without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtPrintSupport/qtprintsupportglobal.h>
20
21#include <qpa/qplatformprintersupport.h>
22#include <private/qglobal_p.h>
23#ifndef QT_NO_PRINTER
24
26
27class Q_PRINTSUPPORT_EXPORT QWindowsPrinterSupport : public QPlatformPrinterSupport
28{
29 Q_DISABLE_COPY_MOVE(QWindowsPrinterSupport)
30public:
31 QWindowsPrinterSupport();
32 ~QWindowsPrinterSupport() override;
33
34 QPrintEngine *createNativePrintEngine(QPrinter::PrinterMode printerMode, const QString &deviceId = QString()) override;
35 QPaintEngine *createPaintEngine(QPrintEngine *printEngine, QPrinter::PrinterMode) override;
36
37 QPrintDevice createPrintDevice(const QString &id) override;
38 QStringList availablePrintDeviceIds() const override;
39 QString defaultPrintDeviceId() const override;
40};
41
42QT_END_NAMESPACE
43
44#endif // QT_NO_PRINTER
45#endif // WINDOWSPRINTERSUPPORT_H