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
qcocoaprintersupport_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 QCOCOAPRINTERSUPPORT_H
6#define QCOCOAPRINTERSUPPORT_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 <qpa/qplatformprintersupport.h>
20#include <private/qglobal_p.h>
21#ifndef QT_NO_PRINTER
22
23#include <QtPrintSupport/qtprintsupportglobal.h>
24
26
27class Q_PRINTSUPPORT_EXPORT QCocoaPrinterSupport : public QPlatformPrinterSupport
28{
29public:
30 QCocoaPrinterSupport();
31 ~QCocoaPrinterSupport();
32
33 QPrintEngine *createNativePrintEngine(QPrinter::PrinterMode printerMode, const QString &deviceId = QString()) override;
34 QPaintEngine *createPaintEngine(QPrintEngine *, QPrinter::PrinterMode printerMode) override;
35
36 QPrintDevice createPrintDevice(const QString &id) override;
37 QStringList availablePrintDeviceIds() const override;
38 QString defaultPrintDeviceId() const override;
39};
40
41QT_END_NAMESPACE
42
43#endif // QT_NO_PRINTER
44#endif // QCOCOAPRINTERSUPPORT_H