Okular

printoptionswidget.h
1/*
2 SPDX-FileCopyrightText: 2019 Michael Weghorn <m.weghorn@posteo.de>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#ifndef PRINTOPTIONSWIDGET_H
8#define PRINTOPTIONSWIDGET_H
9
10#include <QWidget>
11
12#include "okularcore_export.h"
13
14class QComboBox;
15
16namespace Okular
17{
18/**
19 * @short Abstract base class for an extra print options widget in the print dialog.
20 */
21class OKULARCORE_EXPORT PrintOptionsWidget : public QWidget
22{
23 Q_OBJECT
24public:
25 explicit PrintOptionsWidget(QWidget *parent = nullptr)
26 : QWidget(parent)
27 {
28 }
29 virtual bool ignorePrintMargins() const = 0;
30};
31
32/**
33 * @short The default okular extra print options widget.
34 *
35 * It just implements the required method 'ignorePrintMargins()' from
36 * the base class 'PrintOptionsWidget'.
37 */
38class OKULARCORE_EXPORT DefaultPrintOptionsWidget : public PrintOptionsWidget
39{
40 Q_OBJECT
41
42public:
43 explicit DefaultPrintOptionsWidget(QWidget *parent = nullptr);
44
45 bool ignorePrintMargins() const override;
46
47private:
48 QComboBox *m_ignorePrintMargins;
49};
50
51}
52
53#endif
The default okular extra print options widget.
Abstract base class for an extra print options widget in the print dialog.
global.h
Definition action.h:17
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:47:54 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.