Okular::FormFieldText
#include <form.h>
Public Types | |
enum | TextType { Normal , Multiline , FileSelect } |
Public Types inherited from Okular::FormField | |
enum | AdditionalActionType { FieldModified , FormatField , ValidateField , CalculateField } |
enum | FieldType { FormButton , FormText , FormChoice , FormSignature } |
Public Member Functions | |
virtual bool | canBeSpellChecked () const |
virtual bool | isPassword () const |
virtual bool | isRichText () const |
virtual int | maximumLength () const |
virtual void | setAppearanceText (const QString &text)=0 |
void | setAppearanceValue (const QVariant &value) override |
virtual void | setText (const QString &text) |
void | setValue (const QVariant &value) override |
virtual QString | text () const =0 |
virtual Qt::Alignment | textAlignment () const |
virtual TextType | textType () const =0 |
QVariant | value () const override |
Public Member Functions inherited from Okular::FormField | |
Action * | activationAction () const |
Action * | additionalAction (AdditionalActionType type) const |
Action * | additionalAction (Annotation::AdditionalActionType type) const |
QList< Action * > | additionalActions () const |
void | commitFormattedValue (const QString &value) |
QString | committedFormattedValue () const |
QString | committedValue () const |
void | commitValue (const QString &value) |
virtual QString | fullyQualifiedName () const =0 |
virtual int | id () const =0 |
virtual bool | isPrintable () const |
virtual bool | isReadOnly () const |
virtual bool | isVisible () const |
virtual QString | name () const =0 |
Page * | page () const |
virtual NormalizedRect | rect () const =0 |
virtual void | setPrintable (bool value) |
virtual void | setReadOnly (bool value) |
virtual void | setVisible (bool value) |
FieldType | type () const |
virtual QString | uiName () const =0 |
Additional Inherited Members | |
Protected Member Functions inherited from Okular::FormField | |
void | setActivationAction (Action *action) |
void | setAdditionalAction (AdditionalActionType type, Action *action) |
void | setAdditionalAction (Annotation::AdditionalActionType type, Action *action) |
Detailed Description
Interface of a text form field.
This is the base interface to reimplement to represent a text field, ie a field where the user insert text.
Member Enumeration Documentation
◆ TextType
Constructor & Destructor Documentation
◆ ~FormFieldText()
◆ FormFieldText()
Member Function Documentation
◆ canBeSpellChecked()
|
virtual |
◆ isPassword()
|
virtual |
Whether this text field is a password input, eg its text must be replaced with asterisks.
Always false for FileSelect text fields.
◆ isRichText()
|
virtual |
◆ maximumLength()
|
virtual |
◆ setAppearanceText()
|
pure virtual |
Set the text which should be rendered by the PDF.
- Since
- 1.9
◆ setAppearanceValue()
|
overridevirtual |
Sets the appearance value associated with the text form field.
Internally calls setAppearanceText(const QString &text) method.
- Since
- 24.08
Reimplemented from Okular::FormField.
◆ setText()
|
virtual |
◆ setValue()
|
overridevirtual |
Sets the value
associated with the text form field.
The value is of type string and this function internally setText(const QString &text)
- Since
- 24.08
Reimplemented from Okular::FormField.
◆ text()
|
pure virtual |
The text of text field.
◆ textAlignment()
|
virtual |
◆ textType()
|
pure virtual |
The particular type of the text field.
◆ value()
|
overridevirtual |
Returns the value associated with the text form field.
Internally calls text() method.
- Since
- 24.08
Reimplemented from Okular::FormField.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 11:49:40 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.