]> www.fi.muni.cz Git - evince.git/blob - shell/ev-utils.h
1d7e882f5fec2e59e248297ff11fb2ce111370fc
[evince.git] / shell / ev-utils.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; c-indent-level: 8 -*- */
2 /*
3  *  Copyright (C) 2004 Anders Carlsson <andersca@gnome.org>
4  *
5  *  This program is free software; you can redistribute it and/or modify
6  *  it under the terms of the GNU General Public License as published by
7  *  the Free Software Foundation; either version 2, or (at your option)
8  *  any later version.
9  *
10  *  This program is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *  GNU General Public License for more details.
14  *
15  *  You should have received a copy of the GNU General Public License
16  *  along with this program; if not, write to the Free Software
17  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18  *
19  */
20
21 #ifndef __EV_UTILS_H__
22 #define __EV_UTILS_H__
23
24 #include <gdk-pixbuf/gdk-pixbuf.h>
25 #include <gtk/gtk.h>
26 #ifdef WITH_GNOME_PRINT
27 #include <libgnomeprintui/gnome-print-dialog.h>
28 #endif
29
30 G_BEGIN_DECLS
31
32 GdkPixbuf*              ev_pixbuf_add_shadow (GdkPixbuf *src, int size,
33                                               int x_offset, int y_offset, double opacity);
34
35 void                    ev_print_region_contents (GdkRegion *region);
36
37 #ifdef WITH_GNOME_PRINT
38 GnomePrintConfig*       load_print_config_from_file (void);
39 void                    save_print_config_to_file (GnomePrintConfig *config);
40 gboolean                using_postscript_printer (GnomePrintConfig *config);
41 gboolean                using_pdf_printer (GnomePrintConfig *config);
42 #endif
43
44 G_END_DECLS
45
46 #endif /* __EV_VIEW_H__ */