1 /* this file is part of evince, a gnome document viewer
3 * Copyright (C) 2004 Martin Kretzschmar
6 * Martin Kretzschmar <martink@gnome.org>
8 * Evince is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * Evince is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 #include "ev-file-exporter.h"
25 #include "ev-document.h"
27 G_DEFINE_INTERFACE (EvFileExporter, ev_file_exporter, 0)
30 ev_file_exporter_default_init (EvFileExporterInterface *klass)
35 ev_file_exporter_begin (EvFileExporter *exporter,
36 EvFileExporterContext *fc)
38 EvFileExporterInterface *iface = EV_FILE_EXPORTER_GET_IFACE (exporter);
40 iface->begin (exporter, fc);
44 ev_file_exporter_begin_page (EvFileExporter *exporter)
46 EvFileExporterInterface *iface = EV_FILE_EXPORTER_GET_IFACE (exporter);
48 if (iface->begin_page)
49 iface->begin_page (exporter);
53 ev_file_exporter_do_page (EvFileExporter *exporter,
56 EvFileExporterInterface *iface = EV_FILE_EXPORTER_GET_IFACE (exporter);
58 iface->do_page (exporter, rc);
62 ev_file_exporter_end_page (EvFileExporter *exporter)
64 EvFileExporterInterface *iface = EV_FILE_EXPORTER_GET_IFACE (exporter);
67 iface->end_page (exporter);
71 ev_file_exporter_end (EvFileExporter *exporter)
73 EvFileExporterInterface *iface = EV_FILE_EXPORTER_GET_IFACE (exporter);
75 iface->end (exporter);
78 EvFileExporterCapabilities
79 ev_file_exporter_get_capabilities (EvFileExporter *exporter)
81 EvFileExporterInterface *iface = EV_FILE_EXPORTER_GET_IFACE (exporter);
83 return iface->get_capabilities (exporter);