]> www.fi.muni.cz Git - evince.git/blob - ps/gsdefaults.c
Some more sanitization of the ps backend. Remove a lot of unused code and
[evince.git] / ps / gsdefaults.c
1 /*
2  * gsdefaults.c: default settings for the GtkGS widget
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., 675 Mass Ave, Cambridge, MA 02139, USA.
21  */
22
23 #include <config.h>
24
25 #include <glib/gi18n.h>
26
27 #include "gsdefaults.h"
28
29 GtkGSPaperSize gtk_gs_paper_sizes[] = {
30   {N_("BBox"), 0, 0},
31   {N_("Letter"), 612, 792,},
32   {N_("Tabloid"), 792, 1224,},
33   {N_("Ledger"), 1224, 792,},
34   {N_("Legal"), 612, 1008,},
35   {N_("Statement"), 396, 612,},
36   {N_("Executive"), 540, 720,},
37   {N_("A0"), 2380, 3368,},
38   {N_("A1"), 1684, 2380,},
39   {N_("A2"), 1190, 1684,},
40   {N_("A3"), 842, 1190,},
41   {N_("A4"), 595, 842,},
42   {N_("A5"), 420, 595,},
43   {N_("B4"), 729, 1032,},
44   {N_("B5"), 516, 729,},
45   {N_("Folio"), 612, 936,},
46   {N_("Quarto"), 610, 780,},
47   {N_("10x14"), 720, 1008,},
48   {NULL, 0, 0}
49 };
50
51 GtkGSPaperSize *
52 gtk_gs_defaults_get_paper_sizes()
53 {
54   return gtk_gs_paper_sizes;
55 }
56
57 const gchar *
58 gtk_gs_defaults_get_interpreter_cmd()
59 {
60     return GS_PATH;
61 }
62
63 const gchar *
64 gtk_gs_defaults_get_alpha_parameters (void)
65 {
66         return ALPHA_PARAMS;
67 }
68
69 const gchar *
70 gtk_gs_defaults_get_ungzip_cmd (void)
71 {
72         return "gzip -cd";
73 }
74
75 const gchar *
76 gtk_gs_defaults_get_unbzip2_cmd (void)
77 {
78         return "bzip2 -cd";
79 }