summaryrefslogtreecommitdiffstats
path: root/perl-install/printer/data.pm
blob: 2e20db2b5e642ae0993943331a19666ae9168b3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package printer::data;

use strict;
use common;
use vars qw(@ISA @EXPORT);

@ISA = qw(Exporter);
@EXPORT = qw(%lprcommand  %spoolers %spooler_inv %shortspooler_inv);


# BUG, FIXME : this was neither declered nor setted anywhere before :
# maybe this should be swtiched : 
# $lprcommand{stuff} => $spoolers{stuff}{print_command}

our %spoolers = ('ppq' => {
                          'help' => "/usr/bin/lphelp %s |",
					 'print_command' => 'lpr-pdq',
					 'long_name' => N("PDQ - Print, Don't Queue"),
					 'short_name' => N("PDQ")
                 },
                'lpd' => {
                        'help' => "/usr/bin/pdq -h -P %s 2>&1 |",
                        'print_command' => 'lpr',
				    'long_name' => N("LPD - Line Printer Daemon"),
					   'short_name' => N("LPD")
                 },
			 'lprng' => {
				'print_command' => 'lpr-lpd',
				'long_name' => N("LPRng - LPR New Generation"),
				'short_name' => N("LPRng")
			 },
			 'cups' => {
				'print_command' => 'lpr-cups',
				'long_name' => N("CUPS - Common Unix Printing System"),
				'short_name' => N("CUPS")
			 }
            );
our %spooler_inv = map { $spoolers{$_}{long_name} => $_ } keys %spoolers;

our %shortspooler_inv = map { $spoolers{$_}{short_name} => $_ } keys %spoolers;