diff options
author | Christian Persch <chpe@src.gnome.org> | 2018-10-19 22:46:15 +0200 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2018-10-19 23:50:03 +0200 |
commit | 4ef2020d036c5b6b11040be2e2685746434778e5 (patch) | |
tree | e49c47b09a2d50a598f3316ba294bddf4ea8a81e /glib/poppler-form-field.h | |
parent | 1d8df8e36b5627a4dffbfe76e384022daf6e4eb1 (diff) |
glib: Only export symbols in the public API
poppler-glib exported lots of internal C++ symbols
that are not in the public API, nor have any ABI
guarantees.
Mark all public functions with POPPLER_PUBLIC, and
use symbol visibility to hide everything else.
Diffstat (limited to 'glib/poppler-form-field.h')
-rw-r--r-- | glib/poppler-form-field.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/glib/poppler-form-field.h b/glib/poppler-form-field.h index 898e0f6c..94774860 100644 --- a/glib/poppler-form-field.h +++ b/glib/poppler-form-field.h @@ -58,52 +58,85 @@ typedef enum POPPLER_FORM_CHOICE_LIST } PopplerFormChoiceType; +POPPLER_PUBLIC GType poppler_form_field_get_type (void) G_GNUC_CONST; +POPPLER_PUBLIC PopplerFormFieldType poppler_form_field_get_field_type (PopplerFormField *field); +POPPLER_PUBLIC gint poppler_form_field_get_id (PopplerFormField *field); +POPPLER_PUBLIC gdouble poppler_form_field_get_font_size (PopplerFormField *field); +POPPLER_PUBLIC gboolean poppler_form_field_is_read_only (PopplerFormField *field); +POPPLER_PUBLIC gchar *poppler_form_field_get_partial_name (PopplerFormField *field); +POPPLER_PUBLIC gchar *poppler_form_field_get_mapping_name (PopplerFormField *field); +POPPLER_PUBLIC gchar *poppler_form_field_get_name (PopplerFormField *field); +POPPLER_PUBLIC PopplerAction *poppler_form_field_get_action (PopplerFormField *field); /* Button Field */ +POPPLER_PUBLIC PopplerFormButtonType poppler_form_field_button_get_button_type (PopplerFormField *field); +POPPLER_PUBLIC gboolean poppler_form_field_button_get_state (PopplerFormField *field); +POPPLER_PUBLIC void poppler_form_field_button_set_state (PopplerFormField *field, gboolean state); /* Text Field */ +POPPLER_PUBLIC PopplerFormTextType poppler_form_field_text_get_text_type (PopplerFormField *field); +POPPLER_PUBLIC gchar *poppler_form_field_text_get_text (PopplerFormField *field); +POPPLER_PUBLIC void poppler_form_field_text_set_text (PopplerFormField *field, const gchar *text); +POPPLER_PUBLIC gint poppler_form_field_text_get_max_len (PopplerFormField *field); +POPPLER_PUBLIC gboolean poppler_form_field_text_do_spell_check (PopplerFormField *field); +POPPLER_PUBLIC gboolean poppler_form_field_text_do_scroll (PopplerFormField *field); +POPPLER_PUBLIC gboolean poppler_form_field_text_is_rich_text (PopplerFormField *field); +POPPLER_PUBLIC gboolean poppler_form_field_text_is_password (PopplerFormField *field); /* Choice Field */ +POPPLER_PUBLIC PopplerFormChoiceType poppler_form_field_choice_get_choice_type (PopplerFormField *field); +POPPLER_PUBLIC gboolean poppler_form_field_choice_is_editable (PopplerFormField *field); +POPPLER_PUBLIC gboolean poppler_form_field_choice_can_select_multiple (PopplerFormField *field); +POPPLER_PUBLIC gboolean poppler_form_field_choice_do_spell_check (PopplerFormField *field); +POPPLER_PUBLIC gboolean poppler_form_field_choice_commit_on_change (PopplerFormField *field); +POPPLER_PUBLIC gint poppler_form_field_choice_get_n_items (PopplerFormField *field); +POPPLER_PUBLIC gchar *poppler_form_field_choice_get_item (PopplerFormField *field, gint index); +POPPLER_PUBLIC gboolean poppler_form_field_choice_is_item_selected (PopplerFormField *field, gint index); +POPPLER_PUBLIC void poppler_form_field_choice_select_item (PopplerFormField *field, gint index); +POPPLER_PUBLIC void poppler_form_field_choice_unselect_all (PopplerFormField *field); +POPPLER_PUBLIC void poppler_form_field_choice_toggle_item (PopplerFormField *field, gint index); +POPPLER_PUBLIC void poppler_form_field_choice_set_text (PopplerFormField *field, const gchar *text); +POPPLER_PUBLIC gchar *poppler_form_field_choice_get_text (PopplerFormField *field); G_END_DECLS |