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
qcupsprintersupport_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// Copyright (C) 2014 John Layt <jlayt@kde.org>
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5#ifndef QCUPSPRINTERSUPPORT_H
6#define QCUPSPRINTERSUPPORT_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 purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <qpa/qplatformprintersupport.h>
20
21#include <QtCore/qstringlist.h>
22
24
26{
27public:
30
31 QPrintEngine *createNativePrintEngine(QPrinter::PrinterMode printerMode, const QString &deviceId = QString()) override;
33
34 QPrintDevice createPrintDevice(const QString &id) override;
35 QStringList availablePrintDeviceIds() const override;
36 QString defaultPrintDeviceId() const override;
37
39
40private:
41 QString cupsOption(int i, const QString &key) const;
42};
43
45
46#endif // QCUPSPRINTERSUPPORT_H
static QString staticDefaultPrintDeviceId()
QPrintEngine * createNativePrintEngine(QPrinter::PrinterMode printerMode, const QString &deviceId=QString()) override
QPrintDevice createPrintDevice(const QString &id) override
QStringList availablePrintDeviceIds() const override
QString defaultPrintDeviceId() const override
QPaintEngine * createPaintEngine(QPrintEngine *printEngine, QPrinter::PrinterMode) override
\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.
GLuint64 key