Poppler Qt5
0.74.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 |
ChoiceType | choiceType () const |
QList< int > | currentChoices () const |
QString | editChoice () const |
bool | isEditable () const |
bool | multiSelect () const |
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 | isReadOnly () const |
bool | isVisible () const |
QString | name () const |
QRectF | rect () const |
void | setName (const QString &name) const |
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.
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::setEditChoice | ( | const QString & | text | ) |
Sets the text entered into an editable combo box choice field.
Otherwise does nothing.