2021-05-24 07:25:56 +00:00
|
|
|
/*
|
|
|
|
SPDX-FileCopyrightText: 2019 João Netto <joaonetto901@gmail.com>
|
|
|
|
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
2019-05-23 13:28:53 +00:00
|
|
|
|
2023-06-22 15:40:50 +00:00
|
|
|
#ifndef OKULAR_SCRIPT_JS_DISPLAY_P_H
|
|
|
|
#define OKULAR_SCRIPT_JS_DISPLAY_P_H
|
2019-05-23 13:28:53 +00:00
|
|
|
|
2023-05-20 14:51:09 +00:00
|
|
|
#include <QObject>
|
2019-05-23 13:28:53 +00:00
|
|
|
|
|
|
|
namespace Okular
|
|
|
|
{
|
2019-07-19 20:26:17 +00:00
|
|
|
/**
|
|
|
|
* The display types of the field.
|
|
|
|
*/
|
|
|
|
enum FormDisplay { FormVisible, FormHidden, FormNoPrint, FormNoView };
|
|
|
|
|
2023-05-20 14:51:09 +00:00
|
|
|
class JSDisplay : public QObject
|
2019-05-23 13:28:53 +00:00
|
|
|
{
|
2023-05-20 14:51:09 +00:00
|
|
|
Q_OBJECT
|
|
|
|
Q_PROPERTY(int hidden READ hidden CONSTANT)
|
|
|
|
Q_PROPERTY(int visible READ visible CONSTANT)
|
|
|
|
Q_PROPERTY(int noView READ noView CONSTANT)
|
|
|
|
Q_PROPERTY(int noPrint READ noPrint CONSTANT)
|
2019-05-23 13:28:53 +00:00
|
|
|
public:
|
2023-05-20 14:51:09 +00:00
|
|
|
int hidden() const;
|
|
|
|
int visible() const;
|
|
|
|
int noView() const;
|
|
|
|
int noPrint() const;
|
2019-05-23 13:28:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|