home *** CD-ROM | disk | FTP | other *** search
/ swCHIP 1991 January / swCHIP_95-1.bin / utility / gsview13 / src / gvwin2.rc < prev    next >
Text File  |  1995-12-09  |  10KB  |  281 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. /* gvwin2.rc */
  19. /* Language independent resources for GSVIEW.EXE a graphical interface 
  20.    for MS-Windows Ghostscript */
  21.  
  22. #ifndef GSVIEW_VERSION
  23. #include "gvcrc.h"
  24. #endif
  25.  
  26. ID_GSVIEW ICON "binary/gvwin.ico"
  27.  
  28. /* button table */
  29. /* Each button is specified by a menu item identifier */
  30. /* The button contents is given by a BITMAP with the same identifier */
  31. /* or a STRINGTABLE entry with the same identifier, or an ICON with */
  32. /* the same identifier */
  33. /* The table ends with a NULL */
  34. IDR_BUTTON RCDATA
  35. BEGIN
  36.     IDM_OPEN,
  37.     IDM_PRINT,
  38.     IDM_INFO,
  39.     IDM_HELPCONTENT,
  40.     IDM_GOTO,
  41.     IDM_NEXT,
  42.     IDM_PREV,
  43.     IDM_NEXTSKIP,
  44.     IDM_PREVSKIP,
  45.     IDM_MAGPLUS,
  46.     IDM_MAGMINUS,
  47.     IDM_TEXTFIND,
  48.     IDM_TEXTFINDNEXT,
  49.     0
  50. END
  51.  
  52. /* This section gives the default entries for the [Devices] section of */
  53. /* gsview.ini, used to specify available printer drivers. */
  54. /* Each line contains a device name and available resolutions, separated  */
  55. /* by commas.  Don't use spaces.  Each line must end with a '\0' */
  56. /* The last line of this section must be "\0" */
  57. /* Maximum line length is 128 */
  58. IDR_DEVICES RCDATA
  59. BEGIN
  60.     "mswinpr2,\0"   /* can't set resolution in device dialog box */
  61.     "mswinprn,\0"   /* can't set resolution in device dialog box */
  62. #if defined(__WIN32__)
  63.     "deskjet,300x300,150x150,100x100,75x75\0"
  64.     "djet500,300x300,150x150,100x100,75x75\0"
  65.     "laserjet,300x300,150x150,100x100,75x75\0"
  66.     "ljetplus,300x300,150x150,100x100,75x75\0"
  67.     "ljet2p,300x300,150x150,100x100,75x75\0"
  68.     "ljet3,300x300,150x150,100x100,75x75\0"
  69.     "ljet4,600x600,300x300,150x150,100x100,75x75\0"
  70.     "cdeskjet,300x300,150x150,100x100,75x75\0"
  71.     "cdjcolor,300x300,150x150,100x100,75x75\0"
  72.     "cdjmono,300x300,150x150,100x100,75x75\0"
  73.     "cdj550,300x300,150x150,100x100,75x75\0"
  74.     "pj,180x180,90x90\0" /* guess */
  75.     "pjxl,180x180,90x90\0" /* guess */
  76.     "pjxl300,300x300\0"
  77.     "djet500c,300x300,150x150,100x100,75x75\0"
  78.     "declj250,180x180\0"
  79.     "lj250,180x180,90x90\0" /* guess */
  80.     "jetp3852,84x84\0"
  81.     "r4081,300x300\0"
  82.     "t4693d2,100x100\0"
  83.     "t4693d4,100x100\0"
  84.     "t4693d8,100x100\0"
  85.     "tek4696,120x120\0"
  86.     "lbp8,300x300\0"
  87.     "epson,360x180,240x180,180x180,120x180,60x180,180x60,120x60,60x60,240x72,120x72,60x72\0"
  88.     "eps9mid,240x216,120x216,60x216\0"  /* guess */
  89.     "eps9high,240x216,120x216,60x216\0"
  90.     "epsonc,360x180,240x180,180x180,120x180,60x180,180x60,120x60,60x60,240x72,120x72,60x72\0"
  91.     "ibmpro,360x180,240x180,180x180,120x180,60x180,180x60,120x60,60x60,240x72,120x72,60x72\0"
  92.     "st800,360x360,360x180,180x180\0"
  93.     "stcolor,360x360,360x180,180x180\0"
  94.     "bj10e,360x360,360x180,180x360,180x180\0"
  95.     "bj200,360x360,360x180,180x360,180x180\0"
  96.     "m8510,160x144\0"
  97.     "neccp6,360x360,360x180,180x360,180x180\0" /* guess */
  98.     "dfaxhigh,204x196\0"
  99.     "dfaxlow,204x98\0"
  100.     "tiffg3,204x196,204x98\0"
  101.     "tiffg4,204x196,204x98\0"
  102.     "bmpmono,72,96,120\0"
  103.     "bmp16,72,96,120\0"
  104.     "bmp256,72,96,120\0"
  105.     "bmp16m,72,96,120\0"
  106.     "pcxmono,72,96,120\0"
  107.     "pcxgray,72,96,120\0"
  108.     "pcx16,72,96,120\0"
  109.     "pcx256,72,96,120\0"
  110.     "pcx24b,72,96,120\0"
  111.     "psmono,72,96\0"
  112.     "bit,72,96\0"
  113.     "bitrgb,72,96\0"
  114.     "bitcmyk,72,96\0"
  115.     "tiffcrle,204x196\0"
  116.     "tiffg3,204x196\0"
  117.     "tiffg32d,204x196\0"
  118.     "tiffg4,204x196\0"
  119.     "tifflzw,204x196\0"
  120.     "tiffpack,204x196\0"
  121. #else
  122.     "deskjet,300x300,150x150,100x100,75x75\0"
  123.     "djet500,300x300,150x150,100x100,75x75\0"
  124.     "laserjet,300x300,150x150,100x100,75x75\0"
  125.     "ljetplus,300x300,150x150,100x100,75x75\0"
  126.     "ljet2p,300x300,150x150,100x100,75x75\0"
  127.     "ljet3,300x300,150x150,100x100,75x75\0"
  128.     "ljet4,600x600,300x300,150x150,100x100,75x75\0"
  129.     "cdeskjet,300x300,150x150,100x100,75x75\0"
  130.     "cdjcolor,300x300,150x150,100x100,75x75\0"
  131.     "cdjmono,300x300,150x150,100x100,75x75\0"
  132.     "cdj550,300x300,150x150,100x100,75x75\0"
  133.     "pj,180x180,90x90\0"
  134.     "pjxl,180x180,90x90\0" /* guess */
  135.     "pjxl300,300x300\0"
  136.     "epson,360x180,240x180,180x180,120x180,60x180,180x60,120x60,60x60,240x72,120x72,60x72\0"
  137.     "eps9high,240x216,120x216,60x216\0"
  138.     "ibmpro,360x180,240x180,180x180,120x180,60x180,180x60,120x60,60x60,240x72,120x72,60x72\0"
  139.     "bj10e,360x360,360x180,180x360,180x180\0"
  140.     "bj200,360x360,360x180,180x360,180x180\0"
  141.     "bmpmono,72,96\0"
  142.     "bmp16,72,96\0"
  143.     "bmp256,72,96\0"
  144.     "bmp16m,72,96\0"
  145. #endif
  146.     "\0"
  147. END
  148.  
  149. /* header to control page orientation */
  150. IDR_ORIENT RCDATA
  151. BEGIN
  152.     "/gsview_orientation {\r\n"
  153.     " gsview_offset\r\n"
  154.     " gsave clippath pathbbox grestore\r\n"
  155.     " 4 dict begin\r\n"
  156.     " /ury exch def /urx exch def /lly exch def /llx exch def\r\n"
  157.     " gsview_landscape\r\n"
  158.     " {-90 rotate\r\n llx ury add neg llx lly sub translate} if\r\n"
  159.     " gsview_upsidedown\r\n"
  160.     " {180 rotate\r\n llx urx add neg lly ury add neg translate} if\r\n"
  161.     " gsview_seascape\r\n"
  162.     " {90 rotate\r\n lly llx sub lly urx add neg translate} if\r\n"
  163.     " end\r\n} def\r\n"
  164. #if !defined(__WIN32__) && defined(GS261)
  165.     "/showpage\r\n{"
  166.     " (showpage\\r\\n) print flush\r\n"
  167.     " 1 true .outputpage erasepage initgraphics\r\n"
  168.     " gsview_orientation\r\n} bind def\r\n"
  169. #else
  170.     "/showpage\r\n{"
  171.     " (showpage\\r\\n) print flush\r\n"
  172.     " 0 .endpage {1 true .outputpage erasepage initgraphics}\r\n"
  173.     " if gsview_orientation .beginpage\r\n} bind def\r\n"
  174. #endif
  175.     "gsview_orientation\r\n"
  176.     "/gsview_cleanup {clear cleardictstack} def\r\n"
  177.     "/gsview_setpagesize {\r\n"
  178.     " gsview_landscape gsview_seascape or {exch} if\r\n"
  179.     " gsview_zoom {pop pop}\r\n"
  180.         "  {//statusdict begin .setpagesize end gsview_orientation} ifelse\r\n"
  181.         "} def\r\n"
  182.     "/letter {612 792 gsview_setpagesize} def\r\n"
  183.     "/note {540 720 gsview_setpagesize} def\r\n"
  184.     "/legal {612 1008 gsview_setpagesize} def\r\n"
  185.     "/a3 {842 1190 gsview_setpagesize} def\r\n"
  186.     "/a4 {595 842 gsview_setpagesize} def\r\n"
  187.     "/a5 {421 595 gsview_setpagesize} def\r\n"
  188.     "/a6 {297 421 gsview_setpagesize} def\r\n"
  189.     "/b4 {709 1002 gsview_setpagesize} def\r\n"
  190.     "/flsa {612 936 gsview_setpagesize} def\r\n"
  191.     "/flse {612 936 gsview_setpagesize} def\r\n"
  192.     "/halfletter {396 612 gsview_setpagesize} def\r\n"
  193.     "/11x17 {792 1224 gsview_setpagesize} def\r\n"
  194.     "/ledger {1224 792 gsview_setpagesize} def\r\n"
  195.     "\0"
  196. END
  197.  
  198. /* header to control page orientation - extras for GS 3.x */
  199. IDR_ORIENT3 RCDATA
  200. BEGIN
  201.     "/setpagedevice\r\n"
  202.     "{dup length dict copy dup /HWResolution undef setpagedevice} bind odef\r\n"
  203.     "\0"
  204. END
  205.  
  206. /* header to warn of operators incompatible with EPS */
  207. IDR_EPSFWARN RCDATA
  208. BEGIN
  209.     "/eps_warn {(Warning: EPS file must not use ) print dup == flush systemdict exch get exec} def\015\012"
  210.     "/banddevice {/banddevice eps_warn} def\015\012"
  211.     "/clear {/clear eps_warn} def\015\012"
  212.     "/cleardictstack {/cleardictstack eps_warn} def\015\012"
  213.     "/copypage {/copypage eps_warn} def\015\012"
  214.     "/erasepage {/erasepage eps_warn} def\015\012"
  215.     "/exitserver {/exitserver eps_warn} def\015\012"  /* this won't work - exitserver is in serverdict */
  216.     "/serverdict {/serverdict eps_warn} def\015\012"  /* so use this to provide warnings instead */
  217.     "/framedevice {/framedevice eps_warn} def\015\012"
  218.     "/grestoreall {/grestoreall eps_warn} def\015\012"
  219.     "/initclip {/initclip eps_warn} def\015\012"
  220.     "/initgraphics {/initgraphics eps_warn} def\015\012"
  221.     "/initmatrix {/initmatrix eps_warn} def\015\012"
  222.     "/quit {/quit eps_warn} def\015\012"
  223.     "/renderbands {/renderbands eps_warn} def\015\012"
  224.     "/setglobal {/setglobal eps_warn} def\015\012"
  225.     "/setpagedevice {/setpagedevice eps_warn} def\015\012"
  226.     "/setpageparams {/setpageparams eps_warn} def\015\012"
  227.     "/setshared {/setshared eps_warn} def\015\012"
  228.     "/startjob {/startjob eps_warn} def\015\012"
  229.     "/letter {/letter eps_warn} def\015\012"
  230.     "/note {/note eps_warn} def\015\012"
  231.     "/legal {/legal eps_warn} def\015\012"
  232.     "/a3 {/a3 eps_warn} def\015\012"
  233.     "/a4 {/a4 eps_warn} def\015\012"
  234.     "/a5 {/a5 eps_warn} def\015\012"
  235.     "/eps_warntwo {(Warning: EPS file should be careful using ) print dup == flush systemdict exch get exec} def\015\012"
  236.     "/nulldevice {/nulldevice eps_warntwo} def\015\012"
  237.     "/setgstate {/setgstate eps_warntwo} def\015\012"
  238.     "/sethalftone {/sethalftone eps_warntwo} def\015\012"
  239.     "/setmatrix {/setmatrix eps_warntwo} def\015\012"
  240.     "/setscreen {/setscreen eps_warntwo} def\015\012"
  241.     "/settransfer {/settransfer eps_warntwo} def\015\012"
  242.     "/setcolortransfer {/setcolortransfer eps_warntwo} def\015\012"
  243.     "count /eps_count exch def\015\012"
  244.     "countdictstack /eps_countdictstack exch def\015\012"
  245.     "/eps_countcheck {count eps_count\015\012"
  246.     "  ne {(Warning: EPS file altered operand stack count\\n) print pstack flush} if\015\012"
  247.     "  countdictstack eps_countdictstack\015\012"
  248.     "  ne {(Warning: EPS file altered dictionary stack count\\n) print flush} if\015\012"
  249.     "} def\015\012"
  250.     "/gsview_cleanup {eps_countcheck //systemdict /clear get exec //systemdict /cleardictstack get exec} def\015\012"
  251.     "\0"
  252. END
  253.  
  254. gsview_bitmap BITMAP "binary/gvwmisc.bmp"
  255.  
  256. IDM_OPEN BITMAP "binary/gvwopen.bmp"
  257.  
  258. IDM_PRINT BITMAP "binary/gvwprint.bmp"
  259.  
  260. IDM_INFO BITMAP "binary/gvwinfo.bmp"
  261.  
  262. IDM_HELPCONTENT BITMAP "binary/gvwhelp.bmp"
  263.  
  264. IDM_GOTO BITMAP "binary/gvwgoto.bmp"
  265.  
  266. IDM_NEXT BITMAP "binary/gvwnext.bmp"
  267.  
  268. IDM_PREV BITMAP "binary/gvwprev.bmp"
  269.  
  270. IDM_NEXTSKIP BITMAP "binary/gvwnexts.bmp"
  271.  
  272. IDM_PREVSKIP BITMAP "binary/gvwprevs.bmp"
  273.  
  274. IDM_MAGPLUS BITMAP "binary/gvwmagp.bmp"
  275.  
  276. IDM_MAGMINUS BITMAP "binary/gvwmagm.bmp"
  277.  
  278. IDM_TEXTFIND BITMAP "binary/gvwfind.bmp"
  279.  
  280. IDM_TEXTFINDNEXT BITMAP "binary/gvwfindn.bmp"
  281.