Initial revision
[swftools.git] / pdf2swf / xpdf / config.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.92"
18
19 // supported PDF version
20 #define supportedPDFVersionStr "1.3"
21 #define supportedPDFVersionNum 1.3
22
23 // copyright notice
24 #define xpdfCopyright "Copyright 1996-2000 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 // number of TrueType (FreeType) fonts to cache
56 #define ttFontCacheSize 32
57
58 //------------------------------------------------------------------------
59 // popen
60 //------------------------------------------------------------------------
61
62 #ifdef _MSC_VER
63 #define popen _popen
64 #define pclose _pclose
65 #endif
66
67 #if defined(VMS) || defined(VMCMS) || defined(DOS) || defined(OS2) || defined(WIN32) || defined(__DJGPP__) || defined(__CYGWIN32) || defined(MACOS)
68 #define POPEN_READ_MODE "rb"
69 #else
70 #define POPEN_READ_MODE "r"
71 #endif
72
73 //------------------------------------------------------------------------
74 // uncompress program
75 //------------------------------------------------------------------------
76
77 #ifdef HAVE_POPEN
78
79 // command to uncompress to stdout
80 #  ifdef USE_GZIP
81 #    define uncompressCmd "gzip -d -c -q"
82 #  else
83 #    ifdef __EMX__
84 #      define uncompressCmd "compress -d -c"
85 #    else
86 #      define uncompressCmd "uncompress -c"
87 #    endif // __EMX__
88 #  endif // USE_GZIP
89
90 #else // HAVE_POPEN
91
92 // command to uncompress a file
93 #  ifdef USE_GZIP
94 #    define uncompressCmd "gzip -d -q"
95 #  else
96 #    define uncompressCmd "uncompress"
97 #  endif // USE_GZIP
98
99 #endif // HAVE_POPEN
100
101 //------------------------------------------------------------------------
102 // Win32 stuff
103 //------------------------------------------------------------------------
104
105 #ifdef CDECL
106 #undef CDECL
107 #endif
108
109 #ifdef _MSC_VER
110 #define CDECL __cdecl
111 #else
112 #define CDECL
113 #endif
114
115 #endif