home *** CD-ROM | disk | FTP | other *** search
/ swCHIP 1991 January / swCHIP_95-1.bin / utility / gsview13 / src / gvpm.rc < prev    next >
Text File  |  1995-12-09  |  28KB  |  768 lines

  1. /* Copyright (C) 1993, 1994, 1995, Russell Lang.  All rights reserved.
  2.   
  3.   This file is part of GSview.
  4.   
  5.   This program is distributed with NO WARRANTY OF ANY KIND.  No author
  6.   or distributor accepts any responsibility for the consequences of using it,
  7.   or for whether it serves any particular purpose or works at all, unless he
  8.   or she says so in writing.  Refer to the GSview Free Public Licence 
  9.   (the "Licence") for full details.
  10.   
  11.   Every copy of GSview must include a copy of the Licence, normally in a 
  12.   plain ASCII text file named LICENCE.  The Licence grants you the right 
  13.   to copy, modify and redistribute GSview, but only under certain conditions 
  14.   described in the Licence.  Among other things, the Licence requires that 
  15.   the copyright notice and this notice be preserved on all copies.
  16. */
  17.  
  18. /* gvpm.rc */
  19. /* Resources for PM GSview */
  20.  
  21. #include <os2.h>
  22. #include "gvcrc.h"
  23.  
  24. #ifndef ES_ANY    /* emx08g doesn't define this */
  25. #define ES_ANY 0x00000000L
  26. #endif
  27.  
  28. POINTER ID_GSVIEW "binary/gvpm.ico"
  29. POINTER IDP_CROSSHAIR  "binary/gvpcross.ptr"
  30.  
  31. DLGTEMPLATE IDD_ABOUT 
  32. BEGIN
  33.     DIALOG "About PM GSview", IDD_ABOUT, 24, 12, 328, 154, FS_DLGBORDER | WS_VISIBLE | WS_CLIPSIBLINGS | WS_SAVEBITS, FCF_SYSMENU | FCF_TITLEBAR
  34.     BEGIN
  35.         ICON ID_GSVIEW, ID_GSVIEW, 8, 132, 20, 16, WS_GROUP
  36.         DEFPUSHBUTTON "OK", DID_OK, 276, 134, 40, 14
  37.         LTEXT "GVPM.EXE", -1, 32, 140, 64, 8
  38.         RTEXT "Version:", -1, 92, 140, 36, 8
  39.         CONTROL "", ABOUT_VERSION, 130, 140, 128, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE
  40.         LTEXT "A Ghostscript graphical interface", -1, 32, 132, 160, 8
  41.         LTEXT "Copyright (C) 1993, 1994, 1995, Russell Lang.  All rights reserved.", -1, 8, 120, 316, 8
  42.         LTEXT "Portions Copyright (C) 1994, Timothy O. Theisen.  All rights reserved.", -1, 8, 112, 316, 8
  43.         LTEXT "This program is distributed with NO WARRANTY OF ANY KIND.", -1, 8, 104, 316, 8
  44.         LTEXT "No author or distributor accepts any responsibility for the", -1, 8, 96, 316, 8
  45.         LTEXT "consequences of using it, or for whether it serves any particular", -1, 8, 88, 316, 8
  46.         LTEXT "purpose or works at all, unless he or she says so in writing.  Refer", -1, 8, 80, 316, 8
  47.         LTEXT "to the GSview Free Public Licence (the 'Licence') for full details.", -1, 8, 72, 316, 8
  48.         LTEXT "Every copy of GSview must include a copy of the Licence, normally", -1, 8, 60, 316, 8
  49.         LTEXT "in a plain ASCII text file named LICENCE.  The Licence grants you", -1, 8, 52, 316, 8
  50.         LTEXT "the right to copy, modify and redistribute GSview, but only under", -1, 8, 44, 316, 8
  51.         LTEXT "certain conditions described in the Licence.  Among other things,", -1, 8, 36, 316, 8
  52.         LTEXT "the Licence requires that the copyright notice and this notice be", -1, 8, 28, 316, 8
  53.         LTEXT "preserved on all copies.", -1, 8, 20, 316, 8
  54.         LTEXT "Author: Russell Lang  (rjl@aladdin.com)", -1, 8, 8, 224, 8
  55.     END
  56. END
  57.  
  58. MENU ID_GSVIEW 
  59. BEGIN
  60.     SUBMENU "~File", IDM_FILEMENU
  61.     BEGIN
  62.         MENUITEM "~Open...\tO", IDM_OPEN
  63.         MENUITEM "~Select File...\tS", IDM_SELECT
  64.         MENUITEM "Save ~As...\tA", IDM_SAVEAS
  65.         MENUITEM "~Extract...\tE", IDM_EXTRACT
  66.         MENUITEM "PS to EPS", IDM_PSTOEPS 
  67.         MENUITEM "~Close\tC", IDM_CLOSE
  68.         MENUITEM "~Info...\tI", IDM_INFO
  69.         MENUITEM SEPARATOR
  70.         MENUITEM "~Print...\tP", IDM_PRINT
  71.         MENUITEM "Print To ~File...\tF", IDM_PRINTTOFILE
  72.         MENUITEM "Print File...", IDM_SPOOL
  73.         MENUITEM SEPARATOR
  74.         MENUITEM "E~xit", IDM_EXIT
  75.     END
  76.  
  77.     SUBMENU "~Edit", IDM_EDITMENU
  78.     BEGIN
  79.         MENUITEM "~Copy\tCtrl+C", IDM_COPYCLIP
  80.         MENUITEM SEPARATOR
  81.         MENUITEM "~Paste To...", IDM_PASTETO
  82. /*
  83.         MENUITEM "Convert Bitmap", IDM_CONVERT
  84. */
  85.         MENUITEM SEPARATOR
  86.         SUBMENU "~Add EPS Preview", IDM_ADDEPSMENU
  87.         BEGIN
  88.             MENUITEM "~Interchange", IDM_MAKEEPSI
  89.             MENUITEM "TIFF 4", IDM_MAKEEPST4
  90.             MENUITEM "~TIFF 5", IDM_MAKEEPST
  91. /*
  92.             MENUITEM "~Windows Metafile", IDM_MAKEEPSW
  93. */
  94.         END
  95.  
  96.         SUBMENU "~Extract EPS", IDM_EXTEPSMENU
  97.         BEGIN
  98.             MENUITEM "~PostScript", IDM_EXTRACTPS
  99.             MENUITEM "Pre~view", IDM_EXTRACTPRE
  100.         END
  101.         MENUITEM SEPARATOR
  102.         MENUITEM "~Text Extract...", IDM_TEXTEXTRACT
  103.         MENUITEM "~Find...", IDM_TEXTFIND
  104.         MENUITEM "Find ~Next", IDM_TEXTFINDNEXT
  105.     END
  106.  
  107.     SUBMENU "O~ptions", IDM_OPTIONMENU
  108.     BEGIN
  109.         MENUITEM "~Ghostscript Command...", IDM_GSCOMMAND
  110.         MENUITEM "Sounds...", IDM_SOUNDS
  111.         SUBMENU "~Units", IDM_UNITMENU
  112.         BEGIN
  113.             MENUITEM "~pt", IDM_UNITPT
  114.             MENUITEM "~mm", IDM_UNITMM
  115.             MENUITEM "~inch", IDM_UNITINCH
  116.         END
  117.         MENUITEM "Save Settings ~Now", IDM_SETTINGS
  118.         MENUITEM SEPARATOR
  119.         MENUITEM "~Save Settings on Exit", IDM_SAVESETTINGS
  120.         MENUITEM "Sa~fer", IDM_SAFER
  121.         MENUITEM "Save Last ~Directory", IDM_SAVEDIR
  122.         MENUITEM "~Button Bar", IDM_BUTTONSHOW
  123.         MENUITEM "~Fit Window to Page", IDM_FITPAGE
  124.         MENUITEM "~Quick Open", IDM_QUICK
  125.         MENUITEM "Auto ~Redisplay", IDM_AUTOREDISPLAY
  126.         MENUITEM "EPS ~Clip", IDM_EPSFCLIP
  127.         MENUITEM "EPS ~Warn", IDM_EPSFWARN
  128.         MENUITEM "~Ignore DSC", IDM_IGNOREDSC
  129.         MENUITEM "Show Bounding Bo~x", IDM_SHOWBBOX
  130.     END
  131.  
  132.     SUBMENU "~View", IDM_VIEWMENU
  133.     BEGIN
  134.         MENUITEM "~Next Page\t+", IDM_NEXT
  135.         MENUITEM "Pre~vious Page\t-", IDM_PREV
  136.         MENUITEM "~Goto Page...\tG", IDM_GOTO
  137.         MENUITEM "~Redisplay\tR", IDM_REDISPLAY
  138.     END
  139.  
  140.     SUBMENU "~Orientation", IDM_ORIENTMENU
  141.     BEGIN
  142.         MENUITEM "~Portrait", IDM_PORTRAIT
  143.         MENUITEM "~Landscape", IDM_LANDSCAPE
  144.         MENUITEM "~Upside-down", IDM_UPSIDEDOWN
  145.         MENUITEM "~Seascape", IDM_SEASCAPE
  146.         MENUITEM SEPARATOR
  147.         MENUITEM "S~wap Landscape", IDM_SWAPLANDSCAPE
  148.     END
  149.  
  150.     SUBMENU "~Media", IDM_MEDIAMENU
  151.     BEGIN
  152.         MENUITEM "~Resolution...", IDM_RESOLUTION
  153.         MENUITEM "~Zoom Resolution...", IDM_ZOOMRES
  154.         SUBMENU "~Depth", IDM_DEPTHMENU
  155.         BEGIN
  156.             MENUITEM "Default", IDM_DEPTHDEF
  157.             MENUITEM "1 bit/pixel (Monochrome)",  IDM_DEPTH1
  158.             MENUITEM "4 bit/pixel (VGA)",  IDM_DEPTH4
  159.             MENUITEM "8 bit/pixel",  IDM_DEPTH8
  160.             MENUITEM "16 bit/pixel", IDM_DEPTH16
  161.             MENUITEM "24 bit/pixel", IDM_DEPTH24
  162.         END
  163.         MENUITEM SEPARATOR
  164.         MENUITEM "Letter", IDM_LETTER
  165.         MENUITEM "Tabloid", IDM_TABLOID
  166.         MENUITEM "Ledger", IDM_LEDGER
  167.         MENUITEM "Legal", IDM_LEGAL
  168.         MENUITEM "Statement", IDM_STATEMENT
  169.         MENUITEM "Executive", IDM_EXECUTIVE
  170.         MENUITEM "A3", IDM_A3
  171.         MENUITEM "A4", IDM_A4
  172.         MENUITEM "A5", IDM_A5
  173.         MENUITEM "B4", IDM_B4
  174.         MENUITEM "B5", IDM_B5
  175.         MENUITEM "Folio", IDM_FOLIO
  176.         MENUITEM "Quarto", IDM_QUARTO
  177.         MENUITEM "10x14", IDM_10X14
  178.         MENUITEM "User Defined...", IDM_USERSIZE
  179.     END
  180.  
  181.     SUBMENU "~Help", IDM_HELPMENU
  182.     BEGIN
  183.         MENUITEM "~Contents", IDM_HELPCONTENT
  184.         MENUITEM "Help ~Index", IDM_HELPSEARCH
  185.         MENUITEM "~Keys Help", IDM_HELPKEYS
  186.         MENUITEM SEPARATOR
  187.         MENUITEM "~About...", IDM_ABOUT
  188.     END
  189.  
  190. END
  191.  
  192. ACCELTABLE ID_GSVIEW
  193. BEGIN
  194.     "O", IDM_OPEN
  195.     "O", IDM_OPEN, SHIFT
  196.     "o", IDM_OPEN
  197.     "o", IDM_OPEN, SHIFT
  198.     "C", IDM_CLOSE
  199.     "C", IDM_CLOSE, SHIFT
  200.     "c", IDM_CLOSE
  201.     "c", IDM_CLOSE, SHIFT
  202.     "N", IDM_NEXT
  203.     "N", IDM_NEXT, SHIFT
  204.     "n", IDM_NEXT
  205.     "n", IDM_NEXT, SHIFT
  206.     "+", IDM_NEXT
  207.     "V", IDM_PREV
  208.     "V", IDM_PREV, SHIFT
  209.     "v", IDM_PREV
  210.     "v", IDM_PREV, SHIFT
  211.     "-", IDM_PREV
  212.     "G", IDM_GOTO
  213.     "G", IDM_GOTO, SHIFT
  214.     "g", IDM_GOTO
  215.     "g", IDM_GOTO, SHIFT
  216.     "I", IDM_INFO
  217.     "I", IDM_INFO, SHIFT
  218.     "i", IDM_INFO
  219.     "i", IDM_INFO, SHIFT
  220.     "R", IDM_REDISPLAY
  221.     "R", IDM_REDISPLAY, SHIFT
  222.     "r", IDM_REDISPLAY
  223.     "r", IDM_REDISPLAY, SHIFT
  224.     "S", IDM_SELECT
  225.     "S", IDM_SELECT, SHIFT
  226.     "s", IDM_SELECT
  227.     "s", IDM_SELECT, SHIFT
  228.     "A", IDM_SAVEAS
  229.     "A", IDM_SAVEAS, SHIFT
  230.     "a", IDM_SAVEAS
  231.     "a", IDM_SAVEAS, SHIFT
  232.     "P", IDM_PRINT
  233.     "P", IDM_PRINT, SHIFT
  234.     "p", IDM_PRINT
  235.     "p", IDM_PRINT, SHIFT
  236.     "F", IDM_PRINTTOFILE
  237.     "F", IDM_PRINTTOFILE, SHIFT
  238.     "f", IDM_PRINTTOFILE
  239.     "f", IDM_PRINTTOFILE, SHIFT
  240.     "E", IDM_EXTRACT
  241.     "E", IDM_EXTRACT, SHIFT
  242.     "e", IDM_EXTRACT
  243.     "e", IDM_EXTRACT, SHIFT
  244.     VK_F1, IDM_HELPCONTENT, VIRTUALKEY
  245.     "C", IDM_COPYCLIP, CONTROL
  246.     VK_INSERT, IDM_COPYCLIP, VIRTUALKEY, CONTROL
  247. END
  248.  
  249. STRINGTABLE
  250. BEGIN
  251.     /* general strings */
  252.     IDS_FILTER, "Default (*.ps)|*.ps|EPS Files (*.eps)|*.eps|EPI Files (*.epi)|*.epi|All Files (*.*)|*.*|Bitmap Files (*.bmp)|*.bmp|TIFF Files (*.tif)|*.tif|Metafiles (*.wmf)|*.wmf|"
  253.     IDS_TITLE, "PM GSview"
  254.     IDS_HELPFILE, "gvpm.hlp"
  255.     IDS_WRONGGS, "Incompatible PM Ghostscript Program"
  256.     IDS_BUSY, "GSview is busy.\rClear busy state?"
  257.     IDS_FILENOTFOUND, "File not found"
  258.     IDS_PRINTBUSY, "Ghostscript is still busy printing.\r Kill it now?"
  259. END
  260.  
  261. STRINGTABLE
  262. BEGIN
  263.     IDS_FILTER_PSALL "*.ps"
  264.     IDS_FILTER_PS    "*.ps"
  265.     IDS_FILTER_EPS    "*.eps"
  266.     IDS_FILTER_EPI    "*.epi"
  267.     IDS_FILTER_ALL    "*.*"
  268.     IDS_FILTER_BMP    "*.bmp"
  269.     IDS_FILTER_TIFF    "*.tif"
  270.     IDS_FILTER_WMF    "*.wmf"
  271.     IDS_FILTER_TXT    "*.txt"
  272. END
  273.  
  274. STRINGTABLE
  275. BEGIN
  276.     IDS_FILE, "File: "
  277.     IDS_NOFILE, "No File"
  278.     IDS_PAGE, "Page: "
  279.     IDS_NOPAGE, "No page numbering available"
  280.     IDS_LANDSCAPE, "Landscape"
  281.     IDS_PORTRAIT, "Portrait"
  282.     IDS_ASCEND, "Ascending"
  283.     IDS_DESCEND, "Descending"
  284.     IDS_SPECIAL, "Special"
  285.     IDS_EPSF, "EPS"
  286.     IDS_EPSI, "EPS with Interchange Preview"
  287.     IDS_EPST, "EPS with TIFF Preview"
  288.     IDS_EPSW, "EPS with Metafile Preview"
  289.     IDS_DSC, "DSC"
  290.     IDS_NOTDSC, "No DSC comments"
  291.     IDS_PDF, "Portable Document Format"
  292.     IDS_IGNOREDSC, "Ignoring DSC comments"
  293.     IDS_PAGEINFO, "Page: '%s'  %d of %d"
  294. END
  295.  
  296. STRINGTABLE
  297. BEGIN
  298.     IDS_OUTPUTFILE, "Output Filename"
  299.     IDS_PRINTINGALL, "No DSC comments \rPrinting all pages"
  300.     IDS_PRINTFILE, "Print File"
  301.     IDS_NOSPOOL, "Print Manager is disabled\rEnable it now ?"
  302.     IDS_SELECTPAGE, "Select Page"
  303.     IDS_SELECTPAGES, "Select Pages"
  304.     IDS_TIMEOUT, "Timeout waiting for Ghostscript"
  305.     IDS_NOTIMER, "No Timer available"
  306.     IDS_NOTOPEN, "No document open"
  307.     IDS_CANNOTRUN, "Can't run "
  308.     IDS_TOOLONG, "Command line too long: "
  309.     IDS_NOMORE, "No more pages"
  310.     IDS_GSCOMMAND, "Ghostscript command ?"
  311.     IDS_RES, "Display resolution (dpi) ?"
  312.     IDS_ZOOMRES, "Zoom resolution (dpi) ?"
  313.     IDS_NOZOOM, "Must display page before zooming"
  314.     IDS_USERWIDTH, "Width in 1/72 inch units ?"
  315.     IDS_USERHEIGHT, "Height in 1/72 inch units ?"
  316.     IDS_BADEPS, "Problem making EPS file"
  317.     IDS_NOPREVIEW, "Not a DOS EPS file or \rNo binary preview"
  318.     IDS_NOTDFNAME, "Can't use same name as open document"
  319.     IDS_PIPE_EOPEN, "Pipe error.  Couldn't open temporary file.\nDirectory may be Read Only.\nTEMP environment variable may not set."
  320.     IDS_PIPE_EMEM, "Pipe error. Couldn't allocate memory."
  321.     IDS_CANCELDONE, "%d%% done"
  322.     IDS_BADCLI, "Bad command line option: %s"
  323.     IDS_TEXTFIND, "Find text ?"
  324.     IDS_TEXTNOTFIND, "Text not found"
  325. END
  326.  
  327. STRINGTABLE
  328. BEGIN
  329.     /* sound type types*/
  330.     IDS_SOUNDNAME, "Sound File"
  331.     IDS_SNDPAGE, "Output Page"
  332.     IDS_SNDNOPAGE, "No Page"
  333.     IDS_SNDNONUMBER, "No Numbering"
  334.     IDS_SNDNOTOPEN, "Not Open"
  335.     IDS_SNDERROR, "Error"
  336.     IDS_SNDTIMEOUT,    "Timeout"
  337.     IDS_SNDSTART, "Start"
  338.     IDS_SNDEXIT, "Exit"
  339.     IDS_SOUNDNOMM, "Can't load MMSYSTEM.DLL\rSounds will be unavailable"
  340.     IDS_NONE, "<None>"
  341.     IDS_SPKR, "<Speaker Beep>"
  342. END
  343.  
  344. STRINGTABLE
  345. BEGIN
  346.     /* help topics - these need to match keywords in gsview.doc */
  347.     IDS_TOPICROOT,  "Overview"
  348.     IDS_TOPICOPEN,  "Opening a Document"
  349.     IDS_TOPICPRINT, "Printing"
  350.     IDS_TOPICEDIT, "Clipboard"
  351.     IDS_TOPICGSCMD, "Ghostscript Command"
  352.     IDS_TOPICSOUND, "Sounds"
  353.     IDS_TOPICMEDIA, "Page Size and Display Resolution"
  354.     IDS_TOPICPSTOEPS, "PS to EPS"
  355.     IDS_TOPICGOTO, "Page Selection"
  356.     IDS_TOPICINSTALL, "Installation"
  357.     IDS_TOPICTEXT, "Text Extract and Find"
  358.     IDS_TOPICKEYS, "Keys"
  359. END
  360.  
  361. STRINGTABLE
  362. BEGIN
  363.     IDS_BBPROMPT,  "Click at left"
  364.     IDS_BBPROMPT1, "Click at bottom"
  365.     IDS_BBPROMPT2, "Click at right"
  366.     IDS_BBPROMPT3, "Click at top"
  367.     IDS_EPSONEPAGE, "An EPS file must be a single page document.\rSee help on 'PS to EPS'"
  368.     IDS_EPSQPAGES, "Is this a single page document ?"
  369.     IDS_EPSNOBBOX, "Could not obtain Bounding Box"
  370.     IDS_EPSREAD, "Have you read help `PS to EPS` ?"
  371. END
  372.  
  373. STRINGTABLE
  374. BEGIN
  375.     /* wait messages */
  376.     IDS_WAIT, "Wait"
  377.     IDS_WAITREAD, "Reading..."
  378.     IDS_WAITWRITE, "Writing..."
  379.     IDS_WAITDRAW, "Drawing..."
  380.     IDS_WAITGSOPEN, "Opening Ghostscript..."
  381.     IDS_WAITGSCLOSE, "Closing Ghostscript..."
  382.     IDS_WAITPRINT, "Printing..."
  383.     IDS_WAITSEARCH, "Searching..."
  384. END
  385.  
  386. DLGTEMPLATE IDD_INPUT 
  387. BEGIN
  388.     DIALOG "Input", 100, 24, 46, 287, 58, WS_VISIBLE, FCF_SYSMENU | FCF_TITLEBAR
  389.     BEGIN
  390.         CONTROL "", ID_ANSWER, 12, 28, 260, 10, WC_ENTRYFIELD, ES_LEFT | ES_AUTOSCROLL | ES_MARGIN | ES_ANY | WS_VISIBLE | WS_GROUP | WS_TABSTOP
  391.         CONTROL "", ID_PROMPT, 12, 44, 260, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE
  392.         DEFPUSHBUTTON "OK", DID_OK, 32, 6, 51, 14
  393.         PUSHBUTTON "Cancel", DID_CANCEL, 116, 6, 51, 14
  394.         PUSHBUTTON "~Help", ID_HELP, 198, 6, 51, 14
  395.     END
  396.  
  397. END
  398.  
  399.  
  400. DLGTEMPLATE IDD_INFO 
  401. BEGIN
  402.     DIALOG "Info", 100, 24, 48, 292, 116, WS_VISIBLE, FCF_SYSMENU | FCF_TITLEBAR
  403.     BEGIN
  404.             ICON ID_GSVIEW, ID_GSVIEW, 8, 95, 30, 20, WS_GROUP
  405.         DEFPUSHBUTTON "OK", DID_OK, 20, 4, 51, 14
  406.         CONTROL "File:", -1, 44, 103, 28, 8, WC_STATIC, SS_TEXT | DT_RIGHT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
  407.         CONTROL "Type:", -1, 44, 95, 28, 8, WC_STATIC, SS_TEXT | DT_RIGHT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
  408.         CONTROL "Title:", -1, 44, 87, 28, 8, WC_STATIC, SS_TEXT | DT_RIGHT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
  409.         CONTROL "Date:", -1, 44, 79, 28, 8, WC_STATIC, SS_TEXT | DT_RIGHT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
  410.         CONTROL "BoundingBox:", -1, 8, 71, 64, 8, WC_STATIC, SS_TEXT | DT_RIGHT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
  411.         CONTROL "Orientation:", -1, 8, 63, 64, 8, WC_STATIC, SS_TEXT | DT_RIGHT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
  412.         CONTROL "Default Media:", -1, 8, 55, 64, 8, WC_STATIC, SS_TEXT | DT_RIGHT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
  413.         CONTROL "Page Order:", -1, 8, 47, 64, 8, WC_STATIC, SS_TEXT | DT_RIGHT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
  414.         CONTROL "Pages:", -1, 8, 39, 64, 8, WC_STATIC, SS_TEXT | DT_RIGHT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
  415.         CONTROL "Page:", -1, 8, 31, 64, 8, WC_STATIC, SS_TEXT | DT_RIGHT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
  416.         CONTROL "Bitmap:", -1, 8, 23, 64, 8, WC_STATIC, SS_TEXT | DT_RIGHT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
  417.         CONTROL "", INFO_FILE,     76, 103, 200, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
  418.         CONTROL "", INFO_TYPE,     76, 95, 200, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
  419.         CONTROL "", INFO_TITLE,    76, 87, 200, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
  420.         CONTROL "", INFO_DATE,     76, 79, 200, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
  421.         CONTROL "", INFO_BBOX,     76, 71, 200, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
  422.         CONTROL "", INFO_ORIENT,   76, 63, 200, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
  423.         CONTROL "", INFO_DEFMEDIA, 76, 55, 200, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
  424.         CONTROL "", INFO_ORDER,    76, 47, 200, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
  425.         CONTROL "", INFO_NUMPAGES, 76, 39, 200, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
  426.         CONTROL "", INFO_PAGE,     76, 31, 200, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
  427.         CONTROL "", INFO_BITMAP,   76, 23, 200, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
  428.     END
  429.  
  430. END
  431.  
  432. DLGTEMPLATE IDD_PAGE 
  433. BEGIN
  434.     DIALOG "Select Page", 100, 24, 24, 115, 135, WS_VISIBLE, FCF_SYSMENU | FCF_TITLEBAR
  435.     BEGIN
  436.         CONTROL "", PAGE_LIST, 8, 6, 48, 120, WC_LISTBOX, WS_VISIBLE | WS_TABSTOP
  437.         DEFPUSHBUTTON "OK", DID_OK, 68, 112, 40, 14
  438.         PUSHBUTTON "Cancel", DID_CANCEL, 68, 92, 40, 14
  439.         PUSHBUTTON "~Help", ID_HELP, 68, 72, 40, 14
  440.         PUSHBUTTON "~All", PAGE_ALL, 68, 46, 40, 14
  441.         PUSHBUTTON "O~dd", PAGE_ODD, 68, 26, 40, 14
  442.         PUSHBUTTON "~Even", PAGE_EVEN, 68, 6, 40, 14
  443.     END
  444.  
  445. END
  446.  
  447. DLGTEMPLATE IDD_MULTIPAGE 
  448. BEGIN
  449.     DIALOG "Select Pages", 100, 24, 24, 115, 135, WS_VISIBLE, FCF_SYSMENU | FCF_TITLEBAR
  450.     BEGIN
  451.         CONTROL "", PAGE_LIST, 8, 6, 48, 120, WC_LISTBOX, LS_MULTIPLESEL | LS_EXTENDEDSEL | WS_VISIBLE | WS_TABSTOP
  452.         DEFPUSHBUTTON "OK", DID_OK, 68, 112, 40, 14
  453.         PUSHBUTTON "Cancel", DID_CANCEL, 68, 92, 40, 14
  454.         PUSHBUTTON "~Help", ID_HELP, 68, 72, 40, 14
  455.         PUSHBUTTON "~All", PAGE_ALL, 68, 46, 40, 14
  456.         PUSHBUTTON "O~dd", PAGE_ODD, 68, 26, 40, 14
  457.         PUSHBUTTON "~Even", PAGE_EVEN, 68, 6, 40, 14
  458.     END
  459.  
  460. END
  461.  
  462.  
  463. DLGTEMPLATE IDD_SPOOL 
  464. BEGIN
  465.     DIALOG "Select Printer Port", -1, 24, 94, 154, 62, WS_VISIBLE, FCF_SYSMENU | FCF_TITLEBAR
  466.     BEGIN
  467.         DEFPUSHBUTTON "OK", DID_OK, 92, 36, 51, 14
  468.         PUSHBUTTON "Cancel", DID_CANCEL, 92, 12, 51, 14
  469.         CONTROL "", SPOOL_PORT, 8, 6, 72, 48, WC_LISTBOX, WS_VISIBLE | WS_GROUP | WS_TABSTOP
  470.     END
  471.  
  472. END
  473.  
  474. /* This section gives the default entries for the [Devices] section of */
  475. /* gsview.ini, used to specify available printer drivers. */
  476. /* Each line contains a device name and available resolutions, separated  */
  477. /* by commas.  Don't use spaces.  Each line must end with a '\0' */
  478. /* The last line of this section must be "\0" */
  479. /* Maximum line length is 128 */
  480. RCDATA IDR_DEVICES
  481. BEGIN
  482. /*    "mswinprn,\0"   /* can't set resolution in device dialog box */
  483.     "deskjet,300x300,150x150,100x100,75x75\0"
  484.     "djet500,300x300,150x150,100x100,75x75\0"
  485.     "laserjet,300x300,150x150,100x100,75x75\0"
  486.     "ljetplus,300x300,150x150,100x100,75x75\0"
  487.     "ljet2p,300x300,150x150,100x100,75x75\0"
  488.     "ljet3,300x300,150x150,100x100,75x75\0"
  489.     "ljet4,600x600,300x300,150x150,100x100,75x75\0"
  490.     "cdeskjet,300x300,150x150,100x100,75x75\0"
  491.     "cdjcolor,300x300,150x150,100x100,75x75\0"
  492.     "cdjmono,300x300,150x150,100x100,75x75\0"
  493.     "cdj550,300x300,150x150,100x100,75x75\0"
  494.     "pj,180x180,90x90\0" /* guess */
  495.     "pjxl,180x180,90x90\0" /* guess */
  496.     "pjxl300,300x300\0"
  497.     "djet500c,300x300,150x150,100x100,75x75\0"
  498.     "declj250,180x180\0"
  499.     "lj250,180x180,90x90\0" /* guess */
  500.     "jetp3852,84x84\0"
  501.     "r4081,300x300\0"
  502.     "t4693d2,100x100\0"
  503.     "t4693d4,100x100\0"
  504.     "t4693d8,100x100\0"
  505.     "tek4696,120x120\0"
  506.     "lbp8,300x300\0"
  507.     "epson,360x180,240x180,180x180,120x180,60x180,180x60,120x60,60x60,240x72,120x72,60x72\0"
  508.     "eps9mid,240x216,120x216,60x216\0"  /* guess */
  509.     "eps9high,240x216,120x216,60x216\0"
  510.     "epsonc,360x180,240x180,180x180,120x180,60x180,180x60,120x60,60x60,240x72,120x72,60x72\0"
  511.     "ibmpro,360x180,240x180,180x180,120x180,60x180,180x60,120x60,60x60,240x72,120x72,60x72\0"
  512.     "st800,360x360,360x180,180x180\0"
  513.     "stcolor,360x360,360x180,180x180\0"
  514.     "bj10e,360x360,360x180,180x360,180x180\0"
  515.     "bj200,360x360,360x180,180x360,180x180\0"
  516.     "m8510,160x144\0"
  517.     "neccp6,360x360,360x180,180x360,180x180\0" /* guess */
  518.     "dfaxhigh,204x196\0"
  519.     "dfaxlow,204x98\0"
  520.     "tiffg3,204x196,204x98\0"
  521.     "tiffg4,204x196,204x98\0"
  522.     "bmpmono,72,96,120\0"
  523.     "bmp16,72,96,120\0"
  524.     "bmp256,72,96,120\0"
  525.     "bmp16m,72,96,120\0"
  526.     "pcxmono,72,96,120\0"
  527.     "pcxgray,72,96,120\0"
  528.     "pcx16,72,96,120\0"
  529.     "pcx256,72,96,120\0"
  530.     "pcx24b,72,96,120\0"
  531.     "psmono,72,96\0"
  532.     "bit,72,96\0"
  533.     "bitrgb,72,96\0"
  534.     "bitcmyk,72,96\0"
  535.     "tiffcrle,204x196\0"
  536.     "tiffg3,204x196\0"
  537.     "tiffg32d,204x196\0"
  538.     "tiffg4,204x196\0"
  539.     "tifflzw,204x196\0"
  540.     "tiffpack,204x196\0"
  541.     "\0"
  542. END
  543.  
  544. /* header to control page orientation */
  545. RCDATA IDR_ORIENT
  546. BEGIN
  547.     "/gsview_orientation {\015\012"
  548.     " gsview_offset\015\012"
  549.     " gsave clippath pathbbox grestore\015\012"
  550.     " 4 dict begin\015\012"
  551.     " /ury exch def /urx exch def /lly exch def /llx exch def\015\012"
  552.     " gsview_landscape\015\012"
  553.     " {-90 rotate\015\012 llx ury add neg llx lly sub translate} if\015\012"
  554.     " gsview_upsidedown\015\012"
  555.     " {180 rotate\015\012 llx urx add neg lly ury add neg translate} if\015\012"
  556.     " gsview_seascape\015\012"
  557.     " {90 rotate\015\012 lly llx sub lly urx add neg translate} if\015\012"
  558.     " end\015\012} def\015\012"
  559.     "/showpage\015\012{\015\012"
  560.     " (showpage\\r\\n) print flush\015\012"
  561.     " 1 true .outputpage\015\012"
  562.     " erasepage initgraphics\015\012gsview_orientation\015\012} bind def\015\012"
  563.     "gsview_orientation\015\012"
  564.     "/gsview_cleanup {clear cleardictstack} def\015\012"
  565.     "/gsview_setpagesize {\015\012"
  566.     " gsview_landscape gsview_seascape or {exch} if\015\012"
  567.     " gsview_zoom {pop pop}\015\012"
  568.         "  {//statusdict begin .setpagesize end gsview_orientation} ifelse\015\012"
  569.         "} def\015\012"
  570.     "/letter {612 792 gsview_setpagesize} def\015\012"
  571.     "/note {540 720 gsview_setpagesize} def\015\012"
  572.     "/legal {612 1008 gsview_setpagesize} def\015\012"
  573.     "/a3 {842 1190 gsview_setpagesize} def\015\012"
  574.     "/a4 {595 842 gsview_setpagesize} def\015\012"
  575.     "/a5 {421 595 gsview_setpagesize} def\015\012"
  576.     "/a6 {297 421 gsview_setpagesize} def\015\012"
  577.     "/b4 {709 1002 gsview_setpagesize} def\015\012"
  578.     "/flsa {612 936 gsview_setpagesize} def\015\012"
  579.     "/flse {612 936 gsview_setpagesize} def\015\012"
  580.     "/halfletter {396 612 gsview_setpagesize} def\015\012"
  581.     "/11x17 {792 1224 gsview_setpagesize} def\015\012"
  582.     "/ledger {1224 792 gsview_setpagesize} def\015\012"
  583.     "\0"
  584. END
  585.  
  586. /* header to control page orientation - extras for GS 3.x */
  587. RCDATA IDR_ORIENT3
  588. BEGIN
  589.     "/setpagedevice\015\012"
  590.     "{dup length dict copy dup /HWResolution undef setpagedevice} bind odef\015\012"
  591.     "\0"
  592. END
  593.  
  594. /* header to warn of operators incompatible with EPS */
  595. RCDATA IDR_EPSFWARN
  596. BEGIN
  597.     "/eps_warn {(Warning: EPS file must not use ) print dup == flush systemdict exch get exec} def\015\012"
  598.     "/banddevice {/banddevice eps_warn} def\015\012"
  599.     "/clear {/clear eps_warn} def\015\012"
  600.     "/cleardictstack {/cleardictstack eps_warn} def\015\012"
  601.     "/copypage {/copypage eps_warn} def\015\012"
  602.     "/erasepage {/erasepage eps_warn} def\015\012"
  603.     "/exitserver {/exitserver eps_warn} def\015\012"  /* this won't work - exitserver is in serverdict */
  604.     "/serverdict {/serverdict eps_warn} def\015\012"  /* so use this to provide warnings instead */
  605.     "/framedevice {/framedevice eps_warn} def\015\012"
  606.     "/grestoreall {/grestoreall eps_warn} def\015\012"
  607.     "/initclip {/initclip eps_warn} def\015\012"
  608.     "/initgraphics {/initgraphics eps_warn} def\015\012"
  609.     "/initmatrix {/initmatrix eps_warn} def\015\012"
  610.     "/quit {/quit eps_warn} def\015\012"
  611.     "/renderbands {/renderbands eps_warn} def\015\012"
  612.     "/setglobal {/setglobal eps_warn} def\015\012"
  613.     "/setpagedevice {/setpagedevice eps_warn} def\015\012"
  614.     "/setpageparams {/setpageparams eps_warn} def\015\012"
  615.     "/setshared {/setshared eps_warn} def\015\012"
  616.     "/startjob {/startjob eps_warn} def\015\012"
  617.     "/letter {/letter eps_warn} def\015\012"
  618.     "/note {/note eps_warn} def\015\012"
  619.     "/legal {/legal eps_warn} def\015\012"
  620.     "/a3 {/a3 eps_warn} def\015\012"
  621.     "/a4 {/a4 eps_warn} def\015\012"
  622.     "/a5 {/a5 eps_warn} def\015\012"
  623.     "/eps_warntwo {(Warning: EPS file should be careful using ) print dup == flush systemdict exch get exec} def\015\012"
  624.     "/nulldevice {/nulldevice eps_warntwo} def\015\012"
  625.     "/setgstate {/setgstate eps_warntwo} def\015\012"
  626.     "/sethalftone {/sethalftone eps_warntwo} def\015\012"
  627.     "/setmatrix {/setmatrix eps_warntwo} def\015\012"
  628.     "/setscreen {/setscreen eps_warntwo} def\015\012"
  629.     "/settransfer {/settransfer eps_warntwo} def\015\012"
  630.     "/setcolortransfer {/setcolortransfer eps_warntwo} def\015\012"
  631.     "count /eps_count exch def\015\012"
  632.     "countdictstack /eps_countdictstack exch def\015\012"
  633.     "/eps_countcheck {count eps_count\015\012"
  634.     "  ne {(Warning: EPS file altered operand stack count\\n) print pstack flush} if\015\012"
  635.     "  countdictstack eps_countdictstack\015\012"
  636.     "  ne {(Warning: EPS file altered dictionary stack count\\n) print flush} if\015\012"
  637.     "} def\015\012"
  638.     "/gsview_cleanup {eps_countcheck //systemdict /clear get exec //systemdict /cleardictstack get exec} def\015\012"
  639.     "\0"
  640. END
  641.  
  642.  
  643. /* Each button is specified by a menu item identifier */
  644. /* The button contents is given by a BITMAP with the same identifier */
  645. /* or a STRINGTABLE entry with the same identifier */
  646. /* The table ends with a NULL */
  647. RCDATA IDR_BUTTON
  648. BEGIN
  649.     IDM_OPEN,
  650.     IDM_PRINT,
  651.     IDM_INFO,
  652.     IDM_HELPCONTENT,
  653.     IDM_GOTO,
  654.     IDM_NEXT,
  655.     IDM_PREV,
  656.     IDM_NEXTSKIP,
  657.     IDM_PREVSKIP,
  658.     IDM_MAGPLUS,
  659.     IDM_MAGMINUS,
  660.     IDM_TEXTFIND,
  661.     IDM_TEXTFINDNEXT,
  662.     0
  663. END
  664.  
  665. STRINGTABLE
  666. BEGIN
  667.     IDM_OPEN, "Open..."
  668.     IDM_PRINT, "Print..."
  669.     IDM_INFO, "Info..."
  670.     IDM_HELPCONTENT, "Help"
  671.     IDM_GOTO, "Goto Page..."
  672.     IDM_NEXT, "Next Page"
  673.     IDM_PREV, "Previous Page"
  674.     IDM_NEXTSKIP, "Skip forwards 5 pages"
  675.     IDM_PREVSKIP, "Skip backwards 5 pages"
  676.     IDM_MAGPLUS, "Increase magnification"
  677.     IDM_MAGMINUS, "Decrease magnification"
  678.     IDM_TEXTFIND, "Find..."
  679.     IDM_TEXTFINDNEXT, "Find Next"
  680. END
  681.  
  682. BITMAP IDM_OPEN  "binary/gvpopen.bmp"
  683. BITMAP IDM_PRINT "binary/gvpprint.bmp"
  684. BITMAP IDM_INFO  "binary/gvpinfo.bmp"
  685. BITMAP IDM_HELPCONTENT "binary/gvphelp.bmp"
  686. BITMAP IDM_GOTO  "binary/gvpgoto.bmp"
  687. BITMAP IDM_NEXT  "binary/gvpnext.bmp"
  688. BITMAP IDM_PREV  "binary/gvpprev.bmp"
  689. BITMAP IDM_NEXTSKIP  "binary/gvpnexts.bmp"
  690. BITMAP IDM_PREVSKIP  "binary/gvpprevs.bmp"
  691. BITMAP IDM_MAGPLUS   "binary/gvpmagp.bmp"
  692. BITMAP IDM_MAGMINUS  "binary/gvpmagm.bmp"
  693. BITMAP IDM_TEXTFIND  "binary/gvpfind.bmp"
  694. BITMAP IDM_TEXTFINDNEXT  "binary/gvpfindn.bmp"
  695. BITMAP IDM_MISC  "binary/gvpmisc.bmp"
  696.  
  697.  
  698. RCDATA IDR_PORTS
  699. BEGIN
  700.     "LPT1:=\0"
  701.     "LPT2:=\0"
  702.     "LPT3:=\0"
  703.     "COM1:=\0"
  704.     "COM2:=\0"
  705.     "COM3:=\0"
  706.     "COM4:=\0"
  707.     "FILE:=\0"
  708.     "\0"
  709. END
  710.  
  711. DLGTEMPLATE IDD_DEVICE 
  712. BEGIN
  713.     DIALOG "Select Device", 100, 24, 48, 265, 81, WS_VISIBLE, FCF_SYSMENU | FCF_TITLEBAR
  714.     BEGIN
  715.         DEFPUSHBUTTON "OK", DID_OK, 204, 64, 51, 14
  716.         PUSHBUTTON "Cancel", DID_CANCEL, 204, 44, 51, 14
  717.         PUSHBUTTON "~Help", ID_HELP, 204, 4, 51, 14
  718.         CONTROL "", DEVICE_NAME, 8, 5, 84, 59, WC_COMBOBOX, CBS_SIMPLE | ES_ANY | WS_VISIBLE | WS_GROUP | WS_TABSTOP
  719.         CONTROL "Device:", -1, 8, 68, 45, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
  720.         CONTROL "", DEVICE_RES, 108, 5, 84, 59, WC_COMBOBOX, CBS_SIMPLE | ES_ANY | WS_VISIBLE | WS_GROUP | WS_TABSTOP
  721.         CONTROL "Resolution:", DEVICE_RESTEXT, 108, 68, 45, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
  722.         PUSHBUTTON "~Properties", DEVICE_PROP, 204, 24, 51, 14
  723.     END
  724.  
  725. END
  726.  
  727. DLGTEMPLATE IDD_PROP 
  728. BEGIN
  729.     DIALOG "Edit Properties", 100, 6, -10, 265, 81, WS_VISIBLE, FCF_SYSMENU | FCF_TITLEBAR
  730.     BEGIN
  731.         DEFPUSHBUTTON "OK", DID_OK, 204, 64, 51, 14
  732.         PUSHBUTTON "Cancel", DID_CANCEL, 204, 44, 51, 14
  733.         PUSHBUTTON "~Help", ID_HELP, 204, 4, 51, 14
  734.         CONTROL "", PROP_NAME, 8, 5, 84, 59, WC_COMBOBOX, CBS_SIMPLE | ES_ANY | WS_VISIBLE | WS_GROUP | WS_TABSTOP
  735.         CONTROL "Property:", -1, 8, 68, 45, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
  736.         CONTROL "", PROP_VALUE, 108, 5, 84, 59, WC_COMBOBOX, CBS_SIMPLE | ES_ANY | WS_VISIBLE | WS_GROUP | WS_TABSTOP
  737.         CONTROL "Value:", -1, 108, 68, 45, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
  738.     END
  739.  
  740. END
  741.  
  742. DLGTEMPLATE IDD_BBOX 
  743. BEGIN
  744.     DIALOG "BoundingBox", 12, 24, 24, 120, 15, WS_VISIBLE, FCF_SYSMENU | FCF_TITLEBAR
  745.     BEGIN
  746.         CONTROL "", BB_PROMPT, 4, 3, 112, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE
  747.     END
  748.  
  749. END
  750.  
  751. DLGTEMPLATE IDD_SOUND 
  752. BEGIN
  753.     DIALOG "Sounds", 100, 11, 59, 245, 97, WS_VISIBLE, FCF_SYSMENU | FCF_TITLEBAR
  754.     BEGIN
  755.         DEFPUSHBUTTON "OK", DID_OK, 188, 79, 51, 14
  756.         PUSHBUTTON "Cancel", DID_CANCEL, 188, 61, 51, 14
  757.         PUSHBUTTON "Test", SOUND_TEST, 188, 43, 51, 14
  758.         PUSHBUTTON "Help", ID_HELP, 188, 25, 51, 14
  759.         CONTROL "Event::", -1, 8, 85, 45, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
  760.         CONTROL "", SOUND_EVENT, 8, 15, 64, 64, WC_LISTBOX, WS_VISIBLE | WS_GROUP | WS_TABSTOP
  761.         CONTROL "", SOUND_FILE, 88, 15, 80, 64, WC_LISTBOX, WS_VISIBLE | WS_GROUP | WS_TABSTOP
  762.         CONTROL "Sound:", -1, 88, 85, 45, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
  763.         CONTROL "", SOUND_PATH, 88, 4, 150, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE
  764.     END
  765.  
  766. END
  767.  
  768.