Okular

printoptionswidget.h
1 /***************************************************************************
2  * Copyright (C) 2019 Michael Weghorn <[email protected]> *
3  * *
4  * This program is free software; you can redistribute it and/or modify *
5  * it under the terms of the GNU General Public License as published by *
6  * the Free Software Foundation; either version 2 of the License, or *
7  * (at your option) any later version. *
8  ***************************************************************************/
9 
10 #ifndef PRINTOPTIONSWIDGET_H
11 #define PRINTOPTIONSWIDGET_H
12 
13 #include <QWidget>
14 
15 #include "okularcore_export.h"
16 
17 class QComboBox;
18 
19 namespace Okular {
20 
24 class OKULARCORE_EXPORT PrintOptionsWidget : public QWidget
25 {
26  Q_OBJECT
27  public:
28  explicit PrintOptionsWidget(QWidget * parent = nullptr)
29  : QWidget(parent) {}
30  virtual bool ignorePrintMargins() const = 0;
31 };
32 
39 class OKULARCORE_EXPORT DefaultPrintOptionsWidget : public PrintOptionsWidget
40 {
41  Q_OBJECT
42 
43  public:
44  explicit DefaultPrintOptionsWidget(QWidget *parent = nullptr);
45 
46  bool ignorePrintMargins() const override;
47 
48  private:
49  QComboBox *m_ignorePrintMargins;
50 };
51 
52 }
53 
54 #endif
global.h
Definition: action.h:19
Abstract base class for an extra print options widget in the print dialog.
The default okular extra print options widget.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Jun 5 2020 22:31:34 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.