1 /* 2 ** 3 ** config.h 4 ** 5 ** Copyright (C) 1995, 1996, 1997 Johannes Plass 6 ** Copyright (C) 2004 Jose E. Marchesi 7 ** 8 ** This program is free software; you can redistribute it and/or modify 9 ** it under the terms of the GNU General Public License as published by 10 ** the Free Software Foundation; either version 3 of the License, or 11 ** (at your option) any later version. 12 ** 13 ** This program is distributed in the hope that it will be useful, 14 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 15 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 ** GNU General Public License for more details. 17 ** 18 ** You should have received a copy of the GNU General Public License 19 ** along with GNU gv; see the file COPYING. If not, write to 20 ** the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 21 ** Boston, MA 02111-1307, USA. 22 ** 23 ** Authors: Johannes Plass (plass@thep.physik.uni-mainz.de) 24 ** Department of Physics 25 ** Johannes Gutenberg-University 26 ** Mainz, Germany 27 ** 28 ** Jose E. Marchesi (jemarch@gnu.org) 29 ** GNU Project 30 ** 31 */ 32 33 #ifndef _GV_CONFIG_H_ 34 #define _GV_CONFIG_H_ 35 36 #include <sys/types.h> 37 38 /* 39 ---------------------------------------------------------- 40 Enabling the following option causes ghostscript to be 41 restarted whenever a new page should be displayed but 42 gv-vms thinks that the interpreter is busy. This may solve 43 some problems that may occur for some incorrectly 44 formatted files, but will slow down previewing for many 45 correct files also. (yes Jim, this option is for you) 46 ---------------------------------------------------------- 47 */ 48 49 /* #define GV_RESTART_IF_BUSY */ 50 51 /* 52 ########################################################## 53 ########################################################## 54 Private Declarations 55 ########################################################## 56 ########################################################## 57 */ 58 59 #define INTERN_RESOURCES_DAT "gv_intern_res_unix.dat" 60 #define INTERN_RESOURCES_H "gv_intern_res_unix.h" 61 62 63 /* 64 ---------------------------------------------------------- 65 Inline copies of optional external files. 66 ---------------------------------------------------------- 67 */ 68 69 #ifdef USE_FALLBACK_STYLES 70 # define FALLBACK_STYLE_1_DAT "gv_spartan.dat" 71 # define FALLBACK_STYLE_1_H "gv_spartan.h" 72 73 # define FALLBACK_STYLE_2_DAT "gv_widgetless.dat" 74 # define FALLBACK_STYLE_2_H "gv_widgetless.h" 75 #endif 76 77 #define FALLBACK_ICON_PIXMAP "gv_icon.xbm" 78 #define FALLBACK_SELECTED_BITMAP "gv_selected.xbm" 79 #define FALLBACK_DOCUMENT_BITMAP "gv_doc.xbm" 80 #define FALLBACK_MARK_BITMAPS yes_please 81 #define FALLBACK_MARK_ODD_BITMAP "gv_odd.xbm" 82 #define FALLBACK_MARK_EVEN_BITMAP "gv_even.xbm" 83 #define FALLBACK_MARK_CURRENT_BITMAP "gv_current.xbm" 84 #define FALLBACK_MARK_UNMARK_BITMAP "gv_unmark.xbm" 85 #define FALLBACK_MARK_EMPTY_BITMAP "gv_empty.xbm" 86 #define FALLBACK_ICON_NAME GV 87 #define FALLBACK_SELECTED_NAME DOT 88 #define FALLBACK_DOCUMENT_NAME DOC 89 #define FALLBACK_MARK_ODD_NAME odd 90 #define FALLBACK_MARK_EVEN_NAME even 91 #define FALLBACK_MARK_CURRENT_NAME current 92 #define FALLBACK_MARK_UNMARK_NAME unmark 93 #define FALLBACK_MARK_EMPTY_NAME empty 94 95 /* 96 ---------------------------------------------------------- 97 Miscellaneous defaults 98 ---------------------------------------------------------- 99 */ 100 #define GV_ERROR_PRINT_FAIL "Printing via\n '%s'\nfailed." 101 #define GV_PRINT_MESSAGE "Print Command:" 102 #define GV_PRINT_MARKED_MESSAGE "Print Marked Pages" 103 #define GV_PRINT_PAGE_MESSAGE "Print Current Page" 104 #define GV_PRINT_ALL_MESSAGE "Print Document" 105 #define GV_PRINT_BUTTON_LABEL "Print" 106 #define GV_ERROR_OPEN_FAIL "Cannot open file" 107 #define GV_OPEN_MESSAGE "Open" 108 #define GV_ERROR_SAVE_FAIL "Cannot write to file" 109 #define GV_SAVE_MESSAGE "Save" 110 #define GV_AUTO_RESIZE_YES "Variable Size" 111 #define GV_AUTO_RESIZE_NO "Fixed Size" 112 #define GV_MINIMUM_SIZE 300 113 #define MAX_LOCATOR_LENGTH 48 114 #define TOC3D_INITIAL_HEIGHT 30 115 #define TOC3D_INITIAL_WIDTH 10 116 117 #define GV_MAX_FILENAME_LENGTH 256 118 #define GV_APPLICATION_NAME "gv" 119 #define GV_CLASS "GV" 120 121 #define EXIT_STATUS_NORMAL 0 122 #define EXIT_STATUS_ERROR 1 123 #define EXIT_STATUS_FATAL -1 124 125 #include "setenv.h" 126 127 #ifdef HAVE_OFF_T 128 typedef off_t gv_off_t; 129 #define GV_FSEEK fseeko 130 #define GV_FTELL ftello 131 #else 132 typedef long gv_off_t; 133 #define GV_FSEEK fseek 134 #define GV_FTELL ftell 135 #endif 136 137 #ifndef HAVE_GCC_VERSION 138 #ifdef __GNUC__ 139 #define HAVE_GCC_VERSION(MAJOR, MINOR) \ 140 (__GNUC__ > (MAJOR) || (__GNUC__ == (MAJOR) && __GNUC_MINOR__ >= (MINOR))) 141 #else 142 #define HAVE_GCC_VERSION(MAJOR, MINOR) 0 143 #endif 144 #endif 145 146 #endif /* _GV_CONFIG_H_ */ 147