]> www.fi.muni.cz Git - evince.git/blob - pdf/xpdf/xpdfconfig.h
Initial work I did on GNOME/PDF viewer -miguel
[evince.git] / pdf / xpdf / xpdfconfig.h
1 //========================================================================
2 //
3 // config.h
4 //
5 // Copyright 1996 Derek B. Noonburg
6 //
7 //========================================================================
8
9 #ifndef CONFIG_H
10 #define CONFIG_H
11
12 //------------------------------------------------------------------------
13 // general constants
14 //------------------------------------------------------------------------
15
16 // xpdf version
17 #define xpdfVersion "0.80"
18
19 // supported PDF version
20 #define pdfVersion "1.2"
21 #define pdfVersionNum 1.2
22
23 // copyright notice
24 #define xpdfCopyright "Copyright \251 1996-1998 Derek B. Noonburg"
25
26 // default paper size (in points) for PostScript output
27 #ifdef A4_PAPER
28 #define defPaperWidth  595    // ISO A4 (210x297 mm)
29 #define defPaperHeight 842
30 #else
31 #define defPaperWidth  612    // American letter (8.5x11")
32 #define defPaperHeight 792
33 #endif
34
35 // config file name
36 #if defined(VMS) || defined(__EMX__)
37 #define xpdfConfigFile "xpdfrc"
38 #else
39 #define xpdfConfigFile ".xpdfrc"
40 #endif
41
42 //------------------------------------------------------------------------
43 // X-related constants
44 //------------------------------------------------------------------------
45
46 // default maximum size of color cube to allocate
47 #define defaultRGBCube 5
48
49 // number of fonts to cache
50 #define fontCacheSize 16
51
52 //------------------------------------------------------------------------
53 // uncompress program
54 //------------------------------------------------------------------------
55
56 #ifdef HAVE_POPEN
57
58 // command to uncompress to stdout
59 #  ifdef USE_GZIP
60 #    define uncompressCmd "gzip -d -c -q"
61 #  else
62 #    ifdef __EMX__
63 #      define uncompressCmd "compress -d -c"
64 #    else
65 #      define uncompressCmd "uncompress -c"
66 #    endif // __EMX__
67 #  endif // USE_GZIP
68
69 #else // HAVE_POPEN
70
71 // command to uncompress a file
72 #  ifdef USE_GZIP
73 #    define uncompressCmd "gzip -d -q"
74 #  else
75 #    define uncompressCmd "uncompress"
76 #  endif // USE_GZIP
77
78 #endif // HAVE_POPEN
79
80 //------------------------------------------------------------------------
81 // Win32 stuff
82 //------------------------------------------------------------------------
83
84 #ifdef WIN32
85 #ifdef CDECL
86 #undef CDECL
87 #endif
88 #define CDECL __cdecl
89 #else
90 #define CDECL
91 #endif
92
93 #endif