mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-27 11:40:07 +00:00
54 lines
1 KiB
C++
54 lines
1 KiB
C++
/*
|
|
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
|