Evince
Evince is a document viewer capable of displaying multiple and single page document formats like PDF and Postscript.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ev-file-exporter.h
Go to the documentation of this file.
1 /* this file is part of evince, a gnome document viewer
2  *
3  * Copyright (C) 2004 Martin Kretzschmar
4  *
5  * Author:
6  * Martin Kretzschmar <martink@gnome.org>
7  *
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.
12  *
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.
17  *
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.
21  */
22 
23 #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
24 #error "Only <evince-document.h> can be included directly."
25 #endif
26 
27 #ifndef EV_FILE_EXPORTER_H
28 #define EV_FILE_EXPORTER_H
29 
30 #include <glib-object.h>
31 
32 #include "ev-render-context.h"
33 
34 G_BEGIN_DECLS
35 
36 typedef enum {
41 
42 typedef enum {
53 
55 
58  const gchar *filename;
59  gint first_page;
60  gint last_page;
61  gdouble paper_width;
62  gdouble paper_height;
63  gboolean duplex;
65 };
66 
67 #define EV_TYPE_FILE_EXPORTER (ev_file_exporter_get_type ())
68 #define EV_FILE_EXPORTER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EV_TYPE_FILE_EXPORTER, EvFileExporter))
69 #define EV_FILE_EXPORTER_IFACE(k) (G_TYPE_CHECK_CLASS_CAST((k), EV_TYPE_FILE_EXPORTER, EvFileExporterInterface))
70 #define EV_IS_FILE_EXPORTER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EV_TYPE_FILE_EXPORTER))
71 #define EV_IS_FILE_EXPORTER_IFACE(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EV_TYPE_FILE_EXPORTER))
72 #define EV_FILE_EXPORTER_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EV_TYPE_FILE_EXPORTER, EvFileExporterInterface))
73 
74 typedef struct _EvFileExporter EvFileExporter;
76 
78  GTypeInterface base_iface;
79 
80  /* Methods */
81  void (* begin) (EvFileExporter *exporter,
83  void (* begin_page) (EvFileExporter *exporter);
84  void (* do_page) (EvFileExporter *exporter,
85  EvRenderContext *rc);
86  void (* end_page) (EvFileExporter *exporter);
87  void (* end) (EvFileExporter *exporter);
89 };
90 
91 GType ev_file_exporter_get_type (void) G_GNUC_CONST;
96  EvRenderContext *rc);
98 void ev_file_exporter_end (EvFileExporter *exporter);
100 
101 G_END_DECLS
102 
103 #endif