diff options
Diffstat (limited to 'src/printsupport/kernel/qprinter.h')
-rw-r--r-- | src/printsupport/kernel/qprinter.h | 100 |
1 files changed, 3 insertions, 97 deletions
diff --git a/src/printsupport/kernel/qprinter.h b/src/printsupport/kernel/qprinter.h index e606ceba47..c60f0eea1f 100644 --- a/src/printsupport/kernel/qprinter.h +++ b/src/printsupport/kernel/qprinter.h @@ -1,41 +1,5 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the QtGui module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only #ifndef QPRINTER_H #define QPRINTER_H @@ -44,7 +8,6 @@ #include <QtCore/qstring.h> #include <QtCore/qscopedpointer.h> #include <QtGui/qpagedpaintdevice.h> -#include <QtGui/qpagelayout.h> QT_BEGIN_NAMESPACE @@ -56,12 +19,10 @@ QT_BEGIN_NAMESPACE #endif class QPrinterPrivate; -class QRangeCollection; class QPaintEngine; class QPrintEngine; class QPrinterInfo; class QPageSize; -class QPageMargins; class Q_PRINTSUPPORT_EXPORT QPrinter : public QPagedPaintDevice { @@ -75,11 +36,6 @@ public: int devType() const override; - enum Orientation { Portrait, Landscape }; - - // ### Qt6 Remove in favor of QPage::PageSize - typedef PageSize PaperSize; - enum PageOrder { FirstPageFirst, LastPageFirst }; @@ -155,36 +111,6 @@ public: void setCreator(const QString &); QString creator() const; -#ifdef Q_CLANG_QDOC - // ### Qt6 Remove when these are made virtual in QPagedPaintDevice - bool setPageLayout(const QPageLayout &pageLayout); - bool setPageSize(const QPageSize &pageSize); - bool setPageOrientation(QPageLayout::Orientation orientation); - bool setPageMargins(const QMarginsF &margins); - bool setPageMargins(const QMarginsF &margins, QPageLayout::Unit units); - QPageLayout pageLayout() const; -#else - using QPagedPaintDevice::setPageSize; - using QPagedPaintDevice::setPageMargins; -#endif - - void setOrientation(Orientation); - Orientation orientation() const; - - void setPageSize(PageSize) override; - PageSize pageSize() const; - - void setPageSizeMM(const QSizeF &size) override; - - void setPaperSize(PaperSize); - PaperSize paperSize() const; - - void setPaperSize(const QSizeF &paperSize, Unit unit); - QSizeF paperSize(Unit unit) const; - - void setPaperName(const QString &paperName); - QString paperName() const; - void setPageOrder(PageOrder); PageOrder pageOrder() const; @@ -200,11 +126,6 @@ public: void setFullPage(bool); bool fullPage() const; - void setNumCopies(int); - int numCopies() const; - - int actualNumCopies() const; - void setCopyCount(int); int copyCount() const; bool supportsMultipleCopies() const; @@ -217,21 +138,13 @@ public: QList<int> supportedResolutions() const; -#if defined(Q_OS_WIN) || defined(Q_CLANG_QDOC) +#if defined(Q_OS_WIN) || defined(Q_QDOC) QList<PaperSource> supportedPaperSources() const; #endif void setFontEmbeddingEnabled(bool enable); bool fontEmbeddingEnabled() const; - void setDoubleSidedPrinting(bool enable); - bool doubleSidedPrinting() const; - - void setWinPageSize(int winPageSize); - int winPageSize() const; - - QRect paperRect() const; - QRect pageRect() const; QRectF paperRect(Unit) const; QRectF pageRect(Unit) const; @@ -250,16 +163,9 @@ public: int fromPage() const; int toPage() const; - QRangeCollection *rangeCollection(); - void setPrintRange(PrintRange range); PrintRange printRange() const; - void setMargins(const Margins &m) override; - - void setPageMargins(qreal left, qreal top, qreal right, qreal bottom, Unit unit); - void getPageMargins(qreal *left, qreal *top, qreal *right, qreal *bottom, Unit unit) const; - protected: int metric(PaintDeviceMetric) const override; void setEngines(QPrintEngine *printEngine, QPaintEngine *paintEngine); |