Qt 6.x
The Qt SDK
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;
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.
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.