X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=pdf%2Fxpdf%2Fxpdfconfig.h;h=bf6baf4bf985ad3b9482d2a5fdee557dd6a129fe;hb=6c85243ff859071be4fd2a3847b0fc2086206d31;hp=5353d03e0c01058b2a0715e31bc85732ac8a32de;hpb=d9f9a6449f377b4c933b75d57541b19c6d088994;p=evince.git diff --git a/pdf/xpdf/xpdfconfig.h b/pdf/xpdf/xpdfconfig.h index 5353d03e..bf6baf4b 100644 --- a/pdf/xpdf/xpdfconfig.h +++ b/pdf/xpdf/xpdfconfig.h @@ -2,7 +2,7 @@ // // config.h // -// Copyright 1996 Derek B. Noonburg +// Copyright 1996-2004 Glyph & Cog, LLC // //======================================================================== @@ -10,18 +10,31 @@ #define CONFIG_H //------------------------------------------------------------------------ -// general constants +// version //------------------------------------------------------------------------ // xpdf version -#define xpdfVersion "0.80" +#define xpdfVersion "3.00" +#define xpdfVersionNum 3.00 +#define xpdfMajorVersion 3 +#define xpdfMinorVersion 0 +#define xpdfMajorVersionStr "3" +#define xpdfMinorVersionStr "0" // supported PDF version -#define pdfVersion "1.2" -#define pdfVersionNum 1.2 +#define supportedPDFVersionStr "1.5" +#define supportedPDFVersionNum 1.5 // copyright notice -#define xpdfCopyright "Copyright \251 1996-1998 Derek B. Noonburg" +#define xpdfCopyright "Copyright 1996-2004 Glyph & Cog, LLC" + +// Windows resource file stuff +#define winxpdfVersion "WinXpdf 3.00" +#define xpdfCopyrightAmp "Copyright 1996-2004 Glyph && Cog, LLC" + +//------------------------------------------------------------------------ +// paper size +//------------------------------------------------------------------------ // default paper size (in points) for PostScript output #ifdef A4_PAPER @@ -32,11 +45,24 @@ #define defPaperHeight 792 #endif -// config file name -#if defined(VMS) || defined(__EMX__) -#define xpdfConfigFile "xpdfrc" +//------------------------------------------------------------------------ +// config file (xpdfrc) path +//------------------------------------------------------------------------ + +// user config file name, relative to the user's home directory +#if defined(VMS) || (defined(WIN32) && !defined(__CYGWIN32__)) +#define xpdfUserConfigFile "xpdfrc" +#else +#define xpdfUserConfigFile ".xpdfrc" +#endif + +// system config file name (set via the configure script) +#ifdef SYSTEM_XPDFRC +#define xpdfSysConfigFile SYSTEM_XPDFRC #else -#define xpdfConfigFile ".xpdfrc" +// under Windows, we get the directory with the executable and then +// append this file name +#define xpdfSysConfigFile "xpdfrc" #endif //------------------------------------------------------------------------ @@ -46,45 +72,36 @@ // default maximum size of color cube to allocate #define defaultRGBCube 5 -// number of fonts to cache -#define fontCacheSize 16 +// number of fonts (combined t1lib, FreeType, X server) to cache +#define xOutFontCacheSize 64 + +// number of Type 3 fonts to cache +#define xOutT3FontCacheSize 8 //------------------------------------------------------------------------ -// uncompress program +// popen //------------------------------------------------------------------------ -#ifdef HAVE_POPEN - -// command to uncompress to stdout -# ifdef USE_GZIP -# define uncompressCmd "gzip -d -c -q" -# else -# ifdef __EMX__ -# define uncompressCmd "compress -d -c" -# else -# define uncompressCmd "uncompress -c" -# endif // __EMX__ -# endif // USE_GZIP - -#else // HAVE_POPEN - -// command to uncompress a file -# ifdef USE_GZIP -# define uncompressCmd "gzip -d -q" -# else -# define uncompressCmd "uncompress" -# endif // USE_GZIP +#if defined(_MSC_VER) || defined(__BORLANDC__) +#define popen _popen +#define pclose _pclose +#endif -#endif // HAVE_POPEN +#if defined(VMS) || defined(VMCMS) || defined(DOS) || defined(OS2) || defined(__EMX__) || defined(WIN32) || defined(__DJGPP__) || defined(MACOS) +#define POPEN_READ_MODE "rb" +#else +#define POPEN_READ_MODE "r" +#endif //------------------------------------------------------------------------ // Win32 stuff //------------------------------------------------------------------------ -#ifdef WIN32 #ifdef CDECL #undef CDECL #endif + +#if defined(_MSC_VER) || defined(__BORLANDC__) #define CDECL __cdecl #else #define CDECL