Poppler Qt5 24.12.0
|
#include <poppler-form.h>
Public Types | |
enum | ChoiceType { ComboBox , ListBox } |
Public Types inherited from Poppler::FormField | |
enum | AdditionalActionType { FieldModified , FormatField , ValidateField , CalculateField } |
enum | FormType { FormButton , FormText , FormChoice , FormSignature } |
Public Member Functions | |
bool | canBeSpellChecked () const |
QStringList | choices () const |
QVector< QPair< QString, QString > > | choicesWithExportValues () const |
ChoiceType | choiceType () const |
QList< int > | currentChoices () const |
QString | editChoice () const |
bool | isEditable () const |
bool | multiSelect () const |
void | setAppearanceChoiceText (const QString &text) |
void | setCurrentChoices (const QList< int > &choice) |
void | setEditChoice (const QString &text) |
Qt::Alignment | textAlignment () const |
FormType | type () const override |
Public Member Functions inherited from Poppler::FormField | |
Link * | activationAction () const |
Link * | additionalAction (AdditionalActionType type) const |
Link * | additionalAction (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) |
QString | uiName () const |
A form field that represents a choice field.
bool Poppler::FormFieldChoice::canBeSpellChecked | ( | ) | const |
Whether the text inserted manually in the field (where possible) can be spell-checked.
Returns false if the field is not an editable text field.
QVector< QPair< QString, QString > > Poppler::FormFieldChoice::choicesWithExportValues | ( | ) | const |
The possible choices of the choice field.
The first value of the pair is the display name of the choice, The second value is the export value (i.e. for use in javascript, etc) of the choice
QString Poppler::FormFieldChoice::editChoice | ( | ) | const |
The text entered into an editable combo box choice field.
Otherwise a null string.
bool Poppler::FormFieldChoice::isEditable | ( | ) | const |
Whether this FormFieldChoice::ComboBox is editable, i.e.
the user can type in a custom value.
Always false for the other types of choices.
bool Poppler::FormFieldChoice::multiSelect | ( | ) | const |
Whether more than one choice of this FormFieldChoice::ListBox can be selected at the same time.
Always false for the other types of choices.
void Poppler::FormFieldChoice::setAppearanceChoiceText | ( | const QString & | text | ) |
Sets the text inside the Appearance Stream to the specified text
.
void Poppler::FormFieldChoice::setEditChoice | ( | const QString & | text | ) |
Sets the text entered into an editable combo box choice field.
Otherwise does nothing.
|
overridevirtual |
The type of the field.
Implements Poppler::FormField.