okular/core/script/js_display_p.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
717 B
C
Raw Permalink Normal View History

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
*/
#ifndef OKULAR_SCRIPT_JS_DISPLAY_P_H
#define OKULAR_SCRIPT_JS_DISPLAY_P_H
2023-05-20 14:51:09 +00:00
#include <QObject>
namespace Okular
{
/**
* The display types of the field.
*/
enum FormDisplay { FormVisible, FormHidden, FormNoPrint, FormNoView };
2023-05-20 14:51:09 +00:00
class JSDisplay : public QObject
{
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)
public:
2023-05-20 14:51:09 +00:00
int hidden() const;
int visible() const;
int noView() const;
int noPrint() const;
};
}
#endif