1
/* poppler-form-field.h: glib interface to poppler
3
* Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org>
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2, or (at your option)
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
20
#ifndef __POPPLER_FORM_FIELD_H__
21
#define __POPPLER_FORM_FIELD_H__
23
#include <glib-object.h>
28
#define POPPLER_TYPE_FORM_FIELD (poppler_form_field_get_type ())
29
#define POPPLER_FORM_FIELD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POPPLER_TYPE_FORM_FIELD, PopplerFormField))
30
#define POPPLER_IS_FORM_FIELD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POPPLER_TYPE_FORM_FIELD))
34
POPPLER_FORM_FIELD_UNKNOWN,
35
POPPLER_FORM_FIELD_BUTTON,
36
POPPLER_FORM_FIELD_TEXT,
37
POPPLER_FORM_FIELD_CHOICE,
38
POPPLER_FORM_FIELD_SIGNATURE
39
} PopplerFormFieldType;
43
POPPLER_FORM_BUTTON_PUSH,
44
POPPLER_FORM_BUTTON_CHECK,
45
POPPLER_FORM_BUTTON_RADIO
46
} PopplerFormButtonType;
50
POPPLER_FORM_TEXT_NORMAL,
51
POPPLER_FORM_TEXT_MULTILINE,
52
POPPLER_FORM_TEXT_FILE_SELECT
53
} PopplerFormTextType;
57
POPPLER_FORM_CHOICE_COMBO,
58
POPPLER_FORM_CHOICE_LIST
59
} PopplerFormChoiceType;
61
GType poppler_form_field_get_type (void) G_GNUC_CONST;
63
PopplerFormFieldType poppler_form_field_get_field_type (PopplerFormField *field);
64
gint poppler_form_field_get_id (PopplerFormField *field);
65
gdouble poppler_form_field_get_font_size (PopplerFormField *field);
66
gboolean poppler_form_field_is_read_only (PopplerFormField *field);
67
gchar *poppler_form_field_get_partial_name (PopplerFormField *field);
68
gchar *poppler_form_field_get_mapping_name (PopplerFormField *field);
69
gchar *poppler_form_field_get_name (PopplerFormField *field);
72
PopplerFormButtonType poppler_form_field_button_get_button_type (PopplerFormField *field);
73
gboolean poppler_form_field_button_get_state (PopplerFormField *field);
74
void poppler_form_field_button_set_state (PopplerFormField *field,
78
PopplerFormTextType poppler_form_field_text_get_text_type (PopplerFormField *field);
79
gchar *poppler_form_field_text_get_text (PopplerFormField *field);
80
void poppler_form_field_text_set_text (PopplerFormField *field,
82
gint poppler_form_field_text_get_max_len (PopplerFormField *field);
83
gboolean poppler_form_field_text_do_spell_check (PopplerFormField *field);
84
gboolean poppler_form_field_text_do_scroll (PopplerFormField *field);
85
gboolean poppler_form_field_text_is_rich_text (PopplerFormField *field);
86
gboolean poppler_form_field_text_is_password (PopplerFormField *field);
89
PopplerFormChoiceType poppler_form_field_choice_get_choice_type (PopplerFormField *field);
90
gboolean poppler_form_field_choice_is_editable (PopplerFormField *field);
91
gboolean poppler_form_field_choice_can_select_multiple (PopplerFormField *field);
92
gboolean poppler_form_field_choice_do_spell_check (PopplerFormField *field);
93
gboolean poppler_form_field_choice_commit_on_change (PopplerFormField *field);
94
gint poppler_form_field_choice_get_n_items (PopplerFormField *field);
95
gchar *poppler_form_field_choice_get_item (PopplerFormField *field,
97
gboolean poppler_form_field_choice_is_item_selected (PopplerFormField *field,
99
void poppler_form_field_choice_select_item (PopplerFormField *field,
101
void poppler_form_field_choice_unselect_all (PopplerFormField *field);
102
void poppler_form_field_choice_toggle_item (PopplerFormField *field,
104
void poppler_form_field_choice_set_text (PopplerFormField *field,
106
gchar *poppler_form_field_choice_get_text (PopplerFormField *field);
110
#endif /* __POPPLER_FORM_FIELD_H__ */