diff -Nu ghostview-1.4.1/Dir.c ghostview-1.5/Dir.c --- ghostview-1.4.1/Dir.c Thu Oct 1 14:04:22 1992 +++ ghostview-1.5/Dir.c Fri Jul 23 21:29:12 1993 @@ -32,7 +32,7 @@ #include "SFinternal.h" -#if defined(SVR4) || defined(SYSV) || defined(USG) +#if defined(SVR4) || defined(SYSV) || defined(USG) || defined(__osf__) #include #else /* defined(SVR4) || defined(SYSV) || defined(USG) */ #include diff -Nu ghostview-1.4.1/Draw.c ghostview-1.5/Draw.c --- ghostview-1.4.1/Draw.c Wed Apr 15 09:15:45 1992 +++ ghostview-1.5/Draw.c Fri Jul 23 21:29:12 1993 @@ -29,9 +29,13 @@ #include "xstat.h" #include #include +#include #define SF_DEFAULT_FONT "9x15" +#ifdef ABS +#undef ABS +#endif #define ABS(x) (((x) < 0) ? (-(x)) : (x)) typedef struct { @@ -62,7 +66,7 @@ data = XtNew(TextData); XtGetApplicationResources(selFileForm, (XtPointer) data, textResources, - XtNumber(textResources), (Arg *) NULL, 0); + XtNumber(textResources), (Arg *) NULL, ZERO); SFfont = XLoadQueryFont(SFdisplay, data->fontname); if (!SFfont) { @@ -474,11 +478,15 @@ } static void -SFscrollTimer(n) - int n; +SFscrollTimer(p, id) + XtPointer p; + XtIntervalId *id; { SFDir *dir; int save; + int n; + + n = (int) p; dir = &(SFdirs[SFdirPtr + n]); save = dir->vOrigin; diff -Nu ghostview-1.4.1/Ghostview.ad ghostview-1.5/Ghostview.ad --- ghostview-1.4.1/Ghostview.ad Thu Oct 29 15:31:26 1992 +++ ghostview-1.5/Ghostview.ad Fri Jul 23 21:29:12 1993 @@ -57,13 +57,35 @@ *pagemediaButton.Label: Media *pageview.useBottom: True *pageview.useRight: True +*MenuButton.baseTranslations: #replace \n\ + : highlight() \n\ + : reset() \n\ + ! : reset() PopupMenu() \n\ + ! Shift: reset() PopupMenu() \n\ + ! Lock : reset() PopupMenu() \n\ + ! Lock Shift: reset() PopupMenu() \n\ + !Ctrl : reset() PopupMenu() \n\ + !Ctrl Shift: reset() PopupMenu() \n\ + !Ctrl Lock : reset() PopupMenu() \n\ + !Ctrl Lock Shift: reset() PopupMenu() +*MenuButton.translations: #replace \n\ + : highlight() \n\ + : reset() \n\ + ! : reset() PopupMenu() \n\ + ! Shift: reset() PopupMenu() \n\ + ! Lock : reset() PopupMenu() \n\ + ! Lock Shift: reset() PopupMenu() \n\ + !Ctrl : reset() PopupMenu() \n\ + !Ctrl Shift: reset() PopupMenu() \n\ + !Ctrl Lock : reset() PopupMenu() \n\ + !Ctrl Lock Shift: reset() PopupMenu() *SimpleMenu.baseTranslations: #replace \n\ : highlight() \n\ : unhighlight() \n\ : highlight() \n\ : MenuPopdown() GhostviewForce() notify() unhighlight() \n\ : MenuPopdown() GhostviewDefault() notify() unhighlight() -*SimpleMenu.Translations: #replace \n\ +*SimpleMenu.translations: #replace \n\ : highlight() \n\ : unhighlight() \n\ : highlight() \n\ @@ -76,24 +98,24 @@ Ghostview.baseTranslations: #replace \n\ : GhostviewCheckFile() \n\ WM_PROTOCOLS: GhostviewDeleteWindow() -Ghostview.Translations: #replace \n\ +Ghostview.translations: #replace \n\ : GhostviewCheckFile() \n\ WM_PROTOCOLS: GhostviewDeleteWindow() *TopLevelShell.baseTranslations: #replace \n\ WM_PROTOCOLS: GhostviewDismiss() -*TopLevelShell.Translations: #replace \n\ +*TopLevelShell.translations: #replace \n\ WM_PROTOCOLS: GhostviewDismiss() *TransientShell.baseTranslations: #replace \n\ WM_PROTOCOLS: GhostviewDismiss() -*TransientShell.Translations: #replace \n\ +*TransientShell.translations: #replace \n\ WM_PROTOCOLS: GhostviewDismiss() *zoom.form.baseTranslations: #replace \n\ Q: GhostviewDeleteZoom() -*zoom.form.Translations: #replace \n\ +*zoom.form.translations: #replace \n\ Q: GhostviewDeleteZoom() *zoom.baseTranslations: #replace \n\ WM_PROTOCOLS: GhostviewDeleteWindow() -*zoom.Translations: #replace \n\ +*zoom.translations: #replace \n\ WM_PROTOCOLS: GhostviewDeleteWindow() *Ghostview.baseTranslations: #replace \n\ : message() \n\ @@ -103,7 +125,7 @@ : notify(180 180 200 200) \n\ : notify(120 120 300 300) \n\ : notify(90 90 400 400) -*Ghostview.Translations: #replace \n\ +*Ghostview.translations: #replace \n\ : message() \n\ : notify(0) \n\ : GhostviewEraseLocator() \n\ @@ -123,7 +145,7 @@ : extend-start() \n\ : extend-adjust() \n\ : extend-end(PRIMARY, CUT_BUFFER0) -*toc.Translations: #replace \n\ +*toc.translations: #replace \n\ : focus-in() \n\ : focus-out() \n\ : select-start() \n\ @@ -178,7 +200,7 @@ Right: GhostviewDefault() GhostviewSetOrientation(landscape) \n\ Down: GhostviewDefault() GhostviewSetOrientation(upside-down) \n\ Left: GhostviewDefault() GhostviewSetOrientation(seascape) -*Form.Translations: #replace \n\ +*Form.translations: #replace \n\ C: GhostviewCenter() \n\ Q: GhostviewQuit() \n\ O: GhostviewOpen() \n\ diff -Nu ghostview-1.4.1/Ghostview.c ghostview-1.5/Ghostview.c --- ghostview-1.4.1/Ghostview.c Tue Oct 27 10:37:16 1992 +++ ghostview-1.5/Ghostview.c Fri Jul 23 21:29:12 1993 @@ -74,16 +74,13 @@ #define GV_BUFSIZ 1024 #endif /* VMS */ -/* length calculates string length at compile time */ -/* can only be used with character constants */ -#define length(a) (sizeof(a)-1) -#define iscomment(a, b) (strncmp(a, b, length(b)) == 0) - static void ComputeXdpi(); static void ComputeYdpi(); static XtResource resources[] = { #define offset(field) XtOffsetOf(GhostviewRec, ghostview.field) + { XtNarguments, XtCArguments, XtRString, sizeof(String), + offset(arguments), XtRString, (XtPointer)NULL }, { XtNbottomMargin, XtCMargin, XtRInt, sizeof(int), offset(bottom_margin), XtRImmediate, (XtPointer)0 }, { XtNbusyCursor, XtCCursor, XtRCursor, sizeof(XtPointer), @@ -94,6 +91,8 @@ offset(cursor), XtRString, "crosshair" }, { XtNfilename, XtCFilename, XtRString, sizeof(String), offset(filename), XtRString, (XtPointer)NULL }, + { XtNforeground, XtCForeground, XtRPixel, sizeof(Pixel), + offset(foreground), XtRString, XtDefaultForeground}, { XtNinterpreter, XtCInterpreter, XtRString, sizeof(String), offset(interpreter), XtRString, "gs" }, { XtNleftMargin, XtCMargin, XtRInt, sizeof(int), @@ -109,12 +108,14 @@ (XtPointer)XtPageOrientationPortrait }, { XtNoutputCallback, XtCCallback, XtRCallback, sizeof(XtPointer), offset(output_callback), XtRCallback, (XtPointer)NULL }, - { XtNpreload, XtCPreload, XtRString, sizeof(String), - offset(preload), XtRString, (XtPointer)NULL }, + { XtNpalette, XtCPalette, XtRPalette, sizeof(XtPalette), + offset(palette), XtRImmediate, (XtPointer)XtPaletteColor }, { XtNquiet, XtCQuiet, XtRBoolean, sizeof(Boolean), offset(quiet), XtRImmediate, (XtPointer)True }, { XtNrightMargin, XtCMargin, XtRInt, sizeof(int), offset(right_margin), XtRImmediate, (XtPointer)0 }, + { XtNsafer, XtCSafer, XtRBoolean, sizeof(Boolean), + offset(safer), XtRImmediate, (XtPointer)True }, { XtNtopMargin, XtCMargin, XtRInt, sizeof(int), offset(top_margin), XtRImmediate, (XtPointer)0 }, { XtNuseBackingPixmap, XtCUseBackingPixmap, XtRBoolean, sizeof(Boolean), @@ -211,6 +212,7 @@ }, { /* ghostview fields */ /* ghostview */ NULL, + /* gv_colors */ NULL, /* next */ NULL, /* page */ NULL, /* done */ NULL @@ -512,6 +514,7 @@ #endif /* VMS */ /* Register the type converter required for the PageOrientation. */ +/* Register the type converter required for the Palette. */ /* This routine is called exactly once. */ static void ClassInitialize() @@ -519,6 +522,9 @@ XtSetTypeConverter(XtRString, XtRPageOrientation, XmuCvtStringToPageOrientation, NULL, 0, XtCacheAll, NULL); + XtSetTypeConverter(XtRString, XtRPalette, + XmuCvtStringToPalette, NULL, 0, + XtCacheAll, NULL); } /* Get atoms needed to communicate with ghostscript. */ @@ -529,6 +535,7 @@ { GhostviewWidgetClass gvc = (GhostviewWidgetClass)class; gvc->ghostview_class.ghostview = XmuMakeAtom("GHOSTVIEW"); + gvc->ghostview_class.gv_colors = XmuMakeAtom("GHOSTVIEW_COLORS"); gvc->ghostview_class.next = XmuMakeAtom("NEXT"); gvc->ghostview_class.page = XmuMakeAtom("PAGE"); gvc->ghostview_class.done = XmuMakeAtom("DONE"); @@ -613,7 +620,7 @@ if (gvw->ghostview.input_buffer) XtFree(gvw->ghostview.input_buffer); #ifdef VMS if (gvw->ghostview.output_buffer) XtFree(gvw->ghostview.output_buffer); -#endif VMS +#endif /* VMS */ if (gvw->core.background_pixmap != XtUnspecifiedPixmap) XFreePixmap(XtDisplay(w), gvw->core.background_pixmap); } @@ -653,17 +660,17 @@ GhostviewWidget ngvw = (GhostviewWidget) new; String cfilename; String rfilename; - String cpreload; - String rpreload; + String carguments; + String rarguments; cfilename = cgvw->ghostview.filename; if (cfilename == NULL) cfilename = "(null)"; rfilename = rgvw->ghostview.filename; if (rfilename == NULL) rfilename = "(null)"; - cpreload = cgvw->ghostview.preload; - if (cpreload == NULL) cpreload = "(null)"; - rpreload = rgvw->ghostview.preload; - if (rpreload == NULL) rpreload = "(null)"; + carguments = cgvw->ghostview.arguments; + if (carguments == NULL) carguments = "(null)"; + rarguments = rgvw->ghostview.arguments; + if (rarguments == NULL) rarguments = "(null)"; if (XtIsRealized(new) && !ngvw->ghostview.busy && (cgvw->ghostview.cursor != ngvw->ghostview.cursor)) { @@ -674,11 +681,24 @@ XDefineCursor(XtDisplay(new), XtWindow(new), ngvw->ghostview.busy_cursor); } + if (cgvw->core.background_pixel != rgvw->core.background_pixel) { + XGCValues values; + XtGCMask mask; + + XtReleaseGC(current, cgvw->ghostview.gc); + values.foreground = new->core.background_pixel; + mask = GCForeground; + ngvw->ghostview.gc = XtGetGC(new, mask, &values); + } if ((cgvw->core.width != rgvw->core.width) || (cgvw->core.height != rgvw->core.height) || + (cgvw->core.background_pixel != rgvw->core.background_pixel) || + (cgvw->ghostview.foreground != rgvw->ghostview.foreground) || + (cgvw->ghostview.palette != rgvw->ghostview.palette) || strcmp(cgvw->ghostview.interpreter, rgvw->ghostview.interpreter) || - strcmp(cpreload, rpreload) || + strcmp(carguments, rarguments) || (cgvw->ghostview.quiet != rgvw->ghostview.quiet) || + (cgvw->ghostview.safer != rgvw->ghostview.safer) || strcmp(cfilename, rfilename) || (cgvw->ghostview.orientation != rgvw->ghostview.orientation) || (cgvw->ghostview.use_bpixmap != rgvw->ghostview.use_bpixmap) || @@ -938,7 +958,7 @@ alloc_error = True; } if (alloc_error) return 0; - oldhandler(dpy, err); + return oldhandler(dpy, err); } /* Setup - sets up the backing pixmap, and GHOSTVIEW property and @@ -1035,6 +1055,17 @@ XA_STRING, 8, PropModeReplace, (unsigned char *)buf, strlen(buf)); + sprintf(buf, "%s %d %d", + gvw->ghostview.palette == XtPaletteMonochrome ? "Monochrome" : + gvw->ghostview.palette == XtPaletteGrayscale ? "Grayscale" : + gvw->ghostview.palette == XtPaletteColor ? "Color" : "?", + gvw->ghostview.foreground, gvw->core.background_pixel); + XChangeProperty(XtDisplay(w), XtWindow(w), + XmuInternAtom(XtDisplay(w), gvc->ghostview_class.gv_colors), + XA_STRING, 8, PropModeReplace, + (unsigned char *)buf, strlen(buf)); + + XSync(XtDisplay(w), False); /* Be sure to update properties */ StartInterpreter(w); return True; } @@ -1062,7 +1093,7 @@ char buf[GV_BUFSIZ]; #define NUM_ARGS 100 char *argv[NUM_ARGS]; - char *preload = NULL; + char *arguments = NULL; char *cptr; int argc = 0; int ret; @@ -1081,17 +1112,19 @@ if (gvw->ghostview.disable_start) return; argv[argc++] = gvw->ghostview.interpreter; - if (gvw->ghostview.quiet) argv[argc++] = "-dQUIET"; + argv[argc++] = "-sDEVICE=x11"; argv[argc++] = "-dNOPAUSE"; - if (gvw->ghostview.preload) { - cptr = preload = XtNewString(gvw->ghostview.preload); + if (gvw->ghostview.quiet) argv[argc++] = "-dQUIET"; + if (gvw->ghostview.safer) argv[argc++] = "-dSAFER"; + if (gvw->ghostview.arguments) { + cptr = arguments = XtNewString(gvw->ghostview.arguments); while (isspace(*cptr)) cptr++; while (*cptr) { argv[argc++] = cptr; while (*cptr && !isspace(*cptr)) cptr++; - *cptr++ = '\0'; + if (*cptr) *cptr++ = '\0'; if (argc + 2 >= NUM_ARGS) { - fprintf(stderr, "Too many files to preload.\n"); + fprintf(stderr, "Too many arguments to interpreter.\n"); exit(1); } while (isspace(*cptr)) cptr++; @@ -1178,7 +1211,7 @@ XtAppAddInput(XtWidgetToApplicationContext(w), std_err[0], (XtPointer)XtInputReadMask, Output, (XtPointer)w); } - if (preload) XtFree(preload); + if (arguments) XtFree(arguments); } /* Stop the interperter, if present, and remove any Input sources. */ @@ -1389,6 +1422,7 @@ XmuInternAtom(XtDisplay(w), gvc->ghostview_class.next); event.xclient.format = 32; XSendEvent(XtDisplay(w), gvw->ghostview.mwin, False, 0, &event); + XFlush(XtDisplay(w)); /* And push it out */ return True; } else { return False; @@ -1461,6 +1495,50 @@ return False; } +/* Palette Conversion Routine. + * Returns True if Conversion is successful. + */ +Boolean +XmuCvtStringToPalette(dpy, args, num_args, fromVal, toVal, data) + Display *dpy; + XrmValue *args; /* unused */ + Cardinal *num_args; /* unused */ + XrmValue *fromVal; + XrmValue *toVal; + XtPointer *data; /* unused */ +{ + static XrmQuark XrmQEmonochrome; + static XrmQuark XrmQEgrayscale; + static XrmQuark XrmQEcolor; + static int haveQuarks; + XrmQuark q; + char *str = (XPointer) fromVal->addr; + char lowerName[1000]; + + if (str == NULL) return False; + + if (!haveQuarks) { + XrmQEmonochrome = XrmStringToQuark(XtEmonochrome); + XrmQEgrayscale = XrmStringToQuark(XtEgrayscale); + XrmQEcolor = XrmStringToQuark(XtEcolor); + haveQuarks = 1; + } + + XmuCopyISOLatin1Lowered(lowerName, str); + + q = XrmStringToQuark(lowerName); + + if (q == XrmQEmonochrome) + done(XtPalette, XtPaletteMonochrome); + if (q == XrmQEgrayscale) + done(XtPalette, XtPaletteGrayscale); + if (q == XrmQEcolor) + done(XtPalette, XtPaletteColor); + + XtDisplayStringConversionWarning(dpy, str, XtRPalette); + return False; +} + #ifdef VMS /* @@ -1754,11 +1832,11 @@ ** Build Ghostscript startup command */ strcpy(cmd, gvw->ghostview.interpreter); - strcat(cmd, " "); + strcat(cmd, " \"-sDEVICE=x11\" \"-dNOPAUSE\" "); if (gvw->ghostview.quiet) strcat(cmd, "\"-dQUIET\" "); - strcat(cmd, "\"-dNOPAUSE\" "); - if (gvw->ghostview.preload) { - strcat(cmd, gvw->ghostview.preload); + if (gvw->ghostview.safer) strcat(cmd, "\"-dSAFER\" "); + if (gvw->ghostview.arguments) { + strcat(cmd, gvw->ghostview.arguments); strcat(cmd, " "); } strcat(cmd, "\"-\" "); diff -Nu ghostview-1.4.1/Ghostview.h ghostview-1.5/Ghostview.h --- ghostview-1.4.1/Ghostview.h Mon Sep 21 19:34:46 1992 +++ ghostview-1.5/Ghostview.h Fri Jul 23 21:29:12 1993 @@ -38,6 +38,7 @@ Name Class RepType Default Value ---- ----- ------- ------------- + arguments Arguments String NULL background Background Pixel XtDefaultBackground border BorderColor Pixel XtDefaultForeground borderWidth BorderWidth Dimension 1 @@ -47,6 +48,7 @@ cursor Cursor Cursor crosshair destroyCallback Callback Pointer NULL filename Filename String "-" + foreground Foreground Pixel XtDefaultForeground height Height Dimension 0 interpreter Interpreter String "gs" leftMargin Margin int 0 @@ -56,9 +58,10 @@ messageCallback Callback Pointer NULL orientation Orientation PageOrientation Portrait outputCallback Callback Pointer NULL - preload Preload String NULL + palette Palette Palette Color quiet Quiet Boolean True rightMargin Margin int 0 + safer Safer Boolean True topMargin Margin int 0 urx BoundingBox Int 612 ury BoundingBox Int 792 @@ -82,8 +85,10 @@ #define XtNinterpreter "interpreter" #define XtNmessageCallback "messageCallback" #define XtNoutputCallback "outputCallback" -#define XtNpreload "preload" +#define XtNpalette "palette" +#define XtNarguments "arguments" #define XtNquiet "quiet" +#define XtNsafer "safer" #define XtNllx "llx" #define XtNlly "lly" #define XtNurx "urx" @@ -99,13 +104,13 @@ #define XtCBoundingBox "BoundingBox" #define XtCFilename "Filename" #define XtCInterpreter "Interpreter" -#define XtCPreload "Preload" +#define XtCPalette "Palette" +#define XtCArguments "Arguments" #define XtCQuiet "Quiet" +#define XtCSafer "Safer" #define XtCResolution "Resolution" #define XtCUseBackingPixmap "UseBackingPixmap" -#define XtRPageOrientation "PageOrientation" - /****************************************************************************** * XmuCvtStringToPageOrientation */ @@ -122,6 +127,20 @@ #define XtEseascape "seascape" #define XtRPageOrientation "PageOrientation" extern Boolean XmuCvtStringToPageOrientation(); + +/****************************************************************************** + * XmuCvtStringToPalette + */ +typedef enum { + XtPaletteMonochrome, + XtPaletteGrayscale, + XtPaletteColor +} XtPalette; +#define XtEmonochrome "monochrome" +#define XtEgrayscale "grayscale" +#define XtEcolor "color" +#define XtRPalette "Palette" +extern Boolean XmuCvtStringToPalette(); /* declare specific GhostviewWidget class and instance datatypes */ diff -Nu ghostview-1.4.1/GhostviewP.h ghostview-1.5/GhostviewP.h --- ghostview-1.4.1/GhostviewP.h Mon Sep 21 19:45:06 1992 +++ ghostview-1.5/GhostviewP.h Fri Jul 23 21:29:12 1993 @@ -33,6 +33,7 @@ typedef struct { AtomPtr ghostview; + AtomPtr gv_colors; AtomPtr next; AtomPtr page; AtomPtr done; @@ -57,6 +58,7 @@ typedef struct { /* resources */ + Pixel foreground; Cursor cursor; Cursor busy_cursor; XtCallbackList callback; @@ -64,10 +66,12 @@ XtCallbackList output_callback; String interpreter; Boolean quiet; + Boolean safer; Boolean use_bpixmap; - String preload; + String arguments; String filename; XtPageOrientation orientation; + XtPalette palette; float xdpi; float ydpi; int llx; diff -Nu ghostview-1.4.1/HISTORY ghostview-1.5/HISTORY --- ghostview-1.4.1/HISTORY Mon Nov 2 17:51:20 1992 +++ ghostview-1.5/HISTORY Sun Jul 25 08:24:45 1993 @@ -1,3 +1,40 @@ +==================== ghostview 1.5 (25 Jul 93) ===================== + + 1. Minimize comparison is DSC scanner to further speed it up. + + 2. Modify MenuButton translations to popup menu under any combination + of modifiers. + + 3. Change all occurances of .Translation to .translation to allow #augment + and #override to work properly. + + 4. Rename ghostview widget "preload" resource to "arguments". + + 5. Add foreground and palette resources to Ghostview widget. + Allow user to set the palette from the command line. + Remove special visual and special cmap code. + + 6. Remove Standard Color Map installation code. + + 7. Sync the connection just after setting the properties to ensure they + are set when gs starts. Flush the next page event to ensure ghostscript + starts right away. + + 8. Fix up bug in pasting of arguments into exec() call. + + 9. Add safer resource and make it the default. + +10. Apply HOME directory selfile fix from Erik van der Poel. + +11. Invoke ad2c with sh, so it work properly with for people using VPATH. + +12. Improve comment scanner. Avoid allocating 0 bytes when %%Pages: 0 + is present. Blank lines are counted with the section that they follow. + This is necessary one one decides that the current section being scanned + belong somewhere else. + +13. Various portability patches. (For Alpha-OSF/1 in particular.) + ==================== ghostview 1.4.1 ( 2 Nov 92) ===================== 1. Fix a couple of bugs introduced into the PostScript comment scanner. diff -Nu ghostview-1.4.1/Imakefile ghostview-1.5/Imakefile --- ghostview-1.4.1/Imakefile Mon Sep 21 19:31:41 1992 +++ ghostview-1.5/Imakefile Thu Jul 22 20:28:30 1993 @@ -34,7 +34,7 @@ OBJS = main.o misc.o callbacks.o actions.o dialogs.o \ Ghostview.o ps.o getenv.o setenv.o strcasecmp.o \ SelFile.o Dir.o Path.o Draw.o - SELFILE_DEFINE = -DSELFILE -DHOME_ON_DEMAND + SELFILE_DEFINE = -DSELFILE #else SRCS = main.c misc.c callbacks.c actions.c dialogs.c \ Ghostview.c ps.c getenv.c setenv.c strcasecmp.c @@ -62,8 +62,8 @@ main.o: app-defaults.h -app-defaults.h: Ghostview.ad - ./ad2c Ghostview.ad > app-defaults.h +app-defaults.h: Ghostview.ad ad2c + sh ad2c Ghostview.ad > app-defaults.h clean:: $(RM) app-defaults.h diff -Nu ghostview-1.4.1/Makefile ghostview-1.5/Makefile --- ghostview-1.4.1/Makefile Mon Sep 21 19:32:27 1992 +++ ghostview-1.5/Makefile Thu Jul 22 20:28:30 1993 @@ -277,7 +277,7 @@ OBJS = main.o misc.o callbacks.o actions.o dialogs.o \ Ghostview.o ps.o getenv.o setenv.o strcasecmp.o \ SelFile.o Dir.o Path.o Draw.o - SELFILE_DEFINE = -DSELFILE -DHOME_ON_DEMAND + SELFILE_DEFINE = -DSELFILE DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB) LOCAL_LIBRARIES = $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB) diff -Nu ghostview-1.4.1/Path.c ghostview-1.5/Path.c --- ghostview-1.4.1/Path.c Tue May 19 17:30:53 1992 +++ ghostview-1.5/Path.c Fri Jul 23 21:29:12 1993 @@ -106,6 +106,14 @@ } static +SFstrdup(s1, s2) + char **s1; + char *s2; +{ + *s1 = strcpy(XtMalloc((unsigned) (strlen(s2) + 1)), s2); +} + +static SFunreadableDir(dir) SFDir *dir; { @@ -113,8 +121,7 @@ dir->entries = (SFEntry *) XtMalloc(sizeof(SFEntry)); dir->entries[0].statDone = 1; - dir->entries[0].real = XtMalloc((unsigned) (strlen(cannotOpen) + 1)); - (void) strcpy(dir->entries[0].real, cannotOpen); + SFstrdup(&dir->entries[0].real, cannotOpen); dir->entries[0].shown = dir->entries[0].real; dir->nEntries = 1; dir->nChars = strlen(cannotOpen); @@ -203,7 +210,7 @@ dir = &(SFdirs[SFdirEnd - 1]); if (dir->beginSelection == -1) { - str = strcpy(XtMalloc((unsigned) (strlen(str) + 1)), str); + SFstrdup(&str, str); SFreplaceText(dir, str); XtFree(str); return; @@ -215,8 +222,7 @@ max = &(dir->entries[dir->endSelection + 1]); name = dir->entries[dir->beginSelection].shown; - (void) strcpy((growing = XtMalloc((unsigned) (strlen(name) + 1))), - name); + SFstrdup(&growing, name); cmp = 0; while (!cmp) { @@ -374,25 +380,13 @@ SFgetHomeDirs() { struct passwd *pw; - struct stat statBuf; int alloc; int i; SFEntry *entries = NULL; -#ifndef HOME_ON_DEMAND /* by Y.Kawabe */ int len; -#endif /* HOME_ON_DEMAND */ int maxChars; - alloc = 0; - i = 0; - - maxChars = -1; - - if (pw = getpwuid((int) getuid())) { - if ( - (!stat(pw->pw_dir, &statBuf)) && - (S_ISDIR (statBuf.st_mode)) - ) { + { alloc = 1; i = 1; entries = (SFEntry *) XtMalloc(sizeof(SFEntry)); @@ -402,22 +396,14 @@ entries[0].shown = entries[0].real; entries[0].statDone = 1; SFlogins[0].name = ""; - SFlogins[0].dir = XtMalloc((unsigned) - (strlen(pw->pw_dir) + 1)); - (void) strcpy(SFlogins[0].dir, pw->pw_dir); - maxChars = 1; - } + pw = getpwuid((int) getuid()); + SFstrdup(&SFlogins[0].dir, pw ? pw->pw_dir : "/"); + maxChars = 0; } -#ifndef HOME_ON_DEMAND /* by Y.Kawabe */ - (void) setpwent(); while ((pw = getpwent()) && (*(pw->pw_name))) { - if ( - (!stat(pw->pw_dir, &statBuf)) && - (S_ISDIR (statBuf.st_mode)) - ) { if (i >= alloc) { alloc *= 2; entries = (SFEntry *) XtRealloc( @@ -438,18 +424,11 @@ if (len > maxChars) { maxChars = len; } - SFlogins[i].name = XtMalloc((unsigned) - (strlen(pw->pw_name) + 1)); - (void) strcpy(SFlogins[i].name, pw->pw_name); - SFlogins[i].dir = XtMalloc((unsigned) - (strlen(pw->pw_dir) + 1)); - (void) strcpy(SFlogins[i].dir, pw->pw_dir); + SFstrdup(&SFlogins[i].name, pw->pw_name); + SFstrdup(&SFlogins[i].dir, pw->pw_dir); i++; - } } -#endif /* HOME_ON_DEMAND */ - SFhomeDir.dir = XtMalloc(1) ; SFhomeDir.dir[0] = 0 ; SFhomeDir.path = SFcurrentPath ; @@ -475,7 +454,6 @@ } } - static int SFfindHomeDir(begin, end) char *begin, *end; @@ -490,8 +468,7 @@ for (i = SFhomeDir.nEntries - 1; i >= 0; i--) { if (!strcmp(SFhomeDir.entries[i].real, begin)) { *end = save; - theRest = XtMalloc((unsigned) (strlen(end) + 1)); - (void) strcpy(theRest, end); + SFstrdup(&theRest, end); (void) strcat(strcat(strcpy(SFcurrentPath, SFlogins[i].dir), "/"), theRest); XtFree(theRest); @@ -501,29 +478,6 @@ } } -#ifdef HOME_ON_DEMAND /* by Y.Kawabe */ - if (*(++begin)) { - struct passwd *pwd; - char user[256]; - int i = 0; - - while (*begin && *begin != '/' && i < sizeof(user)) - user[i++] = *begin++; - user[i] = '\0'; - - if (pwd = getpwnam(user)) { - theRest = XtMalloc((unsigned) (strlen(end) + 1)); - (void) strcpy(theRest, end); - (void) strcat(strcat(strcpy(SFcurrentPath, - pwd->pw_dir), "/"), theRest); - XtFree(theRest); - SFsetText(SFcurrentPath); - SFtextChanged(); - return 1; - } - } -#endif /* HOME_ON_DEMAND */ - *end = save; return 0; @@ -535,7 +489,6 @@ static int wasTwiddle = 0; char *begin, *end; int i, j; - int len; int prevChange; int SFdirPtrSave, SFdirEndSave; SFDir *dir; @@ -543,8 +496,7 @@ if (!SFdirs) { SFdirs = (SFDir *) XtMalloc((alloc = 10) * sizeof(SFDir)); dir = &(SFdirs[0]); - dir->dir = XtMalloc(2); - (void) strcpy(dir->dir, "/"); + SFstrdup(&dir->dir, "/"); (void) SFchdir("/"); (void) SFgetDir(dir); for (j = 1; j < alloc; j++) { @@ -556,7 +508,7 @@ dir->changed = 1; dir->beginSelection = -1; dir->endSelection = -1; - SFgetHomeDirs(); + SFhomeDir.dir = NULL; } SFdirEndSave = SFdirEnd; @@ -572,6 +524,9 @@ SFtwiddle = 1; dir = &(SFdirs[0]); SFrootDir = *dir; + if (!SFhomeDir.dir) { + SFgetHomeDirs(); + } *dir = SFhomeDir; dir->changed = 1; } @@ -639,9 +594,7 @@ SFfree(i); } prevChange = 1; - len = strlen(begin) + 1; - dir->dir = XtMalloc((unsigned) len); - (void) strcpy(dir->dir, begin); + SFstrdup(&dir->dir, begin); dir->path = end; dir->vOrigin = 0; dir->hOrigin = 0; @@ -882,7 +835,9 @@ } void -SFdirModTimer() +SFdirModTimer(cl, id) + XtPointer cl; + XtIntervalId *id; { static int n = -1; static int f = 0; diff -Nu ghostview-1.4.1/README ghostview-1.5/README --- ghostview-1.4.1/README Thu Oct 1 16:33:10 1992 +++ ghostview-1.5/README Sun Jul 25 08:23:11 1993 @@ -1,7 +1,7 @@ Ghostview -- An X11 user interface for ghostscript. -Ghostview is full function user interface for ghostscript 2.4. +Ghostview is full function user interface for ghostscript 2.4 and later. Brief list of features: - Ghostview parses any known version of Adobe's Document Structuring @@ -17,8 +17,8 @@ Comments. The user is able to override the values from the comments. - Ability to view at 4 orientations: Portrait, Landscape, Upside-down, and Seascape (for those who rotate landscape the other direction). - - Ability to preview in any supported visual. (Can preview in gray-scale - or color on a Color monitor.) + - Ability to restrict rendering to grayscale or monochrome. (Requires + ghostscript 2.6.1.) - Ability to mark pages for printing, or saving. (Good for people that printed a 100 page document and lost page 59 due to a printer jam.) - Can popup zoom windows at printer resolution @@ -27,9 +27,9 @@ The Ghostview distribution includes a Ghostview Widget that people are encouraged to use in other programs. - Ghostview-1.4 is available via anonymous ftp from: - prep.ai.mit.edu:/pub/gnu/ghostview-1.4.tar.Z - ftp.cs.wisc.edu:/pub/X/ghostview-1.4.tar.Z + Ghostview-1.5 is available via anonymous ftp from: + prep.ai.mit.edu:/pub/gnu/ghostview-1.5.tar.gz + ftp.cs.wisc.edu:/pub/X/ghostview-1.5.tar.gz This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -145,8 +145,10 @@ NOTE: PLEASE send all ghostview related mail to ghostview@cs.wisc.edu. - Tim Theisen Systems Programmer -Internet: tim@cs.wisc.edu Department of Computer Sciences - UUCP: uwvax!tim University of Wisconsin-Madison - Phone: (608)262-0438 1210 West Dayton Street - FAX: (608)262-9777 Madison, WI 53706 +...Tim + + Tim Theisen Associate Researcher +Internet: ghostview@cs.wisc.edu Department of Computer Sciences + UUCP: uwvax!ghostview University of Wisconsin-Madison + Phone: (608)262-0438 1210 West Dayton Street + FAX: (608)262-9777 Madison, WI 53706-1685 diff -Nu ghostview-1.4.1/SelFile.c ghostview-1.5/SelFile.c --- ghostview-1.4.1/SelFile.c Wed Apr 15 09:15:45 1992 +++ ghostview-1.5/SelFile.c Fri Jul 23 21:29:12 1993 @@ -58,6 +58,7 @@ #include #include #include +#include #include "SFinternal.h" @@ -135,12 +136,13 @@ /* ARGSUSED */ static void -SFexposeList(w, n, event) +SFexposeList(w, n, event, cont) Widget w; - int n; - XExposeEvent *event; + XtPointer n; + XEvent *event; + Boolean *cont; { - if ((event->type == NoExpose) || event->count) { + if ((event->type == NoExpose) || event->xexpose.count) { return; } @@ -149,15 +151,16 @@ /* ARGSUSED */ static void -SFmodVerifyCallback(w, client_data, event) +SFmodVerifyCallback(w, client_data, event, cont) Widget w; XtPointer client_data; - XKeyPressedEvent *event; + XEvent *event; + Boolean *cont; { char buf[2]; if ( - (XLookupString(event, buf, 2, NULL, NULL) == 1) && + (XLookupString(&(event->xkey), buf, 2, NULL, NULL) == 1) && ((*buf) == '\r') ) { SFstatus = SEL_FILE_OK; @@ -168,8 +171,9 @@ /* ARGSUSED */ static void -SFokCallback(w) +SFokCallback(w, cl, cd) Widget w; + XtPointer cl, cd; { SFstatus = SEL_FILE_OK; } @@ -181,8 +185,9 @@ /* ARGSUSED */ static void -SFcancelCallback(w) +SFcancelCallback(w, cl, cd) Widget w; + XtPointer cl, cd; { SFstatus = SEL_FILE_CANCEL; } @@ -221,7 +226,7 @@ char *ok; char *cancel; { - int i, n; + Cardinal i, n; int listWidth, listHeight; int listSpacing = 10; int scrollThickness = 15; @@ -576,7 +581,7 @@ strcat(buf, prompt); } XtSetArg(args[0], XtNlabel, buf); - XtSetValues(selFilePrompt, args, 1); + XtSetValues(selFilePrompt, args, ONE); XtFree(buf); return NULL; } @@ -641,7 +646,7 @@ char **name_return; { static int firstTime = 1; - int i; + Cardinal i; Arg arglist[20]; XEvent event; FILE *fp; diff -Nu ghostview-1.4.1/callbacks.c ghostview-1.5/callbacks.c --- ghostview-1.4.1/callbacks.c Thu Oct 1 15:37:32 1992 +++ ghostview-1.5/callbacks.c Fri Jul 23 21:29:12 1993 @@ -431,20 +431,11 @@ /* If the file changed, cannot zoom */ stat(filename, &sbuf); if (mtime != sbuf.st_mtime) return; - num_args = 0; - XtSetArg(args[num_args], XtNcolormap, cmap); num_args++; - if (special_cmap) { - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } zoom = XtCreatePopupShell("zoom", topLevelShellWidgetClass, - toplevel, args, num_args); + toplevel, NULL, ZERO); - num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } zoomform = XtCreateManagedWidget("form", formWidgetClass, - zoom, args, num_args); + zoom, NULL, ZERO); llx = p->psx - p->width/2; lly = p->psy - p->height/2; @@ -480,9 +471,6 @@ top_margin = current_ury - ury; num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } XtSetArg(args[num_args], XtNtop, XtChainTop); num_args++; XtSetArg(args[num_args], XtNbottom, XtChainBottom); num_args++; XtSetArg(args[num_args], XtNleft, XtChainLeft); num_args++; @@ -516,10 +504,6 @@ (XtPointer)zoompage); num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } XtSetArg(args[num_args], XtNfromVert, zoompage); num_args++; XtSetArg(args[num_args], XtNtop, XtChainBottom); num_args++; XtSetArg(args[num_args], XtNbottom, XtChainBottom); num_args++; diff -Nu ghostview-1.4.1/dialogs.c ghostview-1.5/dialogs.c --- ghostview-1.4.1/dialogs.c Fri Jun 19 15:21:41 1992 +++ ghostview-1.5/dialogs.c Fri Jul 23 21:29:12 1993 @@ -54,17 +54,9 @@ Arg args[20]; Cardinal num_args; - num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } - form = XtCreateManagedWidget(name, formWidgetClass, parent, args, num_args); + form = XtCreateManagedWidget(name, formWidgetClass, parent, NULL, ZERO); num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } XtSetArg(args[num_args], XtNtop, XtChainTop); num_args++; XtSetArg(args[num_args], XtNbottom, XtChainTop); num_args++; XtSetArg(args[num_args], XtNleft, XtChainLeft); num_args++; @@ -75,10 +67,6 @@ form, args, num_args); num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } XtSetArg(args[num_args], XtNfromVert, prompt); num_args++; XtSetArg(args[num_args], XtNtop, XtChainTop); num_args++; XtSetArg(args[num_args], XtNbottom, XtChainTop); num_args++; @@ -92,10 +80,6 @@ form, args, num_args); num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } XtSetArg(args[num_args], XtNfromVert, response); num_args++; XtSetArg(args[num_args], XtNtop, XtChainTop); num_args++; XtSetArg(args[num_args], XtNbottom, XtChainTop); num_args++; @@ -109,10 +93,6 @@ XtAddCallback(okay, XtNcallback, okay_callback, form); num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } XtSetArg(args[num_args], XtNfromVert, response); num_args++; XtSetArg(args[num_args], XtNfromHoriz, okay); num_args++; XtSetArg(args[num_args], XtNtop, XtChainTop); num_args++; diff -Nu ghostview-1.4.1/ghostview.man ghostview-1.5/ghostview.man --- ghostview-1.4.1/ghostview.man Tue Oct 6 21:03:43 1992 +++ ghostview-1.5/ghostview.man Fri Jul 23 21:29:12 1993 @@ -20,6 +20,8 @@ .\" UUCP: uwvax!tim University of Wisconsin-Madison .\" Phone: (608)262-0438 1210 West Dayton Street .\" FAX: (608)262-9777 Madison, WI 53706 +.if t .ds Te T\\h'-0.1667m'\\v'0.20v'E\\v'-0.20v'\\h'-0.125m'X +.if n .ds Te TeX .TH GHOSTVIEW 1 .SH NAME \fIghostview\fR \- View PostScript documents using ghostscript @@ -30,19 +32,18 @@ or .br .B ghostview -[\-staticgray] [\-grayscale] -[\-staticcolor] [\-pseudocolor] [\-truecolor] [\-directcolor] -[\-[no]install] [\-[no]private] [\-[no]center] +[\-monochrome] [\-grayscale] [\-color] [\-[no]title] [\-[no]date] [\-[no]locator] [\-[no]labels] [\-resolution\ \fIdpi\fP] [\-dpi\ \fIdpi\fP] -[\-xdpi\ \fIdpi\fP] [\-ydpi\ \fIdpi\fP] -[\-[no]quiet] [\-preload\ \fIfile\fP] [\-magstep\ \fIn\fP] -[\-portrait] [\-landscape] [\-upsidedown] [\-seascape] +[\-xdpi\ \fIdpi\fP] [\-ydpi\ \fIdpi\fP] [\-magstep\ \fIn\fP] +[\-[no]safer] [\-[no]quiet] [\-arguments\ \fIarguments\fP] +[\-[no]center] +[\-portrait] [\-landscape] [\-upsidedown] [\-seascape] [\-[no]swap] [\-letter] [\-tabloid] [\-ledger] [\-legal] [\-statement] [\-executive] [\-a3] [\-a4] [\-a5] [\-b4] [\-b5] [\-folio] [\-quarto] [\-10x14] [\-force] [\-forceorientation] [\-forcemedia] -[\-[no]swap] [\-[no]openwindows] [\-[no]ncdwm] +[\-[no]openwindows] [\-[no]ncdwm] [\-page \fIlabel\fP] [\-\fItoolkitoption\fR\ ...] [filename] .SH DESCRIPTION @@ -104,7 +105,7 @@ The locator reports the position of the cursor in the zoom windows as well as the main viewport. .PP -In the table of contents, the first and third mouse button functions exactly +In the table of contents, the first and third mouse button function exactly as they do in a Text widget. That is the first mouse button selects text and the third mouse button extends selections. @@ -113,7 +114,7 @@ The page being displayed is marked with a '<' in the right margin of the table of contents. .SH POPUP WINDOWS -The are several additional windows that may appear. +There are several additional windows that may appear. The \fIcopyright\fP window will appear whenever copyright information is requested. The \fIinformation\fP window appears whenever the \fIghostscript\fP process @@ -210,7 +211,7 @@ viewed. The default magstep of 0 implies no magnification (i.e. the size on the screen should match the size on paper). -\fIGhostview\fP borrows the notion of magstep from TeX. The magnification +\fIGhostview\fP borrows the notion of magstep from \*(Te\&. The magnification is defined to be 1.2**magstep. At magstep 1, the document is magnified by 1.2. At magstep -1, the document is reduced by 1.2. The Magstep menu lists values from -5 to 5. @@ -468,12 +469,6 @@ .IP "\fBshowLocator (\fPclass\fB Labels)\fP" 1i Tells whether to display the locator. The default is ``true''. -.IP "\fBinstallStdCmap (\fPclass\fB InstallStdCmap)\fP" 1i -Tells whether to attempt to install a standard colormap. -The default is ``false''. -.IP "\fBprivateCmap (\fPclass\fB PrivateCmap)\fP" 1i -Tells whether to use a standard colormap that is not the default colormap. -The default is ``false''. .IP "\fBautoCenter (\fPclass\fB AutoCenter)\fP" 1i Tells whether to center the page within the viewport whenever the page size changes. @@ -563,6 +558,11 @@ .SH GHOSTVIEW WIDGET RESOURCES Certain resources in the Ghostview widget may be set by the user. These selected resources are presented below. +.IP "\fBarguments (\fPclass\fB Arguments)\fP" 1i +Additional arguments passed to the interpreter. +It is convenient to name files that preload fonts here for PostScript programs +that continually reload fonts while rendering a page. +The default is no additional arguments. .IP "\fBbusyCursor (\fPclass\fB Cursor)\fP" 1i The cursor shown when \fIghostscript\fP is rendering to the window. The busy cursor is set to the ``target'' by the application defaults. @@ -574,14 +574,16 @@ It is convenient to set this resource to the path of an alternate version of ghostscript for testing. The default value is ``gs''. -.IP "\fBpreload (\fPclass\fB Preload)\fP" 1i -Files to load before the PostScript program. -It is convenient to name files that preload fonts here for PostScript programs -that continually reload fonts while rendering a page. -The default is to not preload any files. +.IP "\fBpalette (\fPclass\fB Palette)\fP" 1i +Tells \fIghostscript\fP how to restrict the palette used when rendering. +The possible values are ``color'', ``grayscale'', and ``monochrome''. +The default value is ``color''. .IP "\fBquiet (\fPclass\fB Quiet)\fP" 1i -Tells \fIghostscript\fP whether to produce informational messages. -The default value is ``false''. +Tells \fIghostscript\fP whether to supress informational messages. +The default value is ``true''. +.IP "\fBsafer (\fPclass\fB Safer)\fP" 1i +Tells \fIghostscript\fP whether to run in ``safer'' mode. +The default value is ``true''. .IP "\fBuseBackingPixmap (\fPclass\fB UseBackingPixmap)\fP" 1i Tells whether to use a backing pixmap. If this resource is false, backing store is requested on the Ghostview window. @@ -606,35 +608,17 @@ and popup zoom windows. If the width and height are 0, the event is user for the locator. Otherwise, it triggers a popup zoom window. -The default widht and height are 72. +The default width and height are 72. The default xdpi and ydpi are 300. The height will default to the width if the height is omitted. The xdpi will default to the xdpi if the ydpi is omitted. .SH OPTIONS -.IP \fB\-staticgray\fP 1i -Equivalent to setting ``*Visual: StaticGray''. +.IP \fB\-monochrome\fP 1i +Equivalent to setting ``*Ghostview.palette: Monochrome''. .IP \fB\-grayscale\fP 1i -Equivalent to setting ``*Visual: GrayScale''. -.IP \fB\-staticcolor\fP 1i -Equivalent to setting ``*Visual: StaticColor''. -.IP \fB\-pseudocolor\fP 1i -Equivalent to setting ``*Visual: PseudoColor''. -.IP \fB\-truecolor\fP 1i -Equivalent to setting ``*Visual: TrueColor''. -.IP \fB\-directcolor\fP 1i -Equivalent to setting ``*Visual: DirectColor''. -.IP \fB\-install\fP 1i -Equivalent to setting ``Ghostview.installStdCmap: True''. -.IP \fB\-noinstall\fP 1i -Equivalent to setting ``Ghostview.installStdCmap: False''. -.IP \fB\-private\fP 1i -Equivalent to setting ``Ghostview.privateCmap: True''. -.IP \fB\-noprivate\fP 1i -Equivalent to setting ``Ghostview.privateCmap: False''. -.IP \fB\-center\fP 1i -Equivalent to setting ``Ghostview.autoCenter: True''. -.IP \fB\-nocenter\fP 1i -Equivalent to setting ``Ghostview.autoCenter: False''. +Equivalent to setting ``*Ghostview.palette: GrayScale''. +.IP \fB\-color\fP 1i +Equivalent to setting ``*Ghostview.palette: Color''. .IP \fB\-title\fP 1i Equivalent to setting ``Ghostview.showTitle: True''. .IP \fB\-notitle\fP 1i @@ -651,22 +635,30 @@ Equivalent to setting ``Ghostview.Labels: True''. .IP \fB\-nolabels\fP 1i Equivalent to setting ``Ghostview.Labels: False''. -.IP \fB\-quiet\fP 1i -Equivalent to setting ``*Ghostview.quiet: True''. -.IP \fB\-noquiet\fP 1i -Equivalent to setting ``*Ghostview.quiet: False''. -.IP "\fB\-preload\fP \fIfile\fP" 1i -Equivalent to setting ``*Ghostview.preload: \fIfile\fP''. -.IP "\fB\-xdpi\fP \fIdpi\fP" 1i -Equivalent to setting ``*Ghostview.xdpi: \fIdpi\fP''. -.IP "\fB\-ydpi\fP \fIdpi\fP" 1i -Equivalent to setting ``*Ghostview.ydpi: \fIdpi\fP''. .IP "\fB\-resolution\fP \fIdpi\fP" 1i Equivalent to setting ``*Ghostview.Resolution: \fIdpi\fP''. .IP "\fB\-dpi\fP \fIdpi\fP" 1i Equivalent to setting ``*Ghostview.Resolution: \fIdpi\fP''. +.IP "\fB\-xdpi\fP \fIdpi\fP" 1i +Equivalent to setting ``*Ghostview.xdpi: \fIdpi\fP''. +.IP "\fB\-ydpi\fP \fIdpi\fP" 1i +Equivalent to setting ``*Ghostview.ydpi: \fIdpi\fP''. .IP "\fB\-magstep\fP \fImagstep\fP" 1i Equivalent to setting ``Ghostview.magstep: \fImagstep\fP''. +.IP \fB\-safer\fP 1i +Equivalent to setting ``*Ghostview.safer: True''. +.IP \fB\-nosafer\fP 1i +Equivalent to setting ``*Ghostview.safer: False''. +.IP \fB\-quiet\fP 1i +Equivalent to setting ``*Ghostview.quiet: True''. +.IP \fB\-noquiet\fP 1i +Equivalent to setting ``*Ghostview.quiet: False''. +.IP "\fB\-arguments\fP \fIarguments\fP" 1i +Equivalent to setting ``*Ghostview.arguments: \fIarguments\fP''. +.IP \fB\-center\fP 1i +Equivalent to setting ``Ghostview.autoCenter: True''. +.IP \fB\-nocenter\fP 1i +Equivalent to setting ``Ghostview.autoCenter: False''. .IP \fB\-portrait\fP 1i Equivalent to setting ``Ghostview.orientation: Portrait''. .IP \fB\-landscape\fP 1i @@ -675,10 +667,10 @@ Equivalent to setting ``Ghostview.orientation: Upside\-down''. .IP \fB\-seascape\fP 1i Equivalent to setting ``Ghostview.orientation: Seascape''. -.IP \fB\-forceorientation\fP 1i -Equivalent to setting ``Ghostview.forceOrientation: True''. -.IP "\fB\-page\fP \fIlabel\fP" 1i -Equivalent to setting ``Ghostview.page: \fIlabel\fP''. +.IP \fB\-swap\fP 1i +Equivalent to setting ``Ghostview.swapLandscape: True''. +.IP \fB\-noswap\fP 1i +Equivalent to setting ``Ghostview.swapLandscape: False''. .IP \fB\-letter\fP 1i Equivalent to setting ``Ghostview.pageMedia: Letter''. .IP \fB\-tabloid\fP 1i @@ -707,14 +699,12 @@ Equivalent to setting ``Ghostview.pageMedia: Quarto''. .IP \fB\-10x14\fP 1i Equivalent to setting ``Ghostview.pageMedia: 10x14''. -.IP \fB\-forcemedia\fP 1i -Equivalent to setting ``Ghostview.forcePageMedia: True''. .IP \fB\-force\fP 1i Equivalent to setting ``Ghostview.Force: True''. -.IP \fB\-swap\fP 1i -Equivalent to setting ``Ghostview.swapLandscape: True''. -.IP \fB\-noswap\fP 1i -Equivalent to setting ``Ghostview.swapLandscape: False''. +.IP \fB\-forceorientation\fP 1i +Equivalent to setting ``Ghostview.forceOrientation: True''. +.IP \fB\-forcemedia\fP 1i +Equivalent to setting ``Ghostview.forcePageMedia: True''. .IP \fB\-openwindows\fP 1i Equivalent to setting ``Ghostview.openWindows: True''. .IP \fB\-noopenwindows\fP 1i @@ -723,6 +713,8 @@ Equivalent to setting ``Ghostview.ncdwm: True''. .IP \fB\-noncdwm\fP 1i Equivalent to setting ``Ghostview.ncdwm: False''. +.IP "\fB\-page\fP \fIlabel\fP" 1i +Equivalent to setting ``Ghostview.page: \fIlabel\fP''. .SH WIDGET HIERARCHY .nf \fIThe hierarchy of the ghostview application:\fR diff -Nu ghostview-1.4.1/ghostview.ps ghostview-1.5/ghostview.ps --- ghostview-1.4.1/ghostview.ps Mon Oct 12 09:42:00 1992 +++ ghostview-1.5/ghostview.ps Sun Jul 25 08:46:59 1993 @@ -1,13 +1,20 @@ -%!PS-Adobe-1.0 -%%Creator: appenzell:tim (Tim Theisen,3375C,20438,2219620) +%!PS-Adobe-3.0 +%%Creator: psdit +%%For: appenzell:tim (Tim Theisen,3375C,20438,2219620) %%Title: stdin (ditroff) -%%CreationDate: Mon Oct 12 09:41:42 1992 +%%CreationDate: Sun Jul 25 08:46:43 1993 +%%DocumentNeededResources: (atend) +%%DocumentSuppliedResources: DIThacks +%%Pages: (atend) +%%Orientation: Portrait +%%DocumentMedia: Letter 612 792 75 white () %%EndComments -% Start of psdit.pro -- prolog for ditroff translator -% Copyright (c) 1985,1987 Adobe Systems Incorporated. All Rights Reserved. +% psdit.pro -- prolog for ditroff translator +% Copyright (c) 1985,1987,1992 Adobe Systems Incorporated. All Rights +% Reserved. % GOVERNMENT END USERS: See Notice file in TranScript library directory % -- probably /usr/lib/ps/Notice -% RCS: $Header: /src/misc/transcript/lib/RCS/psdit.pro,v 1.5 90/04/12 11:45:51 tim Exp $ +% RCS: $Header: /src/misc/transcript4/lib/RCS/psdit.pro,v 1.2 1993/03/16 22:43:47 tim Exp $ /$DITroff 180 dict def $DITroff begin /DocumentInitState [ matrix currentmatrix currentlinewidth currentlinecap @@ -99,16 +106,12 @@ %% end XMOD additions /fontnum 1 def /fontsize 10 def /fontheight 10 def /fontslant 0 def -/xi {0 72 11 mul translate 72 resolution div dup neg scale 0 0 moveto - /fontnum 1 def /fontsize 10 def /fontheight 10 def /fontslant 0 def F - /pagesave save def}def -/xiG {0 72 14 mul translate 72 resolution div dup neg scale 0 0 moveto - /fontnum 1 def /fontsize 10 def /fontheight 10 def /fontslant 0 def F - /pagesave save def}def -/xiL {90 rotate 72 resolution div dup neg scale 0 0 moveto - /fontnum 1 def /fontsize 10 def /fontheight 10 def /fontslant 0 def F - /pagesave save def}def -/@manualfeed {statusdict /manualfeed true put}def +/xi {/fontnum 1 def /fontsize 10 def /fontheight 10 def /fontslant 0 def F + }def +/ps {/pagesave save def 72 mul 0 exch translate 72 resolution div dup neg + scale 0 0 moveto } def +/psL {/pagesave save def 90 rotate 72 resolution div dup neg + scale 0 0 moveto } def /PB{save /psv exch def currentpoint translate resolution 72 div dup neg scale 0 0 moveto}def /PE{psv restore}def @@ -129,7 +132,7 @@ /f{/fontnum exch def F}bind def /F{fontheight 0 le {/fontheight fontsize def}if fonts fontnum get fontsize point 0 0 fontheight point neg 0 0 m1 astore - fontslant 0 ne{1 0 fontslant tan 1 0 0 m2 astore m3 concatmatrix}if + fontslant 0 ne{1 0 fontslant neg tan 1 0 0 m2 astore m3 concatmatrix}if makefont setfont .04 fontsize point mul 0 dround pop setlinewidth}bind def /X{exch currentpoint exch pop moveto show}bind def /N{3 1 roll moveto show}bind def @@ -145,7 +148,7 @@ /MXY /moveto load def /cb{pop}def % action on unknown char -- nothing for now /n{}def/w{}def -/p{pop showpage pagesave restore /pagesave save def}def +/p{pop pagesave restore showpage}def /abspoint{currentpoint exch pop add exch currentpoint pop add exch}def /dstroke{currentpoint stroke moveto}bind def /Dg{gsave}def @@ -220,6 +223,7 @@ (<-){gsave 0 .02 dm rmoveto(\254)show oce}def (==){gsave 0 .05 dm rmoveto(\272)show oce}def end +%%BeginResource: font DIThacks % DIThacks fonts for some special chars 50 dict dup begin /FontType 3 def @@ -335,26 +339,38 @@ end end /DIThacks exch definefont pop - +%%EndResource +%%EndProlog +%%BeginSetup ditstart (psc)xT 576 1 1 xr +%%IncludeResource: font Times-Roman 1(Times-Roman)xf 1 f +%%IncludeResource: font Times-Italic 2(Times-Italic)xf 2 f +%%IncludeResource: font Times-Bold 3(Times-Bold)xf 3 f +%%IncludeResource: font Times-BoldItalic 4(Times-BoldItalic)xf 4 f +%%IncludeResource: font Helvetica 5(Helvetica)xf 5 f +%%IncludeResource: font Helvetica-Bold 6(Helvetica-Bold)xf 6 f +%%IncludeResource: font Courier 7(Courier)xf 7 f +%%IncludeResource: font Courier-Bold 8(Courier-Bold)xf 8 f +%%IncludeResource: font Symbol 9(Symbol)xf 9 f 10(DIThacks)xf 10 f 10 s 1 f xi -%%EndProlog +%%EndSetup %%Page: 1 1 +11.00 ps 10 s 10 xH 0 xS 1 f 576 384(GHOSTVIEW)N 1066(\()X @@ -393,72 +409,42 @@ 3 f 864 1286(ghostview)N 1 f -1293([)X -9 f -1320(-)X -1 f -1364(staticgray])X -1794([)X -9 f -1821(-)X -1 f -1865(grayscale])X -2288([)X -9 f -2315(-)X -1 f -2359(staticcolor])X -2812([)X -9 f -2839(-)X -1 f -2883(pseudocolor])X -3394([)X -9 f -3421(-)X -1 f -3465(truecolor])X -3874([)X -9 f -3901(-)X -1 f -3945(directcolor])X -864 1382([)N +1250([)X 9 f -891(-)X +1277(-)X 1 f -935([no]install])X -1383([)X +1321(monochrome])X +1819([)X 9 f -1410(-)X +1846(-)X 1 f -1454([no]private])X -1930([)X +1890(grayscale])X +2269([)X 9 f -1957(-)X +2296(-)X 1 f -2001([no]center])X -2451([)X +2340(color])X +2580([)X 9 f -2478(-)X +2607(-)X 1 f -2522([no]title])X -2898([)X +2651([no]title])X +2984([)X 9 f -2925(-)X +3011(-)X 1 f -2969([no]date])X -3355([)X +3055([no]date])X +3398([)X 9 f -3382(-)X +3425(-)X 1 f -3426([no]locator])X +3469([no]locator])X 3901([)X 9 f 3928(-)X 1 f 3972([no]labels])X -864 1478([)N +864 1382([)N 9 f 891(-)X 1 f @@ -467,193 +453,203 @@ 1275(dpi)X 1 f 1377(])X -1441([)X +1515([)X 9 f -1468(-)X +1542(-)X 1 f -1512(dpi)X +1586(dpi)X 2 f -1634(dpi)X +1708(dpi)X 1 f -1736(])X -1800([)X +1810(])X +1948([)X 9 f -1827(-)X +1975(-)X 1 f -1871(xdpi)X +2019(xdpi)X 2 f -2033(dpi)X +2181(dpi)X 1 f -2135(])X -2199([)X +2283(])X +2421([)X 9 f -2226(-)X +2448(-)X 1 f -2270(ydpi)X +2492(ydpi)X 2 f -2432(dpi)X +2654(dpi)X 1 f -2534(])X -2598([)X +2756(])X +2894([)X 9 f -2625(-)X +2921(-)X +1 f +2965(magstep)X +2 f +3252(n)X 1 f -2669([no]quiet])X -3028([)X +(])S +3429([)X 9 f -3055(-)X +3456(-)X 1 f -3099(preload)X -2 f -3360(\256le)X +3500([no]safer])X +3928([)X +9 f +3955(-)X 1 f -3458(])X -3523([)X +3999([no]quiet])X +864 1478([)N 9 f -3550(-)X +891(-)X 1 f -3594(magstep)X +935(arguments)X 2 f -3881(n)X +1289(arguments)X 1 f -(])S -3986([)X +1627(])X +1691([)X 9 f -4013(-)X +1718(-)X 1 f -4057(portrait])X -864 1574([)N +1762([no]center])X +2157([)X 9 f -891(-)X +2184(-)X +1 f +2228(portrait])X +2529([)X +9 f +2556(-)X 1 f -935(landscape])X -1308([)X +2600(landscape])X +2982([)X 9 f -1335(-)X +3009(-)X 1 f -1379(upsidedown])X -1822([)X +3053(upsidedown])X +3505([)X 9 f -1849(-)X +3532(-)X 1 f -1893(seascape])X -2231([)X +3576(seascape])X +3923([)X 9 f -2258(-)X +3950(-)X 1 f -2302(letter])X -2523([)X +3994([no]swap])X +864 1574([)N 9 f -2550(-)X +891(-)X 1 f -2594(tabloid])X -2872([)X +935(letter])X +1162([)X 9 f -2899(-)X +1189(-)X 1 f -2943(ledger])X -3199([)X +1233(tabloid])X +1517([)X 9 f -3226(-)X +1544(-)X 1 f -3270(legal])X -3481([)X +1588(ledger])X +1851([)X 9 f -3508(-)X +1878(-)X 1 f -3552(statement])X -3914([)X +1922(legal])X +2140([)X 9 f -3941(-)X +2167(-)X 1 f -3985(executive])X -864 1670([)N +2211(statement])X +2580([)X 9 f -891(-)X +2607(-)X 1 f -935(a3])X -1077([)X +2651(executive])X +3021([)X 9 f -1104(-)X +3048(-)X 1 f -1148(a4])X -1290([)X +3092(a3])X +3230([)X 9 f -1317(-)X +3257(-)X 1 f -1361(a5])X -1503([)X +3301(a4])X +3439([)X 9 f -1530(-)X +3466(-)X 1 f -1574(b4])X -1720([)X +3510(a5])X +3647([)X 9 f -1747(-)X +3674(-)X 1 f -1791(b5])X -1937([)X +3718(b4])X +3859([)X 9 f -1964(-)X +3886(-)X 1 f -2008(folio])X -2225([)X +3930(b5])X +4071([)X 9 f -2252(-)X +4098(-)X 1 f -2296(quarto])X -2567([)X +4142(folio])X +864 1670([)N 9 f -2594(-)X +891(-)X 1 f -2638(10x14])X -2905([)X +935(quarto])X +1188([)X 9 f -2932(-)X +1215(-)X 1 f -2976(force])X -3209([)X +1259(10x14])X +1507([)X 9 f -3236(-)X +1534(-)X 1 f -3280(forceorientation])X -3860([)X +1578(force])X +1793([)X 9 f -3887(-)X +1820(-)X 1 f -3931(forcemedia])X -864 1766([)N +1864(forceorientation])X +2426([)X 9 f -891(-)X +2453(-)X 1 f -935([no]swap])X -1281([)X +2497(forcemedia])X +2908([)X 9 f -1308(-)X +2935(-)X 1 f -1352([no]openwindows])X -1978([)X +2979([no]openwindows])X +3607([)X 9 f -2005(-)X +3634(-)X 1 f -2049([no]ncdwm])X -2466([)X +3678([no]ncdwm])X +4097([)X 9 f -2493(-)X +4124(-)X 1 f -2537(page)X +4168(page)X 2 f -2709(label)X +864 1766(label)N 1 f (])S -2916([)X +1071([)X 9 f -2943(-)X +1098(-)X 2 f -2987(toolkitoption)X +1142(toolkitoption)X 1 f -3415(...])X -3542([\256lename])X +1570(...])X +1697([\256lename])X 3 f 9 s 576 1900(DESCRIPTION)N @@ -1234,25 +1230,25 @@ 2139(main)X 2319(viewport.)X 864 5392(In)N -951(the)X -1069(table)X -1245(of)X -1332(contents,)X -1639(the)X -1757(\256rst)X -1902(and)X -2039(third)X -2211(mouse)X -2441(button)X -2666(functions)X -2985(exactly)X -3238(as)X -3326(they)X -3485(do)X -3586(in)X -3669(a)X -3726(Text)X -3894(widget.)X +953(the)X +1073(table)X +1251(of)X +1340(contents,)X +1649(the)X +1769(\256rst)X +1915(and)X +2053(third)X +2226(mouse)X +2457(button)X +2683(function)X +2972(exactly)X +3226(as)X +3315(they)X +3475(do)X +3578(in)X +3663(a)X +3722(Text)X +3892(widget.)X 4173(That)X 864 5488(is)N 939(the)X @@ -1310,6 +1306,7 @@ 2 p %%Page: 2 2 +11.00 ps 10 s 10 xH 0 xS 1 f 576 384(GHOSTVIEW)N 1066(\()X @@ -1328,22 +1325,22 @@ 846(WINDOWS)X 1 f 10 s -864 864(The)N -1014(are)X -1138(several)X -1391(additional)X -1736(windows)X -2050(that)X -2195(may)X -2358(appear.)X -2639(The)X -2 f -2790(copyright)X -1 f -3123(window)X -3407(will)X -3557(appear)X -3798(whenever)X +864 864(There)N +1073(are)X +1193(several)X +1442(additional)X +1783(windows)X +2093(that)X +2234(may)X +2393(appear.)X +2669(The)X +2 f +2815(copyright)X +1 f +3143(window)X +3422(will)X +3567(appear)X +3803(whenever)X 4137(copy-)X 864 960(right)N 1042(information)X @@ -1905,6 +1902,7 @@ 3 p %%Page: 3 3 +11.00 ps 10 s 10 xH 0 xS 1 f 576 384(GHOSTVIEW)N 1066(\()X @@ -2022,19 +2020,21 @@ 3884(should)X 4124(match)X 1440 1822(the)N -1590(size)X -1767(on)X -1899(paper\).)X -2 f -2197(Ghostview)X -1 f -2587(borrows)X -2902(the)X -3053(notion)X -3310(of)X -3430(magstep)X -3750(from)X -3959(TeX.)X +1591(size)X +1769(on)X +1902(paper\).)X +2 f +2201(Ghostview)X +1 f +2592(borrows)X +2908(the)X +3059(notion)X +3316(of)X +3437(magstep)X +3758(from)X +3968(T)X +4004 1841(E)N +4043 1822(X.)N 4195(The)X 1440 1918(magni\256cation)N 1908(is)X @@ -2519,6 +2519,7 @@ 4 p %%Page: 4 4 +11.00 ps 10 s 10 xH 0 xS 1 f 576 384(GHOSTVIEW)N 1066(\()X @@ -3083,6 +3084,7 @@ 5 p %%Page: 5 5 +11.00 ps 10 s 10 xH 0 xS 1 f 576 384(GHOSTVIEW)N 1066(\()X @@ -3659,6 +3661,7 @@ 6 p %%Page: 6 6 +11.00 ps 10 s 10 xH 0 xS 1 f 576 384(GHOSTVIEW)N 1066(\()X @@ -4065,6 +4068,7 @@ 7 p %%Page: 7 7 +11.00 ps 10 s 10 xH 0 xS 1 f 576 384(GHOSTVIEW)N 1066(\()X @@ -4222,60 +4226,14 @@ 3021(is)X 3094(``true''.)X 3 f -864 3068(installStdCmap)N -1416(\()X -1 f -1443(class)X -3 f -1619(InstallStdCmap\))X -1 f -1440 3164(Tells)N -1620(whether)X -1899(to)X -1981(attempt)X -2241(to)X -2323(install)X -2538(a)X -2594(standard)X -2886(colormap.)X -3249(The)X -3394(default)X -3637(is)X -3710(``false''.)X -3 f -864 3298(privateCmap)N -1338(\()X -1 f -1365(class)X -3 f -1541(PrivateCmap\))X -1 f -1440 3394(Tells)N -1622(whether)X -1903(to)X -1987(use)X -2116(a)X -2175(standard)X -2470(colormap)X -2796(that)X -2939(is)X -3015(not)X -3140(the)X -3261(default)X -3507(colormap.)X -3873(The)X -4021(default)X -4267(is)X -1440 3490(``false''.)N -3 f -864 3624(autoCenter)N +864 3068(autoCenter)N 1272(\()X 1 f 1299(class)X 3 f 1475(AutoCenter\))X 1 f -1440 3720(Tells)N +1440 3164(Tells)N 1630(whether)X 1919(to)X 2011(center)X @@ -4289,19 +4247,19 @@ 3702(page)X 3885(size)X 4041(changes.)X -1440 3816(The)N +1440 3260(The)N 1585(default)X 1828(is)X 1901(``true''.)X 3 f -864 3950(horizonalMargin)N +864 3394(horizonalMargin)N 1466(\()X 1 f 1493(class)X 3 f 1669(Margin\))X 1 f -1440 4046(Tells)N +1440 3490(Tells)N 1623(how)X 1784(many)X 1985(pixels)X @@ -4314,7 +4272,7 @@ 3840(in)X 3926(the)X 4048(horizon-)X -1440 4142(tal)N +1440 3586(tal)N 1540(direction.)X 1885(The)X 2030(default)X @@ -4322,14 +4280,14 @@ 2467(is)X 2540(``20''.)X 3 f -864 4276(verticalMargin)N +864 3720(verticalMargin)N 1401(\()X 1 f 1428(class)X 3 f 1604(Margin\))X 1 f -1440 4372(Tells)N +1440 3816(Tells)N 1626(how)X 1790(many)X 1994(pixels)X @@ -4342,21 +4300,21 @@ 3865(in)X 3954(the)X 4079(vertical)X -1440 4468(direction.)N +1440 3912(direction.)N 1785(The)X 1930(default)X 2173(value)X 2367(is)X 2440(``44''.)X 3 f -864 4602(minimumMagstep)N +864 4046(minimumMagstep)N 1511(\()X 1 f 1538(class)X 3 f 1714(Magstep\))X 1 f -1440 4698(Tells)N +1440 4142(Tells)N 1620(the)X 1738(smallest)X 2020(magstep)X @@ -4367,14 +4325,14 @@ 3068(is)X 3141(``-5''.)X 3 f -864 4832(maximumMagstep)N +864 4276(maximumMagstep)N 1525(\()X 1 f 1552(class)X 3 f 1728(Magstep\))X 1 f -1440 4928(Tells)N +1440 4372(Tells)N 1620(the)X 1738(largest)X 1972(magstep)X @@ -4385,14 +4343,14 @@ 3020(is)X 3093(``5''.)X 3 f -864 5062(magstep)N +864 4506(magstep)N 1169(\()X 1 f 1196(class)X 3 f 1372(Magstep\))X 1 f -1440 5158(Sets)N +1440 4602(Sets)N 1593(the)X 1711(default)X 1954(magstep.)X @@ -4401,14 +4359,14 @@ 2669(is)X 2742(``0''.)X 3 f -864 5292(orientation)N +864 4736(orientation)N 1262(\()X 1 f 1289(class)X 3 f 1465(Orientation\))X 1 f -1440 5388(Sets)N +1440 4832(Sets)N 1593(the)X 1711(default)X 1954(orientation.)X @@ -4417,14 +4375,14 @@ 2749(is)X 2822(``Portrait''.)X 3 f -864 5522(page)N +864 4966(page)N 1044(\()X 1 f 1071(class)X 3 f 1247(Page\))X 1 f -1440 5618(Gives)N +1440 5062(Gives)N 1652(the)X 1775(initial)X 1986(page)X @@ -4440,7 +4398,7 @@ 3895(the)X 4019(\256le)X 4147(listed)X -1440 5714(on)N +1440 5158(on)N 1540(the)X 1658(command)X 1994(line.)X @@ -4448,33 +4406,15 @@ 2319(default)X 2562(is)X 2635(NULL.)X -576 6144(7th)N -698(Edition)X -4280(7)X - -8 p -%%Page: 8 8 -10 s 10 xH 0 xS 1 f -576 384(GHOSTVIEW)N -1066(\()X -1106(1)X -1159(\))X -1975(UNIX)X -2196(Programmer's)X -2675(Manual)X -3710(GHOSTVIEW)X -4200(\()X -4240(1)X -4293(\))X 3 f -864 768(pageMedia)N +864 5292(pageMedia)N 1262(\()X 1 f 1289(class)X 3 f 1465(PageMedia\))X 1 f -1440 864(Sets)N +1440 5388(Sets)N 1593(the)X 1711(default)X 1954(page)X @@ -4484,14 +4424,14 @@ 2770(is)X 2843(``Letter''.)X 3 f -864 998(forceOrientation)N +864 5522(forceOrientation)N 1459(\()X 1 f 1486(class)X 3 f 1662(Force\))X 1 f -1440 1094(Tells)N +1440 5618(Tells)N 1620(whether)X 1899(to)X 1981(force)X @@ -4504,15 +4444,34 @@ 3391(default)X 3634(is)X 3707(``false''.)X +576 6144(7th)N +698(Edition)X +4280(7)X + +8 p +%%Page: 8 8 +11.00 ps +10 s 10 xH 0 xS 1 f +576 384(GHOSTVIEW)N +1066(\()X +1106(1)X +1159(\))X +1975(UNIX)X +2196(Programmer's)X +2675(Manual)X +3710(GHOSTVIEW)X +4200(\()X +4240(1)X +4293(\))X 3 f -864 1228(forcePageMedia)N +864 768(forcePageMedia)N 1442(\()X 1 f 1469(class)X 3 f 1645(Force\))X 1 f -1440 1324(Tells)N +1440 864(Tells)N 1620(whether)X 1899(to)X 1981(force)X @@ -4527,14 +4486,14 @@ 3655(is)X 3728(``false''.)X 3 f -864 1458(swapLandscape)N +864 998(swapLandscape)N 1425(\()X 1 f 1452(class)X 3 f 1628(SwapLandscape\))X 1 f -1440 1554(Tells)N +1440 1094(Tells)N 1620(whether)X 1899(to)X 1981(swap)X @@ -4549,14 +4508,14 @@ 3910(is)X 3983(``false''.)X 3 f -864 1688(printCommand)N +864 1228(printCommand)N 1417(\()X 1 f 1444(class)X 3 f 1620(PrintCommand\))X 1 f -1440 1784(Sets)N +1440 1324(Sets)N 1611(the)X 1747(command)X 2101(used)X @@ -4570,7 +4529,7 @@ 3995(set)X 4122(to)X 4222(the)X -1440 1880(desired)N +1440 1420(desired)N 1700(printer)X 1942(and)X 2086(then)X @@ -4583,7 +4542,7 @@ 3595(This)X 3764(command)X 4107(should)X -1440 1976(read)N +1440 1516(read)N 1599(from)X 1775(``stdin'')X 2058(and)X @@ -4599,7 +4558,7 @@ 3854(value)X 4049(is)X 4123(``lpr'')X -1440 2072(for)N +1440 1612(for)N 1554(BSD)X 1729(and)X 1865(``lp'')X @@ -4607,14 +4566,14 @@ 2169(System)X 2424(V.)X 3 f -864 2206(printerVariable)N +864 1746(printerVariable)N 1427(\()X 1 f 1454(class)X 3 f 1630(PrinterVariable\))X 1 f -1440 2302(Gives)N +1440 1842(Gives)N 1653(the)X 1777(name)X 1978(of)X @@ -4627,7 +4586,7 @@ 3598(value)X 3799(is)X 3879(``PRINTER'')X -1440 2398(for)N +1440 1938(for)N 1554(BSD)X 1729(and)X 1865(``LPDEST'')X @@ -4635,14 +4594,14 @@ 2400(System)X 2655(V.)X 3 f -864 2532(defaultPrinter)N +864 2072(defaultPrinter)N 1374(\()X 1 f 1401(class)X 3 f 1577(DefaultPrinter\))X 1 f -1440 2628(Gives)N +1440 2168(Gives)N 1661(the)X 1793(printer)X 2041(name)X @@ -4657,19 +4616,19 @@ 3894(not)X 4031(set.)X 4195(The)X -1440 2724(default)N +1440 2264(default)N 1683(value)X 1877(is)X 1950(NULL.)X 3 f -864 2858(printPrompt)N +864 2398(printPrompt)N 1320(\()X 1 f 1347(class)X 3 f 1523(PrintPrompt\))X 1 f -1440 2954(Sets)N +1440 2494(Sets)N 1593(the)X 1711(prompt)X 1962(used)X @@ -4687,14 +4646,14 @@ 3985(Name:)X 4219(''.)X 3 f -864 3088(printFail)N +864 2628(printFail)N 1190(\()X 1 f 1217(class)X 3 f 1393(printFail\))X 1 f -1440 3184(Sets)N +1440 2724(Sets)N 1602(the)X 1729(string)X 1940(used)X @@ -4710,18 +4669,18 @@ 3860(The)X 4014(default)X 4267(is)X -1440 3280(``"lpr")N +1440 2820(``"lpr")N 1669(command)X 2005(failed.''.)X 3 f -864 3414(openPrompt)N +864 2954(openPrompt)N 1311(\()X 1 f 1338(class)X 3 f 1514(OpenPrompt\))X 1 f -1440 3510(Sets)N +1440 3050(Sets)N 1593(the)X 1711(prompt)X 1962(used)X @@ -4741,14 +4700,14 @@ 4025(File:)X 4191(''.)X 3 f -864 3644(openFail)N +864 3184(openFail)N 1181(\()X 1 f 1208(class)X 3 f 1384(OpenFail\))X 1 f -1440 3740(Sets)N +1440 3280(Sets)N 1615(the)X 1755(string)X 1979(used)X @@ -4764,19 +4723,19 @@ 3784(default)X 4050(value)X 4267(is)X -1440 3836(``Cannot)N +1440 3376(``Cannot)N 1745(open)X 1921(\256le:)X 2065(''.)X 3 f -864 3970(savePrompt)N +864 3510(savePrompt)N 1294(\()X 1 f 1321(class)X 3 f 1497(SavePrompt\))X 1 f -1440 4066(Sets)N +1440 3606(Sets)N 1593(the)X 1711(prompt)X 1962(used)X @@ -4796,14 +4755,14 @@ 3994(File:)X 4160(''.)X 3 f -864 4200(saveFail)N +864 3740(saveFail)N 1164(\()X 1 f 1191(class)X 3 f 1367(SaveFail\))X 1 f -1440 4296(Sets)N +1440 3836(Sets)N 1616(the)X 1757(string)X 1982(used)X @@ -4819,19 +4778,19 @@ 3782(default)X 4049(value)X 4267(is)X -1440 4392(``Cannot)N +1440 3932(``Cannot)N 1745(save)X 1908(\256le:)X 2052(''.)X 3 f -864 4526(openWindows)N +864 4066(openWindows)N 1367(\()X 1 f 1394(class)X 3 f 1570(OpenWindows\))X 1 f -1440 4622(OpenWindows)N +1440 4162(OpenWindows)N 1953(servers)X 2213(sometimes)X 2587(cause)X @@ -4843,7 +4802,7 @@ 3952(being)X 4163(1)X 4236(bit)X -1440 4718(deep.)N +1440 4258(deep.)N 1658(Turning)X 1942(on)X 2048(this)X @@ -4858,7 +4817,7 @@ 3710(bitmaps.)X 4028(You)X 4191(lose)X -1440 4814(the)N +1440 4354(the)N 1571(functionality)X 2013(of)X 2113(having)X @@ -4871,7 +4830,7 @@ 3834(marked)X 4108(on)X 4222(the)X -1440 4910(popup)N +1440 4450(popup)N 1660(menus.)X 1929(The)X 2074(default)X @@ -4879,14 +4838,14 @@ 2511(is)X 2584(``false''.)X 3 f -864 5044(ncdwm)N +864 4584(ncdwm)N 1133(\()X 1 f 1160(class)X 3 f 1336(Ncdwm\))X 1 f -1440 5140(The)N +1440 4680(The)N 1593(Xt)X 1701(Intrinsics)X 2027(has)X @@ -4901,7 +4860,7 @@ 3602(window)X 3889(manager)X 4195(size)X -1440 5236(hints.)N +1440 4776(hints.)N 2 f 1660(Ncdwm)X 1 f @@ -4916,7 +4875,7 @@ 3702(the)X 3824(bogus)X 4039(informa-)X -1440 5332(tion)N +1440 4872(tion)N 1591(and)X 1734(make)X 1935(the)X @@ -4934,7 +4893,7 @@ 3694(the)X 3820(bogus)X 4039(informa-)X -1440 5428(tion.)N +1440 4968(tion.)N 1633(Turning)X 1920(on)X 2029(the)X @@ -4950,7 +4909,7 @@ 3648(doing)X 3858(things)X 4081(slightly)X -1440 5524(differently.)N +1440 5064(differently.)N 1843(However,)X 2182(this)X 2321(can)X @@ -4966,7 +4925,7 @@ 3968(.)X 4033(This)X 4200(bug)X -1440 5620(is)N +1440 5160(is)N 1514(\256xed)X 1695(in)X 1777(X11R5)X @@ -4983,36 +4942,18 @@ 3750(the)X 3868(problem.)X 4195(The)X -1440 5716(default)N +1440 5256(default)N 1683(value)X 1877(is)X 1950(``false''.)X -576 6144(7th)N -698(Edition)X -4280(8)X - -9 p -%%Page: 9 9 -10 s 10 xH 0 xS 1 f -576 384(GHOSTVIEW)N -1066(\()X -1106(1)X -1159(\))X -1975(UNIX)X -2196(Programmer's)X -2675(Manual)X -3710(GHOSTVIEW)X -4200(\()X -4240(1)X -4293(\))X 3 f 9 s -576 768(GHOSTVIEW)N +576 5390(GHOSTVIEW)N 1062(WIDGET)X 1396(RESOURCES)X 1 f 10 s -864 864(Certain)N +864 5486(Certain)N 1123(resources)X 1450(in)X 1535(the)X @@ -5029,16 +4970,76 @@ 3561(resources)X 3889(are)X 4012(presented)X -864 960(below.)N +864 5582(below.)N +3 f +864 5716(arguments)N +1249(\()X +1 f +1276(class)X +3 f +1452(Arguments\))X +1 f +1440 5812(Additional)N +1802(arguments)X +2156(passed)X +2391(to)X +2474(the)X +2593(interpreter.)X +2989(It)X +3059(is)X +3133(convenient)X +3506(to)X +3589(name)X +3784(\256les)X +3938(that)X +4079(preload)X +576 6196(7th)N +698(Edition)X +4280(8)X + +9 p +%%Page: 9 9 +11.00 ps +10 s 10 xH 0 xS 1 f +576 384(GHOSTVIEW)N +1066(\()X +1106(1)X +1159(\))X +1975(UNIX)X +2196(Programmer's)X +2675(Manual)X +3710(GHOSTVIEW)X +4200(\()X +4240(1)X +4293(\))X +1440 768(fonts)N +1627(here)X +1793(for)X +1914(PostScript)X +2269(programs)X +2599(that)X +2746(continually)X +3133(reload)X +3361(fonts)X +3548(while)X +3752(rendering)X +4086(a)X +4148(page.)X +1440 864(The)N +1585(default)X +1828(is)X +1901(no)X +2001(additional)X +2341(arguments.)X 3 f -864 1094(busyCursor)N +864 998(busyCursor)N 1288(\()X 1 f 1315(class)X 3 f 1491(Cursor\))X 1 f -1440 1190(The)N +1440 1094(The)N 1586(cursor)X 1808(shown)X 2038(when)X @@ -5056,21 +5057,21 @@ 4073(is)X 4147(set)X 4258(to)X -1440 1286(the)N +1440 1190(the)N 1558(``target'')X 1869(by)X 1969(the)X 2087(application)X 2463(defaults.)X 3 f -864 1420(cursor)N +864 1324(cursor)N 1107(\()X 1 f 1134(class)X 3 f 1310(Cursor\))X 1 f -1440 1516(The)N +1440 1420(The)N 1585(cursor)X 1806(shown)X 2035(when)X @@ -5086,14 +5087,14 @@ 3539(the)X 3657(``crosshair''.)X 3 f -864 1650(interpreter)N +864 1554(interpreter)N 1264(\()X 1 f 1291(class)X 3 f 1467(Interpreter\))X 1 f -1440 1746(The)N +1440 1650(The)N 1592(name)X 1793(of)X 1887(the)X @@ -5110,7 +5111,7 @@ 3998(to)X 4088(set)X 4205(this)X -1440 1842(resource)N +1440 1746(resource)N 1734(to)X 1817(the)X 1936(path)X @@ -5126,82 +5127,94 @@ 3830(default)X 4073(value)X 4267(is)X -1440 1938(``gs''.)N +1440 1842(``gs''.)N 3 f -864 2072(preload)N -1146(\()X +864 1976(palette)N +1116(\()X 1 f -1173(class)X +1143(class)X 3 f -1349(Preload\))X +1319(Palette\))X 1 f -1440 2168(Files)N -1623(to)X -1713(load)X -1879(before)X -2113(the)X -2239(PostScript)X -2595(program.)X -2935(It)X -3012(is)X -3093(convenient)X -3474(to)X -3565(name)X -3768(\256les)X -3930(that)X -4079(preload)X -1440 2264(fonts)N -1627(here)X -1793(for)X -1914(PostScript)X -2269(programs)X -2599(that)X -2746(continually)X -3133(reload)X -3361(fonts)X -3548(while)X -3752(rendering)X -4086(a)X -4148(page.)X -1440 2360(The)N -1585(default)X -1828(is)X -1901(to)X -1983(not)X -2105(preload)X -2366(any)X -2502(\256les.)X +1440 2072(Tells)N +2 f +1620(ghostscript)X +1 f +1995(how)X +2153(to)X +2236(restrict)X +2480(the)X +2599(palette)X +2834(used)X +3002(when)X +3197(rendering.)X +3566(The)X +3712(possible)X +3995(values)X +4221(are)X +1440 2168(``color'',)N +1753 0.2692(``grayscale'',)AX +2205(and)X +2341(``monochrome''.)X +2932(The)X +3077(default)X +3320(value)X +3514(is)X +3587(``color''.)X 3 f -864 2494(quiet)N +864 2302(quiet)N 1057(\()X 1 f 1084(class)X 3 f 1260(Quiet\))X 1 f -1440 2590(Tells)N +1440 2398(Tells)N 2 f -1643(ghostscript)X +1645(ghostscript)X 1 f -2041(whether)X -2343(to)X -2448(produce)X -2750(informational)X -3229(messages.)X -3615(The)X -3783(default)X -4049(value)X +2045(whether)X +2349(to)X +2456(supress)X +2737(informational)X +3218(messages.)X +3607(The)X +3778(default)X +4047(value)X 4267(is)X -1440 2686(``false''.)N +1440 2494(``true''.)N +3 f +864 2628(safer)N +1054(\()X +1 f +1081(class)X +3 f +1257(Safer\))X +1 f +1440 2724(Tells)N +2 f +1620(ghostscript)X +1 f +1995(whether)X +2274(to)X +2356(run)X +2483(in)X +2565 0.3906(``safer'')AX +2850(mode.)X +3088(The)X +3233(default)X +3476(value)X +3670(is)X +3743(``true''.)X 3 f -864 2820(useBackingPixmap)N +864 2858(useBackingPixmap)N 1536(\()X 1 f 1563(class)X 3 f 1739(UseBackingPixmap\))X 1 f -1440 2916(Tells)N +1440 2954(Tells)N 1642(whether)X 1943(to)X 2047(use)X @@ -5216,7 +5229,7 @@ 3771(backing)X 4068(store)X 4267(is)X -1440 3012(requested)N +1440 3050(requested)N 1777(on)X 1886(the)X 2013(Ghostview)X @@ -5229,7 +5242,7 @@ 3705(resources)X 4037(for)X 4159(large)X -1440 3108(pixmaps.)N +1440 3146(pixmaps.)N 1777(Also,)X 1974(some)X 2169(X)X @@ -5244,7 +5257,7 @@ 3847(a)X 3910(backing)X 4191(pix-)X -1440 3204(map.)N +1440 3242(map.)N 1649(You)X 1818(should)X 2062(reset)X @@ -5261,21 +5274,21 @@ 3728(server)X 3956(types)X 4155(men-)X -1440 3300(tioned.)N +1440 3338(tioned.)N 1700(The)X 1845(default)X 2088(value)X 2282(is)X 2355(``true''.)X 3 f -864 3434(xdpi)N +864 3472(xdpi)N 1034(\()X 1 f 1061(class)X 3 f 1237(Resolution\))X 1 f -1440 3530(Sets)N +1440 3568(Sets)N 1595(the)X 1715(X)X 1795(resolution)X @@ -5293,7 +5306,7 @@ 3755(resource)X 4051(to)X 4136(affect)X -1440 3626(the)N +1440 3664(the)N 1567(main)X 1756(window.)X 2083(Zoom)X @@ -5308,7 +5321,7 @@ 3729(the)X 3855(program.)X 4195(The)X -1440 3722(default)N +1440 3760(default)N 1683(value)X 1877(is)X 1950(calculated)X @@ -5317,14 +5330,14 @@ 2590(screen)X 2816(metrics.)X 3 f -864 3856(ydpi)N +864 3894(ydpi)N 1034(\()X 1 f 1061(class)X 3 f 1237(Resolution\))X 1 f -1440 3952(Sets)N +1440 3990(Sets)N 1595(the)X 1715(Y)X 1795(resolution)X @@ -5342,7 +5355,7 @@ 3755(resource)X 4051(to)X 4136(affect)X -1440 4048(the)N +1440 4086(the)N 1567(main)X 1756(window.)X 2083(Zoom)X @@ -5357,7 +5370,7 @@ 3729(the)X 3855(program.)X 4195(The)X -1440 4144(default)N +1440 4182(default)N 1683(value)X 1877(is)X 1950(calculated)X @@ -5367,16 +5380,16 @@ 2816(metrics.)X 3 f 9 s -576 4278(GHOSTVIEW)N +576 4316(GHOSTVIEW)N 1062(WIDGET)X 1396(ACTIONS)X 10 s -864 4374(notify\(width)N +864 4412(notify\(width)N 1306(height)X 1539(xdpi)X 1709(ydpi\))X 1 f -1440 4470(The)N +1440 4508(The)N 1594(notify)X 1814(event)X 2018(is)X @@ -5391,7 +5404,7 @@ 3766(and)X 3912(popup)X 4142(zoom)X -1440 4566(windows.)N +1440 4604(windows.)N 1797(If)X 1879(the)X 2004(width)X @@ -5408,14 +5421,14 @@ 3609(locator.)X 3899(Otherwise,)X 4276(it)X -1440 4662(triggers)N +1440 4700(triggers)N 1711(a)X 1773(popup)X 1999(zoom)X 2203(window.)X 2527(The)X 2678(default)X -2927(widht)X +2927(width)X 3135(and)X 3277(height)X 3503(are)X @@ -5423,7 +5436,7 @@ 3776(The)X 3928(default)X 4178(xdpi)X -1440 4758(and)N +1440 4796(and)N 1580(ydpi)X 1746(are)X 1869(300.)X @@ -5441,7 +5454,7 @@ 3723(omitted.)X 4030(The)X 4178(xdpi)X -1440 4854(will)N +1440 4892(will)N 1584(default)X 1827(to)X 1909(the)X @@ -5453,13 +5466,13 @@ 2611(omitted.)X 3 f 9 s -576 4988(OPTIONS)N +576 5026(OPTIONS)N 10 s 9 f -864 5084(-)N +864 5122(-)N 866(-)X 3 f -910(staticgray)X +910(monochrome)X 1 f 1440(Equivalent)X 1807(to)X @@ -5468,11 +5481,11 @@ 9 f 2176(*)X 1 f -(Visual:)S -2467(StaticGray''.)X +(Ghostview.palette:)S +2839(Monochrome''.)X 3 f 9 f -864 5218(-)N +864 5256(-)N 866(-)X 3 f 910(grayscale)X @@ -5484,14 +5497,14 @@ 9 f 2176(*)X 1 f -(Visual:)S -2467(GrayScale''.)X +(Ghostview.palette:)S +2839(GrayScale''.)X 3 f 9 f -864 5352(-)N +864 5390(-)N 866(-)X 3 f -910(staticcolor)X +910(color)X 1 f 1440(Equivalent)X 1807(to)X @@ -5500,46 +5513,39 @@ 9 f 2176(*)X 1 f -(Visual:)S -2467(StaticColor''.)X +(Ghostview.palette:)S +2839(Color''.)X 3 f 9 f -864 5486(-)N +864 5524(-)N 866(-)X 3 f -910(pseudocolor)X +910(title)X 1 f 1440(Equivalent)X 1807(to)X 1889(setting)X -2122(``)X -9 f -2176(*)X -1 f -(Visual:)S -2467(PseudoColor''.)X +2122(``Ghostview.showTitle:)X +2905(True''.)X 3 f 9 f -864 5620(-)N +864 5658(-)N 866(-)X 3 f -910(truecolor)X +910(notitle)X 1 f 1440(Equivalent)X 1807(to)X 1889(setting)X -2122(``)X -9 f -2176(*)X -1 f -(Visual:)S -2467(TrueColor''.)X +2122(``Ghostview.showTitle:)X +2905(False''.)X 576 6144(7th)N 698(Edition)X 4280(9)X 10 p %%Page: 10 10 +11.00 ps 10 s 10 xH 0 xS 1 f 576 384(GHOSTVIEW)N 1066(\()X @@ -5557,207 +5563,180 @@ 864 768(-)N 866(-)X 3 f -910(directcolor)X +910(date)X 1 f 1440(Equivalent)X 1807(to)X 1889(setting)X -2122(``)X -9 f -2176(*)X -1 f -(Visual:)S -2467(DirectColor''.)X +2122(``Ghostview.showDate:)X +2906(True''.)X 3 f 9 f 864 902(-)N 866(-)X 3 f -910(install)X +910(nodate)X 1 f 1440(Equivalent)X 1807(to)X 1889(setting)X -2122(``Ghostview.installStdCmap:)X -3077(True''.)X +2122(``Ghostview.showDate:)X +2906(False''.)X 3 f 9 f 864 1036(-)N 866(-)X 3 f -910(noinstall)X +910(locator)X 1 f 1440(Equivalent)X 1807(to)X 1889(setting)X -2122(``Ghostview.installStdCmap:)X -3077(False''.)X +2122(``Ghostview.showLocator:)X +3004(True''.)X 3 f 9 f 864 1170(-)N 866(-)X 3 f -910(private)X +910(nolocator)X 1 f 1440(Equivalent)X 1807(to)X 1889(setting)X -2122(``Ghostview.privateCmap:)X -2999(True''.)X +2122(``Ghostview.showLocator:)X +3004(False''.)X 3 f 9 f 864 1304(-)N 866(-)X 3 f -910(noprivate)X +910(labels)X 1 f 1440(Equivalent)X 1807(to)X 1889(setting)X -2122(``Ghostview.privateCmap:)X -2999(False''.)X +2122(``Ghostview.Labels:)X +2799(True''.)X 3 f 9 f 864 1438(-)N 866(-)X 3 f -910(center)X +910(nolabels)X 1 f 1440(Equivalent)X 1807(to)X 1889(setting)X -2122(``Ghostview.autoCenter:)X -2937(True''.)X +2122(``Ghostview.Labels:)X +2799(False''.)X 3 f 9 f 864 1572(-)N 866(-)X 3 f -910(nocenter)X +910(resolution)X +2 f +1272(dpi)X 1 f 1440(Equivalent)X 1807(to)X 1889(setting)X -2122(``Ghostview.autoCenter:)X -2937(False''.)X -3 f +2122(``)X 9 f -864 1706(-)N -866(-)X -3 f -910(title)X +2176(*)X 1 f -1440(Equivalent)X -1807(to)X -1889(setting)X -2122(``Ghostview.showTitle:)X -2905(True''.)X -3 f -9 f -864 1840(-)N -866(-)X -3 f -910(notitle)X +(Ghostview.Resolution:)S +2 f +2971(dpi)X 1 f -1440(Equivalent)X -1807(to)X -1889(setting)X -2122(``Ghostview.showTitle:)X -2905(False''.)X +3073(''.)X 3 f 9 f -864 1974(-)N +864 1706(-)N 866(-)X 3 f -910(date)X +910(dpi)X +2 f +1040(dpi)X 1 f 1440(Equivalent)X 1807(to)X 1889(setting)X -2122(``Ghostview.showDate:)X -2906(True''.)X -3 f +2122(``)X 9 f -864 2108(-)N -866(-)X -3 f -910(nodate)X +2176(*)X 1 f -1440(Equivalent)X -1807(to)X -1889(setting)X -2122(``Ghostview.showDate:)X -2906(False''.)X +(Ghostview.Resolution:)S +2 f +2971(dpi)X +1 f +3073(''.)X 3 f 9 f -864 2242(-)N +864 1840(-)N 866(-)X 3 f -910(locator)X +910(xdpi)X +2 f +1080(dpi)X 1 f 1440(Equivalent)X 1807(to)X 1889(setting)X -2122(``Ghostview.showLocator:)X -3004(True''.)X -3 f +2122(``)X 9 f -864 2376(-)N -866(-)X -3 f -910(nolocator)X +2176(*)X 1 f -1440(Equivalent)X -1807(to)X -1889(setting)X -2122(``Ghostview.showLocator:)X -3004(False''.)X +(Ghostview.xdpi:)S +2 f +2767(dpi)X +1 f +2869(''.)X 3 f 9 f -864 2510(-)N +864 1974(-)N 866(-)X 3 f -910(labels)X +910(ydpi)X +2 f +1080(dpi)X 1 f 1440(Equivalent)X 1807(to)X 1889(setting)X -2122(``Ghostview.Labels:)X -2799(True''.)X -3 f +2122(``)X 9 f -864 2644(-)N -866(-)X -3 f -910(nolabels)X +2176(*)X 1 f -1440(Equivalent)X -1807(to)X -1889(setting)X -2122(``Ghostview.Labels:)X -2799(False''.)X +(Ghostview.ydpi:)S +2 f +2767(dpi)X +1 f +2869(''.)X 3 f 9 f -864 2778(-)N +864 2108(-)N 866(-)X 3 f -910(quiet)X +910(magstep)X +2 f +1215(magstep)X 1 f -1440(Equivalent)X +1440 2204(Equivalent)N 1807(to)X 1889(setting)X -2122(``)X -9 f -2176(*)X +2122(``Ghostview.magstep:)X +2 f +2852(magstep)X 1 f -(Ghostview.quiet:)S -2785(True''.)X +3119(''.)X 3 f 9 f -864 2912(-)N +864 2338(-)N 866(-)X 3 f -910(noquiet)X +910(safer)X 1 f 1440(Equivalent)X 1807(to)X @@ -5766,16 +5745,14 @@ 9 f 2176(*)X 1 f -(Ghostview.quiet:)S -2785(False''.)X +(Ghostview.safer:)S +2782(True''.)X 3 f 9 f -864 3046(-)N +864 2472(-)N 866(-)X 3 f -910(preload)X -2 f -1192(\256le)X +910(nosafer)X 1 f 1440(Equivalent)X 1807(to)X @@ -5784,19 +5761,14 @@ 9 f 2176(*)X 1 f -(Ghostview.preload:)S -2 f -2866(\256le)X -1 f -2964(''.)X +(Ghostview.safer:)S +2782(False''.)X 3 f 9 f -864 3180(-)N +864 2606(-)N 866(-)X 3 f -910(xdpi)X -2 f -1080(dpi)X +910(quiet)X 1 f 1440(Equivalent)X 1807(to)X @@ -5805,19 +5777,14 @@ 9 f 2176(*)X 1 f -(Ghostview.xdpi:)S -2 f -2767(dpi)X -1 f -2869(''.)X +(Ghostview.quiet:)S +2785(True''.)X 3 f 9 f -864 3314(-)N +864 2740(-)N 866(-)X 3 f -910(ydpi)X -2 f -1080(dpi)X +910(noquiet)X 1 f 1440(Equivalent)X 1807(to)X @@ -5826,73 +5793,56 @@ 9 f 2176(*)X 1 f -(Ghostview.ydpi:)S -2 f -2767(dpi)X -1 f -2869(''.)X +(Ghostview.quiet:)S +2785(False''.)X 3 f 9 f -864 3448(-)N +864 2874(-)N 866(-)X 3 f -910(resolution)X +910(arguments)X 2 f -1272(dpi)X +1295(arguments)X 1 f -1440(Equivalent)X +1440 2970(Equivalent)N 1807(to)X 1889(setting)X 2122(``)X 9 f 2176(*)X 1 f -(Ghostview.Resolution:)S +(Ghostview.arguments:)S 2 f -2971(dpi)X +2959(arguments)X 1 f -3073(''.)X +3297(''.)X 3 f 9 f -864 3582(-)N +864 3104(-)N 866(-)X 3 f -910(dpi)X -2 f -1040(dpi)X +910(center)X 1 f 1440(Equivalent)X 1807(to)X 1889(setting)X -2122(``)X -9 f -2176(*)X -1 f -(Ghostview.Resolution:)S -2 f -2971(dpi)X -1 f -3073(''.)X +2122(``Ghostview.autoCenter:)X +2937(True''.)X 3 f 9 f -864 3716(-)N +864 3238(-)N 866(-)X 3 f -910(magstep)X -2 f -1215(magstep)X +910(nocenter)X 1 f -1440 3812(Equivalent)N +1440(Equivalent)X 1807(to)X 1889(setting)X -2122(``Ghostview.magstep:)X -2 f -2852(magstep)X -1 f -3119(''.)X +2122(``Ghostview.autoCenter:)X +2937(False''.)X 3 f 9 f -864 3946(-)N +864 3372(-)N 866(-)X 3 f 910(portrait)X @@ -5904,7 +5854,7 @@ 2932(Portrait''.)X 3 f 9 f -864 4080(-)N +864 3506(-)N 866(-)X 3 f 910(landscape)X @@ -5916,7 +5866,7 @@ 2932(Landscape''.)X 3 f 9 f -864 4214(-)N +864 3640(-)N 866(-)X 3 f 910(upsidedown)X @@ -5932,7 +5882,7 @@ 3203(down''.)X 3 f 9 f -864 4348(-)N +864 3774(-)N 866(-)X 3 f 910(seascape)X @@ -5944,36 +5894,31 @@ 2932(Seascape''.)X 3 f 9 f -864 4482(-)N +864 3908(-)N 866(-)X 3 f -910(forceorientation)X +910(swap)X 1 f -1440 4578(Equivalent)N +1440(Equivalent)X 1807(to)X 1889(setting)X -2122 0.1161(``Ghostview.forceOrientation:)AX -3116(True''.)X +2122 0.1400(``Ghostview.swapLandscape:)AX +3094(True''.)X 3 f 9 f -864 4712(-)N +864 4042(-)N 866(-)X 3 f -910(page)X -2 f -1090(label)X +910(noswap)X 1 f 1440(Equivalent)X 1807(to)X 1889(setting)X -2122(``Ghostview.page:)X -2 f -2737(label)X -1 f -(''.)S +2122 0.1400(``Ghostview.swapLandscape:)AX +3094(False''.)X 3 f 9 f -864 4846(-)N +864 4176(-)N 866(-)X 3 f 910(letter)X @@ -5985,7 +5930,7 @@ 2942(Letter''.)X 3 f 9 f -864 4980(-)N +864 4310(-)N 866(-)X 3 f 910(tabloid)X @@ -5997,7 +5942,7 @@ 2942(Tabloid''.)X 3 f 9 f -864 5114(-)N +864 4444(-)N 866(-)X 3 f 910(ledger)X @@ -6009,7 +5954,7 @@ 2942(Ledger''.)X 3 f 9 f -864 5248(-)N +864 4578(-)N 866(-)X 3 f 910(legal)X @@ -6021,7 +5966,7 @@ 2942(Legal''.)X 3 f 9 f -864 5382(-)N +864 4712(-)N 866(-)X 3 f 910(statement)X @@ -6033,7 +5978,7 @@ 2942(Statement''.)X 3 f 9 f -864 5516(-)N +864 4846(-)N 866(-)X 3 f 910(executive)X @@ -6045,7 +5990,7 @@ 2942(Executive''.)X 3 f 9 f -864 5650(-)N +864 4980(-)N 866(-)X 3 f 910(a3)X @@ -6055,27 +6000,9 @@ 1889(setting)X 2122(``Ghostview.pageMedia:)X 2942(A3''.)X -576 6144(7th)N -698(Edition)X -4240(10)X - -11 p -%%Page: 11 11 -10 s 10 xH 0 xS 1 f -576 384(GHOSTVIEW)N -1066(\()X -1106(1)X -1159(\))X -1975(UNIX)X -2196(Programmer's)X -2675(Manual)X -3710(GHOSTVIEW)X -4200(\()X -4240(1)X -4293(\))X 3 f 9 f -864 768(-)N +864 5114(-)N 866(-)X 3 f 910(a4)X @@ -6087,7 +6014,7 @@ 2942(A4''.)X 3 f 9 f -864 902(-)N +864 5248(-)N 866(-)X 3 f 910(a5)X @@ -6099,7 +6026,7 @@ 2942(A5''.)X 3 f 9 f -864 1036(-)N +864 5382(-)N 866(-)X 3 f 910(b4)X @@ -6111,7 +6038,7 @@ 2942(B4''.)X 3 f 9 f -864 1170(-)N +864 5516(-)N 866(-)X 3 f 910(b5)X @@ -6123,7 +6050,7 @@ 2942(B5''.)X 3 f 9 f -864 1304(-)N +864 5650(-)N 866(-)X 3 f 910(folio)X @@ -6133,9 +6060,28 @@ 1889(setting)X 2122(``Ghostview.pageMedia:)X 2942(Folio''.)X +576 6144(7th)N +698(Edition)X +4240(10)X + +11 p +%%Page: 11 11 +11.00 ps +10 s 10 xH 0 xS 1 f +576 384(GHOSTVIEW)N +1066(\()X +1106(1)X +1159(\))X +1975(UNIX)X +2196(Programmer's)X +2675(Manual)X +3710(GHOSTVIEW)X +4200(\()X +4240(1)X +4293(\))X 3 f 9 f -864 1438(-)N +864 768(-)N 866(-)X 3 f 910(quarto)X @@ -6147,7 +6093,7 @@ 2942(Quarto''.)X 3 f 9 f -864 1572(-)N +864 902(-)N 866(-)X 3 f 910(10x14)X @@ -6159,19 +6105,7 @@ 2942(10x14''.)X 3 f 9 f -864 1706(-)N -866(-)X -3 f -910(forcemedia)X -1 f -1440(Equivalent)X -1807(to)X -1889(setting)X -2122 0.1442(``Ghostview.forcePageMedia:)AX -3112(True''.)X -3 f -9 f -864 1840(-)N +864 1036(-)N 866(-)X 3 f 910(force)X @@ -6183,31 +6117,31 @@ 2768(True''.)X 3 f 9 f -864 1974(-)N +864 1170(-)N 866(-)X 3 f -910(swap)X +910(forceorientation)X 1 f -1440(Equivalent)X +1440 1266(Equivalent)N 1807(to)X 1889(setting)X -2122 0.1400(``Ghostview.swapLandscape:)AX -3094(True''.)X +2122 0.1161(``Ghostview.forceOrientation:)AX +3116(True''.)X 3 f 9 f -864 2108(-)N +864 1400(-)N 866(-)X 3 f -910(noswap)X +910(forcemedia)X 1 f 1440(Equivalent)X 1807(to)X 1889(setting)X -2122 0.1400(``Ghostview.swapLandscape:)AX -3094(False''.)X +2122 0.1442(``Ghostview.forcePageMedia:)AX +3112(True''.)X 3 f 9 f -864 2242(-)N +864 1534(-)N 866(-)X 3 f 910(openwindows)X @@ -6219,19 +6153,19 @@ 3048(True''.)X 3 f 9 f -864 2376(-)N +864 1668(-)N 866(-)X 3 f 910(noopenwindows)X 1 f -1440 2472(Equivalent)N +1440 1764(Equivalent)N 1807(to)X 1889(setting)X 2122(``Ghostview.openWindows:)X 3048(False''.)X 3 f 9 f -864 2606(-)N +864 1898(-)N 866(-)X 3 f 910(ncdwm)X @@ -6243,7 +6177,7 @@ 2821(True''.)X 3 f 9 f -864 2740(-)N +864 2032(-)N 866(-)X 3 f 910(noncdwm)X @@ -6254,82 +6188,112 @@ 2122(``Ghostview.ncdwm:)X 2821(False''.)X 3 f +9 f +864 2166(-)N +866(-)X +3 f +910(page)X +2 f +1090(label)X +1 f +1440(Equivalent)X +1807(to)X +1889(setting)X +2122(``Ghostview.page:)X +2 f +2737(label)X +1 f +(''.)S +3 f 9 s -576 2874(WIDGET)N +576 2300(WIDGET)N 910(HIERARCHY)X 2 f 10 s -864 2970(The)N +864 2396(The)N 1004(hierarchy)X 1336(of)X 1418(the)X 1536(ghostview)X 1876(application:)X 1 f -864 3162(Ghostview)N +864 2588(Ghostview)N 1251(ghostview)X -1152 3258(Form)N +1152 2684(Form)N 1365(form)X -1440 3354(MenuButton)N +1440 2780(MenuButton)N 1884(titleButton)X -1728 3450(SimpleMenu)N +1728 2876(SimpleMenu)N 2181(menu)X -2016 3546(SmeBSB)N +2016 2972(SmeBSB)N 2348(title)X -1440 3642(MenuButton)N +1440 3068(MenuButton)N 1884(dateButton)X -1728 3738(SimpleMenu)N +1728 3164(SimpleMenu)N 2181(menu)X -2016 3834(SmeBSB)N +2016 3260(SmeBSB)N 2348(date)X -1440 3930(Label)N +1440 3356(Label)N 1663(locator)X -1440 4026(Box)N +1440 3452(Box)N 1613(box)X -1728 4122(MenuButton)N +1728 3548(MenuButton)N 2172(\256leButton)X -2016 4218(SimpleMenu)N +2016 3644(SimpleMenu)N 2469(menu)X -2304 4314(SmeBSB)N +2304 3740(SmeBSB)N 2636(open)X -2304 4410(SmeBSB)N +2304 3836(SmeBSB)N 2636(reopen)X -2304 4506(SmeBSB)N +2304 3932(SmeBSB)N 2636(printwhole)X -2304 4602(SmeBSB)N +2304 4028(SmeBSB)N 2636(printmarked)X -2304 4698(SmeBSB)N +2304 4124(SmeBSB)N 2636(save)X -2304 4794(SmeLine)N +2304 4220(SmeLine)N 2633(line)X -2304 4890(SmeBSB)N +2304 4316(SmeBSB)N 2636(copyright)X -2304 4986(SmeBSB)N +2304 4412(SmeBSB)N 2636(quit)X -1728 5082(MenuButton)N +1728 4508(MenuButton)N 2172(pageButton)X -2016 5178(SimpleMenu)N +2016 4604(SimpleMenu)N 2469(menu)X -2304 5274(SmeBSB)N +2304 4700(SmeBSB)N 2636(next)X -2304 5370(SmeBSB)N +2304 4796(SmeBSB)N 2636(show)X -2304 5466(SmeBSB)N +2304 4892(SmeBSB)N 2636(prev)X -2304 5562(SmeLine)N +2304 4988(SmeLine)N 2633(line)X -2304 5658(SmeBSB)N +2304 5084(SmeBSB)N 2636(center)X -2304 5754(SmeLine)N +2304 5180(SmeLine)N 2633(line)X -2304 5850(SmeBSB)N +2304 5276(SmeBSB)N 2636(mark)X -576 6234(7th)N +2304 5372(SmeBSB)N +2636(unmark)X +1728 5468(MenuButton)N +2172(magstepButton)X +2016 5564(SimpleMenu)N +2469(menu)X +2304 5660(SmeBSB)N +2636(-5)X +2304 5756(SmeBSB)N +2636(-4)X +2304 5852(SmeBSB)N +2636(-3)X +576 6236(7th)N 698(Edition)X 4240(11)X 12 p %%Page: 12 12 +11.00 ps 10 s 10 xH 0 xS 1 f 576 384(GHOSTVIEW)N 1066(\()X @@ -6343,117 +6307,118 @@ 4240(1)X 4293(\))X 2304 768(SmeBSB)N -2636(unmark)X -1728 864(MenuButton)N -2172(magstepButton)X -2016 960(SimpleMenu)N -2469(menu)X -2304 1056(SmeBSB)N -2636(-5)X -2304 1152(SmeBSB)N -2636(-4)X -2304 1248(SmeBSB)N -2636(-3)X -2304 1344(SmeBSB)N 2636(-2)X -2304 1440(SmeBSB)N +2304 864(SmeBSB)N 2636(-1)X -2304 1536(SmeBSB)N +2304 960(SmeBSB)N 2636(0)X -2304 1632(SmeBSB)N +2304 1056(SmeBSB)N 2636(1)X -2304 1728(SmeBSB)N +2304 1152(SmeBSB)N 2636(2)X -2304 1824(SmeBSB)N +2304 1248(SmeBSB)N 2636(3)X -2304 1920(SmeBSB)N +2304 1344(SmeBSB)N 2636(4)X -2304 2016(SmeBSB)N +2304 1440(SmeBSB)N 2636(5)X -1728 2112(MenuButton)N +1728 1536(MenuButton)N 2172(orientationButton)X -2016 2208(SimpleMenu)N +2016 1632(SimpleMenu)N 2469(menu)X -2304 2304(SmeBSB)N +2304 1728(SmeBSB)N 2636(portrait)X -2304 2400(SmeBSB)N +2304 1824(SmeBSB)N 2636(landscape)X -2304 2496(SmeBSB)N +2304 1920(SmeBSB)N 2636(upsidedown)X -2304 2592(SmeBSB)N +2304 2016(SmeBSB)N 2636(seascape)X -2304 2688(SmeLine)N +2304 2112(SmeLine)N 2633(line)X -2304 2784(SmeBSB)N +2304 2208(SmeBSB)N 2636(swap)X -1728 2880(MenuButton)N +1728 2304(MenuButton)N 2172(pagemediaButton)X -2016 2976(SimpleMenu)N +2016 2400(SimpleMenu)N 2469(menu)X -2304 3072(SmeBSB)N +2304 2496(SmeBSB)N 2636(Letter)X -2304 3168(SmeBSB)N +2304 2592(SmeBSB)N 2636(Tabloid)X -2304 3264(SmeBSB)N +2304 2688(SmeBSB)N 2636(Ledger)X -2304 3360(SmeBSB)N +2304 2784(SmeBSB)N 2636(Legal)X -2304 3456(SmeBSB)N +2304 2880(SmeBSB)N 2636(Statement)X -2304 3552(SmeBSB)N +2304 2976(SmeBSB)N 2636(Executive)X -2304 3648(SmeBSB)N +2304 3072(SmeBSB)N 2636(A3)X -2304 3744(SmeBSB)N +2304 3168(SmeBSB)N 2636(A4)X -2304 3840(SmeBSB)N +2304 3264(SmeBSB)N 2636(A5)X -2304 3936(SmeBSB)N +2304 3360(SmeBSB)N 2636(B4)X -2304 4032(SmeBSB)N +2304 3456(SmeBSB)N 2636(B5)X -2304 4128(SmeBSB)N +2304 3552(SmeBSB)N 2636(Folio)X -2304 4224(SmeBSB)N +2304 3648(SmeBSB)N 2636(Quarto)X -2304 4320(SmeBSB)N +2304 3744(SmeBSB)N 2636(10x14)X -1440 4416(Text)N +1440 3840(Text)N 1627(toc)X -1440 4512(Viewport)N +1440 3936(Viewport)N 1783(pageview)X -1728 4608(Core)N +1728 4032(Core)N 1924(clip)X -1728 4704(Ghostview)N +1728 4128(Ghostview)N 2115(page)X -1728 4800(Scrollbar)N +1728 4224(Scrollbar)N 2062(horizontal)X -1728 4896(Scrollbar)N +1728 4320(Scrollbar)N 2062(vertical)X -1152 4992(TopLevelShell)N +1152 4416(TopLevelShell)N 1668(information)X -1440 5088(Form)N +1440 4512(Form)N 1653(form)X -1728 5184(Text)N +1728 4608(Text)N 1915(text)X -1728 5280(Command)N +1728 4704(Command)N 2101(dismiss)X -1152 5376(TopLevelShell)N +1152 4800(TopLevelShell)N 1668(copyright)X -1440 5472(Form)N +1440 4896(Form)N 1653(form)X -1728 5568(Text)N +1728 4992(Text)N 1915(text)X -1728 5664(Command)N +1728 5088(Command)N 2101(dismiss)X -1152 5760(TransientShell)N +1152 5184(TransientShell)N 1659(popup)X +1440 5280(Form)N +1653(dialog)X +1728 5376(Label)N +1951(prompt)X +1728 5472(Text)N +1915(response)X +1728 5568(Command)N +2101(okay)X +1728 5664(Command)N +2101(cancel)X +1152 5760(TopLevelShell)N +1668(zoom)X 576 6144(7th)N 698(Edition)X 4240(12)X 13 p %%Page: 13 13 +11.00 ps 10 s 10 xH 0 xS 1 f 576 384(GHOSTVIEW)N 1066(\()X @@ -6467,25 +6432,13 @@ 4240(1)X 4293(\))X 1440 768(Form)N -1653(dialog)X -1728 864(Label)N -1951(prompt)X -1728 960(Text)N -1915(response)X -1728 1056(Command)N -2101(okay)X -1728 1152(Command)N -2101(cancel)X -1152 1248(TopLevelShell)N -1668(zoom)X -1440 1344(Form)N 1653(form)X -1728 1440(Ghostview)N +1728 864(Ghostview)N 2115(page)X -1728 1536(Command)N +1728 960(Command)N 2101(dismiss)X 2 f -864 1728(The)N +864 1152(The)N 1004(hierarchy)X 1336(of)X 1418(the)X @@ -6494,43 +6447,43 @@ 1897(dialog)X 2121(box:)X 1 f -864 1920(TransientShell)N +864 1344(TransientShell)N 1371(selFile)X -1152 2016(Form)N +1152 1440(Form)N 1365(selFileForm)X -1440 2112(Label)N +1440 1536(Label)N 1663(selFilePrompt)X -1440 2208(Text)N +1440 1632(Text)N 1627(selFileField)X -1440 2304(Scrollbar)N +1440 1728(Scrollbar)N 1774(selFileHScroll)X -1440 2400(Composite)N +1440 1824(Composite)N 1826(selFileList1)X -1728 2496(Scrollbar)N +1728 1920(Scrollbar)N 2062(selFileVScroll)X -1728 2592(Scrollbar)N +1728 2016(Scrollbar)N 2062(selFileHScroll)X -1440 2688(Composite)N +1440 2112(Composite)N 1826(selFileList2)X -1728 2784(Scrollbar)N +1728 2208(Scrollbar)N 2062(selFileVScroll)X -1728 2880(Scrollbar)N +1728 2304(Scrollbar)N 2062(selFileHScroll)X -1440 2976(Composite)N +1440 2400(Composite)N 1826(selFileList3)X -1728 3072(Scrollbar)N +1728 2496(Scrollbar)N 2062(selFileVScroll)X -1728 3168(Scrollbar)N +1728 2592(Scrollbar)N 2062(selFileHScroll)X -1440 3264(Command)N +1440 2688(Command)N 1813(selFileOK)X -1440 3360(Command)N +1440 2784(Command)N 1813(selFileCancel)X 3 f 9 s -576 3494(ENVIRONMENT)N +576 2918(ENVIRONMENT)N 10 s -864 3590(LPDEST)N +864 3014(LPDEST)N 1 f 1440(The)X 1585(LPDEST)X @@ -6545,7 +6498,7 @@ 3857(System)X 4112(V.)X 3 f -864 3724(PRINTER)N +864 3148(PRINTER)N 1 f 1440(The)X 1585(PRINTER)X @@ -6560,10 +6513,10 @@ 3897(BSD.)X 3 f 9 s -576 3858(LIMITATIONS)N +576 3282(LIMITATIONS)N 1 f 10 s -864 3954(If)N +864 3378(If)N 947(the)X 1074(document)X 1419(does)X @@ -6587,7 +6540,7 @@ 3784(to)X 3876(the)X 4004(document)X -864 4050(structuring)N +864 3474(structuring)N 1232(convention.)X 1649(When)X 1861(these)X @@ -6603,7 +6556,7 @@ 3939(is)X 4012(limited)X 4258(to)X -864 4146(giving)N +864 3570(giving)N 1094(you)X 1240(scroll)X 1444(bars)X @@ -6621,14 +6574,14 @@ 3481(contents,)X 3795(skipping)X 4097(around)X -864 4242(the)N +864 3666(the)N 982(document)X 1318(and)X 1454(marking)X 1741(pages)X 1944(is)X 2017(impossible.)X -864 4376(If)N +864 3800(If)N 938(there)X 1119(is)X 1192(no)X @@ -6650,10 +6603,10 @@ 4082(page.)X 3 f 9 s -576 4510(BUGS)N +576 3934(BUGS)N 1 f 10 s -864 4606(If)N +864 4030(If)N 938(you)X 1078(\256nd)X 1222(a)X @@ -6667,16 +6620,16 @@ 2316(ghostview@cs.wisc.edu.)X 3 f 9 s -576 4740(AUTHOR)N +576 4164(AUTHOR)N 1 f 10 s -864 4836(Copyright)N +864 4260(Copyright)N 1208(\(C\))X 1335(1992)X 1535(Timothy)X 1830(O.)X 1928(Theisen)X -864 4970(This)N +864 4394(This)N 1027(program)X 1320(is)X 1394(free)X @@ -6695,7 +6648,7 @@ 3749(the)X 3869(GNU)X 4065(General)X -864 5066(Public)N +864 4490(Public)N 1094(License)X 1370(as)X 1463(published)X @@ -6713,11 +6666,11 @@ 3971(or)X 4063(\(at)X 4173(your)X -864 5162(option\))N +864 4586(option\))N 1115(any)X 1251(later)X 1414(version.)X -864 5296(This)N +864 4720(This)N 1029(program)X 1324(is)X 1400(distributed)X @@ -6734,7 +6687,7 @@ 3369(ANY)X 3567(WARRANTY;)X 4076(without)X -864 5392(even)N +864 4816(even)N 1050(the)X 1182(implied)X 1460(warranty)X @@ -6746,7 +6699,7 @@ 3324(A)X 3415(PARTICULAR)X 3950(PURPOSE.)X -864 5488(See)N +864 4912(See)N 1000(the)X 1118(GNU)X 1312(General)X @@ -6755,7 +6708,7 @@ 2081(for)X 2195(more)X 2380(details.)X -864 5622(You)N +864 5046(You)N 1022(should)X 1255(have)X 1427(received)X @@ -6774,7 +6727,7 @@ 3942(if)X 4012(not,)X 4155(write)X -864 5718(to)N +864 5142(to)N 946(the)X 1064(Free)X 1227(Software)X @@ -6787,36 +6740,18 @@ 3003(MA)X 3152(02139,)X 3392(USA.)X -576 6144(7th)N -698(Edition)X -4240(13)X - -14 p -%%Page: 14 14 -10 s 10 xH 0 xS 1 f -576 384(GHOSTVIEW)N -1066(\()X -1106(1)X -1159(\))X -1975(UNIX)X -2196(Programmer's)X -2675(Manual)X -3710(GHOSTVIEW)X -4200(\()X -4240(1)X -4293(\))X -864 768(Author:)N +864 5334(Author:)N 1440(Tim)X 1593(Theisen)X 2592(Systems)X 2878(Programmer)X -864 864(Internet:)N +864 5430(Internet:)N 1440(tim@cs.wisc.edu)X 2592(Department)X 2991(of)X 3078(Computer)X 3418(Sciences)X -864 960(UUCP:)N +864 5526(UUCP:)N 1440(uwvax!tim)X 2592(University)X 2950(of)X @@ -6825,7 +6760,7 @@ 3375(-)X 1 f 3419(Madison)X -864 1056(Phone:)N +864 5622(Phone:)N 1440(\(608\)262)X 9 f 1734(-)X @@ -6835,7 +6770,7 @@ 2772(West)X 2957(Dayton)X 3213(Street)X -864 1152(FAX:)N +864 5718(FAX:)N 1440(\(608\)262)X 9 f 1734(-)X @@ -6844,12 +6779,31 @@ 2592(Madison,)X 2912(WI)X 3075(53706)X +576 6144(7th)N +698(Edition)X +4240(13)X + +14 p +%%Page: 14 14 +11.00 ps +10 s 10 xH 0 xS 1 f +576 384(GHOSTVIEW)N +1066(\()X +1106(1)X +1159(\))X +1975(UNIX)X +2196(Programmer's)X +2675(Manual)X +3710(GHOSTVIEW)X +4200(\()X +4240(1)X +4293(\))X 3 f 9 s -576 1286(ACKNOWLEDGEMENTS)N +576 768(ACKNOWLEDGEMENTS)N 1 f 10 s -864 1382(The)N +864 864(The)N 1009(Select)X 1225(File)X 1369(widget)X @@ -6858,7 +6812,7 @@ 2012(following)X 2343(copyright)X 2670(notice:)X -864 1516(Copyright)N +864 998(Copyright)N 1208(1989)X 1388(Software)X 1698(Research)X @@ -6866,7 +6820,7 @@ 2396(Inc.,)X 2559(Tokyo,)X 2808(Japan)X -864 1650(Permission)N +864 1132(Permission)N 1247(to)X 1337(use,)X 1492(copy,)X @@ -6882,7 +6836,7 @@ 3776(any)X 3921(purpose)X 4204(and)X -864 1746(without)N +864 1228(without)N 1134(fee)X 1259(is)X 1338(hereby)X @@ -6900,7 +6854,7 @@ 3890(and)X 4032(that)X 4178(both)X -864 1842(that)N +864 1324(that)N 1008(copyright)X 1339(notice)X 1559(and)X @@ -6916,7 +6870,7 @@ 3931(the)X 4054(name)X 4253(of)X -864 1938(Software)N +864 1420(Software)N 1191(Research)X 1523(Associates)X 1903(not)X @@ -6931,7 +6885,7 @@ 3715(distribution)X 4119(of)X 4222(the)X -864 2034(software)N +864 1516(software)N 1170(without)X 1443(speci\256c,)X 1737(written)X @@ -6943,7 +6897,7 @@ 3617(makes)X 3852(no)X 3962(representa-)X -864 2130(tions)N +864 1612(tions)N 1040(about)X 1239(the)X 1358(suitability)X @@ -6962,8 +6916,8 @@ 3728(express)X 3989(or)X 4076(implied)X -864 2226(warranty.)N -864 2360(SOFTWARE)N +864 1708(warranty.)N +864 1842(SOFTWARE)N 1315(RESEARCH)X 1753(ASSOCIATES)X 2258(DISCLAIMS)X @@ -6973,7 +6927,7 @@ 3664(REGARD)X 4014(TO)X 4142(THIS)X -864 2456(SOFTWARE,)N +864 1938(SOFTWARE,)N 1337(INCLUDING)X 1805(ALL)X 1983(IMPLIED)X @@ -6982,7 +6936,7 @@ 2999(MERCHANTABILITY)X 3790(AND)X 3985(FITNESS,)X -864 2552(IN)N +864 2034(IN)N 980(NO)X 1127(EVENT)X 1421(SHALL)X @@ -6994,7 +6948,7 @@ 3584(FOR)X 3770(ANY)X 3976(SPECIAL,)X -864 2648(INDIRECT)N +864 2130(INDIRECT)N 1267(OR)X 1407(CONSEQUENTIAL)X 2104(DAMAGES)X @@ -7003,7 +6957,7 @@ 2871(DAMAGES)X 3295(WHATSOEVER)X 3875(RESULTING)X -864 2744(FROM)N +864 2226(FROM)N 1118(LOSS)X 1341(OF)X 1471(USE,)X @@ -7017,7 +6971,7 @@ 3441(OF)X 3572(CONTRACT,)X 4052(NEGLI-)X -864 2840(GENCE)N +864 2322(GENCE)N 1152(OR)X 1284(OTHER)X 1572(TORTIOUS)X @@ -7031,24 +6985,24 @@ 3763(WITH)X 3993(THE)X 4169(USE)X -864 2936(OR)N +864 2418(OR)N 995(PERFORMANCE)X 1605(OF)X 1727(THIS)X 1925(SOFTWARE.)X -864 3128(Author:)N +864 2610(Author:)N 1440(Erik)X 1598(M.)X 1709(van)X 1845(der)X 1968(Poel)X -1440 3224(Software)N +1440 2706(Software)N 1750(Research)X 2065(Associates,)X 2448(Inc.,)X 2611(Tokyo,)X 2860(Japan)X -1440 3320(erik@sra.co.jp)N +1440 2802(erik@sra.co.jp)N 576 6144(7th)N 698(Edition)X 4240(14)X @@ -7056,5 +7010,8 @@ 14 p %%Trailer xt +%%Pages: 14 +%%DocumentNeededResources: font Times-Roman Times-Italic Times-Bold +%%+ Times-BoldItalic Helvetica Helvetica-Bold Courier Courier-Bold Symbol xs diff -Nu ghostview-1.4.1/gs.interface ghostview-1.5/gs.interface --- ghostview-1.4.1/gs.interface Sat Jan 18 20:57:44 1992 +++ ghostview-1.5/gs.interface Fri Jul 23 21:29:12 1993 @@ -8,7 +8,7 @@ Drawing on a Window The GHOSTVIEW environment variable contains the window id of the target -window. The window id is an integer. Ghostview will use the attributes +window. The window id is an integer. Ghostscript will use the attributes of the window to obtain the width, height, colormap, screen, and visual of the window. The remainder of the information is gotten from the GHOSTVIEW property on that window. @@ -17,11 +17,11 @@ Drawing on a Pixmap The GHOSTVIEW environment variable contains a window id and a pixmap id. -They are integers separated by white space. Ghostview will use the attributes -of the window to obtain the colormap, screen, and visual to use. The -remainder of the information, including the width and height of the pixmap, -is gotten from the GHOSTVIEW property on the window. In this case, the -property is deleted when read. +They are integers separated by white space. Ghostscript will use the +attributes of the window to obtain the colormap, screen, and visual to use. +The width and height will be obtained from the pixmap. The remainder of the +information, is gotten from the GHOSTVIEW property on the window. In this +case, the property is deleted when read. The GHOSTVIEW environment variable @@ -47,14 +47,10 @@ parameters: - Drawing on a window: bpixmap orient llx lly urx ury xdpi ydpi [left bottom top right] - Drawing on a pixmap: - bpixmap orient llx lly urx ury xdpi ydpi left bottom top right width height +scanf format: "%d %d %d %d %d %d %f %f %d %d %d %d" -scanf format: "%d %d %d %d %d %d %f %f %d %d %d %d %d %d" - explanation of parameters: bpixmap: pixmap id of the backing pixmap for the window. If no @@ -72,7 +68,7 @@ other parameters, but not without roundoff error. These values are included to avoid this error.) - left, bottom, top, right: (optional when drawing on a window) + left, bottom, top, right: (optional) Margins around the window. The margins extend the imageable area beyond the boundaries of the window. This is primarily used for popup zoom windows. I have encountered several @@ -80,10 +76,6 @@ with respect to the imageable area. The margins are specified in PostScript points. If omitted, the margins are assumed to be 0. - - width, height: (Only specified when drawing on Pixmap) - The width and height of the pixmap. (Too bad that we can't - just query the server.) Events from ghostscript diff -Nu ghostview-1.4.1/gv.h ghostview-1.5/gv.h --- ghostview-1.4.1/gv.h Thu Oct 1 14:14:26 1992 +++ ghostview-1.5/gv.h Fri Jul 23 21:29:12 1993 @@ -41,9 +41,6 @@ Boolean show_title; /* whether to show title */ Boolean show_date; /* whether to show date */ Boolean show_locator; /* whether to show locator */ - Boolean install_std_cmap; /* whether to install standard colormap */ - Boolean retain_std_cmap; /* whether to retain standard colormap */ - Boolean private_cmap; /* whether to use private colormap */ Boolean auto_center; /* whether to automatically center the page */ int wm_horiz_margin; /* Space taken by window manager */ int wm_vert_margin; /* Space taken by window manager */ @@ -101,10 +98,6 @@ extern time_t mtime; extern struct document *doc; extern struct document *olddoc; -extern Colormap cmap; -extern Boolean special_cmap; -extern Pixel white; -extern Pixel black; extern Atom wm_delete_window; extern int catch_Xerror(); extern XErrorHandler old_Xerror; @@ -239,7 +232,6 @@ extern void show_page(); extern Boolean setup_ghostview(); extern void layout_ghostview(); -extern void SetStandardColormap(); extern void magnify(); extern String open_file(); extern String save_file(); diff -Nu ghostview-1.4.1/main.c ghostview-1.5/main.c --- ghostview-1.4.1/main.c Mon Nov 2 17:12:40 1992 +++ ghostview-1.5/main.c Fri Jul 23 21:29:12 1993 @@ -55,7 +55,7 @@ extern char *getenv(); -static String version = "Ghostview, version 1.4.1"; +static String version = "Ghostview, version 1.5"; static XtResource resources[] = { {"showTitle", "Labels", XtRBoolean, sizeof(Boolean), @@ -64,13 +64,6 @@ XtOffsetOf(AppResources, show_date), XtRImmediate, (XtPointer)True}, {"showLocator", "Labels", XtRBoolean, sizeof(Boolean), XtOffsetOf(AppResources, show_locator), XtRImmediate, (XtPointer)True}, - {"installStdCmap", "InstallStdCmap", XtRBoolean, sizeof(Boolean), - XtOffsetOf(AppResources, install_std_cmap), XtRImmediate, - (XtPointer)False}, - {"retainStdCmap", "RetainStdCmap", XtRBoolean, sizeof(Boolean), - XtOffsetOf(AppResources, retain_std_cmap), XtRImmediate, (XtPointer)True}, - {"privateCmap", "PrivateCmap", XtRBoolean, sizeof(Boolean), - XtOffsetOf(AppResources, private_cmap), XtRImmediate, (XtPointer)False}, {"autoCenter", "AutoCenter", XtRBoolean, sizeof(Boolean), XtOffsetOf(AppResources, auto_center), XtRImmediate, (XtPointer)True}, {"horizontalMargin", "Margin", XtRInt, sizeof(int), @@ -139,12 +132,9 @@ }; static XrmOptionDescRec options[] = { - {"-staticgray", "*Visual", XrmoptionNoArg, "StaticGray"}, - {"-grayscale", "*Visual", XrmoptionNoArg, "GrayScale"}, - {"-staticcolor", "*Visual", XrmoptionNoArg, "StaticColor"}, - {"-pseudocolor", "*Visual", XrmoptionNoArg, "PseudoColor"}, - {"-truecolor", "*Visual", XrmoptionNoArg, "TrueColor"}, - {"-directcolor", "*Visual", XrmoptionNoArg, "DirectColor"}, + {"-monochrome", "*Ghostview.palette", XrmoptionNoArg, "Monochrome"}, + {"-grayscale", "*Ghostview.palette", XrmoptionNoArg, "Grayscale"}, + {"-color", "*Ghostview.palette", XrmoptionNoArg, "Color"}, {"-page", ".page", XrmoptionSepArg, NULL}, {"-title", ".showTitle", XrmoptionNoArg, "True"}, {"-notitle", ".showTitle", XrmoptionNoArg, "False"}, @@ -156,15 +146,11 @@ {"-nocenter", ".autoCenter", XrmoptionNoArg, "False"}, {"-labels", ".Labels", XrmoptionNoArg, "True"}, {"-nolabels", ".Labels", XrmoptionNoArg, "False"}, - {"-install", ".installStdCmap", XrmoptionNoArg, "True"}, - {"-noinstall", ".installStdCmap", XrmoptionNoArg, "False"}, - {"-retain", ".retainStdCmap", XrmoptionNoArg, "True"}, - {"-noretain", ".retainStdCmap", XrmoptionNoArg, "False"}, - {"-private", ".privateCmap", XrmoptionNoArg, "True"}, - {"-noprivate", ".privateCmap", XrmoptionNoArg, "False"}, {"-quiet", "*Ghostview.quiet", XrmoptionNoArg, "True"}, {"-noquiet", "*Ghostview.quiet", XrmoptionNoArg, "False"}, - {"-preload", "*Ghostview.preload", XrmoptionSepArg, NULL}, + {"-safer", "*Ghostview.safer", XrmoptionNoArg, "True"}, + {"-nosafer", "*Ghostview.safer", XrmoptionNoArg, "False"}, + {"-arguments", "*Ghostview.arguments", XrmoptionSepArg, NULL}, {"-xdpi", "*Ghostview.xdpi", XrmoptionSepArg, NULL}, {"-ydpi", "*Ghostview.ydpi", XrmoptionSepArg, NULL}, {"-dpi", "*Ghostview.Resolution", XrmoptionSepArg, NULL}, @@ -297,10 +283,6 @@ time_t mtime; /* last modified time of input file */ struct document *doc; /* document structure */ struct document *olddoc; /* document structure */ -Colormap cmap; /* colormap being used */ -Boolean special_cmap; /* Is cmap not the Default Colormap */ -Pixel white; /* white pixel in above colormap */ -Pixel black; /* black pixel in above colormap */ Atom wm_delete_window; /* Atom sent to destroy a window */ XErrorHandler old_Xerror; /* standard error handler */ Boolean dying; /* whether an X error caused our exit */ @@ -430,7 +412,6 @@ XtGetApplicationResources(toplevel, (XtPointer) &app_res, resources, XtNumber(resources), NULL, ZERO); if (s1 = getenv(app_res.printer_variable)) app_res.default_printer = s1; - SetStandardColormap(toplevel); /* Open Windows sometimes hands me a bad bitmap */ if (app_res.openwindows) { @@ -448,26 +429,13 @@ } /* Instantiate Popup children */ - num_args = 0; - XtSetArg(args[num_args], XtNcolormap, cmap); num_args++; - if (special_cmap) { - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } infopopup = XtCreatePopupShell("information", topLevelShellWidgetClass, - toplevel, args, num_args); + toplevel, NULL, ZERO); - num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } infoform = XtCreateManagedWidget("form", formWidgetClass, - infopopup, args, num_args); + infopopup, NULL, ZERO); num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } XtSetArg(args[num_args], XtNtop, XtChainTop); num_args++; XtSetArg(args[num_args], XtNbottom, XtChainBottom); num_args++; XtSetArg(args[num_args], XtNleft, XtChainLeft); num_args++; @@ -481,10 +449,6 @@ infoform, args, num_args); num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } XtSetArg(args[num_args], XtNfromVert, infotext); num_args++; XtSetArg(args[num_args], XtNtop, XtChainBottom); num_args++; XtSetArg(args[num_args], XtNbottom, XtChainBottom); num_args++; @@ -512,26 +476,13 @@ XtRealizeWidget(infopopup); XSetWMProtocols(dpy, XtWindow(infopopup), &wm_delete_window, 1); - num_args = 0; - XtSetArg(args[num_args], XtNcolormap, cmap); num_args++; - if (special_cmap) { - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } copyrightpopup = XtCreatePopupShell("copyright", topLevelShellWidgetClass, - toplevel, args, num_args); + toplevel, NULL, ZERO); - num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } copyrightform = XtCreateManagedWidget("form", formWidgetClass, - copyrightpopup, args, num_args); + copyrightpopup, NULL, ZERO); num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } XtSetArg(args[num_args], XtNtop, XtChainTop); num_args++; XtSetArg(args[num_args], XtNbottom, XtChainBottom); num_args++; XtSetArg(args[num_args], XtNleft, XtChainLeft); num_args++; @@ -548,10 +499,6 @@ copyrightform, args, num_args); num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } XtSetArg(args[num_args], XtNfromVert, copyrighttext); num_args++; XtSetArg(args[num_args], XtNtop, XtChainBottom); num_args++; @@ -581,13 +528,8 @@ XtRealizeWidget(copyrightpopup); XSetWMProtocols(dpy, XtWindow(copyrightpopup), &wm_delete_window, 1); - num_args = 0; - XtSetArg(args[num_args], XtNcolormap, cmap); num_args++; - if (special_cmap) { - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } dialogpopup = XtCreatePopupShell("popup", transientShellWidgetClass, - toplevel, args, num_args); + toplevel, NULL, ZERO); dialog = CreateDialog(dialogpopup, "dialog", okay, dismiss); XtRealizeWidget(dialogpopup); @@ -596,22 +538,14 @@ /* Instantiate Widgets */ - num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } form = XtCreateManagedWidget("form", formWidgetClass, - toplevel, args, num_args); + toplevel, NULL, ZERO); above_toc = NULL; left_of_page = NULL; set_vert_dist = False; if (app_res.show_title) { num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } XtSetArg(args[num_args], XtNfromVert, above_toc);num_args++; XtSetArg(args[num_args], XtNtop, XtChainTop); num_args++; XtSetArg(args[num_args], XtNbottom, XtChainTop);num_args++; @@ -631,10 +565,6 @@ if (app_res.show_date) { num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } XtSetArg(args[num_args], XtNfromVert, above_toc);num_args++; if (set_vert_dist) { XtSetArg(args[num_args], XtNvertDistance, 0);num_args++; @@ -656,10 +586,6 @@ if (app_res.show_locator) { num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } XtSetArg(args[num_args], XtNfromVert, above_toc);num_args++; if (set_vert_dist) { XtSetArg(args[num_args], XtNvertDistance, 0);num_args++; @@ -679,9 +605,6 @@ } num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } XtSetArg(args[num_args], XtNfromVert, above_toc); num_args++; XtSetArg(args[num_args], XtNtop, XtChainTop); num_args++; XtSetArg(args[num_args], XtNbottom, XtChainTop); num_args++; @@ -691,299 +614,140 @@ XtSetArg(args[num_args], XtNallowVert, True); num_args++; box = XtCreateManagedWidget("box", boxWidgetClass, form, args, num_args); - num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } - XtSetArg(args[num_args], XtNresize, False); num_args++; + XtSetArg(args[0], XtNresize, False); filebutton = XtCreateManagedWidget("fileButton", menuButtonWidgetClass, - box, args, num_args); + box, args, ONE); - num_args = 0; - XtSetArg(args[num_args], XtNcolormap, cmap); num_args++; - if (special_cmap) { - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } filemenu = XtCreatePopupShell("menu", simpleMenuWidgetClass, - filebutton, args, num_args); + filebutton, NULL, ZERO); - num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } openbutton = XtCreateManagedWidget("open", smeBSBObjectClass, - filemenu, args, num_args); + filemenu, NULL, ZERO); XtAddCallback(openbutton, XtNcallback, popup_dialog, (XtPointer)OPEN); - num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } reopenbutton = XtCreateManagedWidget("reopen", smeBSBObjectClass, - filemenu, args, num_args); + filemenu, NULL, ZERO); XtAddCallback(reopenbutton, XtNcallback, reopen_file, (XtPointer)NULL); - num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } printwholebutton = XtCreateManagedWidget("printwhole", smeBSBObjectClass, - filemenu, args, num_args); + filemenu, NULL, ZERO); XtAddCallback(printwholebutton, XtNcallback, popup_dialog, (XtPointer)PRINT_WHOLE); - num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } printmarkedbutton = XtCreateManagedWidget("printmarked", smeBSBObjectClass, - filemenu, args, num_args); + filemenu, NULL, ZERO); XtAddCallback(printmarkedbutton, XtNcallback, popup_dialog, (XtPointer)PRINT_MARKED); - num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } savebutton = XtCreateManagedWidget("save", smeBSBObjectClass, - filemenu, args, num_args); + filemenu, NULL, ZERO); XtAddCallback(savebutton, XtNcallback, popup_dialog, (XtPointer)SAVE); - num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } line = XtCreateManagedWidget("line", smeLineObjectClass, - filemenu, args, num_args); + filemenu, NULL, ZERO); - num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } copyrightbutton = XtCreateManagedWidget("copyright", smeBSBObjectClass, - filemenu, args, num_args); + filemenu, NULL, ZERO); XtAddCallback(copyrightbutton, XtNcallback, popup, (XtPointer)copyrightpopup); - num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } quitbutton = XtCreateManagedWidget("quit", smeBSBObjectClass, - filemenu, args, num_args); + filemenu, NULL, ZERO); XtAddCallback(quitbutton, XtNcallback, quit_ghostview, (XtPointer)0); - num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } - XtSetArg(args[num_args], XtNresize, False); num_args++; + XtSetArg(args[0], XtNresize, False); pagebutton = XtCreateManagedWidget("pageButton", menuButtonWidgetClass, - box, args, num_args); + box, args, 1); - num_args = 0; - XtSetArg(args[num_args], XtNcolormap, cmap); num_args++; - if (special_cmap) { - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } pagemenu = XtCreatePopupShell("menu", simpleMenuWidgetClass, - pagebutton, args, num_args); + pagebutton, NULL, ZERO); - num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } nextbutton = XtCreateManagedWidget("next", smeBSBObjectClass, - pagemenu, args, num_args); + pagemenu, NULL, ZERO); XtAddCallback(nextbutton, XtNcallback, next_page, (XtPointer)0); - num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } showbutton = XtCreateManagedWidget("show", smeBSBObjectClass, - pagemenu, args, num_args); + pagemenu, NULL, ZERO); XtAddCallback(showbutton, XtNcallback, this_page, (XtPointer)0); - num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } prevbutton = XtCreateManagedWidget("prev", smeBSBObjectClass, - pagemenu, args, num_args); + pagemenu, NULL, ZERO); XtAddCallback(prevbutton, XtNcallback, prev_page, (XtPointer)0); - num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } line = XtCreateManagedWidget("line", smeLineObjectClass, - pagemenu, args, num_args); + pagemenu, NULL, ZERO); - num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } centerbutton = XtCreateManagedWidget("center", smeBSBObjectClass, - pagemenu, args, num_args); + pagemenu, NULL, ZERO); XtAddCallback(centerbutton, XtNcallback, center_page, (XtPointer)0); - num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } line = XtCreateManagedWidget("line", smeLineObjectClass, - pagemenu, args, num_args); + pagemenu, NULL, ZERO); - num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } markbutton = XtCreateManagedWidget("mark", smeBSBObjectClass, - pagemenu, args, num_args); + pagemenu, NULL, ZERO); XtAddCallback(markbutton, XtNcallback, mark_page, (XtPointer)0); - num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } unmarkbutton = XtCreateManagedWidget("unmark", smeBSBObjectClass, - pagemenu, args, num_args); + pagemenu, NULL, ZERO); XtAddCallback(unmarkbutton, XtNcallback, unmark_page, (XtPointer)0); - num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } - XtSetArg(args[num_args], XtNresize, False); num_args++; + XtSetArg(args[0], XtNresize, False); magstepbutton = XtCreateManagedWidget("magstepButton", menuButtonWidgetClass, - box, args, num_args); + box, args, ONE); - num_args = 0; - XtSetArg(args[num_args], XtNcolormap, cmap); num_args++; - if (special_cmap) { - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } magstepmenu = XtCreatePopupShell("menu", simpleMenuWidgetClass, - magstepbutton, args, num_args); + magstepbutton, NULL, ZERO); magstepentry = (Widget *) XtMalloc( (app_res.maximum_magstep - app_res.minimum_magstep + 1) * sizeof(Widget)); + XtSetArg(args[0], XtNleftMargin, 20); for (i = app_res.minimum_magstep; i <= app_res.maximum_magstep; i++) { char buf[16]; sprintf(buf, "%d", i); - num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } - XtSetArg(args[num_args], XtNleftMargin, 20); num_args++; magstepentry[i-app_res.minimum_magstep] = XtCreateManagedWidget(buf, smeBSBObjectClass, - magstepmenu, args, num_args); + magstepmenu, args, 1); XtAddCallback(magstepentry[i-app_res.minimum_magstep], XtNcallback, set_magstep, (XtPointer)i); } - num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } - XtSetArg(args[num_args], XtNresize, False); num_args++; + XtSetArg(args[0], XtNresize, False); orientationbutton = XtCreateManagedWidget("orientationButton", menuButtonWidgetClass, - box, args, num_args); + box, args, ONE); - num_args = 0; - XtSetArg(args[num_args], XtNcolormap, cmap); num_args++; - if (special_cmap) { - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } orientationmenu = XtCreatePopupShell("menu", simpleMenuWidgetClass, - orientationbutton, args, num_args); + orientationbutton, NULL, ZERO); - num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } - XtSetArg(args[num_args], XtNleftMargin, 20); num_args++; + XtSetArg(args[0], XtNleftMargin, 20); portraitbutton = XtCreateManagedWidget("portrait", smeBSBObjectClass, - orientationmenu, args, num_args); + orientationmenu, args, ONE); XtAddCallback(portraitbutton, XtNcallback, set_orientation, (XtPointer)XtPageOrientationPortrait); - num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } - XtSetArg(args[num_args], XtNleftMargin, 20); num_args++; landscapebutton = XtCreateManagedWidget("landscape", smeBSBObjectClass, - orientationmenu, args, num_args); + orientationmenu, args, ONE); XtAddCallback(landscapebutton, XtNcallback, set_orientation, (XtPointer)XtPageOrientationLandscape); - num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } - XtSetArg(args[num_args], XtNleftMargin, 20); num_args++; upsidedownbutton = XtCreateManagedWidget("upsidedown", smeBSBObjectClass, - orientationmenu, args, num_args); + orientationmenu, args, ONE); XtAddCallback(upsidedownbutton, XtNcallback, set_orientation, (XtPointer)XtPageOrientationUpsideDown); - num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } - XtSetArg(args[num_args], XtNleftMargin, 20); num_args++; seascapebutton = XtCreateManagedWidget("seascape", smeBSBObjectClass, - orientationmenu, args, num_args); + orientationmenu, args, ONE); XtAddCallback(seascapebutton, XtNcallback, set_orientation, (XtPointer)XtPageOrientationSeascape); - num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } line = XtCreateManagedWidget("line", smeLineObjectClass, - orientationmenu, args, num_args); + orientationmenu, NULL, ZERO); - num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } - XtSetArg(args[num_args], XtNleftMargin, 20); num_args++; swapbutton = XtCreateManagedWidget("swap", smeBSBObjectClass, - orientationmenu, args, num_args); + orientationmenu, args, ONE); XtAddCallback(swapbutton, XtNcallback, swap_landscape, (XtPointer)0); if (app_res.swap_landscape) { @@ -1001,15 +765,10 @@ XtFree(s2); } - num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } - XtSetArg(args[num_args], XtNresize, False); num_args++; + XtSetArg(args[0], XtNresize, False); pagemediabutton = XtCreateManagedWidget("pagemediaButton", menuButtonWidgetClass, - box, args, num_args); + box, args, ONE); default_pagemedia = 0; for (i = 0; papersizes[i].name; i++) { @@ -1044,10 +803,6 @@ XtSetValues(pagemediabutton, args, ONE); num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNforeground, black); num_args++; - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } XtSetArg(args[num_args], XtNfromVert, above_toc); num_args++; XtSetArg(args[num_args], XtNfromHoriz, box); num_args++; XtSetArg(args[num_args], XtNtop, XtChainTop); num_args++; @@ -1066,9 +821,6 @@ if (!left_of_page) left_of_page = toc; num_args = 0; - if (special_cmap) { - XtSetArg(args[num_args], XtNbackground, white); num_args++; - } XtSetArg(args[num_args], XtNfromHoriz, left_of_page);num_args++; XtSetArg(args[num_args], XtNtop, XtChainTop); num_args++; XtSetArg(args[num_args], XtNbottom, XtChainBottom); num_args++; @@ -1080,10 +832,8 @@ pageview = XtCreateManagedWidget("pageview", viewportWidgetClass, form, args, num_args); - num_args = 0; - XtSetArg(args[num_args], XtNbackground, white); num_args++; page = XtCreateManagedWidget("page", ghostviewWidgetClass, - pageview, args, num_args); + pageview, NULL, ZERO); num_ghosts++; XtAddCallback(page, XtNcallback, track_and_zoom, (XtPointer)0); XtAddCallback(page, XtNdestroyCallback, destroy_ghost, (XtPointer)page); @@ -1143,21 +893,19 @@ XtDestroyApplicationContext(app_con); fprintf(stderr, "Usage: %s\n", call); fprintf(stderr, - " [-staticgray] [-grayscale] [-staticcolor]\n"); - fprintf(stderr, - " [-pseudocolor] [-truecolor] [-directcolor]\n"); + " [-monochrome] [-grayscale] [-color]\n"); fprintf(stderr, - " [-[no]install] [-[no]private] [-[no]center]\n"); - fprintf(stderr, " [-[no]title] [-[no]date] [-[no]locator] [-[no]labels]\n"); fprintf(stderr, " [-resolution ] [-dpi ]\n"); fprintf(stderr, - " [-xdpi ] [-ydpi ]\n"); + " [-xdpi ] [-ydpi ] [-magstep ]\n"); + fprintf(stderr, + " [-[no]safer] [-[no]quiet] [-arguments ]\n"); fprintf(stderr, - " [-[no]quiet] [-preload ] [-magstep ]\n"); + " [-[no]center]\n"); fprintf(stderr, - " [-portrait] [-landscape] [-upsidedown] [-seascape]\n"); + " [-portrait] [-landscape] [-upsidedown] [-seascape] [-[no]swap]\n"); fprintf(stderr, " [-letter] [-tabloid] [-ledger] [-legal] [-statement]\n"); fprintf(stderr, @@ -1167,7 +915,7 @@ fprintf(stderr, " [-force] [-forceorientation] [-forcemedia]\n"); fprintf(stderr, - " [-[no]swap] [-[no]openwindows] [-[no]ncdwm]\n"); + " [-[no]openwindows] [-[no]ncdwm]\n"); fprintf(stderr, " [-page