~ubuntu-branches/ubuntu/precise/ipe/precise

« back to all changes in this revision

Viewing changes to src/xpdflib/config.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2005-02-24 22:09:16 UTC
  • mfrom: (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050224220916-9vxiiqjz066r5489
Tags: 6.0pre23-2
debian/control: Ipe should depend on exact version of libipe.
Closes: #296771.

Show diffs side-by-side

added added

removed removed

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