2021-05-24 07:25:56 +00:00
|
|
|
/*
|
|
|
|
SPDX-FileCopyrightText: 2007 Pino Toscano <pino@kde.org>
|
|
|
|
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
2007-07-04 11:41:45 +00:00
|
|
|
|
|
|
|
#ifndef OKULAR_FORM_P_H
|
|
|
|
#define OKULAR_FORM_P_H
|
|
|
|
|
|
|
|
#include "form.h"
|
|
|
|
|
2018-08-31 09:23:45 +00:00
|
|
|
#include <QString>
|
2007-07-04 11:41:45 +00:00
|
|
|
|
|
|
|
namespace Okular
|
|
|
|
{
|
2008-03-20 17:42:17 +00:00
|
|
|
class Action;
|
2007-07-04 11:41:45 +00:00
|
|
|
class FormField;
|
|
|
|
|
|
|
|
class FormFieldPrivate
|
|
|
|
{
|
|
|
|
public:
|
2018-09-01 08:25:57 +00:00
|
|
|
explicit FormFieldPrivate(FormField::FieldType type);
|
2007-07-04 11:41:45 +00:00
|
|
|
virtual ~FormFieldPrivate();
|
|
|
|
|
2020-02-21 15:11:42 +00:00
|
|
|
FormFieldPrivate(const FormFieldPrivate &) = delete;
|
|
|
|
FormFieldPrivate &operator=(const FormFieldPrivate &) = delete;
|
|
|
|
|
2007-07-04 11:41:45 +00:00
|
|
|
void setDefault();
|
|
|
|
|
|
|
|
virtual void setValue(const QString &) = 0;
|
|
|
|
virtual QString value() const = 0;
|
|
|
|
|
|
|
|
FormField::FieldType m_type;
|
|
|
|
QString m_default;
|
2008-03-20 17:42:17 +00:00
|
|
|
Action *m_activateAction;
|
2017-03-02 23:41:06 +00:00
|
|
|
QHash<int, Action *> m_additionalActions;
|
2018-05-30 08:04:06 +00:00
|
|
|
QHash<int, Action *> m_additionalAnnotActions;
|
2022-01-03 15:01:01 +00:00
|
|
|
Page *m_page = nullptr;
|
2007-07-04 11:41:45 +00:00
|
|
|
|
|
|
|
Q_DECLARE_PUBLIC(FormField)
|
|
|
|
FormField *q_ptr;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|