Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
4#ifndef QCOCOAPRINTERSUPPORT_H
5#define QCOCOAPRINTERSUPPORT_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 <qpa/qplatformprintersupport.h>
19#include <private/qglobal_p.h>
20#ifndef QT_NO_PRINTER
21
22#include <QtPrintSupport/qtprintsupportglobal.h>
23
25
26class Q_PRINTSUPPORT_EXPORT QCocoaPrinterSupport : public QPlatformPrinterSupport
27{
28public:
31
32 QPrintEngine *createNativePrintEngine(QPrinter::PrinterMode printerMode, const QString &deviceId = QString()) override;
34
35 QPrintDevice createPrintDevice(const QString &id) override;
36 QStringList availablePrintDeviceIds() const override;
37 QString defaultPrintDeviceId() const override;
38};
39
41
42#endif // QT_NO_PRINTER
43#endif // QCOCOAPRINTERSUPPORT_H
\inmodule QtGui
The QPlatformPrinterSupport class provides an abstraction for print support.
virtual QString defaultPrintDeviceId() const
virtual QPrintDevice createPrintDevice(const QString &id)
virtual QStringList availablePrintDeviceIds() const
virtual QPrintEngine * createNativePrintEngine(QPrinter::PrinterMode printerMode, const QString &deviceId=QString())
virtual QPaintEngine * createPaintEngine(QPrintEngine *, QPrinter::PrinterMode printerMode)
\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:127
Combined button and popup list for selecting options.