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., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
25 #include "ev-ps-exporter.h"
28 ev_ps_exporter_get_type (void)
30 static GType type = 0;
32 if (G_UNLIKELY (type == 0))
34 static const GTypeInfo our_info =
36 sizeof (EvPSExporterIface),
41 type = g_type_register_static (G_TYPE_INTERFACE,
43 &our_info, (GTypeFlags)0);
50 ev_ps_exporter_begin (EvPSExporter *exporter, const char *filename,
51 int first_page, int last_page,
52 double paper_width, double paper_height, gboolean duplex)
54 EvPSExporterIface *iface = EV_PS_EXPORTER_GET_IFACE (exporter);
56 iface->begin (exporter, filename, first_page, last_page,
57 paper_width, paper_height, duplex);
61 ev_ps_exporter_do_page (EvPSExporter *exporter, EvRenderContext *rc)
63 EvPSExporterIface *iface = EV_PS_EXPORTER_GET_IFACE (exporter);
65 iface->do_page (exporter, rc);
69 ev_ps_exporter_end (EvPSExporter *exporter)
71 EvPSExporterIface *iface = EV_PS_EXPORTER_GET_IFACE (exporter);
73 iface->end (exporter);