okular/core/form_p.h
Albert Astals Cid 44c86de7e4 Fix two Signature issues on multipage/multisignature documents
First issue:
 - The "document is totally signed" was based on the last signature of
   the last page (that had signatures) that is not correct and needs to
   be based in the last signature by date

 - The "Rev #" number was based on the signature on the page, so if we
   had two pages with one signature each the model showed "Rev 1" for
   both

It adds new API which is not awesome in a stable branch, but the first
issue is important enough that warrants this to go to the stable branch
2022-01-03 23:38:23 +01:00

47 lines
897 B
C++

/*
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"
#include <QString>
namespace Okular
{
class Action;
class FormField;
class FormFieldPrivate
{
public:
explicit FormFieldPrivate(FormField::FieldType type);
virtual ~FormFieldPrivate();
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;
QHash<int, Action *> m_additionalActions;
QHash<int, Action *> m_additionalAnnotActions;
Page *m_page = nullptr;
Q_DECLARE_PUBLIC(FormField)
FormField *q_ptr;
};
}
#endif