1// qprintengine.sip generated by MetaSIP
2//
3// This file is part of the QtPrintSupport Python extension module.
4//
5// Copyright (c) 2021 Riverbank Computing Limited <info@riverbankcomputing.com>
6//
7// This file is part of PyQt5.
8//
9// This file may be used under the terms of the GNU General Public License
10// version 3.0 as published by the Free Software Foundation and appearing in
11// the file LICENSE included in the packaging of this file.  Please review the
12// following information to ensure the GNU General Public License version 3.0
13// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
14//
15// If you do not wish to use this file under the terms of the GPL version 3.0
16// then you may purchase a commercial license.  For more information contact
17// info@riverbankcomputing.com.
18//
19// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
20// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
21
22
23%If (PyQt_Printer)
24
25class QPrintEngine
26{
27%TypeHeaderCode
28#include <qprintengine.h>
29%End
30
31public:
32    virtual ~QPrintEngine();
33
34    enum PrintEnginePropertyKey
35    {
36        PPK_CollateCopies,
37        PPK_ColorMode,
38        PPK_Creator,
39        PPK_DocumentName,
40        PPK_FullPage,
41        PPK_NumberOfCopies,
42        PPK_Orientation,
43        PPK_OutputFileName,
44        PPK_PageOrder,
45        PPK_PageRect,
46        PPK_PageSize,
47        PPK_PaperRect,
48        PPK_PaperSource,
49        PPK_PrinterName,
50        PPK_PrinterProgram,
51        PPK_Resolution,
52        PPK_SelectionOption,
53        PPK_SupportedResolutions,
54        PPK_WindowsPageSize,
55        PPK_FontEmbedding,
56        PPK_Duplex,
57        PPK_PaperSources,
58        PPK_CustomPaperSize,
59        PPK_PageMargins,
60        PPK_PaperSize,
61        PPK_CopyCount,
62        PPK_SupportsMultipleCopies,
63%If (Qt_5_1_0 -)
64        PPK_PaperName,
65%End
66%If (Qt_5_3_0 -)
67        PPK_QPageSize,
68%End
69%If (Qt_5_3_0 -)
70        PPK_QPageMargins,
71%End
72%If (Qt_5_3_0 -)
73        PPK_QPageLayout,
74%End
75        PPK_CustomBase,
76    };
77
78    virtual void setProperty(QPrintEngine::PrintEnginePropertyKey key, const QVariant &value) = 0;
79    virtual QVariant property(QPrintEngine::PrintEnginePropertyKey key) const = 0;
80    virtual bool newPage() = 0;
81    virtual bool abort() = 0;
82    virtual int metric(QPaintDevice::PaintDeviceMetric) const = 0;
83    virtual QPrinter::PrinterState printerState() const = 0;
84};
85
86%End
87