defs.h revision 1abf7346
11abf7346Smrg/* $XConsortium: defs.h,v 1.25 94/04/17 20:43:50 converse Exp $ */ 21abf7346Smrg/* 31abf7346Smrg 41abf7346SmrgCopyright (c) 1987, 1988 X Consortium 51abf7346Smrg 61abf7346SmrgPermission is hereby granted, free of charge, to any person obtaining 71abf7346Smrga copy of this software and associated documentation files (the 81abf7346Smrg"Software"), to deal in the Software without restriction, including 91abf7346Smrgwithout limitation the rights to use, copy, modify, merge, publish, 101abf7346Smrgdistribute, sublicense, and/or sell copies of the Software, and to 111abf7346Smrgpermit persons to whom the Software is furnished to do so, subject to 121abf7346Smrgthe following conditions: 131abf7346Smrg 141abf7346SmrgThe above copyright notice and this permission notice shall be included 151abf7346Smrgin all copies or substantial portions of the Software. 161abf7346Smrg 171abf7346SmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 181abf7346SmrgOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 191abf7346SmrgMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 201abf7346SmrgIN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR 211abf7346SmrgOTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 221abf7346SmrgARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 231abf7346SmrgOTHER DEALINGS IN THE SOFTWARE. 241abf7346Smrg 251abf7346SmrgExcept as contained in this notice, the name of the X Consortium shall 261abf7346Smrgnot be used in advertising or otherwise to promote the sale, use or 271abf7346Smrgother dealings in this Software without prior written authorization 281abf7346Smrgfrom the X Consortium. 291abf7346Smrg 301abf7346Smrg*/ 311abf7346Smrg/* $XFree86: xc/programs/xman/defs.h,v 1.2 2000/03/03 23:16:26 dawes Exp $ */ 321abf7346Smrg 331abf7346Smrg/* 341abf7346Smrg * xman - X window system manual page display program. 351abf7346Smrg * Author: Chris D. Peterson, MIT Project Athena 361abf7346Smrg * Created: October 22, 1987 371abf7346Smrg */ 381abf7346Smrg 391abf7346Smrg#ifndef HELPFILE 401abf7346Smrg#define HELPFILE "/usr/lib/X11/xman.help" /* name of the default helpfile. */ 411abf7346Smrg#endif 421abf7346Smrg 431abf7346Smrg/* The default cursors */ 441abf7346Smrg 451abf7346Smrg#define XMAN_CURSOR "left_ptr" /* Top level cursor. */ 461abf7346Smrg#define HELP_CURSOR "left_ptr" /* The help cursor. */ 471abf7346Smrg#define MANPAGE_CURSOR "left_ptr" /* The manpage cursor. */ 481abf7346Smrg#define SEARCH_ENTRY_CURSOR "question_arrow" /* The search text widget 491abf7346Smrg cursor. */ 501abf7346Smrg#define DIRECTORY_NORMAL "fixed" /* The default dir font */ 511abf7346Smrg 521abf7346Smrg#define OPTION_MENU "optionMenu" /* Name of the Option Menu. */ 531abf7346Smrg#define SECTION_MENU "sectionMenu" /* Name of the Section Menu. */ 541abf7346Smrg 551abf7346Smrg#define HELP_BUTTON "helpButton" /* Name of top help button */ 561abf7346Smrg#define QUIT_BUTTON "quitButton" /* Name of top quit button */ 571abf7346Smrg#define MANPAGE_BUTTON "manpageButton" /* Name of top manpage button */ 581abf7346Smrg 591abf7346Smrg#define TOPBOXNAME "topBox" /* Name of the Top Box. */ 601abf7346Smrg#define MANNAME "manualBrowser" /* name for each manual page widget. */ 611abf7346Smrg#define SEARCHNAME "search" /* The name for the search widget. */ 621abf7346Smrg#define HELPNAME "help" /* The name of the help widget. */ 631abf7346Smrg#define DIRECTORY_NAME "directory" /* name of the directory widget. */ 641abf7346Smrg#define MANUALPAGE "manualPage" /* name of the Scrollbyline widget that 651abf7346Smrg contains the man page. */ 661abf7346Smrg#define DIALOG "dialog" 671abf7346Smrg 681abf7346Smrg/* Names of the menu buttons */ 691abf7346Smrg 701abf7346Smrg#ifdef INCLUDE_XPRINT_SUPPORT 711abf7346Smrg#define NUM_OPTIONS 10 /* Number of menu options. */ 721abf7346Smrg#else /* !INCLUDE_XPRINT_SUPPORT */ 731abf7346Smrg#define NUM_OPTIONS 9 /* Number of menu options. */ 741abf7346Smrg#endif /* !INCLUDE_XPRINT_SUPPORT */ 751abf7346Smrg 761abf7346Smrg#define DIRECTORY "displayDirectory" 771abf7346Smrg#define MANPAGE "displayManualPage" 781abf7346Smrg#define HELP "help" 791abf7346Smrg#define SEARCH "search" 801abf7346Smrg#define BOTH_SCREENS "showBothScreens" 811abf7346Smrg#define REMOVE_MANPAGE "removeThisManpage" 821abf7346Smrg#define OPEN_MANPAGE "openNewManpage" 831abf7346Smrg#ifdef INCLUDE_XPRINT_SUPPORT 841abf7346Smrg#define PRINT_MANPAGE "printManualPage" 851abf7346Smrg#endif /* INCLUDE_XPRINT_SUPPORT */ 861abf7346Smrg#define SHOW_VERSION "showVersion" 871abf7346Smrg#define QUIT "quit" 881abf7346Smrg 891abf7346Smrg/* definitions of string to use for show both and show one. */ 901abf7346Smrg 911abf7346Smrg#define SHOW_BOTH "Show Both Screens" 921abf7346Smrg#define SHOW_ONE "Show One Screen" 931abf7346Smrg 941abf7346Smrg/* 951abf7346Smrg * Things will not look right if you change these names to make 961abf7346Smrg * MANUALSEARCH longer APROPOSSEARCH, see search.c for details. 971abf7346Smrg */ 981abf7346Smrg 991abf7346Smrg#define MANUALSEARCH "manualPage" 1001abf7346Smrg#define APROPOSSEARCH "apropos" 1011abf7346Smrg#define CANCEL "cancel" 1021abf7346Smrg 1031abf7346Smrg#define MANUAL 0 1041abf7346Smrg#define APROPOS 1 1051abf7346Smrg 1061abf7346Smrg#define NO_SECTION_DEFAULTS ("no default sections") 1071abf7346Smrg 1081abf7346Smrg/* 1091abf7346Smrg * Define HANDLE_ROFFSEQ to enable parsing of '\" <string> 1101abf7346Smrg * sequences in source files to set the format pipeline. 1111abf7346Smrg * This is necessary because the default pipeline causes incorrect 1121abf7346Smrg * display of ascii(7) on Linux. 1131abf7346Smrg * This depends on GNU roff. 1141abf7346Smrg */ 1151abf7346Smrg#ifdef HAS_GROFF 1161abf7346Smrg#define HANDLE_ROFFSEQ 1171abf7346Smrg#endif 1181abf7346Smrg 1191abf7346Smrg#define DEFAULT_WIDTH 500 /* The default width of xman. */ 1201abf7346Smrg#define SECTALLOC 8 /* The number of entries allocated 1211abf7346Smrg at a time for the manual structures. */ 1221abf7346Smrg#define ENTRYALLOC 100 /* The number of entries allocated 1231abf7346Smrg at a time for a section. */ 1241abf7346Smrg 1251abf7346Smrg#define INITIAL_DIR 0 /* The Initial Directory displayed. */ 1261abf7346Smrg 1271abf7346Smrg#define COPY "cp" /* copy command */ 1281abf7346Smrg#define CHMOD_MODE 00666 /* permissions set on saved formatted files */ 1291abf7346Smrg#define MANDESC "mandesc" /* name of the mandesc files */ 1301abf7346Smrg 1311abf7346Smrg#define INDENT 15 1321abf7346Smrg#define TYP20STR "MMMMMMMMMMMMMMMMMMMM" 1331abf7346Smrg 1341abf7346Smrg#define FILE_SAVE "yes" 1351abf7346Smrg#define CANCEL_FILE_SAVE "no" 1361abf7346Smrg#define MANTEMP "/tmp/xmanXXXXXX" 1371abf7346Smrg 1381abf7346Smrg/* 1391abf7346Smrg * Macro Definitions. 1401abf7346Smrg */ 1411abf7346Smrg 1421abf7346Smrg#define streq(a, b) ( strcmp((a), (b)) == 0 ) 1431abf7346Smrg 1441abf7346Smrg/* 1451abf7346Smrg * Function definitions moved to man.h 1461abf7346Smrg */ 147