Okular
form.h
168 * Returns the additional action of the given @p type or @c nullptr if no action has been defined.
virtual QString caption() const =0
The caption to be used for the button.
virtual void setState(bool state)
Sets the state of the button to the new state .
Definition form.cpp:201
virtual QList< int > siblings() const =0
The list with the IDs of siblings (ie, buttons belonging to the same group as the current one.
virtual void setIcon(Okular::FormField *field)
Sets the icon of the Button to the Icon of the field parameter.
Definition form.cpp:205
virtual ButtonType buttonType() const =0
The particular type of the button field.
virtual void setCurrentChoices(const QList< int > &choices)
Sets the selected choices to choices .
Definition form.cpp:346
void setAppearanceValue(const QVariant &value) override
Sets the appearance value associated with the form field.
Definition form.cpp:413
QVariant value() const override
Returns the value associated with the choice form field.
Definition form.cpp:400
QString exportValueForChoice(const QString &choice) const
Returns the export value for a given choice.
Definition form.cpp:375
virtual void setEditChoice(const QString &text)
Sets the text entered into an editable combo box choice field.
Definition form.cpp:355
virtual QString editChoice() const
The text entered into an editable combo box choice field.
Definition form.cpp:350
virtual QList< int > currentChoices() const =0
The currently selected choices.
virtual Qt::Alignment textAlignment() const
The alignment of the text within the field.
Definition form.cpp:359
virtual bool multiSelect() const
Whether more than one choice of this ListBox can be selected at the same time.
Definition form.cpp:341
void setExportValues(const QMap< QString, QString > &values)
The possible choices of the choice field.
Definition form.cpp:369
virtual void setAppearanceChoiceText(const QString &text)=0
Sets the text which should be rendered by the PDF in the position of choice FormField.
virtual bool isEditable() const
Whether this ComboBox is editable, ie the user can type in a custom value.
Definition form.cpp:336
virtual ChoiceType choiceType() const =0
The particular type of the choice field.
virtual QStringList choices() const =0
The possible choices of the choice field.
virtual bool canBeSpellChecked() const
Whether the text inserted manually in the field (where possible) can be spell-checked.
Definition form.cpp:364
void setValue(const QVariant &value) override
Sets the value asssociated with the choice form field.
Definition form.cpp:381
virtual bool sign(const NewSignatureData &data, const QString &newPath) const =0
Signs a field of UnsignedSignature type.
virtual bool unsubscribeUpdates(const SubscriptionHandle &) const =0
Unsubscribes a handle for updates.
virtual SignatureInfo signatureInfo() const =0
The signature info.
virtual SubscriptionHandle subscribeUpdates(const std::function< void()> &callback) const =0
Subscribes to updates to signatureInfo.
virtual SignatureType signatureType() const =0
The signature type.
virtual void setAppearanceText(const QString &text)=0
Set the text which should be rendered by the PDF.
virtual bool isPassword() const
Whether this text field is a password input, eg its text must be replaced with asterisks.
Definition form.cpp:245
virtual Qt::Alignment textAlignment() const
The alignment of the text within the field.
Definition form.cpp:260
virtual bool isRichText() const
Whether this text field should allow rich text.
Definition form.cpp:250
QVariant value() const override
Returns the value associated with the text form field.
Definition form.cpp:280
void setAppearanceValue(const QVariant &value) override
Sets the appearance value associated with the text form field.
Definition form.cpp:275
virtual int maximumLength() const
The maximum length allowed for the text of text field, or -1 if there is no limitation for the text.
Definition form.cpp:255
virtual void setText(const QString &text)
Sets the new text in the text field.
Definition form.cpp:241
void setValue(const QVariant &value) override
Sets the value associated with the text form field.
Definition form.cpp:270
virtual TextType textType() const =0
The particular type of the text field.
virtual bool canBeSpellChecked() const
Whether the text inserted manually in the field (where possible) can be spell-checked.
Definition form.cpp:265
@ CalculateField
An action to be performed when the field needs to be recalculated.
Definition form.h:164
@ FormatField
An action to be performed before the field is formatted to display its value.
Definition form.h:162
virtual QString uiName() const =0
The visible name of the field, to be used in the user interface (eg in error messages,...
virtual void setValue(const QVariant &value)
Sets the value associated with the form field.
Definition form.cpp:80
virtual void setAppearanceValue(const QVariant &value)
Sets the appearance value associated with the form field.
Definition form.cpp:84
virtual NormalizedRect rect() const =0
The bounding rect of the field, in normalized coordinates.
virtual QString name() const =0
The internal name of the field, to be used when referring to the field in eg scripts.
virtual QVariant value() const
Returns the value associated wit the form field.
Definition form.cpp:88
virtual QString fullyQualifiedName() const =0
The fully qualified name of the field, is used in the JavaScript scripts.
A NormalizedRect is a rectangle which can be defined by two NormalizedPoints.
Definition area.h:189
typedef Alignment
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:47:33 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:47:33 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.