27 #ifndef _POPPLER_QT5_FORM_H_ 28 #define _POPPLER_QT5_FORM_H_ 31 #include <QtCore/QDateTime> 32 #include <QtCore/QList> 33 #include <QtCore/QRectF> 34 #include <QtCore/QStringList> 35 #include <QtCore/QSharedPointer> 36 #include "poppler-export.h" 37 #include "poppler-annotation.h" 41 class FormWidgetButton;
43 class FormWidgetChoice;
44 class FormWidgetSignature;
75 virtual FormType type()
const = 0;
97 void setName(
const QString &name)
const;
103 QString fullyQualifiedName()
const;
109 QString uiName()
const;
114 bool isReadOnly()
const;
120 void setReadOnly(
bool value);
125 bool isVisible()
const;
131 void setVisible(
bool value);
138 Link* activationAction()
const;
157 Link* additionalAction(AdditionalActionType type)
const;
170 FormFieldData *m_formData;
200 FormType type()
const override;
205 ButtonType buttonType()
const;
210 QString caption()
const;
220 void setState(
bool state );
228 QList<int> siblings()
const;
256 FormType type()
const override;
261 TextType textType()
const;
266 QString text()
const;
272 void setText(
const QString& text );
280 bool isPassword()
const;
285 bool isRichText()
const;
290 int maximumLength()
const;
295 Qt::Alignment textAlignment()
const;
301 bool canBeSpellChecked()
const;
306 double getFontSize()
const;
311 void setFontSize(
int fontSize);
338 FormType type()
const override;
343 ChoiceType choiceType()
const;
348 QStringList choices()
const;
356 bool isEditable()
const;
364 bool multiSelect()
const;
369 QList<int> currentChoices()
const;
374 void setCurrentChoices(
const QList<int> &choice );
381 QString editChoice()
const;
388 void setEditChoice(
const QString& text);
393 Qt::Alignment textAlignment()
const;
401 bool canBeSpellChecked()
const;
412 class CertificateInfoPrivate;
432 KuDigitalSignature = 0x80,
433 KuNonRepudiation = 0x40,
434 KuKeyEncipherment = 0x20,
435 KuDataEncipherment = 0x10,
436 KuKeyAgreement = 0x08,
437 KuKeyCertSign = 0x04,
439 KuEncipherOnly = 0x01,
442 Q_DECLARE_FLAGS(KeyUsageExtensions, KeyUsageExtension)
471 QByteArray serialNumber()
const;
476 QString issuerInfo(EntityInfoKey key)
const;
481 QString subjectInfo(EntityInfoKey key)
const;
486 QDateTime validityStart()
const;
491 QDateTime validityEnd()
const;
496 KeyUsageExtensions keyUsageExtensions()
const;
501 QByteArray publicKey()
const;
506 PublicKeyType publicKeyType()
const;
511 int publicKeyStrength()
const;
516 bool isSelfSigned()
const;
521 QByteArray certificateData()
const;
529 QSharedPointer<CertificateInfoPrivate> d_ptr;
531 Q_DECLARE_OPERATORS_FOR_FLAGS(CertificateInfo::KeyUsageExtensions)
538 class SignatureValidationInfoPrivate;
565 CertificateNotVerified
574 HashAlgorithmUnknown,
592 SignatureStatus signatureStatus()
const;
597 CertificateStatus certificateStatus()
const;
602 QString signerName()
const;
608 QString signerSubjectDN()
const;
614 QString location()
const;
620 QString reason()
const;
626 HashAlgorithm hashAlgorithm()
const;
631 time_t signingTime()
const;
637 QByteArray signature()
const;
643 QList<qint64> signedRangeBounds()
const;
650 bool signsTotalDocument()
const;
664 QSharedPointer<SignatureValidationInfoPrivate> d_ptr;
689 ValidateVerifyCertificate = 1,
690 ValidateForceRevalidation = 2,
698 FormType type()
const override;
704 SignatureType signatureType()
const;
TextType
The particular type of this text field.
Definition: poppler-form.h:245
Encapsulates data that describes a link.
Definition: poppler-link.h:178
The certificate could not be verified.
Definition: poppler-form.h:564
A simple singleline text field.
Definition: poppler-form.h:246
The signature is cryptographically invalid.
Definition: poppler-form.h:547
EntityInfoKey
Predefined keys for elements in an entity's distinguished name.
Definition: poppler-form.h:447
The document content was changed after the signature was applied.
Definition: poppler-form.h:548
CertificateStatus
The verification result of the certificate.
Definition: poppler-form.h:558
A page in a document.
Definition: poppler-qt5.h:409
The certificate trust chain has not finished in a trusted root certificate.
Definition: poppler-form.h:561
KeyUsageExtension
Certificate key usage extensions.
Definition: poppler-form.h:430
SignatureStatus
The verification result of the signature.
Definition: poppler-form.h:545
AdditionalActionType
Describes the flags from an annotations 'AA' dictionary.
Definition: poppler-annotation.h:412
A form field that represents a text input.
Definition: poppler-form.h:239
A multiline text field.
Definition: poppler-form.h:247
Definition: poppler-form.h:539
The signature could not be verified.
Definition: poppler-form.h:550
The signature is cryptographically valid.
Definition: poppler-form.h:546
The requested signature is not present in the document.
Definition: poppler-form.h:551
PublicKeyType
The algorithm of public key.
Definition: poppler-form.h:419
The certificate was revoked by the issuing certificate authority.
Definition: poppler-form.h:562
The Poppler Qt5 binding.
Definition: poppler-annotation.h:45
The issuer of this certificate has been marked as untrusted by the user.
Definition: poppler-form.h:560
HashAlgorithm
The hash algorithm of the signature.
Definition: poppler-form.h:572
The signature CMS/PKCS7 structure is malformed.
Definition: poppler-form.h:549
The signing time is outside the validity bounds of this certificate.
Definition: poppler-form.h:563
Definition: poppler-form.h:413
The certificate is considered trusted.
Definition: poppler-form.h:559