2 * this file is part of evince, a gnome document viewer
4 * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org>
6 * Evince is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * Evince is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 #include "ev-document-forms.h"
24 EV_DEFINE_INTERFACE (EvDocumentForms, ev_document_forms, 0)
27 ev_document_forms_class_init (EvDocumentFormsIface *klass)
32 ev_document_forms_get_form_fields (EvDocumentForms *document_forms,
35 EvDocumentFormsIface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
37 return iface->get_form_fields (document_forms, page);
41 ev_document_forms_form_field_text_get_text (EvDocumentForms *document_forms,
44 EvDocumentFormsIface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
46 return iface->form_field_text_get_text (document_forms, field);
50 ev_document_forms_form_field_text_set_text (EvDocumentForms *document_forms,
54 EvDocumentFormsIface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
56 iface->form_field_text_set_text (document_forms, field, text);
60 ev_document_forms_form_field_button_get_state (EvDocumentForms *document_forms,
63 EvDocumentFormsIface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
65 return iface->form_field_button_get_state (document_forms, field);
69 ev_document_forms_form_field_button_set_state (EvDocumentForms *document_forms,
73 EvDocumentFormsIface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
75 iface->form_field_button_set_state (document_forms, field, state);
79 ev_document_forms_form_field_choice_get_item (EvDocumentForms *document_forms,
83 EvDocumentFormsIface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
85 return iface->form_field_choice_get_item (document_forms, field, index);
89 ev_document_forms_form_field_choice_get_n_items (EvDocumentForms *document_forms,
92 EvDocumentFormsIface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
94 return iface->form_field_choice_get_n_items (document_forms, field);
98 ev_document_forms_form_field_choice_is_item_selected (EvDocumentForms *document_forms,
102 EvDocumentFormsIface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
104 return iface->form_field_choice_is_item_selected (document_forms, field, index);
108 ev_document_forms_form_field_choice_select_item (EvDocumentForms *document_forms,
112 EvDocumentFormsIface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
114 iface->form_field_choice_select_item (document_forms, field, index);
118 ev_document_forms_form_field_choice_toggle_item (EvDocumentForms *document_forms,
122 EvDocumentFormsIface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
124 iface->form_field_choice_toggle_item (document_forms, field, index);
128 ev_document_forms_form_field_choice_unselect_all (EvDocumentForms *document_forms,
131 EvDocumentFormsIface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
133 iface->form_field_choice_unselect_all (document_forms, field);
137 ev_document_forms_form_field_choice_set_text (EvDocumentForms *document_forms,
141 EvDocumentFormsIface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
143 iface->form_field_choice_set_text (document_forms, field, text);
147 ev_document_forms_form_field_choice_get_text (EvDocumentForms *document_forms,
150 EvDocumentFormsIface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
152 return iface->form_field_choice_get_text (document_forms, field);