X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=libdocument%2Fev-document-forms.h;h=35524676b07d70281a10a5a794f2e2f65abf350d;hb=1d0de30170119eade2a7305ffa8ec6d9a3e4af32;hp=a1b192da7990630622567a071ccf123c91e8f43b;hpb=6426ce3672bf190ab39d9c49c841232c127d174f;p=evince.git diff --git a/libdocument/ev-document-forms.h b/libdocument/ev-document-forms.h index a1b192da..35524676 100644 --- a/libdocument/ev-document-forms.h +++ b/libdocument/ev-document-forms.h @@ -15,9 +15,13 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EV_DOCUMENT_FORMS_H #define EV_DOCUMENT_FORMS_H @@ -30,21 +34,21 @@ G_BEGIN_DECLS #define EV_TYPE_DOCUMENT_FORMS (ev_document_forms_get_type ()) #define EV_DOCUMENT_FORMS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EV_TYPE_DOCUMENT_FORMS, EvDocumentForms)) -#define EV_DOCUMENT_FORMS_IFACE(k) (G_TYPE_CHECK_CLASS_CAST((k), EV_TYPE_DOCUMENT_FORMS, EvDocumentFormsIface)) +#define EV_DOCUMENT_FORMS_IFACE(k) (G_TYPE_CHECK_CLASS_CAST((k), EV_TYPE_DOCUMENT_FORMS, EvDocumentFormsInterface)) #define EV_IS_DOCUMENT_FORMS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EV_TYPE_DOCUMENT_FORMS)) #define EV_IS_DOCUMENT_FORMS_IFACE(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EV_TYPE_DOCUMENT_FORMS)) -#define EV_DOCUMENT_FORMS_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EV_TYPE_DOCUMENT_FORMS, EvDocumentFormsIface)) +#define EV_DOCUMENT_FORMS_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EV_TYPE_DOCUMENT_FORMS, EvDocumentFormsInterface)) -typedef struct _EvDocumentForms EvDocumentForms; -typedef struct _EvDocumentFormsIface EvDocumentFormsIface; +typedef struct _EvDocumentForms EvDocumentForms; +typedef struct _EvDocumentFormsInterface EvDocumentFormsInterface; -struct _EvDocumentFormsIface +struct _EvDocumentFormsInterface { GTypeInterface base_iface; /* Methods */ GList *(* get_form_fields) (EvDocumentForms *document_forms, - gint page); + EvPage *page); gchar *(* form_field_text_get_text) (EvDocumentForms *document_forms, EvFormField *field); void (* form_field_text_set_text) (EvDocumentForms *document_forms, @@ -80,7 +84,7 @@ struct _EvDocumentFormsIface GType ev_document_forms_get_type (void) G_GNUC_CONST; GList *ev_document_forms_get_form_fields (EvDocumentForms *document_forms, - gint page); + EvPage *page); gchar *ev_document_forms_form_field_text_get_text (EvDocumentForms *document_forms, EvFormField *field);