Okular

printoptionswidget.h
1 /*
2  SPDX-FileCopyrightText: 2019 Michael Weghorn <[email protected]>
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 
14 class QComboBox;
15 
16 namespace Okular
17 {
18 /**
19  * @short Abstract base class for an extra print options widget in the print dialog.
20  */
21 class OKULARCORE_EXPORT PrintOptionsWidget : public QWidget
22 {
23  Q_OBJECT
24 public:
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  */
38 class OKULARCORE_EXPORT DefaultPrintOptionsWidget : public PrintOptionsWidget
39 {
40  Q_OBJECT
41 
42 public:
43  explicit DefaultPrintOptionsWidget(QWidget *parent = nullptr);
44 
45  bool ignorePrintMargins() const override;
46 
47 private:
48  QComboBox *m_ignorePrintMargins;
49 };
50 
51 }
52 
53 #endif
Abstract base class for an extra print options widget in the print dialog.
The documentation to the global Okular namespace.
Definition: action.h:16
The default okular extra print options widget.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 03:57:02 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.