okular/core/form_p.h

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

47 lines
897 B
C
Raw Normal View History

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