Poppler Qt6 22.09.0
Public Types | Public Member Functions | List of all members
Poppler::FormFieldText Class Reference

#include <poppler-form.h>

Inheritance diagram for Poppler::FormFieldText:
Inheritance graph
[legend]
Collaboration diagram for Poppler::FormFieldText:
Collaboration graph
[legend]

Public Types

enum  TextType { Normal , Multiline , FileSelect }
 
- Public Types inherited from Poppler::FormField
enum  AdditionalActionType { FieldModified , FormatField , ValidateField , CalculateField }
 
enum  FormType { FormButton , FormText , FormChoice , FormSignature }
 

Public Member Functions

bool canBeSpellChecked () const
 
double getFontSize () const
 
bool isPassword () const
 
bool isRichText () const
 
int maximumLength () const
 
void setAppearanceText (const QString &text)
 
void setFontSize (int fontSize)
 
void setText (const QString &text)
 
QString text () const
 
Qt::Alignment textAlignment () const
 
TextType textType () const
 
FormType type () const override
 
 ~FormFieldText () override
 
- Public Member Functions inherited from Poppler::FormField
std::unique_ptr< LinkactivationAction () const
 
std::unique_ptr< LinkadditionalAction (AdditionalActionType type) const
 
std::unique_ptr< LinkadditionalAction (Annotation::AdditionalActionType type) const
 
QString fullyQualifiedName () const
 
int id () const
 
bool isPrintable () const
 
bool isReadOnly () const
 
bool isVisible () const
 
QString name () const
 
QRectF rect () const
 
void setName (const QString &name) const
 
void setPrintable (bool value)
 
void setReadOnly (bool value)
 
void setVisible (bool value)
 
virtual FormType type () const =0
 
QString uiName () const
 

Detailed Description

A form field that represents a text input.

Member Enumeration Documentation

◆ TextType

The particular type of this text field.

Enumerator
Normal 

A simple singleline text field.

Multiline 

A multiline text field.

FileSelect 

An input field to select the path of a file on disk.

Member Function Documentation

◆ isPassword()

bool Poppler::FormFieldText::isPassword ( ) const

Whether this text field is a password input, eg its text must be replaced with asterisks.

Always false for FileSelect text fields.

◆ type()

FormType Poppler::FormFieldText::type ( ) const
overridevirtual

The type of the field.

Implements Poppler::FormField.


The documentation for this class was generated from the following file: