2 * Copyright (C) 2000-2003 Marco Pesenti Gritti
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2, or (at your option)
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 #include <glib-object.h>
29 #define EV_TYPE_DOCUMENT (ev_document_get_type ())
30 #define EV_DOCUMENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EV_TYPE_DOCUMENT, EvDocument))
31 #define EV_DOCUMENT_IFACE(k) (G_TYPE_CHECK_CLASS_CAST((k), EV_TYPE_DOCUMENT, EvDocumentIface))
32 #define EV_IS_DOCUMENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EV_TYPE_DOCUMENT))
33 #define EV_IS_DOCUMENT_IFACE(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EV_TYPE_DOCUMENT))
34 #define EV_DOCUMENT_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EV_TYPE_DOCUMENT, EvDocumentIface))
36 typedef struct _EvDocument EvDocument;
37 typedef struct _EvDocumentIface EvDocumentIface;
39 struct _EvDocumentIface
41 GTypeInterface base_iface;
44 void (* load) (EvDocument *document,
47 int (* get_n_pages) (EvDocument *document);
48 void (* set_page) (EvDocument *document,
50 void (* set_target) (EvDocument *document,
52 void (* set_page_rect) (EvDocument *document,
57 void (* render) (EvDocument *document,
64 GType ev_document_get_type (void);
66 void ev_document_load (EvDocument *document,
69 int ev_document_get_n_pages (EvDocument *document);
70 void ev_document_set_page (EvDocument *document,
72 void ev_document_set_target (EvDocument *document,
74 void ev_document_set_page_rect (EvDocument *document,
79 void ev_document_render (EvDocument *document,