summaryrefslogtreecommitdiff
path: root/src/main/print-pcl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/print-pcl.c')
-rw-r--r--src/main/print-pcl.c52
1 files changed, 46 insertions, 6 deletions
diff --git a/src/main/print-pcl.c b/src/main/print-pcl.c
index 1feaacf..f1afc25 100644
--- a/src/main/print-pcl.c
+++ b/src/main/print-pcl.c
@@ -1,5 +1,5 @@
/*
- * "$Id: print-pcl.c,v 1.142 2006/05/12 00:53:18 rlk Exp $"
+ * "$Id: print-pcl.c,v 1.144 2006/07/07 13:11:42 rlk Exp $"
*
* Print plug-in HP PCL driver for the GIMP.
*
@@ -1018,6 +1018,19 @@ static const pcl_cap_t pcl_model_capabilities[] =
emptylist,
laserjet_papersources,
},
+ /* Some laser printers don't have expanded A4 margins */
+ { 22,
+ 17 * 72 / 2, 14 * 72,
+ 1, 1, /* Min paper size */
+ PCL_RES_150_150 | PCL_RES_300_300,
+ {12, 12, 18, 18},
+ {12, 12, 18, 18}, /* Check/Fix */
+ PCL_COLOR_NONE,
+ PCL_PRINTER_LJ,
+ ljsmall_papersizes,
+ emptylist,
+ laserjet_papersources,
+ },
/* LaserJet III series */
{ 3,
17 * 72 / 2, 14 * 72,
@@ -1031,6 +1044,19 @@ static const pcl_cap_t pcl_model_capabilities[] =
emptylist,
laserjet_papersources,
},
+ /* Some laser printers don't have expanded A4 margins */
+ { 32,
+ 17 * 72 / 2, 14 * 72,
+ 1, 1, /* Min paper size */
+ PCL_RES_150_150 | PCL_RES_300_300,
+ {12, 12, 18, 18},
+ {12, 12, 18, 18}, /* Check/Fix */
+ PCL_COLOR_NONE,
+ PCL_PRINTER_LJ | PCL_PRINTER_TIFF | PCL_PRINTER_BLANKLINE,
+ ljsmall_papersizes,
+ emptylist,
+ laserjet_papersources,
+ },
/* LaserJet 4L */
{ 4,
17 * 72 / 2, 14 * 72,
@@ -1085,6 +1111,20 @@ static const pcl_cap_t pcl_model_capabilities[] =
emptylist,
laserjet_papersources,
},
+ /* Some laser printers don't have expanded A4 margins */
+ { 62,
+ 17 * 72 / 2, 14 * 72,
+ 1, 1, /* Min paper size */
+ PCL_RES_150_150 | PCL_RES_300_300 | PCL_RES_600_600,
+ {12, 12, 18, 18},
+ {12, 12, 18, 18}, /* Check/Fix */
+ PCL_COLOR_NONE,
+ PCL_PRINTER_LJ | PCL_PRINTER_NEW_ERG | PCL_PRINTER_TIFF | PCL_PRINTER_BLANKLINE |
+ PCL_PRINTER_DUPLEX,
+ ljsmall_papersizes,
+ emptylist,
+ laserjet_papersources,
+ },
/* LaserJet 5Si */
{ 7,
13 * 72, 19 * 72,
@@ -1336,7 +1376,7 @@ static const char * pcl_val_to_text(int code, /* I: Code */
for (i=0; i<num_options; i++) {
if (code == options[i].pcl_code) {
- string=options[i].pcl_text;
+ string=gettext(options[i].pcl_text);
break;
}
}
@@ -1578,7 +1618,7 @@ pcl_parameters(const stp_vars_t *v, const char *name,
const stp_papersize_t *pt = stp_get_papersize_by_index(i);
if (strlen(pt->name) > 0 && pcl_papersize_valid(pt, model))
stp_string_list_add_string(description->bounds.str,
- pt->name, pt->text);
+ pt->name, gettext(pt->text));
}
description->deflt.str =
stp_string_list_param(description->bounds.str, 0)->name;
@@ -1650,9 +1690,9 @@ pcl_parameters(const stp_vars_t *v, const char *name,
{
description->deflt.str = ink_types[0].name;
stp_string_list_add_string(description->bounds.str,
- ink_types[0].name,_(ink_types[0].text));
+ ink_types[0].name,gettext(ink_types[0].text));
stp_string_list_add_string(description->bounds.str,
- ink_types[1].name,_(ink_types[1].text));
+ ink_types[1].name,gettext(ink_types[1].text));
}
else
description->is_active = 0;
@@ -1683,7 +1723,7 @@ pcl_parameters(const stp_vars_t *v, const char *name,
for (i=0; i < NUM_DUPLEX; i++)
{
stp_string_list_add_string(description->bounds.str,
- duplex_types[i].name,_(duplex_types[i].text));
+ duplex_types[i].name,gettext(duplex_types[i].text));
}
}
else