File indexing completed on 2024-05-12 04:33:32
0001 /* 0002 SPDX-FileCopyrightText: 2019 João Netto <joaonetto901@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef OKULAR_SCRIPT_JS_DISPLAY_P_H 0008 #define OKULAR_SCRIPT_JS_DISPLAY_P_H 0009 0010 #include <QObject> 0011 0012 namespace Okular 0013 { 0014 /** 0015 * The display types of the field. 0016 */ 0017 enum FormDisplay { FormVisible, FormHidden, FormNoPrint, FormNoView }; 0018 0019 class JSDisplay : public QObject 0020 { 0021 Q_OBJECT 0022 Q_PROPERTY(int hidden READ hidden CONSTANT) 0023 Q_PROPERTY(int visible READ visible CONSTANT) 0024 Q_PROPERTY(int noView READ noView CONSTANT) 0025 Q_PROPERTY(int noPrint READ noPrint CONSTANT) 0026 public: 0027 int hidden() const; 0028 int visible() const; 0029 int noView() const; 0030 int noPrint() const; 0031 }; 0032 0033 } 0034 0035 #endif