~ubuntu-branches/ubuntu/hardy/ghostscript/hardy

« back to all changes in this revision

Viewing changes to contrib/japanese/gdevrpdl.c

  • Committer: Bazaar Package Importer
  • Author(s): Till Kamppeter
  • Date: 2007-11-22 12:17:43 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20071122121743-cd70s3ypq0r243mp
Tags: 8.61.dfsg.1-0ubtuntu1
* New upstream release
  o Final 8.61 release
* debian/patches/09_ijs_krgb_support.dpatch: Adapted to upstream changes.
* debian/rules: Updated CUPS-related variables for "make install" calls.
* debian/rules: Remove /usr/include/ghostscript from the ghostscript
  package, they go into lings-dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#define DPI 240
27
27
 
28
28
/* The device descriptors */
29
 
private dev_proc_open_device(rpdl_open);
30
 
private dev_proc_close_device(rpdl_close);
31
 
private dev_proc_print_page_copies(rpdl_print_page_copies);
32
 
private dev_proc_image_out(rpdl_image_out);
33
 
private void rpdl_printer_initialize(gx_device_printer * pdev, FILE * prn_stream, int num_copies);
34
 
private void rpdl_paper_set(gx_device_printer * pdev, FILE * prn_stream);
 
29
static dev_proc_open_device(rpdl_open);
 
30
static dev_proc_close_device(rpdl_close);
 
31
static dev_proc_print_page_copies(rpdl_print_page_copies);
 
32
static dev_proc_image_out(rpdl_image_out);
 
33
static void rpdl_printer_initialize(gx_device_printer * pdev, FILE * prn_stream, int num_copies);
 
34
static void rpdl_paper_set(gx_device_printer * pdev, FILE * prn_stream);
35
35
 
36
 
private gx_device_procs rpdl_prn_procs =
 
36
static gx_device_procs rpdl_prn_procs =
37
37
lprn_procs(rpdl_open, gdev_prn_output_page, rpdl_close);
38
38
 
39
39
gx_device_lprn far_data gs_rpdl_device =
44
44
#define ppdev ((gx_device_printer *)pdev)
45
45
 
46
46
/* Open the printer. */
47
 
private int
 
47
static int
48
48
rpdl_open(gx_device * pdev)
49
49
{
50
50
    int xdpi = pdev->x_pixels_per_inch;
59
59
    return gdev_prn_open(pdev);
60
60
}
61
61
 
62
 
private int
 
62
static int
63
63
rpdl_close(gx_device * pdev)
64
64
{
65
65
    gdev_prn_open_printer(pdev, 1);
69
69
    return gdev_prn_close(pdev);
70
70
}
71
71
 
72
 
private int
 
72
static int
73
73
rpdl_print_page_copies(gx_device_printer * pdev, FILE * prn_stream, int num_coipes)
74
74
{
75
75
    gx_device_lprn *const lprn = (gx_device_lprn *) pdev;
98
98
}
99
99
 
100
100
/* Output data */
101
 
private void
 
101
static void
102
102
rpdl_image_out(gx_device_printer * pdev, FILE * prn_stream, int x, int y, int width, int height)
103
103
{
104
104
    gx_device_lprn *const lprn = (gx_device_lprn *) pdev;
134
134
 
135
135
/* ------ Internal routines ------ */
136
136
 
137
 
private void
 
137
static void
138
138
rpdl_printer_initialize(gx_device_printer * pdev, FILE * prn_stream, int num_copies)
139
139
{
140
140
    gx_device_lprn *const lprn = (gx_device_lprn *) pdev;
227
227
    fprintf(prn_stream, "\033\022N%d ", num_copies);
228
228
}
229
229
 
230
 
private void
 
230
static void
231
231
rpdl_paper_set(gx_device_printer * pdev, FILE * prn_stream)
232
232
{
233
233
    int width, height, w, h, wp, hp;