2007-07-04 11:41:45 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* Copyright (C) 2007 by Pino Toscano <pino@kde.org> *
|
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU General Public License as published by *
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
|
|
* (at your option) any later version. *
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#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;
|
2007-07-04 11:41:45 +00:00
|
|
|
|
|
|
|
Q_DECLARE_PUBLIC(FormField)
|
|
|
|
FormField *q_ptr;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|