You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.0 KiB
53 lines
1.0 KiB
/* |
|
SPDX-FileCopyrightText: 2019 Michael Weghorn <m.weghorn@posteo.de> |
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later |
|
*/ |
|
|
|
#ifndef PRINTOPTIONSWIDGET_H |
|
#define PRINTOPTIONSWIDGET_H |
|
|
|
#include <QWidget> |
|
|
|
#include "okularcore_export.h" |
|
|
|
class QComboBox; |
|
|
|
namespace Okular |
|
{ |
|
/** |
|
* @short Abstract base class for an extra print options widget in the print dialog. |
|
*/ |
|
class OKULARCORE_EXPORT PrintOptionsWidget : public QWidget |
|
{ |
|
Q_OBJECT |
|
public: |
|
explicit PrintOptionsWidget(QWidget *parent = nullptr) |
|
: QWidget(parent) |
|
{ |
|
} |
|
virtual bool ignorePrintMargins() const = 0; |
|
}; |
|
|
|
/** |
|
* @short The default okular extra print options widget. |
|
* |
|
* It just implements the required method 'ignorePrintMargins()' from |
|
* the base class 'PrintOptionsWidget'. |
|
*/ |
|
class OKULARCORE_EXPORT DefaultPrintOptionsWidget : public PrintOptionsWidget |
|
{ |
|
Q_OBJECT |
|
|
|
public: |
|
explicit DefaultPrintOptionsWidget(QWidget *parent = nullptr); |
|
|
|
bool ignorePrintMargins() const override; |
|
|
|
private: |
|
QComboBox *m_ignorePrintMargins; |
|
}; |
|
|
|
} |
|
|
|
#endif
|
|
|