]> www.fi.muni.cz Git - evince.git/blob - pdf/xpdf/xpdfconfig.h
update
[evince.git] / pdf / xpdf / xpdfconfig.h
1 //========================================================================
2 //
3 // config.h
4 //
5 // Copyright 1996-2002 Glyph & Cog, LLC
6 //
7 //========================================================================
8
9 #ifndef CONFIG_H
10 #define CONFIG_H
11
12 //------------------------------------------------------------------------
13 // version
14 //------------------------------------------------------------------------
15
16 // xpdf version
17 #define xpdfVersion         "2.01"
18 #define xpdfVersionNum      2.01
19 #define xpdfMajorVersion    2
20 #define xpdfMinorVersion    1
21 #define xpdfMajorVersionStr "2"
22
23 // supported PDF version
24 #define supportedPDFVersionStr "1.4"
25 #define supportedPDFVersionNum 1.4
26
27 // copyright notice
28 #define xpdfCopyright "Copyright 1996-2002 Glyph & Cog, LLC"
29
30 // Windows resource file stuff
31 #define winxpdfVersion "WinXpdf 2.01"
32 #define xpdfCopyrightAmp "Copyright 1996-2002 Glyph && Cog, LLC"
33
34 //------------------------------------------------------------------------
35 // paper size
36 //------------------------------------------------------------------------
37
38 // default paper size (in points) for PostScript output
39 #ifdef A4_PAPER
40 #define defPaperWidth  595    // ISO A4 (210x297 mm)
41 #define defPaperHeight 842
42 #else
43 #define defPaperWidth  612    // American letter (8.5x11")
44 #define defPaperHeight 792
45 #endif
46
47 //------------------------------------------------------------------------
48 // config file (xpdfrc) path
49 //------------------------------------------------------------------------
50
51 // user config file name, relative to the user's home directory
52 #if defined(VMS) || (defined(WIN32) && !defined(__CYGWIN32__))
53 #define xpdfUserConfigFile "xpdfrc"
54 #else
55 #define xpdfUserConfigFile ".xpdfrc"
56 #endif
57
58 // system config file name (set via the configure script)
59 #ifdef SYSTEM_XPDFRC
60 #define xpdfSysConfigFile SYSTEM_XPDFRC
61 #else
62 // under Windows, we get the directory with the executable and then
63 // append this file name
64 #define xpdfSysConfigFile "xpdfrc"
65 #endif
66
67 //------------------------------------------------------------------------
68 // X-related constants
69 //------------------------------------------------------------------------
70
71 // default maximum size of color cube to allocate
72 #define defaultRGBCube 5
73
74 // number of fonts (combined t1lib, FreeType, X server) to cache
75 #define xOutFontCacheSize 64
76
77 // number of Type 3 fonts to cache
78 #define xOutT3FontCacheSize 8
79
80 //------------------------------------------------------------------------
81 // popen
82 //------------------------------------------------------------------------
83
84 #ifdef _MSC_VER
85 #define popen _popen
86 #define pclose _pclose
87 #endif
88
89 #if defined(VMS) || defined(VMCMS) || defined(DOS) || defined(OS2) || defined(__EMX__) || defined(WIN32) || defined(__DJGPP__) || defined(MACOS)
90 #define POPEN_READ_MODE "rb"
91 #else
92 #define POPEN_READ_MODE "r"
93 #endif
94
95 //------------------------------------------------------------------------
96 // Win32 stuff
97 //------------------------------------------------------------------------
98
99 #ifdef CDECL
100 #undef CDECL
101 #endif
102
103 #ifdef _MSC_VER
104 #define CDECL __cdecl
105 #else
106 #define CDECL
107 #endif
108
109 #endif