diff options
author | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2013-11-07 00:51:11 -0500 |
---|---|---|
committer | Albert Astals Cid <tsdgeos@yahoo.es> | 2018-11-06 22:07:44 +0000 |
commit | d09f763b3ea5581f7819b46b659f3d9b1b5fd78c (patch) | |
tree | ffeb17b36ad0c6e60f6cfd26aabdf3308e80da1c /glib/poppler-form-field.h | |
parent | ee6166ab599c3d5f694191707c366653afa7b0d3 (diff) |
glib: Support getting form widget additional actions.
Diffstat (limited to 'glib/poppler-form-field.h')
-rw-r--r-- | glib/poppler-form-field.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/glib/poppler-form-field.h b/glib/poppler-form-field.h index 94774860..7c7f73cb 100644 --- a/glib/poppler-form-field.h +++ b/glib/poppler-form-field.h @@ -58,6 +58,27 @@ typedef enum POPPLER_FORM_CHOICE_LIST } PopplerFormChoiceType; +/** + * PopplerAdditionalActionType: + * @POPPLER_ADDITIONAL_ACTION_FIELD_MODIFIED: The action to be performed when the user modifies the field. + * @POPPLER_ADDITIONAL_ACTION_FORMAT_FIELD: The action to be performed before the field is formatted to + * display its value. + * @POPPLER_ADDITIONAL_ACTION_VALIDATE_FIELD: The action to be performed when the field value changes. + * @POPPLER_ADDITIONAL_ACTION_CALCULATE_FIELD: The action to be performed when the field needs to be + * recalculated. + * + * Form field additional action types to be passed to @poppler_form_field_get_additional_action + * + * Since: 0.71 + */ +typedef enum +{ + POPPLER_ADDITIONAL_ACTION_FIELD_MODIFIED, + POPPLER_ADDITIONAL_ACTION_FORMAT_FIELD, + POPPLER_ADDITIONAL_ACTION_VALIDATE_FIELD, + POPPLER_ADDITIONAL_ACTION_CALCULATE_FIELD +} PopplerAdditionalActionType; + POPPLER_PUBLIC GType poppler_form_field_get_type (void) G_GNUC_CONST; @@ -77,6 +98,9 @@ POPPLER_PUBLIC gchar *poppler_form_field_get_name (PopplerFormField *field); POPPLER_PUBLIC PopplerAction *poppler_form_field_get_action (PopplerFormField *field); +POPPLER_PUBLIC +PopplerAction *poppler_form_field_get_additional_action (PopplerFormField *field, + PopplerAdditionalActionType type); /* Button Field */ POPPLER_PUBLIC |