]> www.fi.muni.cz Git - evince.git/blob - pdf/xpdf/xpdfconfig.h
versioning the way xpdf does it.
[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.90.1"
18
19 // supported PDF version
20 #define pdfVersion "1.3"
21 #define pdfVersionNum 1.3
22
23 // copyright notice
24 #define xpdfCopyright "Copyright \251 1996-1999 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)
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 X server fonts to cache
50 #define serverFontCacheSize 16
51
52 // number of Type 1 (t1lib) fonts to cache
53 #define t1FontCacheSize 32
54
55 //------------------------------------------------------------------------
56 // uncompress program
57 //------------------------------------------------------------------------
58
59 #ifdef HAVE_POPEN
60
61 // command to uncompress to stdout
62 #  ifdef USE_GZIP
63 #    define uncompressCmd "gzip -d -c -q"
64 #  else
65 #    ifdef __EMX__
66 #      define uncompressCmd "compress -d -c"
67 #    else
68 #      define uncompressCmd "uncompress -c"
69 #    endif // __EMX__
70 #  endif // USE_GZIP
71
72 #else // HAVE_POPEN
73
74 // command to uncompress a file
75 #  ifdef USE_GZIP
76 #    define uncompressCmd "gzip -d -q"
77 #  else
78 #    define uncompressCmd "uncompress"
79 #  endif // USE_GZIP
80
81 #endif // HAVE_POPEN
82
83 //------------------------------------------------------------------------
84 // Win32 stuff
85 //------------------------------------------------------------------------
86
87 #ifdef WIN32
88 #ifdef CDECL
89 #undef CDECL
90 #endif
91 #define CDECL __cdecl
92 #else
93 #define CDECL
94 #endif
95
96 #endif