Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

config.h

Go to the documentation of this file.
00001 //========================================================================
00002 //
00003 // config.h
00004 //
00005 // Copyright 1996-2002 Derek B. Noonburg
00006 //
00007 //========================================================================
00008 
00009 #ifndef CONFIG_H
00010 #define CONFIG_H
00011 
00012 //------------------------------------------------------------------------
00013 // version
00014 //------------------------------------------------------------------------
00015 
00016 // xpdf version
00017 #define xpdfVersion "1.00"
00018 
00019 // supported PDF version
00020 #define supportedPDFVersionStr "1.4"
00021 #define supportedPDFVersionNum 1.4
00022 
00023 // copyright notice
00024 #define xpdfCopyright "Copyright 1996-2002 Derek B. Noonburg"
00025 
00026 //------------------------------------------------------------------------
00027 // paper size
00028 //------------------------------------------------------------------------
00029 
00030 // default paper size (in points) for PostScript output
00031 #ifdef A4_PAPER
00032 #define defPaperWidth  595    // ISO A4 (210x297 mm)
00033 #define defPaperHeight 842
00034 #else
00035 #define defPaperWidth  612    // American letter (8.5x11")
00036 #define defPaperHeight 792
00037 #endif
00038 
00039 //------------------------------------------------------------------------
00040 // config file (xpdfrc) path
00041 //------------------------------------------------------------------------
00042 
00043 // user config file name, relative to the user's home directory
00044 #if defined(VMS) || (defined(WIN32) && !defined(__CYGWIN32__))
00045 #define xpdfUserConfigFile "xpdfrc"
00046 #else
00047 #define xpdfUserConfigFile ".xpdfrc"
00048 #endif
00049 
00050 // system config file name (set via the configure script)
00051 #ifdef SYSTEM_XPDFRC
00052 #define xpdfSysConfigFile SYSTEM_XPDFRC
00053 #else
00054 // under Windows, we get the directory with the executable and then
00055 // append this file name
00056 #define xpdfSysConfigFile "xpdfrc"
00057 #endif
00058 
00059 //------------------------------------------------------------------------
00060 // X-related constants
00061 //------------------------------------------------------------------------
00062 
00063 // default maximum size of color cube to allocate
00064 #define defaultRGBCube 5
00065 
00066 // number of fonts (combined t1lib, FreeType, X server) to cache
00067 #define xOutFontCacheSize 64
00068 
00069 //------------------------------------------------------------------------
00070 // popen
00071 //------------------------------------------------------------------------
00072 
00073 #ifdef _MSC_VER
00074 #define popen _popen
00075 #define pclose _pclose
00076 #endif
00077 
00078 #if defined(VMS) || defined(VMCMS) || defined(DOS) || defined(OS2) || defined(__EMX__) || defined(WIN32) || defined(__DJGPP__) || defined(__CYGWIN32__) || defined(MACOS)
00079 #define POPEN_READ_MODE "rb"
00080 #else
00081 #define POPEN_READ_MODE "r"
00082 #endif
00083 
00084 //------------------------------------------------------------------------
00085 // uncompress program
00086 //------------------------------------------------------------------------
00087 
00088 #ifdef HAVE_POPEN
00089 
00090 // command to uncompress to stdout
00091 #  ifdef USE_GZIP
00092 #    define uncompressCmd "gzip -d -c -q"
00093 #  else
00094 #    ifdef __EMX__
00095 #      define uncompressCmd "compress -d -c"
00096 #    else
00097 #      define uncompressCmd "uncompress -c"
00098 #    endif // __EMX__
00099 #  endif // USE_GZIP
00100 
00101 #else // HAVE_POPEN
00102 
00103 // command to uncompress a file
00104 #  ifdef USE_GZIP
00105 #    define uncompressCmd "gzip -d -q"
00106 #  else
00107 #    define uncompressCmd "uncompress"
00108 #  endif // USE_GZIP
00109 
00110 #endif // HAVE_POPEN
00111 
00112 //------------------------------------------------------------------------
00113 // Win32 stuff
00114 //------------------------------------------------------------------------
00115 
00116 #ifdef CDECL
00117 #undef CDECL
00118 #endif
00119 
00120 #ifdef _MSC_VER
00121 #define CDECL __cdecl
00122 #else
00123 #define CDECL
00124 #endif
00125 
00126 #endif

Generated on Sat Nov 5 16:16:35 2005 for OPIE by  doxygen 1.4.2