Poppler.FormField – poppler-glib Reference Manual
Packages
poppler-glib
Poppler
FormField
FormField
button_get_button_type
button_get_state
button_set_state
choice_can_select_multiple
choice_commit_on_change
choice_do_spell_check
choice_get_choice_type
choice_get_item
choice_get_n_items
choice_get_text
choice_is_editable
choice_is_item_selected
choice_select_item
choice_set_text
choice_toggle_item
choice_unselect_all
get_action
get_additional_action
get_alternate_ui_name
get_field_type
get_font_size
get_id
get_mapping_name
get_name
get_partial_name
is_read_only
text_do_scroll
text_do_spell_check
text_get_max_len
text_get_text
text_get_text_type
text_is_password
text_is_rich_text
text_set_text
FormField
Object Hierarchy:
Description:
[
CCode
( type_id =
"poppler_form_field_get_type ()"
) ]
public
class
FormField
:
Object
A
Document
form field.
Since 25.06 this type supports g_autoptr
Namespace:
Poppler
Package:
poppler-glib
Content:
Creation methods:
protected
FormField
()
Methods:
public
FormButtonType
button_get_button_type
()
Gets the button type of
this
public
bool
button_get_state
()
Queries a
FormField
and returns its current state.
public
void
button_set_state
(
bool
state)
Sets the status of
this
.
public
bool
choice_can_select_multiple
()
Checks whether
this
allows multiple choices to be selected
public
bool
choice_commit_on_change
()
public
bool
choice_do_spell_check
()
Checks whether spell checking should be done for the contents of
this
public
FormChoiceType
choice_get_choice_type
()
Gets the choice type of
this
public
string
choice_get_item
(
int
index)
Returns the contents of the item on
this
at the given index
public
int
choice_get_n_items
()
Returns the number of items on
this
public
string
choice_get_text
()
Retrieves the contents of
this
.
public
bool
choice_is_editable
()
Checks whether
this
is editable
public
bool
choice_is_item_selected
(
int
index)
Checks whether the item at the given index on
this
is currently selected
public
void
choice_select_item
(
int
index)
Selects the item at the given index on
this
public
void
choice_set_text
(
string
text)
Sets the text in
this
to the given value, replacing the current contents
public
void
choice_toggle_item
(
int
index)
Changes the state of the item at the given index
public
void
choice_unselect_all
()
Unselects all the items on
this
public
unowned
Action
get_action
()
Retrieves the action (
Action
) that shall be performed when
this
is activated, or
null
public
unowned
Action
get_additional_action
(
AdditionalActionType
type)
Retrieves the action (
Action
) that shall be performed when an additional action is triggered on
this
, or
null
.
public
string
get_alternate_ui_name
()
Gets the alternate ui name of
this
.
public
FormFieldType
get_field_type
()
Gets the type of
this
public
double
get_font_size
()
Gets the font size of
this
public
int
get_id
()
Gets the id of
this
public
string
get_mapping_name
()
Gets the mapping name of
this
that is used when exporting interactive form field data from the document
public
string
get_name
()
Gets the fully qualified name of
this
.
public
string
get_partial_name
()
Gets the partial name of
this
.
public
bool
is_read_only
()
Checks whether
this
is read only
public
bool
text_do_scroll
()
public
bool
text_do_spell_check
()
Checks whether spell checking should be done for the contents of
this
public
int
text_get_max_len
()
Retrieves the maximum allowed length of the text in
this
public
string
text_get_text
()
Retrieves the contents of
this
.
public
FormTextType
text_get_text_type
()
Gets the text type of
this
.
public
bool
text_is_password
()
Checks whether content of
this
is a password and it must be hidden
public
bool
text_is_rich_text
()
Checks whether the contents of
this
are rich text
public
void
text_set_text
(
string
text)
Sets the text in
this
to the given value, replacing the current contents.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref