diff options
author | Ralph Giles <ralph.giles@artifex.com> | 2007-05-14 15:22:29 +0000 |
---|---|---|
committer | Ralph Giles <ralph.giles@artifex.com> | 2007-05-14 15:22:29 +0000 |
commit | e0bb089cd5cf4cdfe46329df303815e614297ef9 (patch) | |
tree | 6e01b313045e5c2eb76a45a4e3edc637bee26f51 /gs/src/gdevdjet.c | |
parent | 36af9160f736812bf7e9bce4c333d35eaede8559 (diff) |
Revert the gs-esp merge down, as there are still some build issues.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@7971 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/src/gdevdjet.c')
-rw-r--r-- | gs/src/gdevdjet.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/gs/src/gdevdjet.c b/gs/src/gdevdjet.c index 017892276..05fbff930 100644 --- a/gs/src/gdevdjet.c +++ b/gs/src/gdevdjet.c @@ -95,7 +95,6 @@ /* The device descriptors */ private dev_proc_open_device(hpjet_open); private dev_proc_close_device(hpjet_close); -private dev_proc_close_device(ljet4pjl_close); private dev_proc_print_page_copies(djet_print_page_copies); private dev_proc_print_page_copies(djet500_print_page_copies); private dev_proc_print_page_copies(fs600_print_page_copies); @@ -108,7 +107,6 @@ private dev_proc_print_page_copies(ljet4_print_page_copies); private dev_proc_print_page_copies(ljet4d_print_page_copies); private dev_proc_print_page_copies(lp2563_print_page_copies); private dev_proc_print_page_copies(oce9050_print_page_copies); -private dev_proc_print_page_copies(ljet4pjl_print_page_copies); private dev_proc_get_params(hpjet_get_params); private dev_proc_put_params(hpjet_put_params); @@ -116,10 +114,6 @@ private const gx_device_procs prn_hp_procs = prn_params_procs(hpjet_open, gdev_prn_output_page, hpjet_close, hpjet_get_params, hpjet_put_params); -private gx_device_procs prn_ljet4pjl_procs = -prn_params_procs(hpjet_open, gdev_prn_output_page, ljet4pjl_close, - gdev_prn_get_params, gdev_prn_put_params); - typedef struct gx_device_hpjet_s gx_device_hpjet; struct gx_device_hpjet_s { @@ -221,13 +215,6 @@ HPJET_DEVICE(prn_hp_procs, "oce9050", 0, 0, 0, 0, /* margins */ 1, oce9050_print_page_copies); -const gx_device_printer gs_ljet4pjl_device = -prn_device_copies(prn_ljet4pjl_procs, "ljet4pjl", - DEFAULT_WIDTH_10THS, DEFAULT_HEIGHT_10THS, - X_DPI2, Y_DPI2, - 0, 0, 0, 0, /* margins */ - 1, ljet4pjl_print_page_copies); - /* Open the printer, adjusting the margins if necessary. */ private int hpjet_open(gx_device * pdev) @@ -289,22 +276,6 @@ hpjet_close(gx_device * pdev) return gdev_prn_close(pdev); } -private int -ljet4pjl_close(gx_device *pdev) -{ - gx_device_printer *const ppdev = (gx_device_printer *)pdev; - int code = gdev_prn_open_printer(pdev, 1); - - if (code < 0) - return code; - if ( ppdev->Duplex_set >= 0 && ppdev->Duplex ) { - gdev_prn_open_printer(ppdev, 1); - fputs("\033&l0H", ppdev->file) ; - } - fputs("\033%-12345X", ppdev->file); - return gdev_prn_close(ppdev); -} - /* ------ Internal routines ------ */ /* Make an init string that contains paper tray selection. The resulting @@ -454,22 +425,6 @@ ljet4d_print_page_copies(gx_device_printer * pdev, FILE * prn_stream, dots_per_inch, PCL_LJ4D_FEATURES, init); } - -/* LaserJet 4 series compresses, and it needs a special sequence to */ -/* allow it to specify coordinates at 600 dpi. */ -/* It too needs its coordinate system translated slightly. */ -private int -ljet4pjl_print_page_copies(gx_device_printer *pdev, FILE *prn_stream, - int num_copies) -{ int dots_per_inch = (int)pdev->y_pixels_per_inch; - char real_init[60]; - - sprintf(real_init, "\033&l-180u36Z\033*r0F\033&u%dD", dots_per_inch); - return dljet_mono_print_page_copies(pdev, prn_stream, num_copies, - dots_per_inch, PCL_LJ4PJL_FEATURES, - real_init); -} - /* The 2563B line printer can't compress */ /* and doesn't support *p+ or *b vertical spacing. */ private int |