]> www.fi.muni.cz Git - evince.git/blob - ps/ggvutils.h
display an error if the document doesn't support find (better ideas?)
[evince.git] / ps / ggvutils.h
1 /*
2  * ggvutils.h: misc utility functions
3  *
4  * Copyright 2002 - 2005 the Free Software Foundation
5  *
6  * Author: Jaka Mocnik  <jaka@gnu.org>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it 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  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
21  */
22
23 #ifndef __GGV_UTILS_H__
24 #define __GGV_UTILS_H__
25
26 #include "gtkgs.h"
27
28 extern GtkGSPaperSize ggv_paper_sizes[];
29 extern gfloat ggv_zoom_levels[];
30 extern const gchar *ggv_zoom_level_names[];
31 extern const gint ggv_max_zoom_levels;
32
33 /* If file exists and is a regular file then return its length, else -1 */
34 gint ggv_file_length(const gchar * filename);
35
36 /* Test if file exists, is a regular file and its length is > 0 */
37 gboolean ggv_file_readable(const char *filename);
38
39 #endif /* __GGV_UTILS_H__ */