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

« back to all changes in this revision

Viewing changes to contrib/gdevbjc_.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:
46
46
#include "gdevbjc_.h"
47
47
 
48
48
/* ------ The device descriptors ------ */
49
 
private dev_proc_print_page(bjc_print_page);
50
 
private dev_proc_print_page(bjc_print_page_mono);
51
 
private dev_proc_print_page(bjc_print_page_gray);
52
 
private dev_proc_print_page(bjc_print_page_cmyk);
53
 
private dev_proc_print_page(bjc_print_page_color);
54
 
private dev_proc_put_params(gdev_bjc_put_params);
55
 
private dev_proc_get_params(gdev_bjc_get_params);
 
49
static dev_proc_print_page(bjc_print_page);
 
50
static dev_proc_print_page(bjc_print_page_mono);
 
51
static dev_proc_print_page(bjc_print_page_gray);
 
52
static dev_proc_print_page(bjc_print_page_cmyk);
 
53
static dev_proc_print_page(bjc_print_page_color);
 
54
static dev_proc_put_params(gdev_bjc_put_params);
 
55
static dev_proc_get_params(gdev_bjc_get_params);
56
56
const stringParamDescription *
57
57
 paramValueToParam(const stringParamDescription *, int);
58
58
const stringParamDescription *
143
143
    { {0} }
144
144
};
145
145
 
146
 
private stringParamDescription strMedia[] = {
 
146
static stringParamDescription strMedia[] = {
147
147
  {{"PlainPaper", 10, false}, 0},
148
148
  {{"CoatedPaper", 11, false}, 1},
149
149
  {{"TransparencyFilm", 16, false}, 2},
213
213
/* ------------------------- 1 bit Monochrome ---------------------------- */
214
214
/***************************************************************************/
215
215
 
216
 
private const gx_device_procs bjcmono_procs =
 
216
static const gx_device_procs bjcmono_procs =
217
217
prn_color_params_procs(gdev_prn_open, gdev_prn_output_page, gdev_prn_close,
218
218
                 NULL, NULL,
219
219
                 gdev_bjc_get_params, gdev_bjc_put_params);
236
236
/* -------------------------- 8 bit Grayscale ---------------------------- */
237
237
/***************************************************************************/
238
238
 
239
 
private const gx_device_procs bjcgray_procs =
 
239
static const gx_device_procs bjcgray_procs =
240
240
prn_color_params_procs(gdev_prn_open, gdev_prn_output_page, gdev_prn_close,
241
241
                 gx_default_gray_map_rgb_color, gx_default_gray_map_color_rgb,
242
242
                 gdev_bjc_get_params, gdev_bjc_put_params);
261
261
 
262
262
 
263
263
 
264
 
private const gx_device_procs bjc_cmykcolor_procs =
 
264
static const gx_device_procs bjc_cmykcolor_procs =
265
265
bjc_cmyk_param_procs(gdev_prn_open, gdev_prn_output_page, gdev_prn_close,
266
266
                     cmyk_1bit_map_color_rgb, cmyk_1bit_map_cmyk_color,
267
267
                     gdev_bjc_get_params, gdev_bjc_put_params);
286
286
 
287
287
 
288
288
 
289
 
private const gx_device_procs bjc_truecolor_procs =
 
289
static const gx_device_procs bjc_truecolor_procs =
290
290
bjc_cmyk_param_procs(gdev_prn_open, gdev_prn_output_page, gdev_prn_close,
291
291
                     cmyk_8bit_map_color_rgb, cmyk_8bit_map_cmyk_color,
292
292
                     gdev_bjc_get_params, gdev_bjc_put_params);
310
310
/***************************************************************************/
311
311
 
312
312
/*
313
 
private int
 
313
static int
314
314
bjc_print_page(gx_device_printer * pdev, FILE * file)
315
315
{
316
316
#define ppdev ((gx_device_bjc_printer *) pdev)
396
396
 
397
397
/* Get parameters.  BJC printer devices add several more parameters */
398
398
/* to the default set. */
399
 
private int
 
399
static int
400
400
gdev_bjc_get_params(gx_device * pdev, gs_param_list * plist)
401
401
{
402
402
    const gx_device_bjc_printer * ppdev = (gx_device_bjc_printer *)pdev;
435
435
}
436
436
 
437
437
/* Put parameters. */
438
 
private int
 
438
static int
439
439
gdev_bjc_put_params(gx_device * pdev, gs_param_list * plist)
440
440
{
441
441
    int code, ecode = 0;
567
567
#undef ppdev
568
568
}
569
569
 
570
 
private int
 
570
static int
571
571
bjc_print_page_mono(gx_device_printer * pdev, FILE * file)
572
572
{
573
573
#define ppdev ((gx_device_bjc_printer *) pdev)
639
639
#undef ppdev
640
640
}
641
641
 
642
 
private int
 
642
static int
643
643
bjc_print_page_gray(gx_device_printer * pdev, FILE * file)
644
644
{
645
645
#define ppdev ((gx_device_bjc_printer *) pdev)
724
724
#undef ppdev
725
725
}
726
726
 
727
 
private int
 
727
static int
728
728
bjc_print_page_cmyk(gx_device_printer * pdev, FILE * file)
729
729
{
730
730
#define ppdev ((gx_device_bjc_printer *) pdev)
843
843
#undef ppdev
844
844
}
845
845
 
846
 
private int
 
846
static int
847
847
bjc_print_page_color(gx_device_printer * pdev, FILE * file)
848
848
{
849
849
#define ppdev ((gx_device_bjc_printer *) pdev)