| 1 | /* |
| 2 | * |
| 3 | * Print plug-in HP PCL driver for the GIMP. |
| 4 | * |
| 5 | * Copyright 1997-2000 Michael Sweet ([email protected]), |
| 6 | * Robert Krawitz ([email protected]) and |
| 7 | * Dave Hill ([email protected]) |
| 8 | * |
| 9 | * This program is free software; you can redistribute it and/or modify it |
| 10 | * under the terms of the GNU General Public License as published by the Free |
| 11 | * Software Foundation; either version 2 of the License, or (at your option) |
| 12 | * any later version. |
| 13 | * |
| 14 | * This program is distributed in the hope that it will be useful, but |
| 15 | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
| 16 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 17 | * for more details. |
| 18 | * |
| 19 | * You should have received a copy of the GNU General Public License |
| 20 | * along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 21 | */ |
| 22 | |
| 23 | /* |
| 24 | * This file must include only standard C header files. The core code must |
| 25 | * compile on generic platforms that don't support glib, gimp, gtk, etc. |
| 26 | */ |
| 27 | |
| 28 | #ifdef HAVE_CONFIG_Hcxx . . $ `<built-in>:411:9`! |
| 29 | #include <config.h>cxx . . $ `<file>/config.h`/ |
| 30 | #endif |
| 31 | #include <gutenprint/gutenprint.h>cxx . . $ `<file>/include/gutenprint/gutenprint.h`/ |
| 32 | #include <gutenprint/gutenprint-intl-internal.h>cxx . . $ `<file>/include/gutenprint/gutenprint-intl-internal.h`/ |
| 33 | #include "gutenprint-internal.h"cxx . . $ `<file>/src/main/gutenprint-internal.h`/ |
| 34 | #include <stdio.h> |
| 35 | #include <string.h> |
| 36 | |
| 37 | /* #define DEBUG */ |
| 38 | /* #define PCL_DEBUG_DISABLE_BLANKLINE_REMOVAL */ |
| 39 | |
| 40 | #ifdef __GNUC__cxx . . $ `<built-in>:8:9`! |
| 41 | #define UNUSEDcxx . . $ `src/main/print-pcl.c:41:9`! __attribute__ ((unused)) |
| 42 | #else |
| 43 | #define UNUSED |
| 44 | #endif |
| 45 | |
| 46 | /* |
| 47 | * Local functions... |
| 48 | */ |
| 49 | static void pcl_mode0cxx . . $ pcl_mode0(1d73a4498ccb64b0).(stp_vars_tcxx . . $ stp_vars_t# *, unsigned char *, int, int); |
| 50 | static void pcl_mode2cxx . . $ pcl_mode2(1d73a4498ccb64b0).(stp_vars_tcxx . . $ stp_vars_t# *, unsigned char *, int, int); |
| 51 | |
| 52 | #ifndef MAX |
| 53 | # define MAXcxx . . $ `src/main/print-pcl.c:53:11`!(a, b) ((a) > (b) ? (a) : (b)) |
| 54 | #endif /* !MAX */ |
| 55 | |
| 56 | typedef structcxx . . $ $anonymous_type_64c66a939155289b_0# |
| 57 | { |
| 58 | int do_blankcxx . . $ $anonymous_type_64c66a939155289b_0#do_blank.; |
| 59 | int blank_linescxx . . $ $anonymous_type_64c66a939155289b_0#blank_lines.; |
| 60 | unsigned char *row_bufcxx . . $ $anonymous_type_64c66a939155289b_0#row_buf.; /* For color laser */ |
| 61 | unsigned char *comp_bufcxx . . $ $anonymous_type_64c66a939155289b_0#comp_buf.; |
| 62 | void (*writefunccxx . . $ $anonymous_type_64c66a939155289b_0#writefunc.)(stp_vars_tcxx . . $ stp_vars_t# *, unsigned char *, int, int); /* PCL output function */ |
| 63 | int do_cretcxx . . $ $anonymous_type_64c66a939155289b_0#do_cret.; |
| 64 | int do_cretbcxx . . $ $anonymous_type_64c66a939155289b_0#do_cretb.; |
| 65 | int do_6colorcxx . . $ $anonymous_type_64c66a939155289b_0#do_6color.; |
| 66 | int heightcxx . . $ $anonymous_type_64c66a939155289b_0#height.; |
| 67 | int duplexcxx . . $ $anonymous_type_64c66a939155289b_0#duplex.; |
| 68 | int copiescxx . . $ $anonymous_type_64c66a939155289b_0#copies.; |
| 69 | int tumblecxx . . $ $anonymous_type_64c66a939155289b_0#tumble.; |
| 70 | int use_crdcxx . . $ $anonymous_type_64c66a939155289b_0#use_crd.; |
| 71 | int orientationcxx . . $ $anonymous_type_64c66a939155289b_0#orientation.; |
| 72 | int label_separatorcxx . . $ $anonymous_type_64c66a939155289b_0#label_separator.; |
| 73 | unsigned int h_offsetcxx . . $ $anonymous_type_64c66a939155289b_0#h_offset.; /* decipoints */ |
| 74 | unsigned int v_offsetcxx . . $ $anonymous_type_64c66a939155289b_0#v_offset.; /* decipoints */ |
| 75 | int darknesscxx . . $ $anonymous_type_64c66a939155289b_0#darkness.; |
| 76 | int nodithercxx . . $ $anonymous_type_64c66a939155289b_0#nodither.; |
| 77 | } pcl_privdata_tcxx . . $ pcl_privdata_t#; |
| 78 | |
| 79 | /* |
| 80 | * Generic define for a name/value set |
| 81 | */ |
| 82 | |
| 83 | typedef structcxx . . $ $anonymous_type_64c66a939155289b_1# |
| 84 | { |
| 85 | const char *pcl_namecxx . . $ $anonymous_type_64c66a939155289b_1#pcl_name.; |
| 86 | const char *pcl_textcxx . . $ $anonymous_type_64c66a939155289b_1#pcl_text.; |
| 87 | int pcl_codecxx . . $ $anonymous_type_64c66a939155289b_1#pcl_code.; |
| 88 | int p0cxx . . $ $anonymous_type_64c66a939155289b_1#p0.; |
| 89 | int p1cxx . . $ $anonymous_type_64c66a939155289b_1#p1.; |
| 90 | } pcl_tcxx . . $ pcl_t#; |
| 91 | |
| 92 | static const stp_dotsize_tcxx . . $ stp_dotsize_t# single_dotsizecxx . . $ single_dotsize.[] = |
| 93 | { |
| 94 | { 0x1, 1.0 } |
| 95 | }; |
| 96 | |
| 97 | static const stp_shade_tcxx . . $ stp_shade_t# photo_dither_shadescxx . . $ photo_dither_shades.[] = |
| 98 | { |
| 99 | { 1.0000, 1, single_dotsizecxx . . $ single_dotsize. }, |
| 100 | { 0.3333, 1, single_dotsizecxx . . $ single_dotsize. }, |
| 101 | }; |
| 102 | |
| 103 | /* |
| 104 | * Media size to PCL media size code table |
| 105 | * |
| 106 | * Note, you can force the list of papersizes given in the GUI to be only those |
| 107 | * supported by defining PCL_NO_CUSTOM_PAPERSIZES |
| 108 | */ |
| 109 | |
| 110 | /* #define PCL_NO_CUSTOM_PAPERSIZES */ |
| 111 | |
| 112 | #define PCL_PAPERSIZE_EXECUTIVEcxx . . $ `src/main/print-pcl.c:112:9`! 1 |
| 113 | #define PCL_PAPERSIZE_LETTERcxx . . $ `src/main/print-pcl.c:113:9`! 2 |
| 114 | #define PCL_PAPERSIZE_LEGALcxx . . $ `src/main/print-pcl.c:114:9`! 3 |
| 115 | #define PCL_PAPERSIZE_TABLOIDcxx . . $ `src/main/print-pcl.c:115:9`! 6 /* "Ledger" */ |
| 116 | #define PCL_PAPERSIZE_STATEMENTcxx . . $ `src/main/print-pcl.c:116:9`! 15 /* Called "Manual" in print-util */ |
| 117 | #define PCL_PAPERSIZE_SUPER_Bcxx . . $ `src/main/print-pcl.c:117:9`! 16 /* Called "13x19" in print-util */ |
| 118 | #define PCL_PAPERSIZE_A5cxx . . $ `src/main/print-pcl.c:118:9`! 25 |
| 119 | #define PCL_PAPERSIZE_A4cxx . . $ `src/main/print-pcl.c:119:9`! 26 |
| 120 | #define PCL_PAPERSIZE_A3cxx . . $ `src/main/print-pcl.c:120:9`! 27 |
| 121 | #define PCL_PAPERSIZE_JIS_B5cxx . . $ `src/main/print-pcl.c:121:9`! 45 |
| 122 | #define PCL_PAPERSIZE_JIS_B4cxx . . $ `src/main/print-pcl.c:122:9`! 46 |
| 123 | #define PCL_PAPERSIZE_HAGAKI_CARDcxx . . $ `src/main/print-pcl.c:123:9`! 71 |
| 124 | #define PCL_PAPERSIZE_OUFUKU_CARDcxx . . $ `src/main/print-pcl.c:124:9`! 72 |
| 125 | #define PCL_PAPERSIZE_A6_CARDcxx . . $ `src/main/print-pcl.c:125:9`! 73 |
| 126 | #define PCL_PAPERSIZE_4x6cxx . . $ `src/main/print-pcl.c:126:9`! 74 |
| 127 | #define PCL_PAPERSIZE_5x8cxx . . $ `src/main/print-pcl.c:127:9`! 75 |
| 128 | #define PCL_PAPERSIZE_3x5cxx . . $ `src/main/print-pcl.c:128:9`! 78 |
| 129 | #define PCL_PAPERSIZE_MONARCH_ENVcxx . . $ `src/main/print-pcl.c:129:9`! 80 |
| 130 | #define PCL_PAPERSIZE_COMMERCIAL10_ENVcxx . . $ `src/main/print-pcl.c:130:9`! 81 |
| 131 | #define PCL_PAPERSIZE_DL_ENVcxx . . $ `src/main/print-pcl.c:131:9`! 90 |
| 132 | #define PCL_PAPERSIZE_C5_ENVcxx . . $ `src/main/print-pcl.c:132:9`! 91 |
| 133 | #define PCL_PAPERSIZE_C6_ENVcxx . . $ `src/main/print-pcl.c:133:9`! 92 |
| 134 | #define PCL_PAPERSIZE_CUSTOMcxx . . $ `src/main/print-pcl.c:134:9`! 101 /* Custom size */ |
| 135 | #define PCL_PAPERSIZE_INVITATION_ENVcxx . . $ `src/main/print-pcl.c:135:9`! 109 |
| 136 | #define PCL_PAPERSIZE_JAPANESE_3_ENVcxx . . $ `src/main/print-pcl.c:136:9`! 110 |
| 137 | #define PCL_PAPERSIZE_JAPANESE_4_ENVcxx . . $ `src/main/print-pcl.c:137:9`! 111 |
| 138 | #define PCL_PAPERSIZE_KAKU_ENVcxx . . $ `src/main/print-pcl.c:138:9`! 113 |
| 139 | #define PCL_PAPERSIZE_HP_CARDcxx . . $ `src/main/print-pcl.c:139:9`! 114 /* HP Greeting card!?? */ |
| 140 | |
| 141 | /* |
| 142 | * This data comes from the HP documentation "Deskjet 1220C and 1120C |
| 143 | * PCL reference guide 2.0, Nov 1999". NOTE: The first name *must* match |
| 144 | * those in print-util.c for the lookups to work properly! |
| 145 | * The long names are not used so they have been removed, the ones in |
| 146 | * print-util.c are used in the interface. |
| 147 | */ |
| 148 | |
| 149 | static const pcl_tcxx . . $ pcl_t# pcl_media_sizescxx . . $ pcl_media_sizes.[] = |
| 150 | { |
| 151 | { "Executive", "notused", PCL_PAPERSIZE_EXECUTIVEcxx . . $ `src/main/print-pcl.c:112:9`!}, /* US Exec (7.25 x 10.5 in) */ |
| 152 | { "Letter", "notused", PCL_PAPERSIZE_LETTERcxx . . $ `src/main/print-pcl.c:113:9`!}, /* US Letter (8.5 x 11 in) */ |
| 153 | { "Legal", "notused", PCL_PAPERSIZE_LEGALcxx . . $ `src/main/print-pcl.c:114:9`!}, /* US Legal (8.5 x 14 in) */ |
| 154 | { "Tabloid", "notused", PCL_PAPERSIZE_TABLOIDcxx . . $ `src/main/print-pcl.c:115:9`!}, /* US Tabloid (11 x 17 in) */ |
| 155 | { "Statement", "notused", PCL_PAPERSIZE_STATEMENTcxx . . $ `src/main/print-pcl.c:116:9`!}, /* US Manual/Statement (5.5 x 8.5 in) */ |
| 156 | { "SuperB", "notused", PCL_PAPERSIZE_SUPER_Bcxx . . $ `src/main/print-pcl.c:117:9`!}, /* US 13x19/Super B (13 x 19 in) */ |
| 157 | { "A5", "notused", PCL_PAPERSIZE_A5cxx . . $ `src/main/print-pcl.c:118:9`!}, /* ISO/JIS A5 (148 x 210 mm) */ |
| 158 | { "A4", "notused", PCL_PAPERSIZE_A4cxx . . $ `src/main/print-pcl.c:119:9`!}, /* ISO/JIS A4 (210 x 297 mm) */ |
| 159 | { "A3", "notused", PCL_PAPERSIZE_A3cxx . . $ `src/main/print-pcl.c:120:9`!}, /* ISO/JIS A3 (297 x 420 mm) */ |
| 160 | { "B5", "notused", PCL_PAPERSIZE_JIS_B5cxx . . $ `src/main/print-pcl.c:121:9`!}, /* JIS B5 (182 x 257 mm). */ |
| 161 | { "B4", "notused", PCL_PAPERSIZE_JIS_B4cxx . . $ `src/main/print-pcl.c:122:9`!}, /* JIS B4 (257 x 364 mm). */ |
| 162 | { "w283h420", "notused", PCL_PAPERSIZE_HAGAKI_CARDcxx . . $ `src/main/print-pcl.c:123:9`!}, /* Japanese Hagaki Card (100 x 148 mm) */ |
| 163 | { "w420h567", "notused", PCL_PAPERSIZE_OUFUKU_CARDcxx . . $ `src/main/print-pcl.c:124:9`!}, /* Japanese Oufuku Card (148 x 200 mm) */ |
| 164 | { "A6", "notused", PCL_PAPERSIZE_A6_CARDcxx . . $ `src/main/print-pcl.c:125:9`!}, /* ISO/JIS A6 card */ |
| 165 | { "w288h432", "notused", PCL_PAPERSIZE_4x6cxx . . $ `src/main/print-pcl.c:126:9`!}, /* US Index card (4 x 6 in) */ |
| 166 | { "w360h576", "notused", PCL_PAPERSIZE_5x8cxx . . $ `src/main/print-pcl.c:127:9`!}, /* US Index card (5 x 8 in) */ |
| 167 | { "w216h360", "notused", PCL_PAPERSIZE_3x5cxx . . $ `src/main/print-pcl.c:128:9`!}, /* US Index card (3 x 5 in) */ |
| 168 | { "Monarch", "notused", PCL_PAPERSIZE_MONARCH_ENVcxx . . $ `src/main/print-pcl.c:129:9`!}, /* Monarch Envelope (3 7/8 x 7 1/2 in) */ |
| 169 | { "COM10", "notused", PCL_PAPERSIZE_COMMERCIAL10_ENVcxx . . $ `src/main/print-pcl.c:130:9`!}, /* US Commercial 10 Envelope (4.125 x 9.5 in) Portrait */ |
| 170 | { "DL", "notused", PCL_PAPERSIZE_DL_ENVcxx . . $ `src/main/print-pcl.c:131:9`!}, /* DL envelope (110 x 220 mm) Portrait */ |
| 171 | { "C5", "notused", PCL_PAPERSIZE_C5_ENVcxx . . $ `src/main/print-pcl.c:132:9`!}, /* C5 envelope (162 x 229 mm) */ |
| 172 | { "C6", "notused", PCL_PAPERSIZE_C6_ENVcxx . . $ `src/main/print-pcl.c:133:9`!}, /* C6 envelope (114 x 162 mm) */ |
| 173 | { "w315h414", "notused", PCL_PAPERSIZE_INVITATION_ENVcxx . . $ `src/main/print-pcl.c:135:9`!}, /* US A2 Invitation envelope (4 3/8 x 5 3/4 in) */ |
| 174 | { "w340h666", "notused", PCL_PAPERSIZE_JAPANESE_3_ENVcxx . . $ `src/main/print-pcl.c:136:9`!}, /* Japanese Long Envelope #3 (120 x 235 mm) */ |
| 175 | { "w255h581", "notused", PCL_PAPERSIZE_JAPANESE_4_ENVcxx . . $ `src/main/print-pcl.c:137:9`!}, /* Japanese Long Envelope #4 (90 x 205 mm) */ |
| 176 | { "w680h941", "notused", PCL_PAPERSIZE_KAKU_ENVcxx . . $ `src/main/print-pcl.c:138:9`!}, /* Japanese Kaku Envelope (240 x 332.1 mm) */ |
| 177 | /**** MRS: this size not supported by print-util funcs! ****/ |
| 178 | { "w612h792", "notused", PCL_PAPERSIZE_HP_CARDcxx . . $ `src/main/print-pcl.c:139:9`!}, /* Hp greeting card */ |
| 179 | }; |
| 180 | #define NUM_PRINTER_PAPER_SIZEScxx . . $ `src/main/print-pcl.c:180:9`! (sizeof(pcl_media_sizes) / sizeof(pcl_t)) |
| 181 | |
| 182 | /* |
| 183 | * Media type to code table |
| 184 | */ |
| 185 | |
| 186 | #define PCL_PAPERTYPE_PLAINcxx . . $ `src/main/print-pcl.c:186:9`! 0 |
| 187 | #define PCL_PAPERTYPE_BONDcxx . . $ `src/main/print-pcl.c:187:9`! 1 |
| 188 | #define PCL_PAPERTYPE_PREMIUMcxx . . $ `src/main/print-pcl.c:188:9`! 2 |
| 189 | #define PCL_PAPERTYPE_GLOSSYcxx . . $ `src/main/print-pcl.c:189:9`! 3 /* or photo */ |
| 190 | #define PCL_PAPERTYPE_TRANScxx . . $ `src/main/print-pcl.c:190:9`! 4 |
| 191 | #define PCL_PAPERTYPE_QPHOTOcxx . . $ `src/main/print-pcl.c:191:9`! 5 /* Quick dry photo (2000 only) */ |
| 192 | #define PCL_PAPERTYPE_QTRANScxx . . $ `src/main/print-pcl.c:192:9`! 6 /* Quick dry transparency (2000 only) */ |
| 193 | |
| 194 | static const pcl_tcxx . . $ pcl_t# pcl_media_typescxx . . $ pcl_media_types.[] = |
| 195 | { |
| 196 | { "Plain", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Plain"), PCL_PAPERTYPE_PLAINcxx . . $ `src/main/print-pcl.c:186:9`!}, |
| 197 | { "Bond", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Bond"), PCL_PAPERTYPE_BONDcxx . . $ `src/main/print-pcl.c:187:9`!}, |
| 198 | { "Premium", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Premium"), PCL_PAPERTYPE_PREMIUMcxx . . $ `src/main/print-pcl.c:188:9`!}, |
| 199 | { "Glossy", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Glossy Photo"), PCL_PAPERTYPE_GLOSSYcxx . . $ `src/main/print-pcl.c:189:9`!}, |
| 200 | { "Transparency", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Transparency"), PCL_PAPERTYPE_TRANScxx . . $ `src/main/print-pcl.c:190:9`!}, |
| 201 | { "GlossyQD", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Quick-dry Photo"), PCL_PAPERTYPE_QPHOTOcxx . . $ `src/main/print-pcl.c:191:9`!}, |
| 202 | { "TransparencyQD", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Quick-dry Transparency"), PCL_PAPERTYPE_QTRANScxx . . $ `src/main/print-pcl.c:192:9`!}, |
| 203 | }; |
| 204 | #define NUM_PRINTER_PAPER_TYPEScxx . . $ `src/main/print-pcl.c:204:9`! (sizeof(pcl_media_types) / sizeof(pcl_t)) |
| 205 | |
| 206 | /* |
| 207 | * Media feed to code table. There are different names for the same code, |
| 208 | * so we encode them by adding "lumps" of "PAPERSOURCE_MOD". |
| 209 | * This is removed later to get back to the main codes. |
| 210 | */ |
| 211 | |
| 212 | #define PAPERSOURCE_MODcxx . . $ `src/main/print-pcl.c:212:9`! 16 |
| 213 | #define PAPERSOURCE_340_MODcxx . . $ `src/main/print-pcl.c:213:9`! (PAPERSOURCE_MODcxx . . $ `src/main/print-pcl.c:212:9`!) |
| 214 | #define PAPERSOURCE_DJ_MODcxx . . $ `src/main/print-pcl.c:214:9`! (PAPERSOURCE_MODcxx . . $ `src/main/print-pcl.c:212:9`! << 1) |
| 215 | #define PAPERSOURCE_ADJ_GUIDEcxx . . $ `src/main/print-pcl.c:215:9`! (PAPERSOURCE_MODcxx . . $ `src/main/print-pcl.c:212:9`! << 2) |
| 216 | |
| 217 | #define PCL_PAPERSOURCE_STANDARDcxx . . $ `src/main/print-pcl.c:217:9`! 0 /* Don't output code */ |
| 218 | #define PCL_PAPERSOURCE_MANUALcxx . . $ `src/main/print-pcl.c:218:9`! 2 |
| 219 | #define PCL_PAPERSOURCE_MANUAL_ADJcxx . . $ `src/main/print-pcl.c:219:9`! (PCL_PAPERSOURCE_MANUALcxx . . $ `src/main/print-pcl.c:218:9`! + PAPERSOURCE_ADJ_GUIDEcxx . . $ `src/main/print-pcl.c:215:9`!) |
| 220 | #define PCL_PAPERSOURCE_ENVELOPEcxx . . $ `src/main/print-pcl.c:220:9`! 3 /* Not used */ |
| 221 | |
| 222 | /* LaserJet types */ |
| 223 | #define PCL_PAPERSOURCE_LJ_TRAY2cxx . . $ `src/main/print-pcl.c:223:9`! 1 |
| 224 | #define PCL_PAPERSOURCE_LJ_TRAY3cxx . . $ `src/main/print-pcl.c:224:9`! 4 |
| 225 | #define PCL_PAPERSOURCE_LJ_TRAY4cxx . . $ `src/main/print-pcl.c:225:9`! 5 |
| 226 | #define PCL_PAPERSOURCE_LJ_TRAY1cxx . . $ `src/main/print-pcl.c:226:9`! 8 |
| 227 | #define PCL_PAPERSOURCE_LJ_TRAY1_ADJcxx . . $ `src/main/print-pcl.c:227:9`! (PCL_PAPERSOURCE_LJ_TRAY1cxx . . $ `src/main/print-pcl.c:226:9`! + PAPERSOURCE_ADJ_GUIDEcxx . . $ `src/main/print-pcl.c:215:9`!) |
| 228 | #define PCL_PAPERSOURCE_LJ_TRAY2_ADJcxx . . $ `src/main/print-pcl.c:228:9`! (PCL_PAPERSOURCE_LJ_TRAY2cxx . . $ `src/main/print-pcl.c:223:9`! + PAPERSOURCE_ADJ_GUIDEcxx . . $ `src/main/print-pcl.c:215:9`!) |
| 229 | #define PCL_PAPERSOURCE_LJ_TRAY3_ADJcxx . . $ `src/main/print-pcl.c:229:9`! (PCL_PAPERSOURCE_LJ_TRAY3cxx . . $ `src/main/print-pcl.c:224:9`! + PAPERSOURCE_ADJ_GUIDEcxx . . $ `src/main/print-pcl.c:215:9`!) |
| 230 | #define PCL_PAPERSOURCE_LJ_TRAY4_ADJcxx . . $ `src/main/print-pcl.c:230:9`! (PCL_PAPERSOURCE_LJ_TRAY4cxx . . $ `src/main/print-pcl.c:225:9`! + PAPERSOURCE_ADJ_GUIDEcxx . . $ `src/main/print-pcl.c:215:9`!) |
| 231 | |
| 232 | /* Deskjet 340 types */ |
| 233 | #define PCL_PAPERSOURCE_340_PCSFcxx . . $ `src/main/print-pcl.c:233:9`! (1 + PAPERSOURCE_340_MODcxx . . $ `src/main/print-pcl.c:213:9`!) |
| 234 | /* Portable sheet feeder for 340 */ |
| 235 | #define PCL_PAPERSOURCE_340_DCSFcxx . . $ `src/main/print-pcl.c:235:9`! (4 + PAPERSOURCE_340_MODcxx . . $ `src/main/print-pcl.c:213:9`!) |
| 236 | /* Desktop sheet feeder for 340 */ |
| 237 | |
| 238 | /* Other Deskjet types */ |
| 239 | #define PCL_PAPERSOURCE_DJ_TRAYcxx . . $ `src/main/print-pcl.c:239:9`! (1 + PAPERSOURCE_DJ_MODcxx . . $ `src/main/print-pcl.c:214:9`!) |
| 240 | #define PCL_PAPERSOURCE_DJ_TRAY2cxx . . $ `src/main/print-pcl.c:240:9`! (4 + PAPERSOURCE_DJ_MODcxx . . $ `src/main/print-pcl.c:214:9`!) |
| 241 | /* Tray 2 for 2500 */ |
| 242 | #define PCL_PAPERSOURCE_DJ_OPTIONALcxx . . $ `src/main/print-pcl.c:242:9`! (5 + PAPERSOURCE_DJ_MODcxx . . $ `src/main/print-pcl.c:214:9`!) |
| 243 | /* Optional source for 2500 */ |
| 244 | #define PCL_PAPERSOURCE_DJ_AUTOcxx . . $ `src/main/print-pcl.c:244:9`! (7 + PAPERSOURCE_DJ_MODcxx . . $ `src/main/print-pcl.c:214:9`!) |
| 245 | /* Autoselect for 2500 */ |
| 246 | |
| 247 | static const pcl_tcxx . . $ pcl_t# pcl_media_sourcescxx . . $ pcl_media_sources.[] = |
| 248 | { |
| 249 | { "Standard", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Standard"), PCL_PAPERSOURCE_STANDARDcxx . . $ `src/main/print-pcl.c:217:9`!}, |
| 250 | { "Manual", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Manual"), PCL_PAPERSOURCE_MANUALcxx . . $ `src/main/print-pcl.c:218:9`!}, |
| 251 | { "ManualAdj", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Manual - Movable Guides"), PCL_PAPERSOURCE_MANUAL_ADJcxx . . $ `src/main/print-pcl.c:219:9`!}, |
| 252 | /* {"Envelope", PCL_PAPERSOURCE_ENVELOPE}, */ |
| 253 | { "MultiPurposeAdj", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Tray 1 - Movable Guides"), PCL_PAPERSOURCE_LJ_TRAY1_ADJcxx . . $ `src/main/print-pcl.c:227:9`!}, |
| 254 | { "MultiPurpose", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Tray 1"), PCL_PAPERSOURCE_LJ_TRAY1cxx . . $ `src/main/print-pcl.c:226:9`!}, |
| 255 | { "UpperAdj", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Tray 2 - Movable Guides"), PCL_PAPERSOURCE_LJ_TRAY2_ADJcxx . . $ `src/main/print-pcl.c:228:9`!}, |
| 256 | { "Upper", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Tray 2"), PCL_PAPERSOURCE_LJ_TRAY2cxx . . $ `src/main/print-pcl.c:223:9`!}, |
| 257 | { "LowerAdj", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Tray 3 - Movable Guides"), PCL_PAPERSOURCE_LJ_TRAY3_ADJcxx . . $ `src/main/print-pcl.c:229:9`!}, |
| 258 | { "Lower", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Tray 3"), PCL_PAPERSOURCE_LJ_TRAY3cxx . . $ `src/main/print-pcl.c:224:9`!}, |
| 259 | { "LargeCapacityAdj", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Tray 4 - Movable Guides"), PCL_PAPERSOURCE_LJ_TRAY4_ADJcxx . . $ `src/main/print-pcl.c:230:9`!}, |
| 260 | { "LargeCapacity", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Tray 4"), PCL_PAPERSOURCE_LJ_TRAY4cxx . . $ `src/main/print-pcl.c:225:9`!}, |
| 261 | { "Portable", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Portable Sheet Feeder"), PCL_PAPERSOURCE_340_PCSFcxx . . $ `src/main/print-pcl.c:233:9`!}, |
| 262 | { "Desktop", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Desktop Sheet Feeder"), PCL_PAPERSOURCE_340_DCSFcxx . . $ `src/main/print-pcl.c:235:9`!}, |
| 263 | { "Tray", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Tray"), PCL_PAPERSOURCE_DJ_TRAYcxx . . $ `src/main/print-pcl.c:239:9`!}, |
| 264 | { "Tray2", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Tray 2"), PCL_PAPERSOURCE_DJ_TRAY2cxx . . $ `src/main/print-pcl.c:240:9`!}, |
| 265 | { "Optional", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Optional Source"), PCL_PAPERSOURCE_DJ_OPTIONALcxx . . $ `src/main/print-pcl.c:242:9`!}, |
| 266 | { "Auto", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Autoselect"), PCL_PAPERSOURCE_DJ_AUTOcxx . . $ `src/main/print-pcl.c:244:9`!}, |
| 267 | }; |
| 268 | #define NUM_PRINTER_PAPER_SOURCEScxx . . $ `src/main/print-pcl.c:268:9`! (sizeof(pcl_media_sources) / sizeof(pcl_t)) |
| 269 | |
| 270 | #define PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! 1 |
| 271 | #define PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`! 2 |
| 272 | #define PCL_RES_600_300cxx . . $ `src/main/print-pcl.c:272:9`! 4 /* DJ 600 series */ |
| 273 | #define PCL_RES_600_600_MONOcxx . . $ `src/main/print-pcl.c:273:9`! 8 /* DJ 600/800/1100/2000 b/w only */ |
| 274 | #define PCL_RES_600_600cxx . . $ `src/main/print-pcl.c:274:9`! 16 /* DJ 9xx/1220C/PhotoSmart */ |
| 275 | #define PCL_RES_1200_600cxx . . $ `src/main/print-pcl.c:275:9`! 32 /* DJ 9xx/1220C/PhotoSmart */ |
| 276 | #define PCL_RES_2400_600cxx . . $ `src/main/print-pcl.c:276:9`! 64 /* DJ 9xx/1220C/PhotoSmart */ |
| 277 | |
| 278 | static const pcl_tcxx . . $ pcl_t# pcl_resolutionscxx . . $ pcl_resolutions.[] = |
| 279 | { |
| 280 | { "150dpi", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("150x150 DPI"), PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`!, 150, 150}, |
| 281 | { "300dpi", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("300x300 DPI"), PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`!, 300, 300}, |
| 282 | { "600x300dpi", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("600x300 DPI"), PCL_RES_600_300cxx . . $ `src/main/print-pcl.c:272:9`!, 600, 300}, |
| 283 | { "600mono", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("600x600 DPI monochrome"), PCL_RES_600_600_MONOcxx . . $ `src/main/print-pcl.c:273:9`!, 600, 600}, |
| 284 | { "600dpi", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("600x600 DPI"), PCL_RES_600_600cxx . . $ `src/main/print-pcl.c:274:9`!, 600, 600}, |
| 285 | { "1200x600dpi", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("1200x600 DPI"), PCL_RES_1200_600cxx . . $ `src/main/print-pcl.c:275:9`!, 1200, 600}, |
| 286 | { "2400x600dpi", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("2400x600 DPI"), PCL_RES_2400_600cxx . . $ `src/main/print-pcl.c:276:9`!, 2400, 600}, |
| 287 | }; |
| 288 | #define NUM_RESOLUTIONScxx . . $ `src/main/print-pcl.c:288:9`! (sizeof(pcl_resolutions) / sizeof (pcl_t)) |
| 289 | |
| 290 | static const pcl_tcxx . . $ pcl_t# pcl_qualitiescxx . . $ pcl_qualities.[] = |
| 291 | { |
| 292 | { "Draft", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Draft"), PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`!, 150, 150}, |
| 293 | { "Standard", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Standard"), PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`!, 300, 300}, |
| 294 | { "High", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("High"), PCL_RES_600_600cxx . . $ `src/main/print-pcl.c:274:9`!, 600, 600}, |
| 295 | { "High", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Standard"), PCL_RES_600_300cxx . . $ `src/main/print-pcl.c:272:9`!, 600, 300}, |
| 296 | { "Photo", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Photo"), PCL_RES_1200_600cxx . . $ `src/main/print-pcl.c:275:9`!, 1200, 600}, |
| 297 | { "Photo", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Photo"), PCL_RES_2400_600cxx . . $ `src/main/print-pcl.c:276:9`!, 2400, 600}, |
| 298 | }; |
| 299 | #define NUM_QUALITIEScxx . . $ `src/main/print-pcl.c:299:9`! (sizeof(pcl_qualities) / sizeof (pcl_t)) |
| 300 | |
| 301 | typedef structcxx . . $ $anonymous_type_64c66a939155289b_2# { |
| 302 | int top_margincxx . . $ $anonymous_type_64c66a939155289b_2#top_margin.; |
| 303 | int bottom_margincxx . . $ $anonymous_type_64c66a939155289b_2#bottom_margin.; |
| 304 | int left_margincxx . . $ $anonymous_type_64c66a939155289b_2#left_margin.; |
| 305 | int right_margincxx . . $ $anonymous_type_64c66a939155289b_2#right_margin.; |
| 306 | } margins_tcxx . . $ margins_t#; |
| 307 | |
| 308 | /* |
| 309 | * Printer capability data |
| 310 | */ |
| 311 | |
| 312 | typedef structcxx . . $ $anonymous_type_64c66a939155289b_3# { |
| 313 | int modelcxx . . $ $anonymous_type_64c66a939155289b_3#model.; |
| 314 | unsigned int custom_max_widthcxx . . $ $anonymous_type_64c66a939155289b_3#custom_max_width.; |
| 315 | unsigned int custom_max_heightcxx . . $ $anonymous_type_64c66a939155289b_3#custom_max_height.; |
| 316 | unsigned int custom_min_widthcxx . . $ $anonymous_type_64c66a939155289b_3#custom_min_width.; |
| 317 | unsigned int custom_min_heightcxx . . $ $anonymous_type_64c66a939155289b_3#custom_min_height.; |
| 318 | int resolutionscxx . . $ $anonymous_type_64c66a939155289b_3#resolutions.; |
| 319 | margins_tcxx . . $ margins_t# normal_marginscxx . . $ $anonymous_type_64c66a939155289b_3#normal_margins.; |
| 320 | margins_tcxx . . $ margins_t# a4_marginscxx . . $ $anonymous_type_64c66a939155289b_3#a4_margins.; |
| 321 | int color_typecxx . . $ $anonymous_type_64c66a939155289b_3#color_type.; /* 2 print head or one, 2 level or 4 */ |
| 322 | int stp_printer_typecxx . . $ $anonymous_type_64c66a939155289b_3#stp_printer_type.; /* Deskjet/Laserjet and quirks */ |
| 323 | /* The paper size, paper type and paper source codes cannot be combined */ |
| 324 | const short *paper_sizescxx . . $ $anonymous_type_64c66a939155289b_3#paper_sizes.; /* Paper sizes */ |
| 325 | const short *paper_typescxx . . $ $anonymous_type_64c66a939155289b_3#paper_types.; /* Paper types */ |
| 326 | const short *paper_sourcescxx . . $ $anonymous_type_64c66a939155289b_3#paper_sources.; /* Paper sources */ |
| 327 | } pcl_cap_tcxx . . $ pcl_cap_t#; |
| 328 | |
| 329 | #define PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`! 0 |
| 330 | #define PCL_COLOR_CMYcxx . . $ `src/main/print-pcl.c:330:9`! 1 /* One print head */ |
| 331 | #define PCL_COLOR_CMYKcxx . . $ `src/main/print-pcl.c:331:9`! 2 /* Two print heads */ |
| 332 | #define PCL_COLOR_CMYK4cxx . . $ `src/main/print-pcl.c:332:9`! 4 /* CRet printing */ |
| 333 | #define PCL_COLOR_CMYKcmcxx . . $ `src/main/print-pcl.c:333:9`! 8 /* CMY + Photo Cart */ |
| 334 | #define PCL_COLOR_CMYK4bcxx . . $ `src/main/print-pcl.c:334:9`! 16 /* CRet for HP840c */ |
| 335 | #define PCL_COLOR_RGBcxx . . $ `src/main/print-pcl.c:335:9`! 32 /* RGB for color lasers */ |
| 336 | |
| 337 | #define PCL_PRINTER_LJcxx . . $ `src/main/print-pcl.c:337:9`! 1 |
| 338 | #define PCL_PRINTER_DJcxx . . $ `src/main/print-pcl.c:338:9`! 2 |
| 339 | #define PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! 4 /* use "\033*rC" to end raster graphics, |
| 340 | instead of "\033*rB" */ |
| 341 | #define PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! 8 /* Use TIFF compression */ |
| 342 | #define PCL_PRINTER_MEDIATYPEcxx . . $ `src/main/print-pcl.c:342:9`! 16 /* Use media type & print quality */ |
| 343 | #define PCL_PRINTER_CUSTOM_SIZEcxx . . $ `src/main/print-pcl.c:343:9`! 32 /* Custom sizes supported */ |
| 344 | #define PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! 64 /* Blank line removal supported */ |
| 345 | #define PCL_PRINTER_DUPLEXcxx . . $ `src/main/print-pcl.c:345:9`! 128 /* Printer can have duplexer */ |
| 346 | #define PCL_PRINTER_LABELcxx . . $ `src/main/print-pcl.c:346:9`! 256 /* Datamax-O'Neil PCL Label Printer */ |
| 347 | #define PCL_PRINTER_LJ_COLORcxx . . $ `src/main/print-pcl.c:347:9`! 512 /* Color laser printers */ |
| 348 | #define PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`! 1024 /* Supports PCL5/HPGL2/HP-RTL copies */ |
| 349 | |
| 350 | /* |
| 351 | * FIXME - the 520 shouldn't be lumped in with the 500 as it supports |
| 352 | * more paper sizes. |
| 353 | * |
| 354 | * The following models use depletion, raster quality and shingling:- |
| 355 | * 500, 500c, 510, 520, 550c, 560c. |
| 356 | * The rest use Media Type and Print Quality. |
| 357 | * |
| 358 | * This data comes from the HP documentation "Deskjet 1220C and 1120C |
| 359 | * PCL reference guide 2.0, Nov 1999". |
| 360 | */ |
| 361 | |
| 362 | static const short emptylistcxx . . $ emptylist.[] = |
| 363 | { |
| 364 | -1 |
| 365 | }; |
| 366 | |
| 367 | static const short custom_papersizescxx . . $ custom_papersizes.[] = |
| 368 | { |
| 369 | PCL_PAPERSIZE_CUSTOMcxx . . $ `src/main/print-pcl.c:134:9`!, |
| 370 | -1, |
| 371 | }; |
| 372 | |
| 373 | static const short standard_papersizescxx . . $ standard_papersizes.[] = |
| 374 | { |
| 375 | PCL_PAPERSIZE_EXECUTIVEcxx . . $ `src/main/print-pcl.c:112:9`!, |
| 376 | PCL_PAPERSIZE_STATEMENTcxx . . $ `src/main/print-pcl.c:116:9`!, |
| 377 | PCL_PAPERSIZE_LETTERcxx . . $ `src/main/print-pcl.c:113:9`!, |
| 378 | PCL_PAPERSIZE_LEGALcxx . . $ `src/main/print-pcl.c:114:9`!, |
| 379 | PCL_PAPERSIZE_A4cxx . . $ `src/main/print-pcl.c:119:9`!, |
| 380 | -1, |
| 381 | }; |
| 382 | |
| 383 | static const short letter_a4_papersizescxx . . $ letter_a4_papersizes.[] = |
| 384 | { |
| 385 | PCL_PAPERSIZE_A4cxx . . $ `src/main/print-pcl.c:119:9`!, |
| 386 | PCL_PAPERSIZE_LETTERcxx . . $ `src/main/print-pcl.c:113:9`!, |
| 387 | -1 |
| 388 | }; |
| 389 | |
| 390 | static const short dj340_papersizescxx . . $ dj340_papersizes.[] = |
| 391 | { |
| 392 | PCL_PAPERSIZE_EXECUTIVEcxx . . $ `src/main/print-pcl.c:112:9`!, |
| 393 | PCL_PAPERSIZE_LETTERcxx . . $ `src/main/print-pcl.c:113:9`!, |
| 394 | PCL_PAPERSIZE_LEGALcxx . . $ `src/main/print-pcl.c:114:9`!, |
| 395 | PCL_PAPERSIZE_A4cxx . . $ `src/main/print-pcl.c:119:9`!, |
| 396 | -1, |
| 397 | }; |
| 398 | |
| 399 | static const short dj400_papersizescxx . . $ dj400_papersizes.[] = |
| 400 | { |
| 401 | PCL_PAPERSIZE_EXECUTIVEcxx . . $ `src/main/print-pcl.c:112:9`!, |
| 402 | PCL_PAPERSIZE_LETTERcxx . . $ `src/main/print-pcl.c:113:9`!, |
| 403 | PCL_PAPERSIZE_LEGALcxx . . $ `src/main/print-pcl.c:114:9`!, |
| 404 | PCL_PAPERSIZE_A4cxx . . $ `src/main/print-pcl.c:119:9`!, |
| 405 | PCL_PAPERSIZE_JIS_B5cxx . . $ `src/main/print-pcl.c:121:9`!, |
| 406 | -1, |
| 407 | }; |
| 408 | |
| 409 | static const short dj500_papersizescxx . . $ dj500_papersizes.[] = |
| 410 | { |
| 411 | /* PCL_PAPERSIZE_EXECUTIVE, The 500 doesn't support this, the 520 does */ |
| 412 | PCL_PAPERSIZE_LETTERcxx . . $ `src/main/print-pcl.c:113:9`!, |
| 413 | PCL_PAPERSIZE_LEGALcxx . . $ `src/main/print-pcl.c:114:9`!, |
| 414 | PCL_PAPERSIZE_A4cxx . . $ `src/main/print-pcl.c:119:9`!, |
| 415 | PCL_PAPERSIZE_COMMERCIAL10_ENVcxx . . $ `src/main/print-pcl.c:130:9`!, |
| 416 | /* PCL_PAPERSIZE_DL_ENV, The 500 doesn't support this, the 520 does */ |
| 417 | -1, |
| 418 | }; |
| 419 | |
| 420 | static const short dj540_papersizescxx . . $ dj540_papersizes.[] = |
| 421 | { |
| 422 | PCL_PAPERSIZE_EXECUTIVEcxx . . $ `src/main/print-pcl.c:112:9`!, |
| 423 | PCL_PAPERSIZE_LETTERcxx . . $ `src/main/print-pcl.c:113:9`!, |
| 424 | PCL_PAPERSIZE_LEGALcxx . . $ `src/main/print-pcl.c:114:9`!, |
| 425 | PCL_PAPERSIZE_A4cxx . . $ `src/main/print-pcl.c:119:9`!, |
| 426 | PCL_PAPERSIZE_A5cxx . . $ `src/main/print-pcl.c:118:9`!, |
| 427 | PCL_PAPERSIZE_JIS_B5cxx . . $ `src/main/print-pcl.c:121:9`!, |
| 428 | PCL_PAPERSIZE_HAGAKI_CARDcxx . . $ `src/main/print-pcl.c:123:9`!, |
| 429 | PCL_PAPERSIZE_A6_CARDcxx . . $ `src/main/print-pcl.c:125:9`!, |
| 430 | PCL_PAPERSIZE_4x6cxx . . $ `src/main/print-pcl.c:126:9`!, |
| 431 | PCL_PAPERSIZE_5x8cxx . . $ `src/main/print-pcl.c:127:9`!, |
| 432 | PCL_PAPERSIZE_COMMERCIAL10_ENVcxx . . $ `src/main/print-pcl.c:130:9`!, |
| 433 | PCL_PAPERSIZE_DL_ENVcxx . . $ `src/main/print-pcl.c:131:9`!, |
| 434 | PCL_PAPERSIZE_C6_ENVcxx . . $ `src/main/print-pcl.c:133:9`!, |
| 435 | -1, |
| 436 | }; |
| 437 | |
| 438 | static const short dj600_papersizescxx . . $ dj600_papersizes.[] = |
| 439 | { |
| 440 | PCL_PAPERSIZE_EXECUTIVEcxx . . $ `src/main/print-pcl.c:112:9`!, |
| 441 | PCL_PAPERSIZE_LETTERcxx . . $ `src/main/print-pcl.c:113:9`!, |
| 442 | PCL_PAPERSIZE_LEGALcxx . . $ `src/main/print-pcl.c:114:9`!, |
| 443 | PCL_PAPERSIZE_A4cxx . . $ `src/main/print-pcl.c:119:9`!, |
| 444 | PCL_PAPERSIZE_A5cxx . . $ `src/main/print-pcl.c:118:9`!, |
| 445 | PCL_PAPERSIZE_HAGAKI_CARDcxx . . $ `src/main/print-pcl.c:123:9`!, |
| 446 | PCL_PAPERSIZE_A6_CARDcxx . . $ `src/main/print-pcl.c:125:9`!, |
| 447 | PCL_PAPERSIZE_4x6cxx . . $ `src/main/print-pcl.c:126:9`!, |
| 448 | PCL_PAPERSIZE_5x8cxx . . $ `src/main/print-pcl.c:127:9`!, |
| 449 | PCL_PAPERSIZE_COMMERCIAL10_ENVcxx . . $ `src/main/print-pcl.c:130:9`!, |
| 450 | PCL_PAPERSIZE_DL_ENVcxx . . $ `src/main/print-pcl.c:131:9`!, |
| 451 | PCL_PAPERSIZE_C6_ENVcxx . . $ `src/main/print-pcl.c:133:9`!, |
| 452 | PCL_PAPERSIZE_INVITATION_ENVcxx . . $ `src/main/print-pcl.c:135:9`!, |
| 453 | -1, |
| 454 | }; |
| 455 | |
| 456 | static const short dj1220_papersizescxx . . $ dj1220_papersizes.[] = |
| 457 | { |
| 458 | PCL_PAPERSIZE_EXECUTIVEcxx . . $ `src/main/print-pcl.c:112:9`!, |
| 459 | PCL_PAPERSIZE_LETTERcxx . . $ `src/main/print-pcl.c:113:9`!, |
| 460 | PCL_PAPERSIZE_LEGALcxx . . $ `src/main/print-pcl.c:114:9`!, |
| 461 | PCL_PAPERSIZE_TABLOIDcxx . . $ `src/main/print-pcl.c:115:9`!, |
| 462 | PCL_PAPERSIZE_STATEMENTcxx . . $ `src/main/print-pcl.c:116:9`!, |
| 463 | PCL_PAPERSIZE_SUPER_Bcxx . . $ `src/main/print-pcl.c:117:9`!, |
| 464 | PCL_PAPERSIZE_A5cxx . . $ `src/main/print-pcl.c:118:9`!, |
| 465 | PCL_PAPERSIZE_A4cxx . . $ `src/main/print-pcl.c:119:9`!, |
| 466 | PCL_PAPERSIZE_A3cxx . . $ `src/main/print-pcl.c:120:9`!, |
| 467 | PCL_PAPERSIZE_JIS_B5cxx . . $ `src/main/print-pcl.c:121:9`!, |
| 468 | PCL_PAPERSIZE_JIS_B4cxx . . $ `src/main/print-pcl.c:122:9`!, |
| 469 | PCL_PAPERSIZE_HAGAKI_CARDcxx . . $ `src/main/print-pcl.c:123:9`!, |
| 470 | PCL_PAPERSIZE_OUFUKU_CARDcxx . . $ `src/main/print-pcl.c:124:9`!, |
| 471 | PCL_PAPERSIZE_A6_CARDcxx . . $ `src/main/print-pcl.c:125:9`!, |
| 472 | PCL_PAPERSIZE_4x6cxx . . $ `src/main/print-pcl.c:126:9`!, |
| 473 | PCL_PAPERSIZE_5x8cxx . . $ `src/main/print-pcl.c:127:9`!, |
| 474 | PCL_PAPERSIZE_3x5cxx . . $ `src/main/print-pcl.c:128:9`!, |
| 475 | PCL_PAPERSIZE_HP_CARDcxx . . $ `src/main/print-pcl.c:139:9`!, |
| 476 | PCL_PAPERSIZE_MONARCH_ENVcxx . . $ `src/main/print-pcl.c:129:9`!, |
| 477 | PCL_PAPERSIZE_COMMERCIAL10_ENVcxx . . $ `src/main/print-pcl.c:130:9`!, |
| 478 | PCL_PAPERSIZE_DL_ENVcxx . . $ `src/main/print-pcl.c:131:9`!, |
| 479 | PCL_PAPERSIZE_C5_ENVcxx . . $ `src/main/print-pcl.c:132:9`!, |
| 480 | PCL_PAPERSIZE_C6_ENVcxx . . $ `src/main/print-pcl.c:133:9`!, |
| 481 | PCL_PAPERSIZE_INVITATION_ENVcxx . . $ `src/main/print-pcl.c:135:9`!, |
| 482 | PCL_PAPERSIZE_JAPANESE_3_ENVcxx . . $ `src/main/print-pcl.c:136:9`!, |
| 483 | PCL_PAPERSIZE_JAPANESE_4_ENVcxx . . $ `src/main/print-pcl.c:137:9`!, |
| 484 | PCL_PAPERSIZE_KAKU_ENVcxx . . $ `src/main/print-pcl.c:138:9`!, |
| 485 | -1, |
| 486 | }; |
| 487 | |
| 488 | static const short dj1100_papersizescxx . . $ dj1100_papersizes.[] = |
| 489 | { |
| 490 | PCL_PAPERSIZE_EXECUTIVEcxx . . $ `src/main/print-pcl.c:112:9`!, |
| 491 | PCL_PAPERSIZE_LETTERcxx . . $ `src/main/print-pcl.c:113:9`!, |
| 492 | PCL_PAPERSIZE_LEGALcxx . . $ `src/main/print-pcl.c:114:9`!, |
| 493 | PCL_PAPERSIZE_TABLOIDcxx . . $ `src/main/print-pcl.c:115:9`!, |
| 494 | PCL_PAPERSIZE_STATEMENTcxx . . $ `src/main/print-pcl.c:116:9`!, |
| 495 | PCL_PAPERSIZE_SUPER_Bcxx . . $ `src/main/print-pcl.c:117:9`!, |
| 496 | PCL_PAPERSIZE_A5cxx . . $ `src/main/print-pcl.c:118:9`!, |
| 497 | PCL_PAPERSIZE_A4cxx . . $ `src/main/print-pcl.c:119:9`!, |
| 498 | PCL_PAPERSIZE_A3cxx . . $ `src/main/print-pcl.c:120:9`!, |
| 499 | PCL_PAPERSIZE_JIS_B5cxx . . $ `src/main/print-pcl.c:121:9`!, |
| 500 | PCL_PAPERSIZE_JIS_B4cxx . . $ `src/main/print-pcl.c:122:9`!, |
| 501 | PCL_PAPERSIZE_HAGAKI_CARDcxx . . $ `src/main/print-pcl.c:123:9`!, |
| 502 | PCL_PAPERSIZE_A6_CARDcxx . . $ `src/main/print-pcl.c:125:9`!, |
| 503 | PCL_PAPERSIZE_4x6cxx . . $ `src/main/print-pcl.c:126:9`!, |
| 504 | PCL_PAPERSIZE_5x8cxx . . $ `src/main/print-pcl.c:127:9`!, |
| 505 | PCL_PAPERSIZE_COMMERCIAL10_ENVcxx . . $ `src/main/print-pcl.c:130:9`!, |
| 506 | PCL_PAPERSIZE_DL_ENVcxx . . $ `src/main/print-pcl.c:131:9`!, |
| 507 | PCL_PAPERSIZE_C6_ENVcxx . . $ `src/main/print-pcl.c:133:9`!, |
| 508 | PCL_PAPERSIZE_INVITATION_ENVcxx . . $ `src/main/print-pcl.c:135:9`!, |
| 509 | PCL_PAPERSIZE_JAPANESE_3_ENVcxx . . $ `src/main/print-pcl.c:136:9`!, |
| 510 | PCL_PAPERSIZE_JAPANESE_4_ENVcxx . . $ `src/main/print-pcl.c:137:9`!, |
| 511 | PCL_PAPERSIZE_KAKU_ENVcxx . . $ `src/main/print-pcl.c:138:9`!, |
| 512 | -1, |
| 513 | }; |
| 514 | |
| 515 | static const short dj1200_papersizescxx . . $ dj1200_papersizes.[] = |
| 516 | { |
| 517 | /* This printer is not mentioned in the Comparison tables, |
| 518 | so I'll just pick some likely sizes... */ |
| 519 | PCL_PAPERSIZE_EXECUTIVEcxx . . $ `src/main/print-pcl.c:112:9`!, |
| 520 | PCL_PAPERSIZE_LETTERcxx . . $ `src/main/print-pcl.c:113:9`!, |
| 521 | PCL_PAPERSIZE_LEGALcxx . . $ `src/main/print-pcl.c:114:9`!, |
| 522 | PCL_PAPERSIZE_A5cxx . . $ `src/main/print-pcl.c:118:9`!, |
| 523 | PCL_PAPERSIZE_A4cxx . . $ `src/main/print-pcl.c:119:9`!, |
| 524 | PCL_PAPERSIZE_4x6cxx . . $ `src/main/print-pcl.c:126:9`!, |
| 525 | PCL_PAPERSIZE_5x8cxx . . $ `src/main/print-pcl.c:127:9`!, |
| 526 | -1, |
| 527 | }; |
| 528 | |
| 529 | static const short dj2000_papersizescxx . . $ dj2000_papersizes.[] = |
| 530 | { |
| 531 | PCL_PAPERSIZE_EXECUTIVEcxx . . $ `src/main/print-pcl.c:112:9`!, |
| 532 | PCL_PAPERSIZE_LETTERcxx . . $ `src/main/print-pcl.c:113:9`!, |
| 533 | PCL_PAPERSIZE_LEGALcxx . . $ `src/main/print-pcl.c:114:9`!, |
| 534 | PCL_PAPERSIZE_A5cxx . . $ `src/main/print-pcl.c:118:9`!, |
| 535 | PCL_PAPERSIZE_A4cxx . . $ `src/main/print-pcl.c:119:9`!, |
| 536 | PCL_PAPERSIZE_HAGAKI_CARDcxx . . $ `src/main/print-pcl.c:123:9`!, |
| 537 | PCL_PAPERSIZE_A6_CARDcxx . . $ `src/main/print-pcl.c:125:9`!, |
| 538 | PCL_PAPERSIZE_4x6cxx . . $ `src/main/print-pcl.c:126:9`!, |
| 539 | PCL_PAPERSIZE_5x8cxx . . $ `src/main/print-pcl.c:127:9`!, |
| 540 | PCL_PAPERSIZE_3x5cxx . . $ `src/main/print-pcl.c:128:9`!, |
| 541 | PCL_PAPERSIZE_COMMERCIAL10_ENVcxx . . $ `src/main/print-pcl.c:130:9`!, |
| 542 | PCL_PAPERSIZE_DL_ENVcxx . . $ `src/main/print-pcl.c:131:9`!, |
| 543 | PCL_PAPERSIZE_C6_ENVcxx . . $ `src/main/print-pcl.c:133:9`!, |
| 544 | PCL_PAPERSIZE_INVITATION_ENVcxx . . $ `src/main/print-pcl.c:135:9`!, |
| 545 | -1, |
| 546 | }; |
| 547 | |
| 548 | static const short dj2500_papersizescxx . . $ dj2500_papersizes.[] = |
| 549 | { |
| 550 | PCL_PAPERSIZE_EXECUTIVEcxx . . $ `src/main/print-pcl.c:112:9`!, |
| 551 | PCL_PAPERSIZE_LETTERcxx . . $ `src/main/print-pcl.c:113:9`!, |
| 552 | PCL_PAPERSIZE_LEGALcxx . . $ `src/main/print-pcl.c:114:9`!, |
| 553 | PCL_PAPERSIZE_TABLOIDcxx . . $ `src/main/print-pcl.c:115:9`!, |
| 554 | PCL_PAPERSIZE_STATEMENTcxx . . $ `src/main/print-pcl.c:116:9`!, |
| 555 | PCL_PAPERSIZE_A5cxx . . $ `src/main/print-pcl.c:118:9`!, |
| 556 | PCL_PAPERSIZE_A4cxx . . $ `src/main/print-pcl.c:119:9`!, |
| 557 | PCL_PAPERSIZE_A3cxx . . $ `src/main/print-pcl.c:120:9`!, |
| 558 | PCL_PAPERSIZE_JIS_B5cxx . . $ `src/main/print-pcl.c:121:9`!, |
| 559 | PCL_PAPERSIZE_JIS_B4cxx . . $ `src/main/print-pcl.c:122:9`!, |
| 560 | PCL_PAPERSIZE_HAGAKI_CARDcxx . . $ `src/main/print-pcl.c:123:9`!, |
| 561 | PCL_PAPERSIZE_A6_CARDcxx . . $ `src/main/print-pcl.c:125:9`!, |
| 562 | PCL_PAPERSIZE_4x6cxx . . $ `src/main/print-pcl.c:126:9`!, |
| 563 | PCL_PAPERSIZE_5x8cxx . . $ `src/main/print-pcl.c:127:9`!, |
| 564 | PCL_PAPERSIZE_COMMERCIAL10_ENVcxx . . $ `src/main/print-pcl.c:130:9`!, |
| 565 | PCL_PAPERSIZE_DL_ENVcxx . . $ `src/main/print-pcl.c:131:9`!, |
| 566 | -1, |
| 567 | }; |
| 568 | |
| 569 | static const short ljsmall_papersizescxx . . $ ljsmall_papersizes.[] = |
| 570 | { |
| 571 | PCL_PAPERSIZE_EXECUTIVEcxx . . $ `src/main/print-pcl.c:112:9`!, |
| 572 | PCL_PAPERSIZE_STATEMENTcxx . . $ `src/main/print-pcl.c:116:9`!, |
| 573 | PCL_PAPERSIZE_LETTERcxx . . $ `src/main/print-pcl.c:113:9`!, |
| 574 | PCL_PAPERSIZE_LEGALcxx . . $ `src/main/print-pcl.c:114:9`!, |
| 575 | PCL_PAPERSIZE_A4cxx . . $ `src/main/print-pcl.c:119:9`!, |
| 576 | PCL_PAPERSIZE_MONARCH_ENVcxx . . $ `src/main/print-pcl.c:129:9`!, |
| 577 | PCL_PAPERSIZE_COMMERCIAL10_ENVcxx . . $ `src/main/print-pcl.c:130:9`!, |
| 578 | PCL_PAPERSIZE_DL_ENVcxx . . $ `src/main/print-pcl.c:131:9`!, |
| 579 | PCL_PAPERSIZE_C5_ENVcxx . . $ `src/main/print-pcl.c:132:9`!, |
| 580 | PCL_PAPERSIZE_C6_ENVcxx . . $ `src/main/print-pcl.c:133:9`!, |
| 581 | -1, |
| 582 | }; |
| 583 | |
| 584 | static const short ljbig_papersizescxx . . $ ljbig_papersizes.[] = |
| 585 | { |
| 586 | PCL_PAPERSIZE_EXECUTIVEcxx . . $ `src/main/print-pcl.c:112:9`!, |
| 587 | PCL_PAPERSIZE_STATEMENTcxx . . $ `src/main/print-pcl.c:116:9`!, |
| 588 | PCL_PAPERSIZE_LETTERcxx . . $ `src/main/print-pcl.c:113:9`!, |
| 589 | PCL_PAPERSIZE_LEGALcxx . . $ `src/main/print-pcl.c:114:9`!, |
| 590 | PCL_PAPERSIZE_TABLOIDcxx . . $ `src/main/print-pcl.c:115:9`!, |
| 591 | PCL_PAPERSIZE_SUPER_Bcxx . . $ `src/main/print-pcl.c:117:9`!, |
| 592 | PCL_PAPERSIZE_A5cxx . . $ `src/main/print-pcl.c:118:9`!, |
| 593 | PCL_PAPERSIZE_A4cxx . . $ `src/main/print-pcl.c:119:9`!, |
| 594 | PCL_PAPERSIZE_A3cxx . . $ `src/main/print-pcl.c:120:9`!, |
| 595 | PCL_PAPERSIZE_JIS_B5cxx . . $ `src/main/print-pcl.c:121:9`!, |
| 596 | PCL_PAPERSIZE_JIS_B4cxx . . $ `src/main/print-pcl.c:122:9`!, /* Guess */ |
| 597 | PCL_PAPERSIZE_4x6cxx . . $ `src/main/print-pcl.c:126:9`!, |
| 598 | PCL_PAPERSIZE_5x8cxx . . $ `src/main/print-pcl.c:127:9`!, |
| 599 | PCL_PAPERSIZE_MONARCH_ENVcxx . . $ `src/main/print-pcl.c:129:9`!, |
| 600 | PCL_PAPERSIZE_COMMERCIAL10_ENVcxx . . $ `src/main/print-pcl.c:130:9`!, |
| 601 | PCL_PAPERSIZE_DL_ENVcxx . . $ `src/main/print-pcl.c:131:9`!, |
| 602 | PCL_PAPERSIZE_C5_ENVcxx . . $ `src/main/print-pcl.c:132:9`!, |
| 603 | PCL_PAPERSIZE_C6_ENVcxx . . $ `src/main/print-pcl.c:133:9`!, |
| 604 | -1, |
| 605 | }; |
| 606 | |
| 607 | static const short ljtabloid_papersizescxx . . $ ljtabloid_papersizes.[] = |
| 608 | { |
| 609 | PCL_PAPERSIZE_EXECUTIVEcxx . . $ `src/main/print-pcl.c:112:9`!, |
| 610 | PCL_PAPERSIZE_STATEMENTcxx . . $ `src/main/print-pcl.c:116:9`!, |
| 611 | PCL_PAPERSIZE_LETTERcxx . . $ `src/main/print-pcl.c:113:9`!, |
| 612 | PCL_PAPERSIZE_LEGALcxx . . $ `src/main/print-pcl.c:114:9`!, |
| 613 | PCL_PAPERSIZE_TABLOIDcxx . . $ `src/main/print-pcl.c:115:9`!, |
| 614 | PCL_PAPERSIZE_A5cxx . . $ `src/main/print-pcl.c:118:9`!, |
| 615 | PCL_PAPERSIZE_A4cxx . . $ `src/main/print-pcl.c:119:9`!, |
| 616 | PCL_PAPERSIZE_A3cxx . . $ `src/main/print-pcl.c:120:9`!, |
| 617 | PCL_PAPERSIZE_JIS_B5cxx . . $ `src/main/print-pcl.c:121:9`!, |
| 618 | PCL_PAPERSIZE_JIS_B4cxx . . $ `src/main/print-pcl.c:122:9`!, /* Guess */ |
| 619 | PCL_PAPERSIZE_4x6cxx . . $ `src/main/print-pcl.c:126:9`!, |
| 620 | PCL_PAPERSIZE_5x8cxx . . $ `src/main/print-pcl.c:127:9`!, |
| 621 | PCL_PAPERSIZE_MONARCH_ENVcxx . . $ `src/main/print-pcl.c:129:9`!, |
| 622 | PCL_PAPERSIZE_COMMERCIAL10_ENVcxx . . $ `src/main/print-pcl.c:130:9`!, |
| 623 | PCL_PAPERSIZE_DL_ENVcxx . . $ `src/main/print-pcl.c:131:9`!, |
| 624 | PCL_PAPERSIZE_C5_ENVcxx . . $ `src/main/print-pcl.c:132:9`!, |
| 625 | PCL_PAPERSIZE_C6_ENVcxx . . $ `src/main/print-pcl.c:133:9`!, |
| 626 | -1, |
| 627 | }; |
| 628 | |
| 629 | static const short basic_papertypescxx . . $ basic_papertypes.[] = |
| 630 | { |
| 631 | PCL_PAPERTYPE_PLAINcxx . . $ `src/main/print-pcl.c:186:9`!, |
| 632 | PCL_PAPERTYPE_BONDcxx . . $ `src/main/print-pcl.c:187:9`!, |
| 633 | PCL_PAPERTYPE_PREMIUMcxx . . $ `src/main/print-pcl.c:188:9`!, |
| 634 | PCL_PAPERTYPE_GLOSSYcxx . . $ `src/main/print-pcl.c:189:9`!, |
| 635 | PCL_PAPERTYPE_TRANScxx . . $ `src/main/print-pcl.c:190:9`!, |
| 636 | -1, |
| 637 | }; |
| 638 | |
| 639 | static const short new_papertypescxx . . $ new_papertypes.[] = |
| 640 | { |
| 641 | PCL_PAPERTYPE_PLAINcxx . . $ `src/main/print-pcl.c:186:9`!, |
| 642 | PCL_PAPERTYPE_BONDcxx . . $ `src/main/print-pcl.c:187:9`!, |
| 643 | PCL_PAPERTYPE_PREMIUMcxx . . $ `src/main/print-pcl.c:188:9`!, |
| 644 | PCL_PAPERTYPE_GLOSSYcxx . . $ `src/main/print-pcl.c:189:9`!, |
| 645 | PCL_PAPERTYPE_TRANScxx . . $ `src/main/print-pcl.c:190:9`!, |
| 646 | PCL_PAPERTYPE_QPHOTOcxx . . $ `src/main/print-pcl.c:191:9`!, |
| 647 | PCL_PAPERTYPE_QTRANScxx . . $ `src/main/print-pcl.c:192:9`!, |
| 648 | -1, |
| 649 | }; |
| 650 | |
| 651 | static const short laserjet_papersourcescxx . . $ laserjet_papersources.[] = |
| 652 | { |
| 653 | PCL_PAPERSOURCE_STANDARDcxx . . $ `src/main/print-pcl.c:217:9`!, |
| 654 | PCL_PAPERSOURCE_MANUAL_ADJcxx . . $ `src/main/print-pcl.c:219:9`!, |
| 655 | PCL_PAPERSOURCE_MANUALcxx . . $ `src/main/print-pcl.c:218:9`!, |
| 656 | PCL_PAPERSOURCE_LJ_TRAY1_ADJcxx . . $ `src/main/print-pcl.c:227:9`!, |
| 657 | PCL_PAPERSOURCE_LJ_TRAY1cxx . . $ `src/main/print-pcl.c:226:9`!, |
| 658 | PCL_PAPERSOURCE_LJ_TRAY2_ADJcxx . . $ `src/main/print-pcl.c:228:9`!, |
| 659 | PCL_PAPERSOURCE_LJ_TRAY2cxx . . $ `src/main/print-pcl.c:223:9`!, |
| 660 | PCL_PAPERSOURCE_LJ_TRAY3_ADJcxx . . $ `src/main/print-pcl.c:229:9`!, |
| 661 | PCL_PAPERSOURCE_LJ_TRAY3cxx . . $ `src/main/print-pcl.c:224:9`!, |
| 662 | PCL_PAPERSOURCE_LJ_TRAY4_ADJcxx . . $ `src/main/print-pcl.c:230:9`!, |
| 663 | PCL_PAPERSOURCE_LJ_TRAY4cxx . . $ `src/main/print-pcl.c:225:9`!, |
| 664 | -1, |
| 665 | }; |
| 666 | |
| 667 | static const short dj340_papersourcescxx . . $ dj340_papersources.[] = |
| 668 | { |
| 669 | PCL_PAPERSOURCE_STANDARDcxx . . $ `src/main/print-pcl.c:217:9`!, |
| 670 | PCL_PAPERSOURCE_MANUALcxx . . $ `src/main/print-pcl.c:218:9`!, |
| 671 | PCL_PAPERSOURCE_340_PCSFcxx . . $ `src/main/print-pcl.c:233:9`!, |
| 672 | PCL_PAPERSOURCE_340_DCSFcxx . . $ `src/main/print-pcl.c:235:9`!, |
| 673 | -1, |
| 674 | }; |
| 675 | |
| 676 | static const short dj_papersourcescxx . . $ dj_papersources.[] = |
| 677 | { |
| 678 | PCL_PAPERSOURCE_STANDARDcxx . . $ `src/main/print-pcl.c:217:9`!, |
| 679 | PCL_PAPERSOURCE_MANUALcxx . . $ `src/main/print-pcl.c:218:9`!, |
| 680 | PCL_PAPERSOURCE_DJ_TRAYcxx . . $ `src/main/print-pcl.c:239:9`!, |
| 681 | -1, |
| 682 | }; |
| 683 | |
| 684 | static const short dj2500_papersourcescxx . . $ dj2500_papersources.[] = |
| 685 | { |
| 686 | PCL_PAPERSOURCE_STANDARDcxx . . $ `src/main/print-pcl.c:217:9`!, |
| 687 | PCL_PAPERSOURCE_MANUALcxx . . $ `src/main/print-pcl.c:218:9`!, |
| 688 | PCL_PAPERSOURCE_DJ_AUTOcxx . . $ `src/main/print-pcl.c:244:9`!, |
| 689 | PCL_PAPERSOURCE_DJ_TRAYcxx . . $ `src/main/print-pcl.c:239:9`!, |
| 690 | PCL_PAPERSOURCE_DJ_TRAY2cxx . . $ `src/main/print-pcl.c:240:9`!, |
| 691 | PCL_PAPERSOURCE_DJ_OPTIONALcxx . . $ `src/main/print-pcl.c:242:9`!, |
| 692 | -1, |
| 693 | }; |
| 694 | |
| 695 | static const short standard_papersourcescxx . . $ standard_papersources.[] = |
| 696 | { |
| 697 | PCL_PAPERSOURCE_STANDARDcxx . . $ `src/main/print-pcl.c:217:9`!, |
| 698 | -1 |
| 699 | }; |
| 700 | |
| 701 | static const pcl_cap_tcxx . . $ pcl_cap_t# pcl_model_capabilitiescxx . . $ pcl_model_capabilities.[] = |
| 702 | { |
| 703 | /* Default/unknown printer - assume laserjet */ |
| 704 | { 0, |
| 705 | 17 * 72 / 2, 14 * 72, /* Max paper size */ |
| 706 | 1, 1, /* Min paper size */ |
| 707 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`!, /* Resolutions */ |
| 708 | {12, 12, 18, 18}, /* non-A4 Margins */ |
| 709 | {12, 12, 10, 10}, /* A4 Margins */ |
| 710 | PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`!, |
| 711 | PCL_PRINTER_LJcxx . . $ `src/main/print-pcl.c:337:9`!, |
| 712 | standard_papersizescxx . . $ standard_papersizes., |
| 713 | emptylistcxx . . $ emptylist., |
| 714 | emptylistcxx . . $ emptylist., |
| 715 | }, |
| 716 | /* Datamax-O'Neil Thermal PCL printers */ |
| 717 | { 10010, /* p1115 */ |
| 718 | 4 * 72, 99 * 72, /* Max paper size */ |
| 719 | 1, 1, /* Min paper size */ |
| 720 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`!, /* Resolutions */ |
| 721 | {0, 0, 0, 0}, /* non-A4 Margins */ |
| 722 | {0, 0, 0, 0}, /* A4 Margins */ |
| 723 | PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`!, |
| 724 | PCL_PRINTER_LJcxx . . $ `src/main/print-pcl.c:337:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_LABELcxx . . $ `src/main/print-pcl.c:346:9`! | |
| 725 | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | PCL_PRINTER_CUSTOM_SIZEcxx . . $ `src/main/print-pcl.c:343:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 726 | custom_papersizescxx . . $ custom_papersizes., |
| 727 | emptylistcxx . . $ emptylist., |
| 728 | emptylistcxx . . $ emptylist., |
| 729 | }, |
| 730 | /* Datamax-O'Neil Thermal PCL printers */ |
| 731 | { 10011, /* p1115s */ |
| 732 | 4 * 72, 99 * 72, /* Max paper size */ |
| 733 | 1, 1, /* Min paper size */ |
| 734 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`! | PCL_RES_600_600cxx . . $ `src/main/print-pcl.c:274:9`!, /* Resolutions */ |
| 735 | {0, 0, 0, 0}, /* non-A4 Margins */ |
| 736 | {0, 0, 0, 0}, /* A4 Margins */ |
| 737 | PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`!, |
| 738 | PCL_PRINTER_LJcxx . . $ `src/main/print-pcl.c:337:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_LABELcxx . . $ `src/main/print-pcl.c:346:9`! | |
| 739 | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | PCL_PRINTER_CUSTOM_SIZEcxx . . $ `src/main/print-pcl.c:343:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 740 | custom_papersizescxx . . $ custom_papersizes., |
| 741 | emptylistcxx . . $ emptylist., |
| 742 | emptylistcxx . . $ emptylist., |
| 743 | }, |
| 744 | /* Datamax-O'Neil Thermal PCL printers */ |
| 745 | { 10012, /* p1120n */ |
| 746 | 4 * 72, 99 * 72, /* Max paper size */ |
| 747 | 1, 1, /* Min paper size */ |
| 748 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`!, /* Resolutions */ |
| 749 | {0, 0, 0, 0}, /* non-A4 Margins */ |
| 750 | {0, 0, 0, 0}, /* A4 Margins */ |
| 751 | PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`!, |
| 752 | PCL_PRINTER_LJcxx . . $ `src/main/print-pcl.c:337:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_LABELcxx . . $ `src/main/print-pcl.c:346:9`! | |
| 753 | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | PCL_PRINTER_CUSTOM_SIZEcxx . . $ `src/main/print-pcl.c:343:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 754 | custom_papersizescxx . . $ custom_papersizes., |
| 755 | emptylistcxx . . $ emptylist., |
| 756 | emptylistcxx . . $ emptylist., |
| 757 | }, |
| 758 | /* Datamax-O'Neil Thermal PCL printers */ |
| 759 | { 10013, /* p1125 */ |
| 760 | 4 * 72, 99 * 72, /* Max paper size */ |
| 761 | 1, 1, /* Min paper size */ |
| 762 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`!, /* Resolutions */ |
| 763 | {0, 0, 0, 0}, /* non-A4 Margins */ |
| 764 | {0, 0, 0, 0}, /* A4 Margins */ |
| 765 | PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`!, |
| 766 | PCL_PRINTER_LJcxx . . $ `src/main/print-pcl.c:337:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_LABELcxx . . $ `src/main/print-pcl.c:346:9`! | |
| 767 | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | PCL_PRINTER_CUSTOM_SIZEcxx . . $ `src/main/print-pcl.c:343:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 768 | custom_papersizescxx . . $ custom_papersizes., |
| 769 | emptylistcxx . . $ emptylist., |
| 770 | emptylistcxx . . $ emptylist., |
| 771 | }, |
| 772 | /* Datamax-O'Neil Thermal PCL printers */ |
| 773 | { 10014, /* p1725 */ |
| 774 | 6 * 72, 99 * 72, /* Max paper size */ |
| 775 | 1, 1, /* Min paper size */ |
| 776 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`!, /* Resolutions */ |
| 777 | {0, 0, 0, 0}, /* non-A4 Margins */ |
| 778 | {0, 0, 0, 0}, /* A4 Margins */ |
| 779 | PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`!, |
| 780 | PCL_PRINTER_LJcxx . . $ `src/main/print-pcl.c:337:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_LABELcxx . . $ `src/main/print-pcl.c:346:9`! | |
| 781 | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | PCL_PRINTER_CUSTOM_SIZEcxx . . $ `src/main/print-pcl.c:343:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 782 | custom_papersizescxx . . $ custom_papersizes., |
| 783 | emptylistcxx . . $ emptylist., |
| 784 | emptylistcxx . . $ emptylist., |
| 785 | }, |
| 786 | /* Datamax-O'Neil Thermal PCL printers */ |
| 787 | { 10015, /* w1110 */ |
| 788 | 4 * 72, 99 * 72, /* Max paper size */ |
| 789 | 1, 1, /* Min paper size */ |
| 790 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`!, /* Resolutions */ |
| 791 | {0, 0, 0, 0}, /* non-A4 Margins */ |
| 792 | {0, 0, 0, 0}, /* A4 Margins */ |
| 793 | PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`!, |
| 794 | PCL_PRINTER_LJcxx . . $ `src/main/print-pcl.c:337:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_LABELcxx . . $ `src/main/print-pcl.c:346:9`! | |
| 795 | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | PCL_PRINTER_CUSTOM_SIZEcxx . . $ `src/main/print-pcl.c:343:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 796 | custom_papersizescxx . . $ custom_papersizes., |
| 797 | emptylistcxx . . $ emptylist., |
| 798 | emptylistcxx . . $ emptylist., |
| 799 | }, |
| 800 | /* Datamax-O'Neil Thermal PCL printers */ |
| 801 | { 10016, /* H8308p */ |
| 802 | 17 * 72 / 2, 99 * 72, /* Max paper size */ |
| 803 | 1, 1, /* Min paper size */ |
| 804 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`!, /* Resolutions */ |
| 805 | {0, 0, 0, 0}, /* non-A4 Margins */ |
| 806 | {0, 0, 0, 0}, /* A4 Margins */ |
| 807 | PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`!, |
| 808 | PCL_PRINTER_LJcxx . . $ `src/main/print-pcl.c:337:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_LABELcxx . . $ `src/main/print-pcl.c:346:9`! | |
| 809 | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | PCL_PRINTER_CUSTOM_SIZEcxx . . $ `src/main/print-pcl.c:343:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 810 | custom_papersizescxx . . $ custom_papersizes., |
| 811 | emptylistcxx . . $ emptylist., |
| 812 | emptylistcxx . . $ emptylist., |
| 813 | }, |
| 814 | /* DesignJet 230/430 (monochrome ) */ |
| 815 | { 10230, |
| 816 | 36 * 72, 150 * 12 * 72, /* 150ft in roll mode, 64" in sheet */ |
| 817 | 826 * 72 / 100, 583 * 72 / 100, /* 8.3" wide min in sheet mode */ |
| 818 | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`! | PCL_RES_600_600cxx . . $ `src/main/print-pcl.c:274:9`!, |
| 819 | {49, 49, 15, 15}, |
| 820 | {49, 49, 15, 15}, |
| 821 | PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`!, |
| 822 | PCL_PRINTER_DJcxx . . $ `src/main/print-pcl.c:338:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | PCL_PRINTER_CUSTOM_SIZEcxx . . $ `src/main/print-pcl.c:343:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 823 | letter_a4_papersizescxx . . $ letter_a4_papersizes., |
| 824 | basic_papertypescxx . . $ basic_papertypes., |
| 825 | standard_papersourcescxx . . $ standard_papersources., |
| 826 | }, |
| 827 | /* DesignJet 250C/450C/455CA/488CA */ |
| 828 | /* The "CA" versions have a "software RIP" but are the same hardware */ |
| 829 | { 10250, |
| 830 | 36 * 72, 150 * 12 * 72, /* 150ft in roll mode, 64" in sheet */ |
| 831 | 826 * 72 / 100, 583 * 72 / 100, /* 8.3" wide min in sheet mode */ |
| 832 | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`! | PCL_RES_600_600_MONOcxx . . $ `src/main/print-pcl.c:273:9`!, |
| 833 | {49, 49, 15, 15}, |
| 834 | {49, 49, 15, 15}, |
| 835 | PCL_COLOR_CMYKcxx . . $ `src/main/print-pcl.c:331:9`!, |
| 836 | PCL_PRINTER_DJcxx . . $ `src/main/print-pcl.c:338:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | PCL_PRINTER_CUSTOM_SIZEcxx . . $ `src/main/print-pcl.c:343:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 837 | letter_a4_papersizescxx . . $ letter_a4_papersizes., |
| 838 | basic_papertypescxx . . $ basic_papertypes., |
| 839 | standard_papersourcescxx . . $ standard_papersources., |
| 840 | }, |
| 841 | /* DesignJet 700 (monochrome) */ |
| 842 | { 10700, |
| 843 | 36 * 72, 150 * 12 * 72, /* 150ft in roll mode, 64" in sheet */ |
| 844 | 826 * 72 / 100, 583 * 72 / 100, /* 8.3" wide min in sheet mode */ |
| 845 | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`! | PCL_RES_600_600cxx . . $ `src/main/print-pcl.c:274:9`!, |
| 846 | {30, 30, 15, 15}, /* These margins are for sheet mode FIX */ |
| 847 | {30, 30, 15, 15}, |
| 848 | PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`!, |
| 849 | PCL_PRINTER_DJcxx . . $ `src/main/print-pcl.c:338:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | PCL_PRINTER_CUSTOM_SIZEcxx . . $ `src/main/print-pcl.c:343:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 850 | letter_a4_papersizescxx . . $ letter_a4_papersizes., |
| 851 | basic_papertypescxx . . $ basic_papertypes., |
| 852 | standard_papersourcescxx . . $ standard_papersources., |
| 853 | }, |
| 854 | /* DesignJet 750C */ |
| 855 | { 10750, |
| 856 | 36 * 72, 150 * 12 * 72, /* 150ft in roll mode, 64" in sheet */ |
| 857 | 826 * 72 / 100, 583 * 72 / 100, /* 8.3" wide min in sheet mode */ |
| 858 | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`! | PCL_RES_600_600_MONOcxx . . $ `src/main/print-pcl.c:273:9`!, |
| 859 | {30, 30, 15, 15}, /* These margins are for roll mode FIX */ |
| 860 | {30, 30, 15, 15}, |
| 861 | PCL_COLOR_CMYKcxx . . $ `src/main/print-pcl.c:331:9`!, |
| 862 | PCL_PRINTER_DJcxx . . $ `src/main/print-pcl.c:338:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | PCL_PRINTER_CUSTOM_SIZEcxx . . $ `src/main/print-pcl.c:343:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 863 | letter_a4_papersizescxx . . $ letter_a4_papersizes., |
| 864 | basic_papertypescxx . . $ basic_papertypes., |
| 865 | standard_papersourcescxx . . $ standard_papersources., |
| 866 | }, |
| 867 | /* DesignJet 2000C/2500C (36" wide) */ |
| 868 | { 12500, /* Deskjet 2500 already has "2500" */ |
| 869 | 36 * 72, 150 * 12 * 72, /* 150ft in roll mode, 64" in sheet */ |
| 870 | 826 * 72 / 100, 583 * 72 / 100, /* 8.3" wide min in sheet mode */ |
| 871 | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`! | PCL_RES_600_600_MONOcxx . . $ `src/main/print-pcl.c:273:9`!, |
| 872 | {49, 49, 15, 15}, /* Check/Fix */ |
| 873 | {49, 49, 15, 15}, |
| 874 | PCL_COLOR_CMYKcxx . . $ `src/main/print-pcl.c:331:9`!, |
| 875 | PCL_PRINTER_DJcxx . . $ `src/main/print-pcl.c:338:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | PCL_PRINTER_CUSTOM_SIZEcxx . . $ `src/main/print-pcl.c:343:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 876 | letter_a4_papersizescxx . . $ letter_a4_papersizes., |
| 877 | basic_papertypescxx . . $ basic_papertypes., |
| 878 | standard_papersourcescxx . . $ standard_papersources., |
| 879 | }, |
| 880 | /* DesignJet 3000C/3500C (54" wide) */ |
| 881 | { 13500, /* Deskjet 2500 already has "2500" */ |
| 882 | 54 * 72, 150 * 12 * 72, /* 150ft in roll mode, 64" in sheet */ |
| 883 | 826 * 72 / 100, 583 * 72 / 100, /* 8.3" wide min in sheet mode */ |
| 884 | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`! | PCL_RES_600_600_MONOcxx . . $ `src/main/print-pcl.c:273:9`!, |
| 885 | {49, 49, 15, 15}, /* Check/Fix */ |
| 886 | {49, 49, 15, 15}, |
| 887 | PCL_COLOR_CMYKcxx . . $ `src/main/print-pcl.c:331:9`!, |
| 888 | PCL_PRINTER_DJcxx . . $ `src/main/print-pcl.c:338:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | PCL_PRINTER_CUSTOM_SIZEcxx . . $ `src/main/print-pcl.c:343:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 889 | letter_a4_papersizescxx . . $ letter_a4_papersizes., |
| 890 | basic_papertypescxx . . $ basic_papertypes., |
| 891 | standard_papersourcescxx . . $ standard_papersources., |
| 892 | }, |
| 893 | /* Deskjet 340 */ |
| 894 | { 340, |
| 895 | 17 * 72 / 2, 14 * 72, |
| 896 | 1, 1, /* Min paper size */ |
| 897 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`!, |
| 898 | {6, 48, 18, 18}, /* from bpd07933.pdf */ |
| 899 | {6, 48, 10, 11}, /* from bpd07933.pdf */ |
| 900 | PCL_COLOR_CMYcxx . . $ `src/main/print-pcl.c:330:9`!, |
| 901 | PCL_PRINTER_DJcxx . . $ `src/main/print-pcl.c:338:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`!, |
| 902 | dj340_papersizescxx . . $ dj340_papersizes., |
| 903 | basic_papertypescxx . . $ basic_papertypes., |
| 904 | dj340_papersourcescxx . . $ dj340_papersources., |
| 905 | }, |
| 906 | /* Deskjet 400 */ |
| 907 | { 400, |
| 908 | 17 * 72 / 2, 14 * 72, |
| 909 | 1, 1, /* Min paper size */ |
| 910 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`!, |
| 911 | {7, 41, 18, 18}, |
| 912 | {7, 41, 10, 10}, /* Check/Fix */ |
| 913 | PCL_COLOR_CMYcxx . . $ `src/main/print-pcl.c:330:9`!, |
| 914 | PCL_PRINTER_DJcxx . . $ `src/main/print-pcl.c:338:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`!, |
| 915 | dj400_papersizescxx . . $ dj400_papersizes., |
| 916 | basic_papertypescxx . . $ basic_papertypes., |
| 917 | emptylistcxx . . $ emptylist., |
| 918 | }, |
| 919 | /* Deskjet 500, 520. Lexmark 4076 */ |
| 920 | { 500, |
| 921 | 17 * 72 / 2, 14 * 72, |
| 922 | 1, 1, /* Min paper size */ |
| 923 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`!, |
| 924 | {7, 41, 18, 18}, |
| 925 | {7, 41, 10, 10}, /* Check/Fix */ |
| 926 | PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`!, |
| 927 | PCL_PRINTER_DJcxx . . $ `src/main/print-pcl.c:338:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`!, |
| 928 | dj500_papersizescxx . . $ dj500_papersizes., |
| 929 | basic_papertypescxx . . $ basic_papertypes., |
| 930 | dj_papersourcescxx . . $ dj_papersources., |
| 931 | }, |
| 932 | /* Deskjet 500C */ |
| 933 | { 501, |
| 934 | 17 * 72 / 2, 14 * 72, |
| 935 | 1, 1, /* Min paper size */ |
| 936 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`!, |
| 937 | {7, 33, 18, 18}, |
| 938 | {7, 33, 10, 10}, /* Check/Fix */ |
| 939 | PCL_COLOR_CMYcxx . . $ `src/main/print-pcl.c:330:9`!, |
| 940 | PCL_PRINTER_DJcxx . . $ `src/main/print-pcl.c:338:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`!, |
| 941 | dj500_papersizescxx . . $ dj500_papersizes., |
| 942 | basic_papertypescxx . . $ basic_papertypes., |
| 943 | dj_papersourcescxx . . $ dj_papersources., |
| 944 | }, |
| 945 | /* Deskjet 540C */ |
| 946 | { 540, |
| 947 | 17 * 72 / 2, 14 * 72, |
| 948 | 1, 1, /* Min paper size */ |
| 949 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`!, |
| 950 | {7, 33, 18, 18}, |
| 951 | {7, 33, 10, 10}, /* Check/Fix */ |
| 952 | PCL_COLOR_CMYcxx . . $ `src/main/print-pcl.c:330:9`!, |
| 953 | PCL_PRINTER_DJcxx . . $ `src/main/print-pcl.c:338:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_MEDIATYPEcxx . . $ `src/main/print-pcl.c:342:9`! | |
| 954 | PCL_PRINTER_CUSTOM_SIZEcxx . . $ `src/main/print-pcl.c:343:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`!, |
| 955 | dj540_papersizescxx . . $ dj540_papersizes., |
| 956 | basic_papertypescxx . . $ basic_papertypes., |
| 957 | dj_papersourcescxx . . $ dj_papersources., |
| 958 | }, |
| 959 | /* Deskjet 550C, 560C */ |
| 960 | { 550, |
| 961 | 17 * 72 / 2, 14 * 72, |
| 962 | 1, 1, /* Min paper size */ |
| 963 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`!, |
| 964 | {3, 33, 18, 18}, |
| 965 | {5, 33, 10, 10}, |
| 966 | PCL_COLOR_CMYKcxx . . $ `src/main/print-pcl.c:331:9`!, |
| 967 | PCL_PRINTER_DJcxx . . $ `src/main/print-pcl.c:338:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`!, |
| 968 | /* The 550/560 support COM10 and DL envelope, but the control codes |
| 969 | are negative, indicating landscape mode. This needs thinking about! */ |
| 970 | dj340_papersizescxx . . $ dj340_papersizes., |
| 971 | basic_papertypescxx . . $ basic_papertypes., |
| 972 | dj_papersourcescxx . . $ dj_papersources., |
| 973 | }, |
| 974 | /* Deskjet 600/600C */ |
| 975 | { 600, |
| 976 | 17 * 72 / 2, 14 * 72, |
| 977 | 5 * 72, 583 * 72 / 100, /* Min paper size */ |
| 978 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`! | PCL_RES_600_300cxx . . $ `src/main/print-pcl.c:272:9`! | PCL_RES_600_600_MONOcxx . . $ `src/main/print-pcl.c:273:9`!, |
| 979 | {0, 33, 18, 18}, |
| 980 | {0, 33, 10, 10}, /* Check/Fix */ |
| 981 | PCL_COLOR_CMYcxx . . $ `src/main/print-pcl.c:330:9`!, |
| 982 | PCL_PRINTER_DJcxx . . $ `src/main/print-pcl.c:338:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_MEDIATYPEcxx . . $ `src/main/print-pcl.c:342:9`! | |
| 983 | PCL_PRINTER_CUSTOM_SIZEcxx . . $ `src/main/print-pcl.c:343:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`!, |
| 984 | dj600_papersizescxx . . $ dj600_papersizes., |
| 985 | basic_papertypescxx . . $ basic_papertypes., |
| 986 | emptylistcxx . . $ emptylist., |
| 987 | }, |
| 988 | /* Deskjet 6xx series */ |
| 989 | { 601, |
| 990 | 17 * 72 / 2, 14 * 72, |
| 991 | 1, 1, /* Min paper size */ |
| 992 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`! | PCL_RES_600_300cxx . . $ `src/main/print-pcl.c:272:9`! | PCL_RES_600_600_MONOcxx . . $ `src/main/print-pcl.c:273:9`!, |
| 993 | {0, 33, 18, 18}, |
| 994 | {0, 33, 10, 10}, /* Check/Fix */ |
| 995 | PCL_COLOR_CMYKcxx . . $ `src/main/print-pcl.c:331:9`!, |
| 996 | PCL_PRINTER_DJcxx . . $ `src/main/print-pcl.c:338:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_MEDIATYPEcxx . . $ `src/main/print-pcl.c:342:9`! | |
| 997 | PCL_PRINTER_CUSTOM_SIZEcxx . . $ `src/main/print-pcl.c:343:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`!, |
| 998 | dj600_papersizescxx . . $ dj600_papersizes., |
| 999 | basic_papertypescxx . . $ basic_papertypes., |
| 1000 | emptylistcxx . . $ emptylist., |
| 1001 | }, |
| 1002 | /* Deskjet 69x series (Photo Capable) */ |
| 1003 | { 690, |
| 1004 | 17 * 72 / 2, 14 * 72, |
| 1005 | 1, 1, /* Min paper size */ |
| 1006 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`! | PCL_RES_600_300cxx . . $ `src/main/print-pcl.c:272:9`! | PCL_RES_600_600cxx . . $ `src/main/print-pcl.c:274:9`!, |
| 1007 | {0, 33, 18, 18}, |
| 1008 | {0, 33, 10, 10}, /* Check/Fix */ |
| 1009 | PCL_COLOR_CMYKcxx . . $ `src/main/print-pcl.c:331:9`! | PCL_COLOR_CMYKcmcxx . . $ `src/main/print-pcl.c:333:9`!, |
| 1010 | PCL_PRINTER_DJcxx . . $ `src/main/print-pcl.c:338:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_MEDIATYPEcxx . . $ `src/main/print-pcl.c:342:9`! | |
| 1011 | PCL_PRINTER_CUSTOM_SIZEcxx . . $ `src/main/print-pcl.c:343:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`!, |
| 1012 | dj600_papersizescxx . . $ dj600_papersizes., |
| 1013 | basic_papertypescxx . . $ basic_papertypes., |
| 1014 | emptylistcxx . . $ emptylist., |
| 1015 | }, |
| 1016 | /* Deskjet 850/855/870/890 (C-RET) */ |
| 1017 | { 800, |
| 1018 | 17 * 72 / 2, 14 * 72, |
| 1019 | 1, 1, /* Min paper size */ |
| 1020 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`! | PCL_RES_600_600_MONOcxx . . $ `src/main/print-pcl.c:273:9`!, |
| 1021 | {3, 33, 18, 18}, |
| 1022 | {5, 33, 10, 10}, |
| 1023 | PCL_COLOR_CMYKcxx . . $ `src/main/print-pcl.c:331:9`! | PCL_COLOR_CMYK4cxx . . $ `src/main/print-pcl.c:332:9`!, |
| 1024 | PCL_PRINTER_DJcxx . . $ `src/main/print-pcl.c:338:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_MEDIATYPEcxx . . $ `src/main/print-pcl.c:342:9`! | |
| 1025 | PCL_PRINTER_CUSTOM_SIZEcxx . . $ `src/main/print-pcl.c:343:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`!, |
| 1026 | dj600_papersizescxx . . $ dj600_papersizes., |
| 1027 | basic_papertypescxx . . $ basic_papertypes., |
| 1028 | emptylistcxx . . $ emptylist., |
| 1029 | }, |
| 1030 | /* Deskjet 810C, 812C, 840C, 842C, 845C, 895C (C-RET) */ |
| 1031 | { 840, |
| 1032 | 17 * 72 / 2, 14 * 72, |
| 1033 | 1, 1, /* Min paper size */ |
| 1034 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`! | PCL_RES_600_300cxx . . $ `src/main/print-pcl.c:272:9`! | PCL_RES_600_600cxx . . $ `src/main/print-pcl.c:274:9`!, |
| 1035 | {0, 33, 18, 18}, |
| 1036 | {0, 33, 10, 10}, /* Check/Fix */ |
| 1037 | PCL_COLOR_CMYKcxx . . $ `src/main/print-pcl.c:331:9`! | PCL_COLOR_CMYK4bcxx . . $ `src/main/print-pcl.c:334:9`!, |
| 1038 | PCL_PRINTER_DJcxx . . $ `src/main/print-pcl.c:338:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_MEDIATYPEcxx . . $ `src/main/print-pcl.c:342:9`! | |
| 1039 | PCL_PRINTER_CUSTOM_SIZEcxx . . $ `src/main/print-pcl.c:343:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`!, |
| 1040 | dj600_papersizescxx . . $ dj600_papersizes., |
| 1041 | basic_papertypescxx . . $ basic_papertypes., |
| 1042 | emptylistcxx . . $ emptylist., |
| 1043 | }, |
| 1044 | /* Deskjet 900 series, 1220C, PhotoSmart P1000/P1100 */ |
| 1045 | { 900, |
| 1046 | 17 * 72 / 2, 14 * 72, |
| 1047 | 1, 1, /* Min paper size */ |
| 1048 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`! | PCL_RES_600_600cxx . . $ `src/main/print-pcl.c:274:9`! /* | PCL_RES_1200_600 | PCL_RES_2400_600 */, |
| 1049 | {3, 33, 18, 18}, |
| 1050 | {5, 33, 10, 10}, /* Oliver Vecernik */ |
| 1051 | PCL_COLOR_CMYKcxx . . $ `src/main/print-pcl.c:331:9`!, |
| 1052 | PCL_PRINTER_DJcxx . . $ `src/main/print-pcl.c:338:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_MEDIATYPEcxx . . $ `src/main/print-pcl.c:342:9`! | |
| 1053 | PCL_PRINTER_CUSTOM_SIZEcxx . . $ `src/main/print-pcl.c:343:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | PCL_PRINTER_DUPLEXcxx . . $ `src/main/print-pcl.c:345:9`!, |
| 1054 | dj600_papersizescxx . . $ dj600_papersizes., |
| 1055 | basic_papertypescxx . . $ basic_papertypes., |
| 1056 | emptylistcxx . . $ emptylist., |
| 1057 | }, |
| 1058 | /* Deskjet 1220C (or other large format 900) */ |
| 1059 | { 901, |
| 1060 | 13 * 72, 19 * 72, |
| 1061 | 1, 1, /* Min paper size */ |
| 1062 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`! | PCL_RES_600_600cxx . . $ `src/main/print-pcl.c:274:9`! /* | PCL_RES_1200_600 | PCL_RES_2400_600 */, |
| 1063 | {3, 33, 18, 18}, |
| 1064 | {5, 33, 10, 10}, |
| 1065 | PCL_COLOR_CMYKcxx . . $ `src/main/print-pcl.c:331:9`!, |
| 1066 | PCL_PRINTER_DJcxx . . $ `src/main/print-pcl.c:338:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_MEDIATYPEcxx . . $ `src/main/print-pcl.c:342:9`! | |
| 1067 | PCL_PRINTER_CUSTOM_SIZEcxx . . $ `src/main/print-pcl.c:343:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`!, |
| 1068 | dj1220_papersizescxx . . $ dj1220_papersizes., |
| 1069 | basic_papertypescxx . . $ basic_papertypes., |
| 1070 | emptylistcxx . . $ emptylist., |
| 1071 | }, |
| 1072 | /* Deskjet 1100C, 1120C */ |
| 1073 | { 1100, |
| 1074 | 13 * 72, 19 * 72, |
| 1075 | 1, 1, /* Min paper size */ |
| 1076 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`! | PCL_RES_600_600_MONOcxx . . $ `src/main/print-pcl.c:273:9`!, |
| 1077 | {3, 33, 18, 18}, |
| 1078 | {5, 33, 10, 10}, |
| 1079 | PCL_COLOR_CMYKcxx . . $ `src/main/print-pcl.c:331:9`! | PCL_COLOR_CMYK4cxx . . $ `src/main/print-pcl.c:332:9`!, |
| 1080 | PCL_PRINTER_DJcxx . . $ `src/main/print-pcl.c:338:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_MEDIATYPEcxx . . $ `src/main/print-pcl.c:342:9`! | |
| 1081 | PCL_PRINTER_CUSTOM_SIZEcxx . . $ `src/main/print-pcl.c:343:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`!, |
| 1082 | dj1100_papersizescxx . . $ dj1100_papersizes., |
| 1083 | basic_papertypescxx . . $ basic_papertypes., |
| 1084 | dj_papersourcescxx . . $ dj_papersources., |
| 1085 | }, |
| 1086 | /* Deskjet 1200C */ |
| 1087 | { 1200, |
| 1088 | 17 * 72 / 2, 14 * 72, |
| 1089 | 1, 1, /* Min paper size */ |
| 1090 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`!, |
| 1091 | {12, 12, 18, 18}, |
| 1092 | {12, 12, 10, 10}, /* Check/Fix */ |
| 1093 | PCL_COLOR_CMYcxx . . $ `src/main/print-pcl.c:330:9`!, |
| 1094 | PCL_PRINTER_DJcxx . . $ `src/main/print-pcl.c:338:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_MEDIATYPEcxx . . $ `src/main/print-pcl.c:342:9`! | |
| 1095 | PCL_PRINTER_CUSTOM_SIZEcxx . . $ `src/main/print-pcl.c:343:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 1096 | dj1200_papersizescxx . . $ dj1200_papersizes., |
| 1097 | basic_papertypescxx . . $ basic_papertypes., |
| 1098 | dj_papersourcescxx . . $ dj_papersources., |
| 1099 | }, |
| 1100 | /* Deskjet 1600C */ |
| 1101 | { 1600, |
| 1102 | 17 * 72 / 2, 14 * 72, |
| 1103 | 1, 1, /* Min paper size */ |
| 1104 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`!, |
| 1105 | {12, 12, 18, 18}, |
| 1106 | {12, 12, 10, 10}, /* Check/Fix */ |
| 1107 | PCL_COLOR_CMYKcxx . . $ `src/main/print-pcl.c:331:9`!, |
| 1108 | PCL_PRINTER_DJcxx . . $ `src/main/print-pcl.c:338:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_MEDIATYPEcxx . . $ `src/main/print-pcl.c:342:9`! | |
| 1109 | PCL_PRINTER_CUSTOM_SIZEcxx . . $ `src/main/print-pcl.c:343:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 1110 | dj1200_papersizescxx . . $ dj1200_papersizes., |
| 1111 | basic_papertypescxx . . $ basic_papertypes., |
| 1112 | dj_papersourcescxx . . $ dj_papersources., |
| 1113 | }, |
| 1114 | /* Deskjet 2000 */ |
| 1115 | { 2000, |
| 1116 | 17 * 72 / 2, 14 * 72, |
| 1117 | 1, 1, /* Min paper size */ |
| 1118 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`! | PCL_RES_600_600cxx . . $ `src/main/print-pcl.c:274:9`!, |
| 1119 | {0, 35, 18, 18}, /* Michel Goraczko */ |
| 1120 | {0, 35, 10, 10}, /* Check/Fix */ |
| 1121 | PCL_COLOR_CMYKcxx . . $ `src/main/print-pcl.c:331:9`!, |
| 1122 | PCL_PRINTER_DJcxx . . $ `src/main/print-pcl.c:338:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_MEDIATYPEcxx . . $ `src/main/print-pcl.c:342:9`! | |
| 1123 | PCL_PRINTER_CUSTOM_SIZEcxx . . $ `src/main/print-pcl.c:343:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`!, |
| 1124 | dj2000_papersizescxx . . $ dj2000_papersizes., |
| 1125 | new_papertypescxx . . $ new_papertypes., |
| 1126 | dj_papersourcescxx . . $ dj_papersources., |
| 1127 | }, |
| 1128 | /* Deskjet 2500 */ |
| 1129 | { 2500, |
| 1130 | 13 * 72, 19 * 72, |
| 1131 | 1, 1, /* Min paper size */ |
| 1132 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`! | PCL_RES_600_600cxx . . $ `src/main/print-pcl.c:274:9`!, |
| 1133 | {12, 12, 18, 18}, |
| 1134 | {12, 12, 10, 10}, /* Check/Fix */ |
| 1135 | PCL_COLOR_CMYKcxx . . $ `src/main/print-pcl.c:331:9`!, |
| 1136 | PCL_PRINTER_DJcxx . . $ `src/main/print-pcl.c:338:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_MEDIATYPEcxx . . $ `src/main/print-pcl.c:342:9`! | |
| 1137 | PCL_PRINTER_CUSTOM_SIZEcxx . . $ `src/main/print-pcl.c:343:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`!, |
| 1138 | dj2500_papersizescxx . . $ dj2500_papersizes., |
| 1139 | new_papertypescxx . . $ new_papertypes., |
| 1140 | dj2500_papersourcescxx . . $ dj2500_papersources., |
| 1141 | }, |
| 1142 | /* LaserJet II series */ |
| 1143 | { 2, |
| 1144 | 17 * 72 / 2, 14 * 72, |
| 1145 | 1, 1, /* Min paper size */ |
| 1146 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`!, |
| 1147 | {12, 12, 18, 18}, |
| 1148 | {12, 12, 10, 10}, /* Check/Fix */ |
| 1149 | PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`!, |
| 1150 | PCL_PRINTER_LJcxx . . $ `src/main/print-pcl.c:337:9`!, |
| 1151 | ljsmall_papersizescxx . . $ ljsmall_papersizes., |
| 1152 | emptylistcxx . . $ emptylist., |
| 1153 | laserjet_papersourcescxx . . $ laserjet_papersources., |
| 1154 | }, |
| 1155 | /* LaserJet IIP (TIFF but no blankline) */ |
| 1156 | { 21, |
| 1157 | 17 * 72 / 2, 14 * 72, |
| 1158 | 1, 1, /* Min paper size */ |
| 1159 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`!, |
| 1160 | {12, 12, 18, 18}, |
| 1161 | {12, 12, 10, 10}, /* Check/Fix */ |
| 1162 | PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`!, |
| 1163 | PCL_PRINTER_LJcxx . . $ `src/main/print-pcl.c:337:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`!, |
| 1164 | ljsmall_papersizescxx . . $ ljsmall_papersizes., |
| 1165 | emptylistcxx . . $ emptylist., |
| 1166 | laserjet_papersourcescxx . . $ laserjet_papersources., |
| 1167 | }, |
| 1168 | /* Some laser printers don't have expanded A4 margins */ |
| 1169 | { 22, |
| 1170 | 17 * 72 / 2, 14 * 72, |
| 1171 | 1, 1, /* Min paper size */ |
| 1172 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`!, |
| 1173 | {12, 12, 18, 18}, |
| 1174 | {12, 12, 18, 18}, /* Check/Fix */ |
| 1175 | PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`!, |
| 1176 | PCL_PRINTER_LJcxx . . $ `src/main/print-pcl.c:337:9`!, |
| 1177 | ljsmall_papersizescxx . . $ ljsmall_papersizes., |
| 1178 | emptylistcxx . . $ emptylist., |
| 1179 | laserjet_papersourcescxx . . $ laserjet_papersources., |
| 1180 | }, |
| 1181 | /* PCL-4 with large paper */ |
| 1182 | { 23, |
| 1183 | 13 * 72, 19 * 72, |
| 1184 | 1, 1, /* Min paper size */ |
| 1185 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`!, |
| 1186 | {12, 12, 18, 18}, |
| 1187 | {12, 12, 10, 10}, /* Check/Fix */ |
| 1188 | PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`!, |
| 1189 | PCL_PRINTER_LJcxx . . $ `src/main/print-pcl.c:337:9`!, |
| 1190 | ljbig_papersizescxx . . $ ljbig_papersizes., |
| 1191 | emptylistcxx . . $ emptylist., |
| 1192 | laserjet_papersourcescxx . . $ laserjet_papersources., |
| 1193 | }, |
| 1194 | /* PCL-4 with large paper, no expanded A4 margins */ |
| 1195 | { 24, |
| 1196 | 13 * 72, 19 * 72, |
| 1197 | 1, 1, /* Min paper size */ |
| 1198 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`!, |
| 1199 | {12, 12, 18, 18}, |
| 1200 | {12, 12, 18, 18}, /* Check/Fix */ |
| 1201 | PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`!, |
| 1202 | PCL_PRINTER_LJcxx . . $ `src/main/print-pcl.c:337:9`!, |
| 1203 | ljbig_papersizescxx . . $ ljbig_papersizes., |
| 1204 | emptylistcxx . . $ emptylist., |
| 1205 | laserjet_papersourcescxx . . $ laserjet_papersources., |
| 1206 | }, |
| 1207 | /* LaserJet III series */ |
| 1208 | { 3, |
| 1209 | 17 * 72 / 2, 14 * 72, |
| 1210 | 1, 1, /* Min paper size */ |
| 1211 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`!, |
| 1212 | {12, 12, 18, 18}, |
| 1213 | {12, 12, 10, 10}, /* Check/Fix */ |
| 1214 | PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`!, |
| 1215 | PCL_PRINTER_LJcxx . . $ `src/main/print-pcl.c:337:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 1216 | ljsmall_papersizescxx . . $ ljsmall_papersizes., |
| 1217 | emptylistcxx . . $ emptylist., |
| 1218 | laserjet_papersourcescxx . . $ laserjet_papersources., |
| 1219 | }, |
| 1220 | /* LaserJet III series */ |
| 1221 | { 31, |
| 1222 | 17 * 72 / 2, 14 * 72, |
| 1223 | 1, 1, /* Min paper size */ |
| 1224 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`!, |
| 1225 | {12, 12, 18, 18}, |
| 1226 | {12, 12, 10, 10}, /* Check/Fix */ |
| 1227 | PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`!, |
| 1228 | PCL_PRINTER_LJcxx . . $ `src/main/print-pcl.c:337:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 1229 | ljsmall_papersizescxx . . $ ljsmall_papersizes., |
| 1230 | emptylistcxx . . $ emptylist., |
| 1231 | laserjet_papersourcescxx . . $ laserjet_papersources., |
| 1232 | }, |
| 1233 | /* Some laser printers don't have expanded A4 margins */ |
| 1234 | { 32, |
| 1235 | 17 * 72 / 2, 14 * 72, |
| 1236 | 1, 1, /* Min paper size */ |
| 1237 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`!, |
| 1238 | {12, 12, 18, 18}, |
| 1239 | {12, 12, 18, 18}, /* Check/Fix */ |
| 1240 | PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`!, |
| 1241 | PCL_PRINTER_LJcxx . . $ `src/main/print-pcl.c:337:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 1242 | ljsmall_papersizescxx . . $ ljsmall_papersizes., |
| 1243 | emptylistcxx . . $ emptylist., |
| 1244 | laserjet_papersourcescxx . . $ laserjet_papersources., |
| 1245 | }, |
| 1246 | /* PCL-5 with large paper */ |
| 1247 | { 33, |
| 1248 | 13 * 72, 19 * 72, |
| 1249 | 1, 1, /* Min paper size */ |
| 1250 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`!, |
| 1251 | {12, 12, 18, 18}, |
| 1252 | {12, 12, 10, 10}, /* Check/Fix */ |
| 1253 | PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`!, |
| 1254 | PCL_PRINTER_LJcxx . . $ `src/main/print-pcl.c:337:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 1255 | ljbig_papersizescxx . . $ ljbig_papersizes., |
| 1256 | emptylistcxx . . $ emptylist., |
| 1257 | laserjet_papersourcescxx . . $ laserjet_papersources., |
| 1258 | }, |
| 1259 | /* PCL-5 with large paper, no expanded margins */ |
| 1260 | { 34, |
| 1261 | 13 * 72, 19 * 72, |
| 1262 | 1, 1, /* Min paper size */ |
| 1263 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`!, |
| 1264 | {12, 12, 18, 18}, |
| 1265 | {12, 12, 18, 18}, /* Check/Fix */ |
| 1266 | PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`!, |
| 1267 | PCL_PRINTER_LJcxx . . $ `src/main/print-pcl.c:337:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 1268 | ljbig_papersizescxx . . $ ljbig_papersizes., |
| 1269 | emptylistcxx . . $ emptylist., |
| 1270 | laserjet_papersourcescxx . . $ laserjet_papersources., |
| 1271 | }, |
| 1272 | /* PCL-5 with tabloid paper, no expanded margins */ |
| 1273 | { 35, |
| 1274 | 118 * 72 / 10, 17 * 72, |
| 1275 | 1, 1, /* Min paper size */ |
| 1276 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`!, |
| 1277 | {12, 12, 18, 18}, |
| 1278 | {12, 12, 18, 18}, /* Check/Fix */ |
| 1279 | PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`!, |
| 1280 | PCL_PRINTER_LJcxx . . $ `src/main/print-pcl.c:337:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 1281 | ljtabloid_papersizescxx . . $ ljtabloid_papersizes., |
| 1282 | emptylistcxx . . $ emptylist., |
| 1283 | laserjet_papersourcescxx . . $ laserjet_papersources., |
| 1284 | }, |
| 1285 | /* LaserJet 4L */ |
| 1286 | { 4, |
| 1287 | 17 * 72 / 2, 14 * 72, |
| 1288 | 1, 1, /* Min paper size */ |
| 1289 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`!, |
| 1290 | {12, 12, 18, 18}, |
| 1291 | {12, 12, 10, 10}, /* Check/Fix */ |
| 1292 | PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`!, |
| 1293 | PCL_PRINTER_LJcxx . . $ `src/main/print-pcl.c:337:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 1294 | ljsmall_papersizescxx . . $ ljsmall_papersizes., |
| 1295 | emptylistcxx . . $ emptylist., |
| 1296 | laserjet_papersourcescxx . . $ laserjet_papersources., |
| 1297 | }, |
| 1298 | /* LaserJet 4V */ |
| 1299 | { 5, |
| 1300 | 13 * 72, 19 * 72, |
| 1301 | 1, 1, /* Min paper size */ |
| 1302 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`! | PCL_RES_600_600cxx . . $ `src/main/print-pcl.c:274:9`!, |
| 1303 | {12, 12, 18, 18}, |
| 1304 | {12, 12, 10, 10}, /* Check/Fix */ |
| 1305 | PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`!, |
| 1306 | PCL_PRINTER_LJcxx . . $ `src/main/print-pcl.c:337:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 1307 | ljbig_papersizescxx . . $ ljbig_papersizes., |
| 1308 | emptylistcxx . . $ emptylist., |
| 1309 | laserjet_papersourcescxx . . $ laserjet_papersources., |
| 1310 | }, |
| 1311 | /* LaserJet 4Si */ |
| 1312 | { 51, |
| 1313 | 13 * 72, 19 * 72, |
| 1314 | 1, 1, /* Min paper size */ |
| 1315 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`! | PCL_RES_600_600cxx . . $ `src/main/print-pcl.c:274:9`!, |
| 1316 | {12, 12, 18, 18}, |
| 1317 | {12, 12, 10, 10}, /* Check/Fix */ |
| 1318 | PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`!, |
| 1319 | PCL_PRINTER_LJcxx . . $ `src/main/print-pcl.c:337:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | |
| 1320 | PCL_PRINTER_DUPLEXcxx . . $ `src/main/print-pcl.c:345:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 1321 | ljbig_papersizescxx . . $ ljbig_papersizes., |
| 1322 | emptylistcxx . . $ emptylist., |
| 1323 | laserjet_papersourcescxx . . $ laserjet_papersources., |
| 1324 | }, |
| 1325 | /* LaserJet 4 series (except as above), 5 series, 6 series */ |
| 1326 | { 6, |
| 1327 | 17 * 72 / 2, 14 * 72, |
| 1328 | 1, 1, /* Min paper size */ |
| 1329 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`! | PCL_RES_600_600cxx . . $ `src/main/print-pcl.c:274:9`!, |
| 1330 | {12, 12, 18, 18}, |
| 1331 | {12, 12, 10, 10}, /* Check/Fix */ |
| 1332 | PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`!, |
| 1333 | PCL_PRINTER_LJcxx . . $ `src/main/print-pcl.c:337:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | |
| 1334 | PCL_PRINTER_DUPLEXcxx . . $ `src/main/print-pcl.c:345:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 1335 | ljsmall_papersizescxx . . $ ljsmall_papersizes., |
| 1336 | emptylistcxx . . $ emptylist., |
| 1337 | laserjet_papersourcescxx . . $ laserjet_papersources., |
| 1338 | }, |
| 1339 | /* PCL-5c/5e/6/XL with large paper */ |
| 1340 | { 61, |
| 1341 | 13 * 72, 19 * 72, |
| 1342 | 1, 1, /* Min paper size */ |
| 1343 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`! | PCL_RES_600_600cxx . . $ `src/main/print-pcl.c:274:9`!, |
| 1344 | {12, 12, 18, 18}, |
| 1345 | {12, 12, 10, 10}, /* Check/Fix */ |
| 1346 | PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`!, |
| 1347 | PCL_PRINTER_LJcxx . . $ `src/main/print-pcl.c:337:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | |
| 1348 | PCL_PRINTER_DUPLEXcxx . . $ `src/main/print-pcl.c:345:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 1349 | ljbig_papersizescxx . . $ ljbig_papersizes., |
| 1350 | emptylistcxx . . $ emptylist., |
| 1351 | laserjet_papersourcescxx . . $ laserjet_papersources., |
| 1352 | }, |
| 1353 | /* Some laser printers don't have expanded A4 margins */ |
| 1354 | { 62, |
| 1355 | 17 * 72 / 2, 14 * 72, |
| 1356 | 1, 1, /* Min paper size */ |
| 1357 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`! | PCL_RES_600_600cxx . . $ `src/main/print-pcl.c:274:9`!, |
| 1358 | {12, 12, 18, 18}, |
| 1359 | {12, 12, 18, 18}, /* Check/Fix */ |
| 1360 | PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`!, |
| 1361 | PCL_PRINTER_LJcxx . . $ `src/main/print-pcl.c:337:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | |
| 1362 | PCL_PRINTER_DUPLEXcxx . . $ `src/main/print-pcl.c:345:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 1363 | ljsmall_papersizescxx . . $ ljsmall_papersizes., |
| 1364 | emptylistcxx . . $ emptylist., |
| 1365 | laserjet_papersourcescxx . . $ laserjet_papersources., |
| 1366 | }, |
| 1367 | /* PCL-5c/5e/6/XL with large paper, no expanded A4 margins */ |
| 1368 | { 63, |
| 1369 | 13 * 72, 19 * 72, |
| 1370 | 1, 1, /* Min paper size */ |
| 1371 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`! | PCL_RES_600_600cxx . . $ `src/main/print-pcl.c:274:9`!, |
| 1372 | {12, 12, 18, 18}, |
| 1373 | {12, 12, 18, 18}, /* Check/Fix */ |
| 1374 | PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`!, |
| 1375 | PCL_PRINTER_LJcxx . . $ `src/main/print-pcl.c:337:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | |
| 1376 | PCL_PRINTER_DUPLEXcxx . . $ `src/main/print-pcl.c:345:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 1377 | ljbig_papersizescxx . . $ ljbig_papersizes., |
| 1378 | emptylistcxx . . $ emptylist., |
| 1379 | laserjet_papersourcescxx . . $ laserjet_papersources., |
| 1380 | }, |
| 1381 | /* PCL-5c/5e/6/XL with tabloid paper, no expanded A4 margins */ |
| 1382 | { 64, |
| 1383 | 118 * 72 / 10, 17 * 72, |
| 1384 | 1, 1, /* Min paper size */ |
| 1385 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`! | PCL_RES_600_600cxx . . $ `src/main/print-pcl.c:274:9`!, |
| 1386 | {12, 12, 18, 18}, |
| 1387 | {12, 12, 18, 18}, /* Check/Fix */ |
| 1388 | PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`!, |
| 1389 | PCL_PRINTER_LJcxx . . $ `src/main/print-pcl.c:337:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | |
| 1390 | PCL_PRINTER_DUPLEXcxx . . $ `src/main/print-pcl.c:345:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 1391 | ljtabloid_papersizescxx . . $ ljtabloid_papersizes., |
| 1392 | emptylistcxx . . $ emptylist., |
| 1393 | laserjet_papersourcescxx . . $ laserjet_papersources., |
| 1394 | }, |
| 1395 | /* LaserJet 5Si */ |
| 1396 | { 7, |
| 1397 | 13 * 72, 19 * 72, |
| 1398 | 1, 1, /* Min paper size */ |
| 1399 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`! | PCL_RES_600_600cxx . . $ `src/main/print-pcl.c:274:9`!, |
| 1400 | {12, 12, 18, 18}, |
| 1401 | {12, 12, 10, 10}, /* Check/Fix */ |
| 1402 | PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`!, |
| 1403 | PCL_PRINTER_LJcxx . . $ `src/main/print-pcl.c:337:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | |
| 1404 | PCL_PRINTER_DUPLEXcxx . . $ `src/main/print-pcl.c:345:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 1405 | ljbig_papersizescxx . . $ ljbig_papersizes., |
| 1406 | emptylistcxx . . $ emptylist., |
| 1407 | laserjet_papersourcescxx . . $ laserjet_papersources., |
| 1408 | }, |
| 1409 | /* Color laser printer, small format */ |
| 1410 | { 50000, |
| 1411 | 17 * 72 / 2, 14 * 72, |
| 1412 | 1, 1, /* Min paper size */ |
| 1413 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`! | PCL_RES_600_600cxx . . $ `src/main/print-pcl.c:274:9`!, |
| 1414 | {12, 12, 18, 18}, |
| 1415 | {12, 12, 10, 10}, /* Check/Fix */ |
| 1416 | PCL_COLOR_RGBcxx . . $ `src/main/print-pcl.c:335:9`!, |
| 1417 | PCL_PRINTER_LJ_COLORcxx . . $ `src/main/print-pcl.c:347:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | |
| 1418 | PCL_PRINTER_DUPLEXcxx . . $ `src/main/print-pcl.c:345:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 1419 | ljsmall_papersizescxx . . $ ljsmall_papersizes., |
| 1420 | emptylistcxx . . $ emptylist., |
| 1421 | laserjet_papersourcescxx . . $ laserjet_papersources., |
| 1422 | }, |
| 1423 | /* Color laser printer, large format */ |
| 1424 | { 50001, |
| 1425 | 13 * 72, 19 * 72, |
| 1426 | 1, 1, /* Min paper size */ |
| 1427 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`! | PCL_RES_600_600cxx . . $ `src/main/print-pcl.c:274:9`!, |
| 1428 | {12, 12, 18, 18}, |
| 1429 | {12, 12, 10, 10}, /* Check/Fix */ |
| 1430 | PCL_COLOR_RGBcxx . . $ `src/main/print-pcl.c:335:9`!, |
| 1431 | PCL_PRINTER_LJ_COLORcxx . . $ `src/main/print-pcl.c:347:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | |
| 1432 | PCL_PRINTER_DUPLEXcxx . . $ `src/main/print-pcl.c:345:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 1433 | ljbig_papersizescxx . . $ ljbig_papersizes., |
| 1434 | emptylistcxx . . $ emptylist., |
| 1435 | laserjet_papersourcescxx . . $ laserjet_papersources., |
| 1436 | }, |
| 1437 | /* Color laser printer, small format, no expanded A4 margins */ |
| 1438 | { 50002, |
| 1439 | 17 * 72 / 2, 14 * 72, |
| 1440 | 1, 1, /* Min paper size */ |
| 1441 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`! | PCL_RES_600_600cxx . . $ `src/main/print-pcl.c:274:9`!, |
| 1442 | {12, 12, 18, 18}, |
| 1443 | {12, 12, 18, 18}, /* Check/Fix */ |
| 1444 | PCL_COLOR_RGBcxx . . $ `src/main/print-pcl.c:335:9`!, |
| 1445 | PCL_PRINTER_LJ_COLORcxx . . $ `src/main/print-pcl.c:347:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | |
| 1446 | PCL_PRINTER_DUPLEXcxx . . $ `src/main/print-pcl.c:345:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 1447 | ljsmall_papersizescxx . . $ ljsmall_papersizes., |
| 1448 | emptylistcxx . . $ emptylist., |
| 1449 | laserjet_papersourcescxx . . $ laserjet_papersources., |
| 1450 | }, |
| 1451 | /* Color laser printer with large paper, no expanded A4 margins */ |
| 1452 | { 50003, |
| 1453 | 13 * 72, 19 * 72, |
| 1454 | 1, 1, /* Min paper size */ |
| 1455 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`! | PCL_RES_600_600cxx . . $ `src/main/print-pcl.c:274:9`!, |
| 1456 | {12, 12, 18, 18}, |
| 1457 | {12, 12, 18, 18}, /* Check/Fix */ |
| 1458 | PCL_COLOR_RGBcxx . . $ `src/main/print-pcl.c:335:9`!, |
| 1459 | PCL_PRINTER_LJ_COLORcxx . . $ `src/main/print-pcl.c:347:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | |
| 1460 | PCL_PRINTER_DUPLEXcxx . . $ `src/main/print-pcl.c:345:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 1461 | ljbig_papersizescxx . . $ ljbig_papersizes., |
| 1462 | emptylistcxx . . $ emptylist., |
| 1463 | laserjet_papersourcescxx . . $ laserjet_papersources., |
| 1464 | }, |
| 1465 | /* Color laser printer with tabloid paper, no expanded A4 margins */ |
| 1466 | { 50004, |
| 1467 | 118 * 72 / 10, 17 * 72, /* 11.8*17 */ |
| 1468 | 1, 1, /* Min paper size */ |
| 1469 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`! | PCL_RES_600_600cxx . . $ `src/main/print-pcl.c:274:9`!, |
| 1470 | {12, 12, 18, 18}, |
| 1471 | {12, 12, 18, 18}, /* Check/Fix */ |
| 1472 | PCL_COLOR_RGBcxx . . $ `src/main/print-pcl.c:335:9`!, |
| 1473 | PCL_PRINTER_LJ_COLORcxx . . $ `src/main/print-pcl.c:347:9`! | PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | |
| 1474 | PCL_PRINTER_DUPLEXcxx . . $ `src/main/print-pcl.c:345:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 1475 | ljtabloid_papersizescxx . . $ ljtabloid_papersizes., |
| 1476 | emptylistcxx . . $ emptylist., |
| 1477 | laserjet_papersourcescxx . . $ laserjet_papersources., |
| 1478 | }, |
| 1479 | /* Special case the Color LaserJet 5 */ |
| 1480 | { 50012, |
| 1481 | 17 * 72 / 2, 14 * 72, |
| 1482 | 1, 1, /* Min paper size */ |
| 1483 | PCL_RES_150_150cxx . . $ `src/main/print-pcl.c:270:9`! | PCL_RES_300_300cxx . . $ `src/main/print-pcl.c:271:9`! | PCL_RES_600_600cxx . . $ `src/main/print-pcl.c:274:9`!, |
| 1484 | {12, 12, 18, 18}, |
| 1485 | {12, 12, 18, 18}, /* Check/Fix */ |
| 1486 | PCL_COLOR_RGBcxx . . $ `src/main/print-pcl.c:335:9`!, |
| 1487 | PCL_PRINTER_LJ_COLORcxx . . $ `src/main/print-pcl.c:347:9`! | PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`! | |
| 1488 | PCL_PRINTER_DUPLEXcxx . . $ `src/main/print-pcl.c:345:9`! | PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!, |
| 1489 | ljsmall_papersizescxx . . $ ljsmall_papersizes., |
| 1490 | emptylistcxx . . $ emptylist., |
| 1491 | laserjet_papersourcescxx . . $ laserjet_papersources., |
| 1492 | }, |
| 1493 | }; |
| 1494 | |
| 1495 | static const char UNUSEDcxx . . $ `src/main/print-pcl.c:41:9`! standard_sat_adjustmentcxx . . $ standard_sat_adjustment.[] = |
| 1496 | "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" |
| 1497 | "<gutenprint>\n" |
| 1498 | "<curve wrap=\"wrap\" type=\"linear\" gamma=\"0\">\n" |
| 1499 | "<sequence count=\"48\" lower-bound=\"0\" upper-bound=\"4\">\n" |
| 1500 | /* C */ "1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 " /* B */ |
| 1501 | /* B */ "1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 " /* M */ |
| 1502 | /* M */ "1.00 0.95 0.90 0.90 0.90 0.90 0.90 0.90 " /* R */ |
| 1503 | /* R */ "0.90 0.95 0.95 1.00 1.00 1.00 1.00 1.00 " /* Y */ |
| 1504 | /* Y */ "1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 " /* G */ |
| 1505 | /* G */ "1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 " /* C */ |
| 1506 | "</sequence>\n" |
| 1507 | "</curve>\n" |
| 1508 | "</gutenprint>\n"; |
| 1509 | |
| 1510 | static const char standard_lum_adjustmentcxx . . $ standard_lum_adjustment.[] = |
| 1511 | "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" |
| 1512 | "<gutenprint>\n" |
| 1513 | "<curve wrap=\"wrap\" type=\"linear\" gamma=\"0\">\n" |
| 1514 | "<sequence count=\"48\" lower-bound=\"0\" upper-bound=\"4\">\n" |
| 1515 | /* C */ "0.65 0.67 0.70 0.72 0.77 0.80 0.82 0.85 " /* B */ |
| 1516 | /* B */ "0.87 0.86 0.82 0.79 0.79 0.82 0.85 0.88 " /* M */ |
| 1517 | /* M */ "0.92 0.95 0.96 0.97 0.97 0.97 0.96 0.96 " /* R */ |
| 1518 | /* R */ "0.96 0.97 0.97 0.98 0.99 1.00 1.00 1.00 " /* Y */ |
| 1519 | /* Y */ "1.00 0.97 0.95 0.94 0.93 0.92 0.90 0.86 " /* G */ |
| 1520 | /* G */ "0.79 0.76 0.71 0.68 0.68 0.68 0.68 0.66 " /* C */ |
| 1521 | "</sequence>\n" |
| 1522 | "</curve>\n" |
| 1523 | "</gutenprint>\n"; |
| 1524 | |
| 1525 | static const char standard_hue_adjustmentcxx . . $ standard_hue_adjustment.[] = |
| 1526 | "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" |
| 1527 | "<gutenprint>\n" |
| 1528 | "<curve wrap=\"wrap\" type=\"linear\" gamma=\"0\">\n" |
| 1529 | "<sequence count=\"48\" lower-bound=\"-6\" upper-bound=\"6\">\n" |
| 1530 | /* C */ "0.00 0.06 0.10 0.10 0.06 -.01 -.09 -.17 " /* B */ |
| 1531 | /* B */ "-.25 -.33 -.38 -.38 -.36 -.34 -.34 -.34 " /* M */ |
| 1532 | /* M */ "-.34 -.34 -.36 -.40 -.50 -.40 -.30 -.20 " /* R */ |
| 1533 | /* R */ "-.12 -.07 -.04 -.02 0.00 0.00 0.00 0.00 " /* Y */ |
| 1534 | /* Y */ "0.00 0.00 0.00 -.05 -.10 -.15 -.22 -.24 " /* G */ |
| 1535 | /* G */ "-.26 -.30 -.33 -.28 -.25 -.20 -.13 -.06 " /* C */ |
| 1536 | "</sequence>\n" |
| 1537 | "</curve>\n" |
| 1538 | "</gutenprint>\n"; |
| 1539 | |
| 1540 | static const stp_parameter_tcxx . . $ stp_parameter_t# the_parameterscxx . . $ the_parameters.[] = |
| 1541 | { |
| 1542 | { |
| 1543 | "PageSize", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Page Size"), "Color=No,Category=Basic Printer Setup", |
| 1544 | N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Size of the paper being printed to"), |
| 1545 | STP_PARAMETER_TYPE_STRING_LISTcxx . . $ STP_PARAMETER_TYPE_STRING_LIST., STP_PARAMETER_CLASS_COREcxx . . $ STP_PARAMETER_CLASS_CORE., |
| 1546 | STP_PARAMETER_LEVEL_BASICcxx . . $ STP_PARAMETER_LEVEL_BASIC., 1, 1, STP_CHANNEL_NONEcxx . . $ `include/gutenprint/vars.h:154:9`!, 1, 0 |
| 1547 | }, |
| 1548 | { |
| 1549 | "MediaType", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Media Type"), "Color=Yes,Category=Basic Printer Setup", |
| 1550 | N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Type of media (plain paper, photo paper, etc.)"), |
| 1551 | STP_PARAMETER_TYPE_STRING_LISTcxx . . $ STP_PARAMETER_TYPE_STRING_LIST., STP_PARAMETER_CLASS_FEATUREcxx . . $ STP_PARAMETER_CLASS_FEATURE., |
| 1552 | STP_PARAMETER_LEVEL_BASICcxx . . $ STP_PARAMETER_LEVEL_BASIC., 1, 1, STP_CHANNEL_NONEcxx . . $ `include/gutenprint/vars.h:154:9`!, 1, 0 |
| 1553 | }, |
| 1554 | { |
| 1555 | "InputSlot", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Media Source"), "Color=No,Category=Basic Printer Setup", |
| 1556 | N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Source (input slot) of the media"), |
| 1557 | STP_PARAMETER_TYPE_STRING_LISTcxx . . $ STP_PARAMETER_TYPE_STRING_LIST., STP_PARAMETER_CLASS_FEATUREcxx . . $ STP_PARAMETER_CLASS_FEATURE., |
| 1558 | STP_PARAMETER_LEVEL_BASICcxx . . $ STP_PARAMETER_LEVEL_BASIC., 1, 1, STP_CHANNEL_NONEcxx . . $ `include/gutenprint/vars.h:154:9`!, 1, 0 |
| 1559 | }, |
| 1560 | { |
| 1561 | "Quality", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Print Quality"), "Color=Yes,Category=Basic Output Adjustment", |
| 1562 | N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Print Quality"), |
| 1563 | STP_PARAMETER_TYPE_STRING_LISTcxx . . $ STP_PARAMETER_TYPE_STRING_LIST., STP_PARAMETER_CLASS_FEATUREcxx . . $ STP_PARAMETER_CLASS_FEATURE., |
| 1564 | STP_PARAMETER_LEVEL_BASICcxx . . $ STP_PARAMETER_LEVEL_BASIC., 1, 1, STP_CHANNEL_NONEcxx . . $ `include/gutenprint/vars.h:154:9`!, 0, 0 |
| 1565 | }, |
| 1566 | { |
| 1567 | "Resolution", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Resolution"), "Color=Yes,Category=Basic Printer Setup", |
| 1568 | N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Resolution of the print"), |
| 1569 | STP_PARAMETER_TYPE_STRING_LISTcxx . . $ STP_PARAMETER_TYPE_STRING_LIST., STP_PARAMETER_CLASS_FEATUREcxx . . $ STP_PARAMETER_CLASS_FEATURE., |
| 1570 | STP_PARAMETER_LEVEL_BASICcxx . . $ STP_PARAMETER_LEVEL_BASIC., 1, 1, STP_CHANNEL_NONEcxx . . $ `include/gutenprint/vars.h:154:9`!, 1, 0 |
| 1571 | }, |
| 1572 | { |
| 1573 | "InkType", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Ink Type"), "Color=Yes,Category=Advanced Printer Setup", |
| 1574 | N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Type of ink in the printer"), |
| 1575 | STP_PARAMETER_TYPE_STRING_LISTcxx . . $ STP_PARAMETER_TYPE_STRING_LIST., STP_PARAMETER_CLASS_FEATUREcxx . . $ STP_PARAMETER_CLASS_FEATURE., |
| 1576 | STP_PARAMETER_LEVEL_BASICcxx . . $ STP_PARAMETER_LEVEL_BASIC., 1, 1, STP_CHANNEL_NONEcxx . . $ `include/gutenprint/vars.h:154:9`!, 1, 0 |
| 1577 | }, |
| 1578 | { |
| 1579 | "InkChannels", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Ink Channels"), "Color=Yes,Category=Advanced Printer Functionality", |
| 1580 | N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Ink Channels"), |
| 1581 | STP_PARAMETER_TYPE_INTcxx . . $ STP_PARAMETER_TYPE_INT., STP_PARAMETER_CLASS_FEATUREcxx . . $ STP_PARAMETER_CLASS_FEATURE., |
| 1582 | STP_PARAMETER_LEVEL_INTERNALcxx . . $ STP_PARAMETER_LEVEL_INTERNAL., 0, 0, STP_CHANNEL_NONEcxx . . $ `include/gutenprint/vars.h:154:9`!, 0, 0 |
| 1583 | }, |
| 1584 | { |
| 1585 | "PrintingMode", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Printing Mode"), "Color=Yes,Category=Core Parameter", |
| 1586 | N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Printing Output Mode"), |
| 1587 | STP_PARAMETER_TYPE_STRING_LISTcxx . . $ STP_PARAMETER_TYPE_STRING_LIST., STP_PARAMETER_CLASS_COREcxx . . $ STP_PARAMETER_CLASS_CORE., |
| 1588 | STP_PARAMETER_LEVEL_BASICcxx . . $ STP_PARAMETER_LEVEL_BASIC., 1, 1, STP_CHANNEL_NONEcxx . . $ `include/gutenprint/vars.h:154:9`!, 1, 0 |
| 1589 | }, |
| 1590 | { |
| 1591 | "Duplex", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Double-Sided Printing"), "Color=No,Category=Basic Printer Setup", |
| 1592 | N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Duplex/Tumble Setting"), |
| 1593 | STP_PARAMETER_TYPE_STRING_LISTcxx . . $ STP_PARAMETER_TYPE_STRING_LIST., STP_PARAMETER_CLASS_FEATUREcxx . . $ STP_PARAMETER_CLASS_FEATURE., |
| 1594 | STP_PARAMETER_LEVEL_BASICcxx . . $ STP_PARAMETER_LEVEL_BASIC., 1, 1, STP_CHANNEL_NONEcxx . . $ `include/gutenprint/vars.h:154:9`!, 1, 0 |
| 1595 | }, |
| 1596 | { |
| 1597 | "Orientation", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Orientation"), "Color=No,Category=Basic Printer Setup", |
| 1598 | N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Orientation, Portrait, Landscape, Upside Down, Seascape"), |
| 1599 | STP_PARAMETER_TYPE_STRING_LISTcxx . . $ STP_PARAMETER_TYPE_STRING_LIST., STP_PARAMETER_CLASS_FEATUREcxx . . $ STP_PARAMETER_CLASS_FEATURE., |
| 1600 | STP_PARAMETER_LEVEL_BASICcxx . . $ STP_PARAMETER_LEVEL_BASIC., 1, 1, STP_CHANNEL_NONEcxx . . $ `include/gutenprint/vars.h:154:9`!, 1, 0, |
| 1601 | }, |
| 1602 | { |
| 1603 | "LabelSeparator", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Paper Sensor Type"), |
| 1604 | "Color=No,Category=Basic Printer Setup", |
| 1605 | N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Gap, Mark on Top, Mark on Bottom, Notch, Continuous"), |
| 1606 | STP_PARAMETER_TYPE_STRING_LISTcxx . . $ STP_PARAMETER_TYPE_STRING_LIST., STP_PARAMETER_CLASS_FEATUREcxx . . $ STP_PARAMETER_CLASS_FEATURE., |
| 1607 | STP_PARAMETER_LEVEL_BASICcxx . . $ STP_PARAMETER_LEVEL_BASIC., 1, 1, STP_CHANNEL_NONEcxx . . $ `include/gutenprint/vars.h:154:9`!, 1, 0, |
| 1608 | }, |
| 1609 | { |
| 1610 | "Darkness", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Darkness"), "Color=No,Category=Basic Printer Setup", |
| 1611 | N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Darkness Adjust, from -20 to 20"), |
| 1612 | STP_PARAMETER_TYPE_INTcxx . . $ STP_PARAMETER_TYPE_INT., STP_PARAMETER_CLASS_FEATUREcxx . . $ STP_PARAMETER_CLASS_FEATURE., |
| 1613 | STP_PARAMETER_LEVEL_BASICcxx . . $ STP_PARAMETER_LEVEL_BASIC., 0, 1, STP_CHANNEL_NONEcxx . . $ `include/gutenprint/vars.h:154:9`!, 1, 0 |
| 1614 | }, |
| 1615 | { |
| 1616 | "NativeCopies", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Printer Generates Copies Natively"), "Color=No,Category=Job Mode", |
| 1617 | N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Printer Generates Copies"), |
| 1618 | STP_PARAMETER_TYPE_BOOLEANcxx . . $ STP_PARAMETER_TYPE_BOOLEAN., STP_PARAMETER_CLASS_FEATUREcxx . . $ STP_PARAMETER_CLASS_FEATURE., |
| 1619 | STP_PARAMETER_LEVEL_INTERNALcxx . . $ STP_PARAMETER_LEVEL_INTERNAL., 1, 0, STP_CHANNEL_NONEcxx . . $ `include/gutenprint/vars.h:154:9`!, 0, 1 |
| 1620 | }, |
| 1621 | }; |
| 1622 | |
| 1623 | static const unsigned int the_parameter_countcxx . . $ the_parameter_count. = |
| 1624 | sizeof(the_parameterscxx . . $ the_parameters.) / sizeof(const stp_parameter_tcxx . . $ stp_parameter_t#); |
| 1625 | |
| 1626 | typedef structcxx . . $ $anonymous_type_64c66a939155289b_4# |
| 1627 | { |
| 1628 | const stp_parameter_tcxx . . $ stp_parameter_t# paramcxx . . $ $anonymous_type_64c66a939155289b_4#param.; |
| 1629 | double mincxx . . $ $anonymous_type_64c66a939155289b_4#min.; |
| 1630 | double maxcxx . . $ $anonymous_type_64c66a939155289b_4#max.; |
| 1631 | double defvalcxx . . $ $anonymous_type_64c66a939155289b_4#defval.; |
| 1632 | int color_onlycxx . . $ $anonymous_type_64c66a939155289b_4#color_only.; |
| 1633 | } float_param_tcxx . . $ float_param_t#; |
| 1634 | |
| 1635 | static const float_param_tcxx . . $ float_param_t# float_parameterscxx . . $ float_parameters.[] = |
| 1636 | { |
| 1637 | { |
| 1638 | { |
| 1639 | "CyanDensity", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Cyan Density"), "Color=Yes,Category=Output Level Adjustment", |
| 1640 | N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Adjust the cyan density"), |
| 1641 | STP_PARAMETER_TYPE_DOUBLEcxx . . $ STP_PARAMETER_TYPE_DOUBLE., STP_PARAMETER_CLASS_OUTPUTcxx . . $ STP_PARAMETER_CLASS_OUTPUT., |
| 1642 | STP_PARAMETER_LEVEL_ADVANCEDcxx . . $ STP_PARAMETER_LEVEL_ADVANCED., 0, 1, 1, 1, 0 |
| 1643 | }, 0.0, 2.0, 1.0, 1 |
| 1644 | }, |
| 1645 | { |
| 1646 | { |
| 1647 | "MagentaDensity", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Magenta Density"), "Color=Yes,Category=Output Level Adjustment", |
| 1648 | N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Adjust the magenta density"), |
| 1649 | STP_PARAMETER_TYPE_DOUBLEcxx . . $ STP_PARAMETER_TYPE_DOUBLE., STP_PARAMETER_CLASS_OUTPUTcxx . . $ STP_PARAMETER_CLASS_OUTPUT., |
| 1650 | STP_PARAMETER_LEVEL_ADVANCEDcxx . . $ STP_PARAMETER_LEVEL_ADVANCED., 0, 1, 2, 1, 0 |
| 1651 | }, 0.0, 2.0, 1.0, 1 |
| 1652 | }, |
| 1653 | { |
| 1654 | { |
| 1655 | "YellowDensity", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Yellow Density"), "Color=Yes,Category=Output Level Adjustment", |
| 1656 | N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Adjust the yellow density"), |
| 1657 | STP_PARAMETER_TYPE_DOUBLEcxx . . $ STP_PARAMETER_TYPE_DOUBLE., STP_PARAMETER_CLASS_OUTPUTcxx . . $ STP_PARAMETER_CLASS_OUTPUT., |
| 1658 | STP_PARAMETER_LEVEL_ADVANCEDcxx . . $ STP_PARAMETER_LEVEL_ADVANCED., 0, 1, 3, 1, 0 |
| 1659 | }, 0.0, 2.0, 1.0, 1 |
| 1660 | }, |
| 1661 | { |
| 1662 | { |
| 1663 | "RedDensity", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Red Density"), "Color=Yes,Category=Output Level Adjustment", |
| 1664 | N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Adjust the red density"), |
| 1665 | STP_PARAMETER_TYPE_DOUBLEcxx . . $ STP_PARAMETER_TYPE_DOUBLE., STP_PARAMETER_CLASS_OUTPUTcxx . . $ STP_PARAMETER_CLASS_OUTPUT., |
| 1666 | STP_PARAMETER_LEVEL_ADVANCEDcxx . . $ STP_PARAMETER_LEVEL_ADVANCED., 0, 1, 5, 1, 0 |
| 1667 | }, 0.0, 1.0, 1.0, 1 |
| 1668 | }, |
| 1669 | { |
| 1670 | { |
| 1671 | "GreenDensity", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Green Density"), "Color=Yes,Category=Output Level Adjustment", |
| 1672 | N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Adjust the green density"), |
| 1673 | STP_PARAMETER_TYPE_DOUBLEcxx . . $ STP_PARAMETER_TYPE_DOUBLE., STP_PARAMETER_CLASS_OUTPUTcxx . . $ STP_PARAMETER_CLASS_OUTPUT., |
| 1674 | STP_PARAMETER_LEVEL_ADVANCEDcxx . . $ STP_PARAMETER_LEVEL_ADVANCED., 0, 1, 5, 1, 0 |
| 1675 | }, 0.0, 1.0, 1.0, 1 |
| 1676 | }, |
| 1677 | { |
| 1678 | { |
| 1679 | "BlueDensity", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Blue Density"), "Color=Yes,Category=Output Level Adjustment", |
| 1680 | N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Adjust the blue density"), |
| 1681 | STP_PARAMETER_TYPE_DOUBLEcxx . . $ STP_PARAMETER_TYPE_DOUBLE., STP_PARAMETER_CLASS_OUTPUTcxx . . $ STP_PARAMETER_CLASS_OUTPUT., |
| 1682 | STP_PARAMETER_LEVEL_ADVANCEDcxx . . $ STP_PARAMETER_LEVEL_ADVANCED., 0, 1, 4, 1, 0 |
| 1683 | }, 0.0, 1.0, 1.0, 1 |
| 1684 | }, |
| 1685 | { |
| 1686 | { |
| 1687 | "BlackDensity", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Black Density"), "Color=Yes,Category=Output Level Adjustment", |
| 1688 | N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Adjust the black density"), |
| 1689 | STP_PARAMETER_TYPE_DOUBLEcxx . . $ STP_PARAMETER_TYPE_DOUBLE., STP_PARAMETER_CLASS_OUTPUTcxx . . $ STP_PARAMETER_CLASS_OUTPUT., |
| 1690 | STP_PARAMETER_LEVEL_ADVANCEDcxx . . $ STP_PARAMETER_LEVEL_ADVANCED., 0, 1, 0, 1, 0 |
| 1691 | }, 0.0, 2.0, 1.0, 1 |
| 1692 | }, |
| 1693 | { |
| 1694 | { |
| 1695 | "LightCyanTrans", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Light Cyan Transition"), "Color=Yes,Category=Advanced Ink Adjustment", |
| 1696 | N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Light Cyan Transition"), |
| 1697 | STP_PARAMETER_TYPE_DOUBLEcxx . . $ STP_PARAMETER_TYPE_DOUBLE., STP_PARAMETER_CLASS_OUTPUTcxx . . $ STP_PARAMETER_CLASS_OUTPUT., |
| 1698 | STP_PARAMETER_LEVEL_ADVANCED4cxx . . $ STP_PARAMETER_LEVEL_ADVANCED4., 0, 1, STP_CHANNEL_NONEcxx . . $ `include/gutenprint/vars.h:154:9`!, 1, 0 |
| 1699 | }, 0.0, 5.0, 1.0, 1 |
| 1700 | }, |
| 1701 | { |
| 1702 | { |
| 1703 | "LightMagentaTrans", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Light Magenta Transition"), "Color=Yes,Category=Advanced Ink Adjustment", |
| 1704 | N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Light Magenta Transition"), |
| 1705 | STP_PARAMETER_TYPE_DOUBLEcxx . . $ STP_PARAMETER_TYPE_DOUBLE., STP_PARAMETER_CLASS_OUTPUTcxx . . $ STP_PARAMETER_CLASS_OUTPUT., |
| 1706 | STP_PARAMETER_LEVEL_ADVANCED4cxx . . $ STP_PARAMETER_LEVEL_ADVANCED4., 0, 1, STP_CHANNEL_NONEcxx . . $ `include/gutenprint/vars.h:154:9`!, 1, 0 |
| 1707 | }, 0.0, 5.0, 1.0, 1 |
| 1708 | }, |
| 1709 | { |
| 1710 | { |
| 1711 | "HorizOffset", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Horizontal Offset"), |
| 1712 | "Color=No,Category=Basic Output Adjustment", |
| 1713 | N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Adjust horizontal position"), |
| 1714 | STP_PARAMETER_TYPE_DOUBLEcxx . . $ STP_PARAMETER_TYPE_DOUBLE., STP_PARAMETER_CLASS_OUTPUTcxx . . $ STP_PARAMETER_CLASS_OUTPUT., |
| 1715 | STP_PARAMETER_LEVEL_ADVANCED3cxx . . $ STP_PARAMETER_LEVEL_ADVANCED3., 1, 1, STP_CHANNEL_NONEcxx . . $ `include/gutenprint/vars.h:154:9`!, 1, 0, |
| 1716 | }, 0.0, 4.0, 0.0, 0 |
| 1717 | }, |
| 1718 | { |
| 1719 | { |
| 1720 | "VertOffset", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Vertical Offset"), |
| 1721 | "Color=No,Category=Basic Output Adjustment", |
| 1722 | N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`!("Adjust vertical position"), |
| 1723 | STP_PARAMETER_TYPE_DOUBLEcxx . . $ STP_PARAMETER_TYPE_DOUBLE., STP_PARAMETER_CLASS_OUTPUTcxx . . $ STP_PARAMETER_CLASS_OUTPUT., |
| 1724 | STP_PARAMETER_LEVEL_ADVANCED3cxx . . $ STP_PARAMETER_LEVEL_ADVANCED3., 1, 1, STP_CHANNEL_NONEcxx . . $ `include/gutenprint/vars.h:154:9`!, 1, 0, |
| 1725 | }, 0.0, 10.0, 0.0, 0 |
| 1726 | }, |
| 1727 | }; |
| 1728 | |
| 1729 | static const unsigned int float_parameter_countcxx . . $ float_parameter_count. = |
| 1730 | sizeof(float_parameterscxx . . $ float_parameters.) / sizeof(const float_param_tcxx . . $ float_param_t#); |
| 1731 | |
| 1732 | /* |
| 1733 | * Convert a name into it's option value |
| 1734 | */ |
| 1735 | |
| 1736 | static int pcl_string_to_valcxx . . $ pcl_string_to_val(523918d142e3b7af).(const stp_vars_tcxx . . $ stp_vars_t# *v, |
| 1737 | const char *string, /* I: String */ |
| 1738 | const pcl_tcxx . . $ pcl_t# *options, /* I: Options */ |
| 1739 | int num_options) /* I: Num options */ |
| 1740 | { |
| 1741 | |
| 1742 | int i; |
| 1743 | int code = -1; |
| 1744 | |
| 1745 | /* |
| 1746 | * Look up the string in the table and convert to the code. |
| 1747 | */ |
| 1748 | |
| 1749 | for (i=0; i<num_options; i++) { |
| 1750 | if (!strcmpcxx . . $ strcmp(5ae29d726ae57f88).(string, options[i].pcl_namecxx . . $ $anonymous_type_64c66a939155289b_1#pcl_name.)) { |
| 1751 | code=options[i].pcl_codecxx . . $ $anonymous_type_64c66a939155289b_1#pcl_code.; |
| 1752 | break; |
| 1753 | } |
| 1754 | } |
| 1755 | |
| 1756 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v, "String: %s, Code: %d\n", string, code); |
| 1757 | |
| 1758 | return(code); |
| 1759 | } |
| 1760 | |
| 1761 | /* |
| 1762 | * Convert a value into it's option name |
| 1763 | */ |
| 1764 | |
| 1765 | static const char * pcl_val_to_stringcxx . . $ pcl_val_to_string(461a56a62508fd66).(const stp_vars_tcxx . . $ stp_vars_t# *v, |
| 1766 | int code, /* I: Code */ |
| 1767 | const pcl_tcxx . . $ pcl_t# *options, /* I: Options */ |
| 1768 | int num_options) /* I: Num options */ |
| 1769 | { |
| 1770 | |
| 1771 | int i; |
| 1772 | const char *string = "<null>"; |
| 1773 | |
| 1774 | /* |
| 1775 | * Look up the code in the table and convert to the string. |
| 1776 | */ |
| 1777 | |
| 1778 | for (i=0; i<num_options; i++) { |
| 1779 | if (code == options[i].pcl_codecxx . . $ $anonymous_type_64c66a939155289b_1#pcl_code.) { |
| 1780 | string=options[i].pcl_namecxx . . $ $anonymous_type_64c66a939155289b_1#pcl_name.; |
| 1781 | break; |
| 1782 | } |
| 1783 | } |
| 1784 | |
| 1785 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v, "Code: %d, String: %s\n", code, string); |
| 1786 | |
| 1787 | return(string); |
| 1788 | } |
| 1789 | |
| 1790 | static const char * pcl_val_to_textcxx . . $ pcl_val_to_text(461a56a62508fd66).(const stp_vars_tcxx . . $ stp_vars_t# *v, |
| 1791 | int code, /* I: Code */ |
| 1792 | const pcl_tcxx . . $ pcl_t# *options, /* I: Options */ |
| 1793 | int num_options) /* I: Num options */ |
| 1794 | { |
| 1795 | |
| 1796 | int i; |
| 1797 | const char *string = "<null>"; |
| 1798 | |
| 1799 | /* |
| 1800 | * Look up the code in the table and convert to the string. |
| 1801 | */ |
| 1802 | |
| 1803 | for (i=0; i<num_options; i++) { |
| 1804 | if (code == options[i].pcl_codecxx . . $ $anonymous_type_64c66a939155289b_1#pcl_code.) { |
| 1805 | string=gettextcxx . . $ `include/gutenprint/gutenprint-intl-internal.h:61:11`!(options[i].pcl_text); |
| 1806 | break; |
| 1807 | } |
| 1808 | } |
| 1809 | |
| 1810 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v, "Code: %d, String: %s\n", code, string); |
| 1811 | |
| 1812 | return(string); |
| 1813 | } |
| 1814 | |
| 1815 | static const double dot_sizescxx . . $ dot_sizes.[] = { 0.5, 0.832, 1.0 }; |
| 1816 | static const double dot_sizes_cretcxx . . $ dot_sizes_cret.[] = { 1.0, 1.0, 1.0 }; |
| 1817 | |
| 1818 | static const stp_dotsize_tcxx . . $ stp_dotsize_t# variable_dotsizescxx . . $ variable_dotsizes.[] = |
| 1819 | { |
| 1820 | { 0x1, 0.5 }, |
| 1821 | { 0x2, 0.67 }, |
| 1822 | { 0x3, 1.0 } |
| 1823 | }; |
| 1824 | |
| 1825 | static const stp_shade_tcxx . . $ stp_shade_t# variable_shadescxx . . $ variable_shades.[] = |
| 1826 | { |
| 1827 | { 0.38, 3, variable_dotsizescxx . . $ variable_dotsizes. }, |
| 1828 | { 1.0, 3, variable_dotsizescxx . . $ variable_dotsizes. } |
| 1829 | }; |
| 1830 | |
| 1831 | /* |
| 1832 | * pcl_get_model_capabilities() - Return struct of model capabilities |
| 1833 | */ |
| 1834 | |
| 1835 | static const pcl_cap_tcxx . . $ pcl_cap_t# * /* O: Capabilities */ |
| 1836 | pcl_get_model_capabilitiescxx . . $ pcl_get_model_capabilities(902c7d10057f92e4).(const stp_vars_tcxx . . $ stp_vars_t# *v) /* I: Model */ |
| 1837 | { |
| 1838 | int i; |
| 1839 | int model = stp_get_model_idcxx . . $ stp_get_model_id(b1be75487ade2f93).(v); |
| 1840 | int models= sizeof(pcl_model_capabilitiescxx . . $ pcl_model_capabilities.) / sizeof(pcl_cap_tcxx . . $ pcl_cap_t#); |
| 1841 | for (i=0; i<models; i++) { |
| 1842 | if (pcl_model_capabilitiescxx . . $ pcl_model_capabilities.[i].modelcxx . . $ $anonymous_type_64c66a939155289b_3#model. == model) { |
| 1843 | return &(pcl_model_capabilitiescxx . . $ pcl_model_capabilities.[i]); |
| 1844 | } |
| 1845 | } |
| 1846 | stp_eprintfcxx . . $ stp_eprintf(7aef7aa9b820d38).(v, "pcl: model %d not found in capabilities list.\n",model); |
| 1847 | return &(pcl_model_capabilitiescxx . . $ pcl_model_capabilities.[0]); |
| 1848 | } |
| 1849 | |
| 1850 | /* |
| 1851 | * Determine the current resolution based on quality and resolution settings |
| 1852 | */ |
| 1853 | |
| 1854 | static void |
| 1855 | pcl_describe_resolutioncxx . . $ pcl_describe_resolution(5883f070c6139f40).(const stp_vars_tcxx . . $ stp_vars_t# *v, stp_resolution_tcxx . . $ stp_resolution_t# *x, stp_resolution_tcxx . . $ stp_resolution_t# *y) |
| 1856 | { |
| 1857 | unsigned int i; |
| 1858 | const char *resolution = stp_get_string_parametercxx . . $ stp_get_string_parameter(3e3ce5d385745545).(v, "Resolution"); |
| 1859 | const char *quality; |
| 1860 | const pcl_cap_tcxx . . $ pcl_cap_t# *caps = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 1861 | if (resolution) |
| 1862 | { |
| 1863 | for (i = 0; i < NUM_RESOLUTIONScxx . . $ `src/main/print-pcl.c:288:9`!; i++) |
| 1864 | { |
| 1865 | if (!strcmpcxx . . $ strcmp(5ae29d726ae57f88).(resolution, pcl_resolutionscxx . . $ pcl_resolutions.[i].pcl_namecxx . . $ $anonymous_type_64c66a939155289b_1#pcl_name.)) |
| 1866 | { |
| 1867 | *x = pcl_resolutionscxx . . $ pcl_resolutions.[i].p0cxx . . $ $anonymous_type_64c66a939155289b_1#p0.; |
| 1868 | *y = pcl_resolutionscxx . . $ pcl_resolutions.[i].p1cxx . . $ $anonymous_type_64c66a939155289b_1#p1.; |
| 1869 | return; |
| 1870 | } |
| 1871 | } |
| 1872 | } |
| 1873 | quality = stp_get_string_parametercxx . . $ stp_get_string_parameter(3e3ce5d385745545).(v, "Quality"); |
| 1874 | caps = pcl_get_model_capabilitiescxx . . $ pcl_get_model_capabilities(902c7d10057f92e4).(v); |
| 1875 | if (quality && strcmpcxx . . $ strcmp(5ae29d726ae57f88).(quality, "None") == 0) |
| 1876 | quality = "Standard"; |
| 1877 | if (quality) |
| 1878 | { |
| 1879 | for (i = 0; i < NUM_QUALITIEScxx . . $ `src/main/print-pcl.c:299:9`!; i++) |
| 1880 | { |
| 1881 | if ((caps->resolutionscxx . . $ $anonymous_type_64c66a939155289b_3#resolutions. & pcl_qualitiescxx . . $ pcl_qualities.[i].pcl_codecxx . . $ $anonymous_type_64c66a939155289b_1#pcl_code.) && |
| 1882 | !strcmpcxx . . $ strcmp(5ae29d726ae57f88).(quality, pcl_qualitiescxx . . $ pcl_qualities.[i].pcl_namecxx . . $ $anonymous_type_64c66a939155289b_1#pcl_name.)) |
| 1883 | { |
| 1884 | *x = (stp_dimension_tcxx . . $ stp_dimension_t#) pcl_qualitiescxx . . $ pcl_qualities.[i].p0cxx . . $ $anonymous_type_64c66a939155289b_1#p0.; |
| 1885 | *y = (stp_dimension_tcxx . . $ stp_dimension_t#) pcl_qualitiescxx . . $ pcl_qualities.[i].p1cxx . . $ $anonymous_type_64c66a939155289b_1#p1.; |
| 1886 | return; |
| 1887 | } |
| 1888 | } |
| 1889 | } |
| 1890 | *x = -1; |
| 1891 | *y = -1; |
| 1892 | } |
| 1893 | |
| 1894 | /* |
| 1895 | * Convert Media size name into PCL media code for printer |
| 1896 | */ |
| 1897 | |
| 1898 | static int pcl_convert_media_sizecxx . . $ pcl_convert_media_size(b1e629819c29df09).(const stp_vars_tcxx . . $ stp_vars_t# *v, |
| 1899 | const char *media_size) |
| 1900 | { |
| 1901 | |
| 1902 | unsigned int i; |
| 1903 | int media_code = 0; |
| 1904 | const pcl_cap_tcxx . . $ pcl_cap_t# *caps; |
| 1905 | |
| 1906 | /* |
| 1907 | * First look up the media size in the table and convert to the code. |
| 1908 | */ |
| 1909 | |
| 1910 | media_code = pcl_string_to_valcxx . . $ pcl_string_to_val(523918d142e3b7af).(v, media_size, pcl_media_sizescxx . . $ pcl_media_sizes., |
| 1911 | NUM_PRINTER_PAPER_SIZEScxx . . $ `src/main/print-pcl.c:180:9`!); |
| 1912 | |
| 1913 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v, "Media Size: %s, Code: %d\n", media_size, media_code); |
| 1914 | |
| 1915 | /* |
| 1916 | * Now see if the printer supports the code found. |
| 1917 | */ |
| 1918 | |
| 1919 | if (media_code != -1) { |
| 1920 | int model = stp_get_model_idcxx . . $ stp_get_model_id(b1be75487ade2f93).(v); |
| 1921 | caps = pcl_get_model_capabilitiescxx . . $ pcl_get_model_capabilities(902c7d10057f92e4).(v); |
| 1922 | |
| 1923 | for (i=0; (i<NUM_PRINTER_PAPER_SIZEScxx . . $ `src/main/print-pcl.c:180:9`!) && (caps->paper_sizescxx . . $ $anonymous_type_64c66a939155289b_3#paper_sizes.[i] != -1); i++) { |
| 1924 | if (media_code == (int) caps->paper_sizescxx . . $ $anonymous_type_64c66a939155289b_3#paper_sizes.[i]) |
| 1925 | return(media_code); /* Is supported */ |
| 1926 | } |
| 1927 | |
| 1928 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v, "Media Code %d not supported by printer model %d.\n", |
| 1929 | media_code, model); |
| 1930 | return(-1); /* Not supported */ |
| 1931 | } |
| 1932 | else |
| 1933 | return(-1); /* Not supported */ |
| 1934 | } |
| 1935 | |
| 1936 | |
| 1937 | static const stp_param_string_tcxx . . $ stp_param_string_t# ink_typescxx . . $ ink_types.[] = |
| 1938 | { |
| 1939 | { "CMYK", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Color + Black Cartridges") }, |
| 1940 | { "Photo", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Color + Photo Cartridges") } |
| 1941 | }; |
| 1942 | |
| 1943 | /* |
| 1944 | * Duplex support - modes available |
| 1945 | * Note that the internal names MUST match those in cups/genppd.c else the |
| 1946 | * PPD files will not be generated correctly |
| 1947 | */ |
| 1948 | |
| 1949 | static const stp_param_string_tcxx . . $ stp_param_string_t# duplex_typescxx . . $ duplex_types.[] = |
| 1950 | { |
| 1951 | { "None", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Off") }, |
| 1952 | { "DuplexNoTumble", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Long Edge (Standard)") }, |
| 1953 | { "DuplexTumble", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Short Edge (Flip)") } |
| 1954 | }; |
| 1955 | #define NUM_DUPLEXcxx . . $ `src/main/print-pcl.c:1955:9`! (sizeof (duplex_types) / sizeof (stp_param_string_t)) |
| 1956 | |
| 1957 | /* |
| 1958 | * Orientation support - modes available |
| 1959 | * Note that the internal names MUST match those in cups/genppd.c else the |
| 1960 | * PPD files will not be generated correctly |
| 1961 | */ |
| 1962 | |
| 1963 | static const stp_param_string_tcxx . . $ stp_param_string_t# orientation_typescxx . . $ orientation_types.[] = |
| 1964 | { |
| 1965 | { "Portrait", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Portrait") }, |
| 1966 | { "Landscape", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Landscape") }, |
| 1967 | { "UpsideDown", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Reverse Portrait") }, |
| 1968 | { "Seascape", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Reverse Landscape") }, |
| 1969 | }; |
| 1970 | #define NUM_ORIENTATIONcxx . . $ `src/main/print-pcl.c:1970:9`! (sizeof (orientation_types) / sizeof (stp_param_string_t)) |
| 1971 | |
| 1972 | /* |
| 1973 | * Label Separator Support for D-O printers, modes available |
| 1974 | */ |
| 1975 | |
| 1976 | static const stp_param_string_tcxx . . $ stp_param_string_t# label_separator_typescxx . . $ label_separator_types.[] = |
| 1977 | { |
| 1978 | { "IGNORE", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Keep Previous") }, |
| 1979 | { "GAP", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Gap") }, |
| 1980 | { "TOP", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Mark on Top") }, |
| 1981 | { "BOTTOM", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Mark on Bottom") }, |
| 1982 | { "NOTCH", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Notch") }, |
| 1983 | { "NONE", N_cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:67:17`! ("Continuous") }, |
| 1984 | }; |
| 1985 | #define NUM_LABEL_SEPARATORcxx . . $ `src/main/print-pcl.c:1985:9`! (sizeof (label_separator_types) / sizeof (stp_param_string_t)) |
| 1986 | |
| 1987 | /* |
| 1988 | * 'pcl_papersize_valid()' - Is the paper size valid for this printer. |
| 1989 | */ |
| 1990 | |
| 1991 | static int |
| 1992 | pcl_papersize_validcxx . . $ pcl_papersize_valid(f165717c60361d82).(const stp_vars_tcxx . . $ stp_vars_t# *v, |
| 1993 | const stp_papersize_tcxx . . $ stp_papersize_t# *pt) |
| 1994 | { |
| 1995 | |
| 1996 | const pcl_cap_tcxx . . $ pcl_cap_t# *caps = pcl_get_model_capabilitiescxx . . $ pcl_get_model_capabilities(902c7d10057f92e4).(v); |
| 1997 | |
| 1998 | #ifdef PCL_NO_CUSTOM_PAPERSIZES |
| 1999 | int use_custom = 0; |
| 2000 | #else |
| 2001 | int use_custom = ((caps->stp_printer_typecxx . . $ $anonymous_type_64c66a939155289b_3#stp_printer_type. & PCL_PRINTER_CUSTOM_SIZEcxx . . $ `src/main/print-pcl.c:343:9`!) |
| 2002 | == PCL_PRINTER_CUSTOM_SIZEcxx . . $ `src/main/print-pcl.c:343:9`!); |
| 2003 | #endif |
| 2004 | |
| 2005 | unsigned int pwidth = pt->widthcxx . . $ $anonymous_type_51fd7f0ef3c7bff0_2#width.; |
| 2006 | unsigned int pheight = pt->heightcxx . . $ $anonymous_type_51fd7f0ef3c7bff0_2#height.; |
| 2007 | |
| 2008 | /* |
| 2009 | * This function decides whether a paper size is allowed for the |
| 2010 | * current printer. The DeskJet feed mechanisms set a minimum and |
| 2011 | * maximum size for the paper, BUT some of the directly supported |
| 2012 | * media sizes are less than this minimum (eg card and envelopes) |
| 2013 | * So, we allow supported sizes though, but clamp custom sizes |
| 2014 | * to the min and max sizes. |
| 2015 | */ |
| 2016 | |
| 2017 | /* |
| 2018 | * Is it a valid name? |
| 2019 | */ |
| 2020 | |
| 2021 | if (strlencxx . . $ strlen(751346f8406fd082).(pt->namecxx . . $ $anonymous_type_51fd7f0ef3c7bff0_2#name.) <= 0) |
| 2022 | return(0); |
| 2023 | |
| 2024 | /* |
| 2025 | * Is it a valid type? |
| 2026 | */ |
| 2027 | if (pt->paper_size_typecxx . . $ $anonymous_type_51fd7f0ef3c7bff0_2#paper_size_type. != PAPERSIZE_TYPE_STANDARDcxx . . $ PAPERSIZE_TYPE_STANDARD. && |
| 2028 | pt->paper_size_typecxx . . $ $anonymous_type_51fd7f0ef3c7bff0_2#paper_size_type. != PAPERSIZE_TYPE_ENVELOPEcxx . . $ PAPERSIZE_TYPE_ENVELOPE.) |
| 2029 | return(0); |
| 2030 | |
| 2031 | /* |
| 2032 | * Is it a recognized supported name? |
| 2033 | */ |
| 2034 | |
| 2035 | if (pcl_convert_media_sizecxx . . $ pcl_convert_media_size(b1e629819c29df09).(v, pt->namecxx . . $ $anonymous_type_51fd7f0ef3c7bff0_2#name.) != -1) |
| 2036 | return(1); |
| 2037 | |
| 2038 | /* |
| 2039 | * If we are not allowed to use custom paper sizes, we are done |
| 2040 | */ |
| 2041 | |
| 2042 | if (use_custom == 0) |
| 2043 | return(0); |
| 2044 | |
| 2045 | /* |
| 2046 | * We are allowed custom paper sizes. Check that the name contains |
| 2047 | * d-o if this is the Datamax O'Neil label printer and not custom paper |
| 2048 | */ |
| 2049 | |
| 2050 | if (caps->stp_printer_typecxx . . $ $anonymous_type_64c66a939155289b_3#stp_printer_type. & PCL_PRINTER_LABELcxx . . $ `src/main/print-pcl.c:346:9`!) { |
| 2051 | if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(pt->namecxx . . $ $anonymous_type_51fd7f0ef3c7bff0_2#name., "Custom")) { |
| 2052 | if (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! != strstrcxx . . $ strstr(a713fe7b9a57cf96).(pt->namecxx . . $ $anonymous_type_51fd7f0ef3c7bff0_2#name., "d-o")) { |
| 2053 | return(1); |
| 2054 | } else { |
| 2055 | return(0); |
| 2056 | } |
| 2057 | } |
| 2058 | } |
| 2059 | |
| 2060 | |
| 2061 | /* |
| 2062 | * We are allowed custom paper sizes. Check that the size is within |
| 2063 | * limits. |
| 2064 | */ |
| 2065 | |
| 2066 | if (pwidth <= caps->custom_max_widthcxx . . $ $anonymous_type_64c66a939155289b_3#custom_max_width. && |
| 2067 | pheight <= caps->custom_max_heightcxx . . $ $anonymous_type_64c66a939155289b_3#custom_max_height. && |
| 2068 | (pheight >= caps->custom_min_heightcxx . . $ $anonymous_type_64c66a939155289b_3#custom_min_height. || pheight == 0) && |
| 2069 | (pwidth >= caps->custom_min_widthcxx . . $ $anonymous_type_64c66a939155289b_3#custom_min_width. || pwidth == 0)) |
| 2070 | return(1); |
| 2071 | |
| 2072 | return(0); |
| 2073 | } |
| 2074 | |
| 2075 | /* |
| 2076 | * 'pcl_parameters()' - Return the parameter values for the given parameter. |
| 2077 | */ |
| 2078 | |
| 2079 | static stp_parameter_list_tcxx . . $ stp_parameter_list_t# |
| 2080 | pcl_list_parameterscxx . . $ pcl_list_parameters(817585d40f809196).(const stp_vars_tcxx . . $ stp_vars_t# *v) |
| 2081 | { |
| 2082 | stp_parameter_list_tcxx . . $ stp_parameter_list_t# *ret = stp_parameter_list_createcxx . . $ stp_parameter_list_create(50c7df7de5344ebb).(); |
| 2083 | stp_parameter_list_tcxx . . $ stp_parameter_list_t# *tmp_list; |
| 2084 | |
| 2085 | unsigned int i; |
| 2086 | |
| 2087 | /* Set up dithering */ |
| 2088 | tmp_list = stp_dither_list_parameterscxx . . $ stp_dither_list_parameters(817585d40f809196).(v); |
| 2089 | stp_parameter_list_appendcxx . . $ stp_parameter_list_append(b6570c89ea41c2e0).(ret, tmp_list); |
| 2090 | stp_parameter_list_destroycxx . . $ stp_parameter_list_destroy(5d22bdacc48458e8).(tmp_list); |
| 2091 | |
| 2092 | for (i = 0; i < the_parameter_countcxx . . $ the_parameter_count.; i++) |
| 2093 | stp_parameter_list_add_paramcxx . . $ stp_parameter_list_add_param(9dab94dbd10bbd1f).(ret, &(the_parameterscxx . . $ the_parameters.[i])); |
| 2094 | for (i = 0; i < float_parameter_countcxx . . $ float_parameter_count.; i++) |
| 2095 | stp_parameter_list_add_paramcxx . . $ stp_parameter_list_add_param(9dab94dbd10bbd1f).(ret, &(float_parameterscxx . . $ float_parameters.[i].paramcxx . . $ $anonymous_type_64c66a939155289b_4#param.)); |
| 2096 | return ret; |
| 2097 | } |
| 2098 | |
| 2099 | static void |
| 2100 | pcl_parameterscxx . . $ pcl_parameters(dfd5b9531b51a6d2).(const stp_vars_tcxx . . $ stp_vars_t# *v, const char *name, |
| 2101 | stp_parameter_tcxx . . $ stp_parameter_t# *description) |
| 2102 | { |
| 2103 | int model = stp_get_model_idcxx . . $ stp_get_model_id(b1be75487ade2f93).(v); |
| 2104 | unsigned int i; |
| 2105 | const pcl_cap_tcxx . . $ pcl_cap_t# *caps; |
| 2106 | description->p_typecxx . . $ $anonymous_type_c987533f3b833c82_8#p_type. = STP_PARAMETER_TYPE_INVALIDcxx . . $ STP_PARAMETER_TYPE_INVALID.; |
| 2107 | |
| 2108 | if (name == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 2109 | return; |
| 2110 | |
| 2111 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v, "pcl_parameters(): Name = %s\n", name); |
| 2112 | |
| 2113 | caps = pcl_get_model_capabilitiescxx . . $ pcl_get_model_capabilities(902c7d10057f92e4).(v); |
| 2114 | |
| 2115 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v, "Printer model = %d\n", model); |
| 2116 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v, "PageWidth = %d, PageHeight = %d\n", caps->custom_max_widthcxx . . $ $anonymous_type_64c66a939155289b_3#custom_max_width., caps->custom_max_heightcxx . . $ $anonymous_type_64c66a939155289b_3#custom_max_height.); |
| 2117 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v, "MinPageWidth = %d, MinPageHeight = %d\n", caps->custom_min_widthcxx . . $ $anonymous_type_64c66a939155289b_3#custom_min_width., caps->custom_min_heightcxx . . $ $anonymous_type_64c66a939155289b_3#custom_min_height.); |
| 2118 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v, "Normal Margins: top = %d, bottom = %d, left = %d, right = %d\n", |
| 2119 | caps->normal_marginscxx . . $ $anonymous_type_64c66a939155289b_3#normal_margins..top_margincxx . . $ $anonymous_type_64c66a939155289b_2#top_margin., caps->normal_marginscxx . . $ $anonymous_type_64c66a939155289b_3#normal_margins..bottom_margincxx . . $ $anonymous_type_64c66a939155289b_2#bottom_margin., |
| 2120 | caps->normal_marginscxx . . $ $anonymous_type_64c66a939155289b_3#normal_margins..left_margincxx . . $ $anonymous_type_64c66a939155289b_2#left_margin., caps->normal_marginscxx . . $ $anonymous_type_64c66a939155289b_3#normal_margins..right_margincxx . . $ $anonymous_type_64c66a939155289b_2#right_margin.); |
| 2121 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v, "A4 Margins: top = %d, bottom = %d, left = %d, right = %d\n", |
| 2122 | caps->a4_marginscxx . . $ $anonymous_type_64c66a939155289b_3#a4_margins..top_margincxx . . $ $anonymous_type_64c66a939155289b_2#top_margin., caps->a4_marginscxx . . $ $anonymous_type_64c66a939155289b_3#a4_margins..bottom_margincxx . . $ $anonymous_type_64c66a939155289b_2#bottom_margin., |
| 2123 | caps->a4_marginscxx . . $ $anonymous_type_64c66a939155289b_3#a4_margins..left_margincxx . . $ $anonymous_type_64c66a939155289b_2#left_margin., caps->a4_marginscxx . . $ $anonymous_type_64c66a939155289b_3#a4_margins..right_margincxx . . $ $anonymous_type_64c66a939155289b_2#right_margin.); |
| 2124 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v, "Resolutions: %d\n", caps->resolutionscxx . . $ $anonymous_type_64c66a939155289b_3#resolutions.); |
| 2125 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v, "ColorType = %d, PrinterType = %d\n", caps->color_typecxx . . $ $anonymous_type_64c66a939155289b_3#color_type., caps->stp_printer_typecxx . . $ $anonymous_type_64c66a939155289b_3#stp_printer_type.); |
| 2126 | |
| 2127 | for (i = 0; i < the_parameter_countcxx . . $ the_parameter_count.; i++) |
| 2128 | if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(name, the_parameterscxx . . $ the_parameters.[i].namecxx . . $ $anonymous_type_c987533f3b833c82_8#name.) == 0) |
| 2129 | { |
| 2130 | stp_fill_parameter_settingscxx . . $ stp_fill_parameter_settings(bb1f9d668495a4b4).(description, &(the_parameterscxx . . $ the_parameters.[i])); |
| 2131 | break; |
| 2132 | } |
| 2133 | description->defltcxx . . $ $anonymous_type_c987533f3b833c82_8#deflt..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_10#str. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 2134 | |
| 2135 | for (i = 0; i < float_parameter_countcxx . . $ float_parameter_count.; i++) |
| 2136 | if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(name, float_parameterscxx . . $ float_parameters.[i].paramcxx . . $ $anonymous_type_64c66a939155289b_4#param..namecxx . . $ $anonymous_type_c987533f3b833c82_8#name.) == 0) |
| 2137 | { |
| 2138 | stp_fill_parameter_settingscxx . . $ stp_fill_parameter_settings(bb1f9d668495a4b4).(description, |
| 2139 | &(float_parameterscxx . . $ float_parameters.[i].paramcxx . . $ $anonymous_type_64c66a939155289b_4#param.)); |
| 2140 | description->defltcxx . . $ $anonymous_type_c987533f3b833c82_8#deflt..dblcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_10#dbl. = float_parameterscxx . . $ float_parameters.[i].defvalcxx . . $ $anonymous_type_64c66a939155289b_4#defval.; |
| 2141 | description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..dblcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#dbl..uppercxx . . $ $anonymous_type_c987533f3b833c82_5#upper. = float_parameterscxx . . $ float_parameters.[i].maxcxx . . $ $anonymous_type_64c66a939155289b_4#max.; |
| 2142 | description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..dblcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#dbl..lowercxx . . $ $anonymous_type_c987533f3b833c82_5#lower. = float_parameterscxx . . $ float_parameters.[i].mincxx . . $ $anonymous_type_64c66a939155289b_4#min.; |
| 2143 | break; |
| 2144 | } |
| 2145 | |
| 2146 | if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(name, "PageSize") == 0) |
| 2147 | { |
| 2148 | const stp_papersize_list_tcxx . . $ stp_papersize_list_t# *paper_sizes = |
| 2149 | ((caps->stp_printer_typecxx . . $ $anonymous_type_64c66a939155289b_3#stp_printer_type. & PCL_PRINTER_LABELcxx . . $ `src/main/print-pcl.c:346:9`!) ? |
| 2150 | stpi_get_papersize_list_namedcxx . . $ stpi_get_papersize_list_named(81f88378de3f2d3).("labels", "") : |
| 2151 | stpi_get_standard_papersize_listcxx . . $ stpi_get_standard_papersize_list(d3875b0f088d0326).()); |
| 2152 | const stp_papersize_list_item_tcxx . . $ stp_papersize_list_item_t# *ptli = |
| 2153 | stpi_papersize_list_get_startcxx . . $ `src/main/gutenprint-internal.h:121:9`!(paper_sizes); |
| 2154 | description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#str. = stp_string_list_createcxx . . $ stp_string_list_create(f262b3b5e10fad14).(); |
| 2155 | while (ptli) |
| 2156 | { |
| 2157 | const stp_papersize_tcxx . . $ stp_papersize_t# *pt = stpi_paperlist_item_get_datacxx . . $ `src/main/gutenprint-internal.h:125:9`!(ptli); |
| 2158 | if (strlencxx . . $ strlen(751346f8406fd082).(pt->namecxx . . $ $anonymous_type_51fd7f0ef3c7bff0_2#name.) > 0 && pcl_papersize_validcxx . . $ pcl_papersize_valid(f165717c60361d82).(v, pt)) |
| 2159 | stp_string_list_add_stringcxx . . $ stp_string_list_add_string(61ec312b340c2952).(description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#str., |
| 2160 | pt->namecxx . . $ $anonymous_type_51fd7f0ef3c7bff0_2#name., gettextcxx . . $ `include/gutenprint/gutenprint-intl-internal.h:61:11`!(pt->text)); |
| 2161 | ptli = stpi_paperlist_item_nextcxx . . $ `src/main/gutenprint-internal.h:123:9`!(ptli); |
| 2162 | } |
| 2163 | description->defltcxx . . $ $anonymous_type_c987533f3b833c82_8#deflt..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_10#str. = |
| 2164 | stp_string_list_paramcxx . . $ stp_string_list_param(1d71fb1c8ad3926a).(description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#str., 0)->namecxx . . $ $anonymous_type_cb0224bbe5755622_0#name.; |
| 2165 | } |
| 2166 | else if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(name, "MediaType") == 0) |
| 2167 | { |
| 2168 | description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#str. = stp_string_list_createcxx . . $ stp_string_list_create(f262b3b5e10fad14).(); |
| 2169 | if (caps->paper_typescxx . . $ $anonymous_type_64c66a939155289b_3#paper_types.[0] != -1) |
| 2170 | { |
| 2171 | for (i=0; (i < NUM_PRINTER_PAPER_TYPEScxx . . $ `src/main/print-pcl.c:204:9`!) && (caps->paper_typescxx . . $ $anonymous_type_64c66a939155289b_3#paper_types.[i] != -1); i++) |
| 2172 | stp_string_list_add_stringcxx . . $ stp_string_list_add_string(61ec312b340c2952).(description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#str., |
| 2173 | pcl_val_to_stringcxx . . $ pcl_val_to_string(461a56a62508fd66).(v, caps->paper_typescxx . . $ $anonymous_type_64c66a939155289b_3#paper_types.[i], |
| 2174 | pcl_media_typescxx . . $ pcl_media_types., |
| 2175 | NUM_PRINTER_PAPER_TYPEScxx . . $ `src/main/print-pcl.c:204:9`!), |
| 2176 | pcl_val_to_textcxx . . $ pcl_val_to_text(461a56a62508fd66).(v, caps->paper_typescxx . . $ $anonymous_type_64c66a939155289b_3#paper_types.[i], |
| 2177 | pcl_media_typescxx . . $ pcl_media_types., |
| 2178 | NUM_PRINTER_PAPER_TYPEScxx . . $ `src/main/print-pcl.c:204:9`!)); |
| 2179 | description->defltcxx . . $ $anonymous_type_c987533f3b833c82_8#deflt..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_10#str. = |
| 2180 | stp_string_list_paramcxx . . $ stp_string_list_param(1d71fb1c8ad3926a).(description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#str., 0)->namecxx . . $ $anonymous_type_cb0224bbe5755622_0#name.; |
| 2181 | } |
| 2182 | else |
| 2183 | description->is_activecxx . . $ $anonymous_type_c987533f3b833c82_8#is_active. = 0; |
| 2184 | } |
| 2185 | else if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(name, "InputSlot") == 0) |
| 2186 | { |
| 2187 | description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#str. = stp_string_list_createcxx . . $ stp_string_list_create(f262b3b5e10fad14).(); |
| 2188 | if (caps->paper_sourcescxx . . $ $anonymous_type_64c66a939155289b_3#paper_sources.[0] != -1) |
| 2189 | { |
| 2190 | for (i=0; (i < NUM_PRINTER_PAPER_SOURCEScxx . . $ `src/main/print-pcl.c:268:9`!) && (caps->paper_sourcescxx . . $ $anonymous_type_64c66a939155289b_3#paper_sources.[i] != -1); i++) |
| 2191 | stp_string_list_add_stringcxx . . $ stp_string_list_add_string(61ec312b340c2952).(description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#str., |
| 2192 | pcl_val_to_stringcxx . . $ pcl_val_to_string(461a56a62508fd66).(v, caps->paper_sourcescxx . . $ $anonymous_type_64c66a939155289b_3#paper_sources.[i], |
| 2193 | pcl_media_sourcescxx . . $ pcl_media_sources., |
| 2194 | NUM_PRINTER_PAPER_SOURCEScxx . . $ `src/main/print-pcl.c:268:9`!), |
| 2195 | pcl_val_to_textcxx . . $ pcl_val_to_text(461a56a62508fd66).(v, caps->paper_sourcescxx . . $ $anonymous_type_64c66a939155289b_3#paper_sources.[i], |
| 2196 | pcl_media_sourcescxx . . $ pcl_media_sources., |
| 2197 | NUM_PRINTER_PAPER_SOURCEScxx . . $ `src/main/print-pcl.c:268:9`!)); |
| 2198 | description->defltcxx . . $ $anonymous_type_c987533f3b833c82_8#deflt..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_10#str. = |
| 2199 | stp_string_list_paramcxx . . $ stp_string_list_param(1d71fb1c8ad3926a).(description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#str., 0)->namecxx . . $ $anonymous_type_cb0224bbe5755622_0#name.; |
| 2200 | } |
| 2201 | else |
| 2202 | description->is_activecxx . . $ $anonymous_type_c987533f3b833c82_8#is_active. = 0; |
| 2203 | } |
| 2204 | else if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(name, "Resolution") == 0) |
| 2205 | { |
| 2206 | description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#str. = stp_string_list_createcxx . . $ stp_string_list_create(f262b3b5e10fad14).(); |
| 2207 | stp_string_list_add_stringcxx . . $ stp_string_list_add_string(61ec312b340c2952).(description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#str., "None", _cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:58:11`!("Default")); |
| 2208 | description->defltcxx . . $ $anonymous_type_c987533f3b833c82_8#deflt..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_10#str. = "None"; |
| 2209 | for (i = 0; i < NUM_RESOLUTIONScxx . . $ `src/main/print-pcl.c:288:9`!; i++) |
| 2210 | if (caps->resolutionscxx . . $ $anonymous_type_64c66a939155289b_3#resolutions. & pcl_resolutionscxx . . $ pcl_resolutions.[i].pcl_codecxx . . $ $anonymous_type_64c66a939155289b_1#pcl_code.) |
| 2211 | { |
| 2212 | stp_string_list_add_stringcxx . . $ stp_string_list_add_string(61ec312b340c2952). |
| 2213 | (description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#str., |
| 2214 | pcl_val_to_stringcxx . . $ pcl_val_to_string(461a56a62508fd66).(v, pcl_resolutionscxx . . $ pcl_resolutions.[i].pcl_codecxx . . $ $anonymous_type_64c66a939155289b_1#pcl_code., |
| 2215 | pcl_resolutionscxx . . $ pcl_resolutions., NUM_RESOLUTIONScxx . . $ `src/main/print-pcl.c:288:9`!), |
| 2216 | pcl_val_to_textcxx . . $ pcl_val_to_text(461a56a62508fd66).(v, pcl_resolutionscxx . . $ pcl_resolutions.[i].pcl_codecxx . . $ $anonymous_type_64c66a939155289b_1#pcl_code., |
| 2217 | pcl_resolutionscxx . . $ pcl_resolutions., NUM_RESOLUTIONScxx . . $ `src/main/print-pcl.c:288:9`!)); |
| 2218 | } |
| 2219 | } |
| 2220 | else if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(name, "Quality") == 0) |
| 2221 | { |
| 2222 | int has_standard_quality = 0; |
| 2223 | description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#str. = stp_string_list_createcxx . . $ stp_string_list_create(f262b3b5e10fad14).(); |
| 2224 | stp_string_list_add_stringcxx . . $ stp_string_list_add_string(61ec312b340c2952).(description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#str., "None", |
| 2225 | _cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:58:11`!("Manual Control")); |
| 2226 | for (i = 0; i < NUM_QUALITIEScxx . . $ `src/main/print-pcl.c:299:9`!; i++) |
| 2227 | if (caps->resolutionscxx . . $ $anonymous_type_64c66a939155289b_3#resolutions. & pcl_qualitiescxx . . $ pcl_qualities.[i].pcl_codecxx . . $ $anonymous_type_64c66a939155289b_1#pcl_code.) |
| 2228 | { |
| 2229 | const char *qual = |
| 2230 | pcl_val_to_stringcxx . . $ pcl_val_to_string(461a56a62508fd66).(v, pcl_qualitiescxx . . $ pcl_qualities.[i].pcl_codecxx . . $ $anonymous_type_64c66a939155289b_1#pcl_code., |
| 2231 | pcl_qualitiescxx . . $ pcl_qualities., NUM_QUALITIEScxx . . $ `src/main/print-pcl.c:299:9`!); |
| 2232 | if (! stp_string_list_is_presentcxx . . $ stp_string_list_is_present(bf726c32497cc2b).(description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#str., qual)) |
| 2233 | stp_string_list_add_stringcxx . . $ stp_string_list_add_string(61ec312b340c2952). |
| 2234 | (description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#str., qual, |
| 2235 | pcl_val_to_textcxx . . $ pcl_val_to_text(461a56a62508fd66).(v, pcl_qualitiescxx . . $ pcl_qualities.[i].pcl_codecxx . . $ $anonymous_type_64c66a939155289b_1#pcl_code., |
| 2236 | pcl_qualitiescxx . . $ pcl_qualities., NUM_QUALITIEScxx . . $ `src/main/print-pcl.c:299:9`!)); |
| 2237 | if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(qual, "Standard") == 0) |
| 2238 | has_standard_quality = 1; |
| 2239 | } |
| 2240 | if (has_standard_quality) |
| 2241 | description->defltcxx . . $ $anonymous_type_c987533f3b833c82_8#deflt..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_10#str. = "Standard"; |
| 2242 | else |
| 2243 | description->defltcxx . . $ $anonymous_type_c987533f3b833c82_8#deflt..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_10#str. = "None"; |
| 2244 | } |
| 2245 | else if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(name, "InkType") == 0) |
| 2246 | { |
| 2247 | description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#str. = stp_string_list_createcxx . . $ stp_string_list_create(f262b3b5e10fad14).(); |
| 2248 | if (caps->color_typecxx . . $ $anonymous_type_64c66a939155289b_3#color_type. & PCL_COLOR_CMYKcmcxx . . $ `src/main/print-pcl.c:333:9`!) |
| 2249 | { |
| 2250 | description->defltcxx . . $ $anonymous_type_c987533f3b833c82_8#deflt..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_10#str. = ink_typescxx . . $ ink_types.[0].namecxx . . $ $anonymous_type_cb0224bbe5755622_0#name.; |
| 2251 | stp_string_list_add_stringcxx . . $ stp_string_list_add_string(61ec312b340c2952).(description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#str., |
| 2252 | ink_typescxx . . $ ink_types.[0].namecxx . . $ $anonymous_type_cb0224bbe5755622_0#name.,gettextcxx . . $ `include/gutenprint/gutenprint-intl-internal.h:61:11`!(ink_types[0].text)); |
| 2253 | stp_string_list_add_stringcxx . . $ stp_string_list_add_string(61ec312b340c2952).(description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#str., |
| 2254 | ink_typescxx . . $ ink_types.[1].namecxx . . $ $anonymous_type_cb0224bbe5755622_0#name.,gettextcxx . . $ `include/gutenprint/gutenprint-intl-internal.h:61:11`!(ink_types[1].text)); |
| 2255 | } |
| 2256 | else |
| 2257 | description->is_activecxx . . $ $anonymous_type_c987533f3b833c82_8#is_active. = 0; |
| 2258 | } |
| 2259 | else if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(name, "Duplex") == 0) |
| 2260 | { |
| 2261 | int offer_duplex=0; |
| 2262 | |
| 2263 | description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#str. = stp_string_list_createcxx . . $ stp_string_list_create(f262b3b5e10fad14).(); |
| 2264 | |
| 2265 | /* |
| 2266 | * Don't offer the Duplex/Tumble options if the JobMode parameter is |
| 2267 | * set to "Page" Mode. |
| 2268 | * "Page" mode is set by the Gimp Plugin, which only outputs one page at a |
| 2269 | * time, so Duplex/Tumble is meaningless. |
| 2270 | */ |
| 2271 | |
| 2272 | if (stp_get_string_parametercxx . . $ stp_get_string_parameter(3e3ce5d385745545).(v, "JobMode")) |
| 2273 | offer_duplex = strcmpcxx . . $ strcmp(5ae29d726ae57f88).(stp_get_string_parametercxx . . $ stp_get_string_parameter(3e3ce5d385745545).(v, "JobMode"), "Page"); |
| 2274 | else |
| 2275 | offer_duplex=1; |
| 2276 | |
| 2277 | if (offer_duplex) |
| 2278 | { |
| 2279 | if (caps->stp_printer_typecxx . . $ $anonymous_type_64c66a939155289b_3#stp_printer_type. & PCL_PRINTER_DUPLEXcxx . . $ `src/main/print-pcl.c:345:9`!) |
| 2280 | { |
| 2281 | description->defltcxx . . $ $anonymous_type_c987533f3b833c82_8#deflt..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_10#str. = duplex_typescxx . . $ duplex_types.[0].namecxx . . $ $anonymous_type_cb0224bbe5755622_0#name.; |
| 2282 | for (i=0; i < NUM_DUPLEXcxx . . $ `src/main/print-pcl.c:1955:9`!; i++) |
| 2283 | { |
| 2284 | stp_string_list_add_stringcxx . . $ stp_string_list_add_string(61ec312b340c2952).(description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#str., |
| 2285 | duplex_typescxx . . $ duplex_types.[i].namecxx . . $ $anonymous_type_cb0224bbe5755622_0#name.,gettextcxx . . $ `include/gutenprint/gutenprint-intl-internal.h:61:11`!(duplex_types[i].text)); |
| 2286 | } |
| 2287 | } |
| 2288 | else |
| 2289 | description->is_activecxx . . $ $anonymous_type_c987533f3b833c82_8#is_active. = 0; /* Not supported by printer */ |
| 2290 | } |
| 2291 | else |
| 2292 | description->is_activecxx . . $ $anonymous_type_c987533f3b833c82_8#is_active. = 0; /* Not in "Job" mode */ |
| 2293 | } |
| 2294 | else if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(name, "Orientation") == 0) |
| 2295 | { |
| 2296 | if (caps->stp_printer_typecxx . . $ $anonymous_type_64c66a939155289b_3#stp_printer_type. & PCL_PRINTER_LABELcxx . . $ `src/main/print-pcl.c:346:9`!) |
| 2297 | { |
| 2298 | description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#str. = stp_string_list_createcxx . . $ stp_string_list_create(f262b3b5e10fad14).(); |
| 2299 | description->defltcxx . . $ $anonymous_type_c987533f3b833c82_8#deflt..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_10#str. = orientation_typescxx . . $ orientation_types.[0].namecxx . . $ $anonymous_type_cb0224bbe5755622_0#name.; |
| 2300 | for (i=0; i < NUM_ORIENTATIONcxx . . $ `src/main/print-pcl.c:1970:9`!; i++) |
| 2301 | { |
| 2302 | stp_string_list_add_stringcxx . . $ stp_string_list_add_string(61ec312b340c2952).(description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#str., |
| 2303 | orientation_typescxx . . $ orientation_types.[i].namecxx . . $ $anonymous_type_cb0224bbe5755622_0#name.,gettextcxx . . $ `include/gutenprint/gutenprint-intl-internal.h:61:11`!(orientation_types[i].text)); |
| 2304 | } |
| 2305 | } |
| 2306 | else |
| 2307 | { |
| 2308 | description->is_activecxx . . $ $anonymous_type_c987533f3b833c82_8#is_active. = 0; |
| 2309 | } |
| 2310 | } |
| 2311 | else if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(name, "LabelSeparator") == 0) |
| 2312 | { |
| 2313 | if (caps->stp_printer_typecxx . . $ $anonymous_type_64c66a939155289b_3#stp_printer_type. & PCL_PRINTER_LABELcxx . . $ `src/main/print-pcl.c:346:9`!) |
| 2314 | { |
| 2315 | description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#str. = stp_string_list_createcxx . . $ stp_string_list_create(f262b3b5e10fad14).(); |
| 2316 | description->defltcxx . . $ $anonymous_type_c987533f3b833c82_8#deflt..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_10#str. = label_separator_typescxx . . $ label_separator_types.[0].namecxx . . $ $anonymous_type_cb0224bbe5755622_0#name.; |
| 2317 | for (i=0; i < NUM_LABEL_SEPARATORcxx . . $ `src/main/print-pcl.c:1985:9`!; i++) |
| 2318 | { |
| 2319 | stp_string_list_add_stringcxx . . $ stp_string_list_add_string(61ec312b340c2952).(description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#str., |
| 2320 | label_separator_typescxx . . $ label_separator_types.[i].namecxx . . $ $anonymous_type_cb0224bbe5755622_0#name., gettextcxx . . $ `include/gutenprint/gutenprint-intl-internal.h:61:11`!(label_separator_types[i].text)); |
| 2321 | } |
| 2322 | } |
| 2323 | else |
| 2324 | { |
| 2325 | description->is_activecxx . . $ $anonymous_type_c987533f3b833c82_8#is_active. = 0; |
| 2326 | } |
| 2327 | } |
| 2328 | else if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(name, "Darkness") == 0) |
| 2329 | { |
| 2330 | if (caps->stp_printer_typecxx . . $ $anonymous_type_64c66a939155289b_3#stp_printer_type. & PCL_PRINTER_LABELcxx . . $ `src/main/print-pcl.c:346:9`!) |
| 2331 | { |
| 2332 | description->defltcxx . . $ $anonymous_type_c987533f3b833c82_8#deflt..integercxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_10#integer. = 0; |
| 2333 | description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..integercxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#integer..lowercxx . . $ $anonymous_type_c987533f3b833c82_6#lower. = -20; |
| 2334 | description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..integercxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#integer..uppercxx . . $ $anonymous_type_c987533f3b833c82_6#upper. = 20; |
| 2335 | } |
| 2336 | else |
| 2337 | { |
| 2338 | description->is_activecxx . . $ $anonymous_type_c987533f3b833c82_8#is_active. = 0; |
| 2339 | } |
| 2340 | } |
| 2341 | else if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(name, "CyanDensity") == 0 || |
| 2342 | strcmpcxx . . $ strcmp(5ae29d726ae57f88).(name, "MagentaDensity") == 0 || |
| 2343 | strcmpcxx . . $ strcmp(5ae29d726ae57f88).(name, "YellowDensity") == 0 || |
| 2344 | strcmpcxx . . $ strcmp(5ae29d726ae57f88).(name, "BlackDensity") == 0) |
| 2345 | { |
| 2346 | if ((caps->color_typecxx . . $ $anonymous_type_64c66a939155289b_3#color_type. & ~PCL_COLOR_RGBcxx . . $ `src/main/print-pcl.c:335:9`!) != PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`! && |
| 2347 | stp_check_string_parametercxx . . $ stp_check_string_parameter(cff2817d3dcc2695).(v, "PrintingMode", STP_PARAMETER_DEFAULTEDcxx . . $ STP_PARAMETER_DEFAULTED.) && |
| 2348 | strcmpcxx . . $ strcmp(5ae29d726ae57f88).(stp_get_string_parametercxx . . $ stp_get_string_parameter(3e3ce5d385745545).(v, "PrintingMode"), "Color") == 0) |
| 2349 | description->is_activecxx . . $ $anonymous_type_c987533f3b833c82_8#is_active. = 1; |
| 2350 | else |
| 2351 | description->is_activecxx . . $ $anonymous_type_c987533f3b833c82_8#is_active. = 0; |
| 2352 | } |
| 2353 | else if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(name, "RedDensity") == 0 || |
| 2354 | strcmpcxx . . $ strcmp(5ae29d726ae57f88).(name, "GreenDensity") == 0 || |
| 2355 | strcmpcxx . . $ strcmp(5ae29d726ae57f88).(name, "BlueDensity") == 0) |
| 2356 | { |
| 2357 | if (caps->color_typecxx . . $ $anonymous_type_64c66a939155289b_3#color_type. & PCL_COLOR_RGBcxx . . $ `src/main/print-pcl.c:335:9`! && |
| 2358 | stp_check_string_parametercxx . . $ stp_check_string_parameter(cff2817d3dcc2695).(v, "PrintingMode", STP_PARAMETER_DEFAULTEDcxx . . $ STP_PARAMETER_DEFAULTED.) && |
| 2359 | strcmpcxx . . $ strcmp(5ae29d726ae57f88).(stp_get_string_parametercxx . . $ stp_get_string_parameter(3e3ce5d385745545).(v, "PrintingMode"), "Color") == 0) |
| 2360 | description->is_activecxx . . $ $anonymous_type_c987533f3b833c82_8#is_active. = 1; |
| 2361 | else |
| 2362 | description->is_activecxx . . $ $anonymous_type_c987533f3b833c82_8#is_active. = 0; |
| 2363 | } |
| 2364 | else if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(name, "LightCyanTrans") == 0 || |
| 2365 | strcmpcxx . . $ strcmp(5ae29d726ae57f88).(name, "LightMagentaTrans") == 0) |
| 2366 | { |
| 2367 | if (caps->color_typecxx . . $ $anonymous_type_64c66a939155289b_3#color_type. & PCL_COLOR_CMYKcmcxx . . $ `src/main/print-pcl.c:333:9`! && |
| 2368 | stp_check_string_parametercxx . . $ stp_check_string_parameter(cff2817d3dcc2695).(v, "PrintingMode", STP_PARAMETER_DEFAULTEDcxx . . $ STP_PARAMETER_DEFAULTED.) && |
| 2369 | strcmpcxx . . $ strcmp(5ae29d726ae57f88).(stp_get_string_parametercxx . . $ stp_get_string_parameter(3e3ce5d385745545).(v, "PrintingMode"), "Color") == 0) |
| 2370 | description->is_activecxx . . $ $anonymous_type_c987533f3b833c82_8#is_active. = 1; |
| 2371 | else |
| 2372 | description->is_activecxx . . $ $anonymous_type_c987533f3b833c82_8#is_active. = 0; |
| 2373 | } |
| 2374 | else if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(name, "HorizOffset") == 0 || |
| 2375 | strcmpcxx . . $ strcmp(5ae29d726ae57f88).(name, "VertOffset") == 0) |
| 2376 | { |
| 2377 | if (caps->stp_printer_typecxx . . $ $anonymous_type_64c66a939155289b_3#stp_printer_type. & PCL_PRINTER_LABELcxx . . $ `src/main/print-pcl.c:346:9`!) |
| 2378 | { |
| 2379 | description->is_activecxx . . $ $anonymous_type_c987533f3b833c82_8#is_active. = 1; |
| 2380 | } |
| 2381 | else |
| 2382 | { |
| 2383 | description->is_activecxx . . $ $anonymous_type_c987533f3b833c82_8#is_active. = 0; |
| 2384 | } |
| 2385 | } |
| 2386 | else if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(name, "InkChannels") == 0) |
| 2387 | { |
| 2388 | if (caps->color_typecxx . . $ $anonymous_type_64c66a939155289b_3#color_type. & PCL_COLOR_CMYKcmcxx . . $ `src/main/print-pcl.c:333:9`!) |
| 2389 | description->defltcxx . . $ $anonymous_type_c987533f3b833c82_8#deflt..integercxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_10#integer. = 6; |
| 2390 | else if (caps->color_typecxx . . $ $anonymous_type_64c66a939155289b_3#color_type. == PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`!) |
| 2391 | description->defltcxx . . $ $anonymous_type_c987533f3b833c82_8#deflt..integercxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_10#integer. = 1; |
| 2392 | else if (caps->color_typecxx . . $ $anonymous_type_64c66a939155289b_3#color_type. & PCL_COLOR_RGBcxx . . $ `src/main/print-pcl.c:335:9`!) |
| 2393 | description->defltcxx . . $ $anonymous_type_c987533f3b833c82_8#deflt..integercxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_10#integer. = 3; |
| 2394 | else |
| 2395 | description->defltcxx . . $ $anonymous_type_c987533f3b833c82_8#deflt..integercxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_10#integer. = 4; |
| 2396 | description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..integercxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#integer..lowercxx . . $ $anonymous_type_c987533f3b833c82_6#lower. = -1; |
| 2397 | description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..integercxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#integer..uppercxx . . $ $anonymous_type_c987533f3b833c82_6#upper. = -1; |
| 2398 | } |
| 2399 | else if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(name, "PrintingMode") == 0) |
| 2400 | { |
| 2401 | description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#str. = stp_string_list_createcxx . . $ stp_string_list_create(f262b3b5e10fad14).(); |
| 2402 | if (caps->color_typecxx . . $ $anonymous_type_64c66a939155289b_3#color_type. != PCL_COLOR_NONEcxx . . $ `src/main/print-pcl.c:329:9`!) |
| 2403 | stp_string_list_add_stringcxx . . $ stp_string_list_add_string(61ec312b340c2952). |
| 2404 | (description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#str., "Color", _cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:58:11`!("Color")); |
| 2405 | stp_string_list_add_stringcxx . . $ stp_string_list_add_string(61ec312b340c2952). |
| 2406 | (description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#str., "BW", _cxx . . $ `include/gutenprint/gutenprint-intl-internal.h:58:11`!("Black and White")); |
| 2407 | description->defltcxx . . $ $anonymous_type_c987533f3b833c82_8#deflt..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_10#str. = |
| 2408 | stp_string_list_paramcxx . . $ stp_string_list_param(1d71fb1c8ad3926a).(description->boundscxx . . $ $anonymous_type_c987533f3b833c82_8#bounds..strcxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_9#str., 0)->namecxx . . $ $anonymous_type_cb0224bbe5755622_0#name.; |
| 2409 | } |
| 2410 | else if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(name, "NativeCopies") == 0) |
| 2411 | { |
| 2412 | description->defltcxx . . $ $anonymous_type_c987533f3b833c82_8#deflt..booleancxx . . $ $anonymous_type_c987533f3b833c82_8#$anonymous_type_10#boolean. = caps->stp_printer_typecxx . . $ $anonymous_type_64c66a939155289b_3#stp_printer_type. & PCL_PRINTER_COPIEScxx . . $ `src/main/print-pcl.c:348:9`!; |
| 2413 | description->is_activecxx . . $ $anonymous_type_c987533f3b833c82_8#is_active. = 1; |
| 2414 | } |
| 2415 | } |
| 2416 | |
| 2417 | |
| 2418 | /* |
| 2419 | * 'pcl_imageable_area()' - Return the imageable area of the page. |
| 2420 | */ |
| 2421 | static void |
| 2422 | internal_imageable_areacxx . . $ internal_imageable_area(a6092833ba136695).(const stp_vars_tcxx . . $ stp_vars_t# *v, /* I */ |
| 2423 | int use_paper_margins, |
| 2424 | stp_dimension_tcxx . . $ stp_dimension_t# *left, /* O - Left position in points */ |
| 2425 | stp_dimension_tcxx . . $ stp_dimension_t# *right, /* O - Right position in points */ |
| 2426 | stp_dimension_tcxx . . $ stp_dimension_t# *bottom, /* O - Bottom position in points */ |
| 2427 | stp_dimension_tcxx . . $ stp_dimension_t# *top) /* O - Top position in points */ |
| 2428 | { |
| 2429 | stp_dimension_tcxx . . $ stp_dimension_t# width, height; /* Size of page */ |
| 2430 | const pcl_cap_tcxx . . $ pcl_cap_t# *caps; /* Printer caps */ |
| 2431 | int pcl_media_size; /* Converted media size */ |
| 2432 | const char *media_size = stp_get_string_parametercxx . . $ stp_get_string_parameter(3e3ce5d385745545).(v, "PageSize"); |
| 2433 | const stp_papersize_tcxx . . $ stp_papersize_t# *pp = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 2434 | stp_dimension_tcxx . . $ stp_dimension_t# left_margin = 0; |
| 2435 | stp_dimension_tcxx . . $ stp_dimension_t# right_margin = 0; |
| 2436 | stp_dimension_tcxx . . $ stp_dimension_t# bottom_margin = 0; |
| 2437 | stp_dimension_tcxx . . $ stp_dimension_t# top_margin = 0; |
| 2438 | const stp_papersize_list_tcxx . . $ stp_papersize_list_t# *papersize_list = stpi_get_standard_papersize_listcxx . . $ stpi_get_standard_papersize_list(d3875b0f088d0326).(); |
| 2439 | |
| 2440 | caps = pcl_get_model_capabilitiescxx . . $ pcl_get_model_capabilities(902c7d10057f92e4).(v); |
| 2441 | |
| 2442 | stp_default_media_sizecxx . . $ stp_default_media_size(2eafa46ec96dc268).(v, &width, &height); |
| 2443 | |
| 2444 | /* If we are using A4 paper, then the margins are different than any |
| 2445 | * other paper size. This is because HP wanted to have the same printable |
| 2446 | * width for A4 as for letter. Go figure. |
| 2447 | */ |
| 2448 | |
| 2449 | if (!media_size) |
| 2450 | media_size = ""; |
| 2451 | if (strlencxx . . $ strlen(751346f8406fd082).(media_size) == 0 && |
| 2452 | ((pp = stpi_get_papersize_by_sizecxx . . $ stpi_get_papersize_by_size(a19d0c2e517567dd).(papersize_list, stp_get_page_heightcxx . . $ stp_get_page_height(7f9a8d44e8193bba).(v), |
| 2453 | stp_get_page_widthcxx . . $ stp_get_page_width(7f9a8d44e8193bba).(v))) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)) |
| 2454 | media_size = pp->namecxx . . $ $anonymous_type_51fd7f0ef3c7bff0_2#name.; |
| 2455 | |
| 2456 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v, "pcl_imageable_area(): media_size: '%s'\n", |
| 2457 | media_size); |
| 2458 | |
| 2459 | pcl_media_size = pcl_convert_media_sizecxx . . $ pcl_convert_media_size(b1e629819c29df09).(v, media_size); |
| 2460 | if (media_size) |
| 2461 | pp = stp_describe_papersizecxx . . $ stp_describe_papersize(977e5bf217e59ec).(v, media_size); |
| 2462 | if (pp && use_paper_margins) |
| 2463 | { |
| 2464 | left_margin = pp->leftcxx . . $ $anonymous_type_51fd7f0ef3c7bff0_2#left.; |
| 2465 | right_margin = pp->rightcxx . . $ $anonymous_type_51fd7f0ef3c7bff0_2#right.; |
| 2466 | bottom_margin = pp->bottomcxx . . $ $anonymous_type_51fd7f0ef3c7bff0_2#bottom.; |
| 2467 | top_margin = pp->topcxx . . $ $anonymous_type_51fd7f0ef3c7bff0_2#top.; |
| 2468 | } |
| 2469 | |
| 2470 | if (pcl_media_size == PCL_PAPERSIZE_A4cxx . . $ `src/main/print-pcl.c:119:9`!) |
| 2471 | { |
| 2472 | left_margin = MAXcxx . . $ `src/main/print-pcl.c:53:11`!(left_margin, caps->a4_margins.left_margin); |
| 2473 | right_margin = MAXcxx . . $ `src/main/print-pcl.c:53:11`!(right_margin, caps->a4_margins.right_margin); |
| 2474 | top_margin = MAXcxx . . $ `src/main/print-pcl.c:53:11`!(top_margin, caps->a4_margins.top_margin); |
| 2475 | bottom_margin = MAXcxx . . $ `src/main/print-pcl.c:53:11`!(bottom_margin, caps->a4_margins.bottom_margin); |
| 2476 | } |
| 2477 | else |
| 2478 | { |
| 2479 | left_margin = MAXcxx . . $ `src/main/print-pcl.c:53:11`!(left_margin, caps->normal_margins.left_margin); |
| 2480 | right_margin = MAXcxx . . $ `src/main/print-pcl.c:53:11`!(right_margin, caps->normal_margins.right_margin); |
| 2481 | top_margin = MAXcxx . . $ `src/main/print-pcl.c:53:11`!(top_margin, caps->normal_margins.top_margin); |
| 2482 | bottom_margin = MAXcxx . . $ `src/main/print-pcl.c:53:11`!(bottom_margin, caps->normal_margins.bottom_margin); |
| 2483 | } |
| 2484 | *left = left_margin; |
| 2485 | *right = width - right_margin; |
| 2486 | *top = top_margin; |
| 2487 | *bottom = height - bottom_margin; |
| 2488 | } |
| 2489 | |
| 2490 | static void |
| 2491 | pcl_imageable_areacxx . . $ pcl_imageable_area(25e50967534aa153).(const stp_vars_tcxx . . $ stp_vars_t# *v, /* I */ |
| 2492 | stp_dimension_tcxx . . $ stp_dimension_t# *left, /* O - Left position in points */ |
| 2493 | stp_dimension_tcxx . . $ stp_dimension_t# *right, /* O - Right position in points */ |
| 2494 | stp_dimension_tcxx . . $ stp_dimension_t# *bottom, /* O - Bottom position in points */ |
| 2495 | stp_dimension_tcxx . . $ stp_dimension_t# *top) /* O - Top position in points */ |
| 2496 | { |
| 2497 | internal_imageable_areacxx . . $ internal_imageable_area(a6092833ba136695).(v, 1, left, right, bottom, top); |
| 2498 | } |
| 2499 | |
| 2500 | static void |
| 2501 | pcl_limitcxx . . $ pcl_limit(25e50967534aa153).(const stp_vars_tcxx . . $ stp_vars_t# *v, /* I */ |
| 2502 | stp_dimension_tcxx . . $ stp_dimension_t# *width, |
| 2503 | stp_dimension_tcxx . . $ stp_dimension_t# *height, |
| 2504 | stp_dimension_tcxx . . $ stp_dimension_t# *min_width, |
| 2505 | stp_dimension_tcxx . . $ stp_dimension_t# *min_height) |
| 2506 | { |
| 2507 | const pcl_cap_tcxx . . $ pcl_cap_t# *caps= pcl_get_model_capabilitiescxx . . $ pcl_get_model_capabilities(902c7d10057f92e4).(v); |
| 2508 | *width = caps->custom_max_widthcxx . . $ $anonymous_type_64c66a939155289b_3#custom_max_width.; |
| 2509 | *height = caps->custom_max_heightcxx . . $ $anonymous_type_64c66a939155289b_3#custom_max_height.; |
| 2510 | *min_width = caps->custom_min_widthcxx . . $ $anonymous_type_64c66a939155289b_3#custom_min_width.; |
| 2511 | *min_height = caps->custom_min_heightcxx . . $ $anonymous_type_64c66a939155289b_3#custom_min_height.; |
| 2512 | } |
| 2513 | |
| 2514 | static const char * |
| 2515 | pcl_describe_outputcxx . . $ pcl_describe_output(4be828c28602b542).(const stp_vars_tcxx . . $ stp_vars_t# *v) |
| 2516 | { |
| 2517 | int printing_color = 0; |
| 2518 | const pcl_cap_tcxx . . $ pcl_cap_t# *caps = pcl_get_model_capabilitiescxx . . $ pcl_get_model_capabilities(902c7d10057f92e4).(v); |
| 2519 | const char *print_mode = stp_get_string_parametercxx . . $ stp_get_string_parameter(3e3ce5d385745545).(v, "PrintingMode"); |
| 2520 | stp_resolution_tcxx . . $ stp_resolution_t# xdpi, ydpi; |
| 2521 | |
| 2522 | pcl_describe_resolutioncxx . . $ pcl_describe_resolution(5883f070c6139f40).(v, &xdpi, &ydpi); |
| 2523 | if (!print_mode || strcmpcxx . . $ strcmp(5ae29d726ae57f88).(print_mode, "Color") == 0) |
| 2524 | printing_color = 1; |
| 2525 | if (((caps->resolutionscxx . . $ $anonymous_type_64c66a939155289b_3#resolutions. & PCL_RES_600_600_MONOcxx . . $ `src/main/print-pcl.c:273:9`!) == PCL_RES_600_600_MONOcxx . . $ `src/main/print-pcl.c:273:9`!) && |
| 2526 | printing_color && xdpi == 600 && ydpi == 600) |
| 2527 | printing_color = 0; |
| 2528 | if (printing_color) |
| 2529 | { |
| 2530 | if ((caps->color_typecxx . . $ $anonymous_type_64c66a939155289b_3#color_type. & PCL_COLOR_RGBcxx . . $ `src/main/print-pcl.c:335:9`!) == PCL_COLOR_RGBcxx . . $ `src/main/print-pcl.c:335:9`!) |
| 2531 | return "RGB"; |
| 2532 | else if ((caps->color_typecxx . . $ $anonymous_type_64c66a939155289b_3#color_type. & PCL_COLOR_CMYcxx . . $ `src/main/print-pcl.c:330:9`!) == PCL_COLOR_CMYcxx . . $ `src/main/print-pcl.c:330:9`!) |
| 2533 | return "CMY"; |
| 2534 | else |
| 2535 | return "CMYK"; |
| 2536 | } |
| 2537 | else |
| 2538 | return "Grayscale"; |
| 2539 | } |
| 2540 | |
| 2541 | static const stp_papersize_tcxx . . $ stp_papersize_t# * |
| 2542 | pcl_describe_papersizecxx . . $ pcl_describe_papersize(977e5bf217e59ec).(const stp_vars_tcxx . . $ stp_vars_t# *v, const char *name) |
| 2543 | { |
| 2544 | const pcl_cap_tcxx . . $ pcl_cap_t# *caps= pcl_get_model_capabilitiescxx . . $ pcl_get_model_capabilities(902c7d10057f92e4).(v); |
| 2545 | if (caps->stp_printer_typecxx . . $ $anonymous_type_64c66a939155289b_3#stp_printer_type. & PCL_PRINTER_LABELcxx . . $ `src/main/print-pcl.c:346:9`!) |
| 2546 | return stpi_get_listed_papersizecxx . . $ stpi_get_listed_papersize(49f21dd3ffd9359c).(name, "labels"); |
| 2547 | else |
| 2548 | return stpi_get_listed_papersizecxx . . $ stpi_get_listed_papersize(49f21dd3ffd9359c).(name, "standard"); |
| 2549 | } |
| 2550 | |
| 2551 | /* |
| 2552 | * 'pcl_print()' - Print an image to an HP printer. |
| 2553 | */ |
| 2554 | |
| 2555 | static void |
| 2556 | pcl_printfunccxx . . $ pcl_printfunc(1a97b8462f9f913c).(stp_vars_tcxx . . $ stp_vars_t# *v) |
| 2557 | { |
| 2558 | pcl_privdata_tcxx . . $ pcl_privdata_t# *pd = (pcl_privdata_tcxx . . $ pcl_privdata_t# *) stp_get_component_datacxx . . $ stp_get_component_data(2bc0070dfdce2f04).(v, "Driver"); |
| 2559 | int do_blank = pd->do_blankcxx . . $ $anonymous_type_64c66a939155289b_0#do_blank.; |
| 2560 | unsigned char *black = stp_dither_get_channelcxx . . $ stp_dither_get_channel(ee4943665e6fee3b).(v, STP_ECOLOR_Kcxx . . $ `include/gutenprint/dither.h:49:9`!, 0); |
| 2561 | unsigned char *cyan = stp_dither_get_channelcxx . . $ stp_dither_get_channel(ee4943665e6fee3b).(v, STP_ECOLOR_Ccxx . . $ `include/gutenprint/dither.h:50:9`!, 0); |
| 2562 | unsigned char *lcyan = stp_dither_get_channelcxx . . $ stp_dither_get_channel(ee4943665e6fee3b).(v, STP_ECOLOR_Ccxx . . $ `include/gutenprint/dither.h:50:9`!, 1); |
| 2563 | unsigned char *magenta = stp_dither_get_channelcxx . . $ stp_dither_get_channel(ee4943665e6fee3b).(v, STP_ECOLOR_Mcxx . . $ `include/gutenprint/dither.h:51:9`!, 0); |
| 2564 | unsigned char *lmagenta = stp_dither_get_channelcxx . . $ stp_dither_get_channel(ee4943665e6fee3b).(v, STP_ECOLOR_Mcxx . . $ `include/gutenprint/dither.h:51:9`!, 1); |
| 2565 | unsigned char *yellow = stp_dither_get_channelcxx . . $ stp_dither_get_channel(ee4943665e6fee3b).(v, STP_ECOLOR_Ycxx . . $ `include/gutenprint/dither.h:52:9`!, 0); |
| 2566 | int len_c = stp_dither_get_last_positioncxx . . $ stp_dither_get_last_position(c803ced41733a369).(v, STP_ECOLOR_Ccxx . . $ `include/gutenprint/dither.h:50:9`!, 0); |
| 2567 | int len_lc = stp_dither_get_last_positioncxx . . $ stp_dither_get_last_position(c803ced41733a369).(v, STP_ECOLOR_Ccxx . . $ `include/gutenprint/dither.h:50:9`!, 1); |
| 2568 | int len_m = stp_dither_get_last_positioncxx . . $ stp_dither_get_last_position(c803ced41733a369).(v, STP_ECOLOR_Mcxx . . $ `include/gutenprint/dither.h:51:9`!, 0); |
| 2569 | int len_lm = stp_dither_get_last_positioncxx . . $ stp_dither_get_last_position(c803ced41733a369).(v, STP_ECOLOR_Mcxx . . $ `include/gutenprint/dither.h:51:9`!, 1); |
| 2570 | int len_y = stp_dither_get_last_positioncxx . . $ stp_dither_get_last_position(c803ced41733a369).(v, STP_ECOLOR_Ycxx . . $ `include/gutenprint/dither.h:52:9`!, 0); |
| 2571 | int len_k = stp_dither_get_last_positioncxx . . $ stp_dither_get_last_position(c803ced41733a369).(v, STP_ECOLOR_Kcxx . . $ `include/gutenprint/dither.h:49:9`!, 0); |
| 2572 | int is_blank = (do_blank && (len_c == -1) && (len_lc == -1) && |
| 2573 | (len_m == -1) && (len_lm == -1) && (len_y == -1) && |
| 2574 | (len_k == -1)); |
| 2575 | int height = pd->heightcxx . . $ $anonymous_type_64c66a939155289b_0#height.; |
| 2576 | const char *print_mode = stp_get_string_parametercxx . . $ stp_get_string_parameter(3e3ce5d385745545).(v, "PrintingMode"); |
| 2577 | |
| 2578 | if (is_blank && (pd->blank_linescxx . . $ $anonymous_type_64c66a939155289b_0#blank_lines. != 0)) /* repeated blank line */ |
| 2579 | { |
| 2580 | pd->blank_linescxx . . $ $anonymous_type_64c66a939155289b_0#blank_lines.++; |
| 2581 | } |
| 2582 | else /* Not blank, or is first one */ |
| 2583 | { |
| 2584 | if (! is_blank) |
| 2585 | { |
| 2586 | if (pd->blank_linescxx . . $ $anonymous_type_64c66a939155289b_0#blank_lines. > 1) /* Output accumulated lines */ |
| 2587 | { |
| 2588 | pd->blank_linescxx . . $ $anonymous_type_64c66a939155289b_0#blank_lines.--; /* correct for one already output */ |
| 2589 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v, "Blank Lines = %d\n", pd->blank_linescxx . . $ $anonymous_type_64c66a939155289b_0#blank_lines.); |
| 2590 | stp_zprintfcxx . . $ stp_zprintf(7aef7aa9b820d38).(v, "\033*b%dY", pd->blank_linescxx . . $ $anonymous_type_64c66a939155289b_0#blank_lines.); |
| 2591 | pd->blank_linescxx . . $ $anonymous_type_64c66a939155289b_0#blank_lines.=0; |
| 2592 | } |
| 2593 | } |
| 2594 | else |
| 2595 | { |
| 2596 | pd->blank_linescxx . . $ $anonymous_type_64c66a939155289b_0#blank_lines.++; |
| 2597 | } |
| 2598 | |
| 2599 | if (pd->do_cretcxx . . $ $anonymous_type_64c66a939155289b_0#do_cret.) |
| 2600 | { |
| 2601 | /* |
| 2602 | * 4-level (CRet) dithers... |
| 2603 | */ |
| 2604 | if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(print_mode, "BW") == 0) |
| 2605 | { |
| 2606 | (*(pd->writefunccxx . . $ $anonymous_type_64c66a939155289b_0#writefunc.))(v, black + height / 2, height / 2, 0); |
| 2607 | (*(pd->writefunccxx . . $ $anonymous_type_64c66a939155289b_0#writefunc.))(v, black, height / 2, 1); |
| 2608 | } |
| 2609 | else |
| 2610 | { |
| 2611 | if(pd->do_cretbcxx . . $ $anonymous_type_64c66a939155289b_0#do_cretb.) |
| 2612 | { |
| 2613 | /* (*(pd->writefunc))(v, black + height / 2, 0, 0); */ |
| 2614 | (*(pd->writefunccxx . . $ $anonymous_type_64c66a939155289b_0#writefunc.))(v, black, height/2, 0); |
| 2615 | } |
| 2616 | else |
| 2617 | { |
| 2618 | (*(pd->writefunccxx . . $ $anonymous_type_64c66a939155289b_0#writefunc.))(v, black + height / 2, height / 2, 0); |
| 2619 | (*(pd->writefunccxx . . $ $anonymous_type_64c66a939155289b_0#writefunc.))(v, black, height / 2, 0); |
| 2620 | } |
| 2621 | (*(pd->writefunccxx . . $ $anonymous_type_64c66a939155289b_0#writefunc.))(v, cyan + height / 2, height / 2, 0); |
| 2622 | (*(pd->writefunccxx . . $ $anonymous_type_64c66a939155289b_0#writefunc.))(v, cyan, height / 2, 0); |
| 2623 | (*(pd->writefunccxx . . $ $anonymous_type_64c66a939155289b_0#writefunc.))(v, magenta + height / 2, height / 2, 0); |
| 2624 | (*(pd->writefunccxx . . $ $anonymous_type_64c66a939155289b_0#writefunc.))(v, magenta, height / 2, 0); |
| 2625 | (*(pd->writefunccxx . . $ $anonymous_type_64c66a939155289b_0#writefunc.))(v, yellow + height / 2, height / 2, 0); |
| 2626 | if (pd->do_6colorcxx . . $ $anonymous_type_64c66a939155289b_0#do_6color.) |
| 2627 | { |
| 2628 | (*(pd->writefunccxx . . $ $anonymous_type_64c66a939155289b_0#writefunc.))(v, yellow, height / 2, 0); |
| 2629 | (*(pd->writefunccxx . . $ $anonymous_type_64c66a939155289b_0#writefunc.))(v, lcyan + height / 2, height / 2, 0); |
| 2630 | (*(pd->writefunccxx . . $ $anonymous_type_64c66a939155289b_0#writefunc.))(v, lcyan, height / 2, 0); |
| 2631 | (*(pd->writefunccxx . . $ $anonymous_type_64c66a939155289b_0#writefunc.))(v, lmagenta + height / 2, height / 2, 0); |
| 2632 | (*(pd->writefunccxx . . $ $anonymous_type_64c66a939155289b_0#writefunc.))(v, lmagenta, height / 2, 1); /* Last plane set on light magenta */ |
| 2633 | } |
| 2634 | else |
| 2635 | (*(pd->writefunccxx . . $ $anonymous_type_64c66a939155289b_0#writefunc.))(v, yellow, height / 2, 1); /* Last plane set on yellow */ |
| 2636 | } |
| 2637 | } |
| 2638 | else |
| 2639 | { |
| 2640 | /* |
| 2641 | * Standard 2-level dithers... |
| 2642 | */ |
| 2643 | |
| 2644 | if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(print_mode, "BW") == 0) |
| 2645 | { |
| 2646 | (*(pd->writefunccxx . . $ $anonymous_type_64c66a939155289b_0#writefunc.))(v, black, height, 1); |
| 2647 | } |
| 2648 | else |
| 2649 | { |
| 2650 | if (black != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 2651 | (*(pd->writefunccxx . . $ $anonymous_type_64c66a939155289b_0#writefunc.))(v, black, height, 0); |
| 2652 | (*(pd->writefunccxx . . $ $anonymous_type_64c66a939155289b_0#writefunc.))(v, cyan, height, 0); |
| 2653 | (*(pd->writefunccxx . . $ $anonymous_type_64c66a939155289b_0#writefunc.))(v, magenta, height, 0); |
| 2654 | if (pd->do_6colorcxx . . $ $anonymous_type_64c66a939155289b_0#do_6color.) |
| 2655 | { |
| 2656 | (*(pd->writefunccxx . . $ $anonymous_type_64c66a939155289b_0#writefunc.))(v, yellow, height, 0); |
| 2657 | (*(pd->writefunccxx . . $ $anonymous_type_64c66a939155289b_0#writefunc.))(v, lcyan, height, 0); |
| 2658 | (*(pd->writefunccxx . . $ $anonymous_type_64c66a939155289b_0#writefunc.))(v, lmagenta, height, 1); /* Last plane set on light magenta */ |
| 2659 | } |
| 2660 | else |
| 2661 | (*(pd->writefunccxx . . $ $anonymous_type_64c66a939155289b_0#writefunc.))(v, yellow, height, 1); /* Last plane set on yellow */ |
| 2662 | } |
| 2663 | } |
| 2664 | } |
| 2665 | } |
| 2666 | |
| 2667 | static double |
| 2668 | get_double_paramcxx . . $ get_double_param(59eb18042deb636b).(stp_vars_tcxx . . $ stp_vars_t# *v, const char *param) |
| 2669 | { |
| 2670 | if (param && stp_check_float_parametercxx . . $ stp_check_float_parameter(cff2817d3dcc2695).(v, param, STP_PARAMETER_ACTIVEcxx . . $ STP_PARAMETER_ACTIVE.)) |
| 2671 | return stp_get_float_parametercxx . . $ stp_get_float_parameter(ac3b1c02c916f219).(v, param); |
| 2672 | else |
| 2673 | return 1.0; |
| 2674 | } |
| 2675 | |
| 2676 | static void |
| 2677 | initialize_lj_colorcxx . . $ initialize_lj_color(1a97b8462f9f913c).(stp_vars_tcxx . . $ stp_vars_t# *v) |
| 2678 | { |
| 2679 | /* Magic initialization sequence */ |
| 2680 | stp_zprintfcxx . . $ stp_zprintf(7aef7aa9b820d38).(v, "\033*v6W%c%c%c%c%c%c", 0, 3, 8, 8, 8, 8); /* RTL config */ |
| 2681 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*t3J", v); /* Render alg (best) */ |
| 2682 | stp_zprintfcxx . . $ stp_zprintf(7aef7aa9b820d38).(v, "\033*o3W%c%c%c", 6, 4, 6); /* Driver config */ |
| 2683 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*v255A", v); /* Color comp 1) */ |
| 2684 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*v255B", v); /* Color comp 2) */ |
| 2685 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*v255C", v); /* Color comp 3) */ |
| 2686 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*v0I", v); /* Assign color idx 0 (white)*/ |
| 2687 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*v255A", v); /* Color comp 1) */ |
| 2688 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*v0B", v); /* Color comp 2) */ |
| 2689 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*v0C", v); /* Color comp 3) */ |
| 2690 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*v6I", v); /* Assign color idx 1 (red) */ |
| 2691 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*v0A", v); /* Color comp 1) */ |
| 2692 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*v255B", v); /* Color comp 2) */ |
| 2693 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*v0C", v); /* Color comp 3) */ |
| 2694 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*v5I", v); /* Assign color idx 5 (green) */ |
| 2695 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*v0A", v); /* Color comp 1) */ |
| 2696 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*v0B", v); /* Color comp 2) */ |
| 2697 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*v255C", v); /* Color comp 3) */ |
| 2698 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*v4I", v); /* Assign color idx 4 (blue) */ |
| 2699 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*v255A", v); /* Color comp 1) */ |
| 2700 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*v255B", v); /* Color comp 2) */ |
| 2701 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*v0C", v); /* Color comp 3) */ |
| 2702 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*v3I", v); /* Assign color idx 3 (yellow) */ |
| 2703 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*v255A", v); /* Color comp 1) */ |
| 2704 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*v0B", v); /* Color comp 2) */ |
| 2705 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*v255C", v); /* Color comp 3) */ |
| 2706 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*v2I", v); /* Assign color idx 2 (green)*/ |
| 2707 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*v0A", v); /* Color comp 1) */ |
| 2708 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*v255B", v); /* Color comp 2) */ |
| 2709 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*v255C", v); /* Color comp 3) */ |
| 2710 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*v1I", v); /* Assign color idx 1 (magenta) */ |
| 2711 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*v0A", v); /* Color comp 1) */ |
| 2712 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*v0B", v); /* Color comp 2) */ |
| 2713 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*v0C", v); /* Color comp 3) */ |
| 2714 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*v7I", v); /* Assign color idx (black) */ |
| 2715 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*v7S", v); /* Set Foreground Color (black) */ |
| 2716 | } |
| 2717 | |
| 2718 | static int |
| 2719 | pcl_do_printcxx . . $ pcl_do_print(54c0568b42af3904).(stp_vars_tcxx . . $ stp_vars_t# *v, stp_image_tcxx . . $ stp_image_t# *image) |
| 2720 | { |
| 2721 | pcl_privdata_tcxx . . $ pcl_privdata_t# privdata; |
| 2722 | int status = 1; |
| 2723 | const char *media_size = stp_get_string_parametercxx . . $ stp_get_string_parameter(3e3ce5d385745545).(v, "PageSize"); |
| 2724 | const char *media_type = stp_get_string_parametercxx . . $ stp_get_string_parameter(3e3ce5d385745545).(v, "MediaType"); |
| 2725 | const char *media_source = stp_get_string_parametercxx . . $ stp_get_string_parameter(3e3ce5d385745545).(v, "InputSlot"); |
| 2726 | const char *ink_type = stp_get_string_parametercxx . . $ stp_get_string_parameter(3e3ce5d385745545).(v, "InkType"); |
| 2727 | const char *print_mode = stp_get_string_parametercxx . . $ stp_get_string_parameter(3e3ce5d385745545).(v, "PrintingMode"); |
| 2728 | const char *duplex_mode = stp_get_string_parametercxx . . $ stp_get_string_parameter(3e3ce5d385745545).(v, "Duplex"); |
| 2729 | const char *orientation_mode = stp_get_string_parametercxx . . $ stp_get_string_parameter(3e3ce5d385745545).(v, "Orientation"); |
| 2730 | const char *label_separator_mode = stp_get_string_parametercxx . . $ stp_get_string_parameter(3e3ce5d385745545).(v, "LabelSeparator"); |
| 2731 | double h_offset = get_double_paramcxx . . $ get_double_param(59eb18042deb636b).(v, "HorizOffset"); |
| 2732 | double v_offset = get_double_paramcxx . . $ get_double_param(59eb18042deb636b).(v, "VertOffset"); |
| 2733 | int page_number = stp_get_int_parametercxx . . $ stp_get_int_parameter(b1e629819c29df09).(v, "PageNumber"); |
| 2734 | int printing_color = 0; |
| 2735 | int top = (int) stp_get_topcxx . . $ stp_get_top(7f9a8d44e8193bba).(v) + .5; |
| 2736 | int left = (int) stp_get_leftcxx . . $ stp_get_left(7f9a8d44e8193bba).(v) + .5; |
| 2737 | unsigned int y; /* Looping vars */ |
| 2738 | stp_resolution_tcxx . . $ stp_resolution_t# xdpi, ydpi; /* Resolution */ |
| 2739 | unsigned char *black, /* Black bitmap data */ |
| 2740 | *cyan, /* Cyan bitmap data */ |
| 2741 | *magenta, /* Magenta bitmap data */ |
| 2742 | *yellow, /* Yellow bitmap data */ |
| 2743 | *lcyan, /* Light Cyan bitmap data */ |
| 2744 | *lmagenta; /* Light Magenta bitmap data */ |
| 2745 | stp_dimension_tcxx . . $ stp_dimension_t# page_left, |
| 2746 | page_top, |
| 2747 | page_right, |
| 2748 | page_bottom; |
| 2749 | unsigned int out_width, /* Width of image on page */ |
| 2750 | out_height; /* Height of image on page */ |
| 2751 | unsigned errdiv, /* Error dividend */ |
| 2752 | errmod, /* Error modulus */ |
| 2753 | errval, /* Current error value */ |
| 2754 | errline, /* Current raster line */ |
| 2755 | errlast; /* Last raster line loaded */ |
| 2756 | unsigned zero_mask = 0; |
| 2757 | int image_height; |
| 2758 | int image_width; |
| 2759 | const pcl_cap_tcxx . . $ pcl_cap_t# *caps; /* Printer capabilities */ |
| 2760 | int planes = 3; /* # of output planes */ |
| 2761 | int pcl_media_size; /* PCL media size code */ |
| 2762 | const double *dot_sizes_use; |
| 2763 | const stp_papersize_tcxx . . $ stp_papersize_t# *pp; |
| 2764 | int the_top_margin, /* Corrected top margin */ |
| 2765 | the_left_margin; /* Corrected left margin */ |
| 2766 | int manual_feed_left_adjust = 0; |
| 2767 | int extra_left_margin = 0; |
| 2768 | double density; |
| 2769 | int label = 0; |
| 2770 | const stp_papersize_list_tcxx . . $ stp_papersize_list_t# *paper_sizes = stpi_get_standard_papersize_listcxx . . $ stpi_get_standard_papersize_list(d3875b0f088d0326).(); |
| 2771 | |
| 2772 | if (!stp_verifycxx . . $ stp_verify(60b55b6a36641e80).(v)) |
| 2773 | { |
| 2774 | stp_eprintfcxx . . $ stp_eprintf(7aef7aa9b820d38).(v, "Print options not verified; cannot print.\n"); |
| 2775 | return 0; |
| 2776 | } |
| 2777 | if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(print_mode, "Color") == 0) |
| 2778 | printing_color = 1; |
| 2779 | |
| 2780 | (void) memsetcxx . . $ memset(d1de1e4fb215f1c6).(&privdata, 0, sizeof(privdata)); |
| 2781 | |
| 2782 | caps = pcl_get_model_capabilitiescxx . . $ pcl_get_model_capabilities(902c7d10057f92e4).(v); |
| 2783 | |
| 2784 | /* |
| 2785 | * Setup a read-only pixel region for the entire image... |
| 2786 | */ |
| 2787 | |
| 2788 | stp_image_initcxx . . $ stp_image_init(7010b42a94b47a79).(image); |
| 2789 | image_height = stp_image_heightcxx . . $ stp_image_height(ba31fd85910919f2).(image); |
| 2790 | |
| 2791 | /* |
| 2792 | * Figure out the output resolution... |
| 2793 | */ |
| 2794 | |
| 2795 | pcl_describe_resolutioncxx . . $ pcl_describe_resolution(5883f070c6139f40).(v, &xdpi, &ydpi); |
| 2796 | |
| 2797 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v,"pcl: resolution=%dx%d\n",(int)xdpi,(int)ydpi); |
| 2798 | if (xdpi <= 0 || ydpi <= 0) |
| 2799 | { |
| 2800 | stp_eprintfcxx . . $ stp_eprintf(7aef7aa9b820d38).(v, "No resolution found; cannot print.\n"); |
| 2801 | return 0; |
| 2802 | } |
| 2803 | |
| 2804 | if (printing_color && (caps->stp_printer_typecxx . . $ $anonymous_type_64c66a939155289b_3#stp_printer_type. & PCL_PRINTER_LJ_COLORcxx . . $ `src/main/print-pcl.c:347:9`!)) { |
| 2805 | privdata.nodithercxx . . $ $anonymous_type_64c66a939155289b_0#nodither. = 1; |
| 2806 | } |
| 2807 | /* |
| 2808 | * Choose the correct color conversion function... |
| 2809 | */ |
| 2810 | if (((caps->resolutionscxx . . $ $anonymous_type_64c66a939155289b_3#resolutions. & PCL_RES_600_600_MONOcxx . . $ `src/main/print-pcl.c:273:9`!) == PCL_RES_600_600_MONOcxx . . $ `src/main/print-pcl.c:273:9`!) && |
| 2811 | printing_color && xdpi == 600 && ydpi == 600) |
| 2812 | { |
| 2813 | stp_eprintfcxx . . $ stp_eprintf(7aef7aa9b820d38).(v, "600x600 resolution only available in MONO\n"); |
| 2814 | stp_set_string_parametercxx . . $ stp_set_string_parameter(7405204ff890c7b8).(v, "PrintingMode", "BW"); |
| 2815 | printing_color = 0; |
| 2816 | } |
| 2817 | |
| 2818 | privdata.do_cretcxx . . $ $anonymous_type_64c66a939155289b_0#do_cret. = (xdpi >= 300 && |
| 2819 | ((caps->color_typecxx . . $ $anonymous_type_64c66a939155289b_3#color_type. & PCL_COLOR_CMYK4cxx . . $ `src/main/print-pcl.c:332:9`!) == PCL_COLOR_CMYK4cxx . . $ `src/main/print-pcl.c:332:9`!)); |
| 2820 | privdata.do_cretbcxx . . $ $anonymous_type_64c66a939155289b_0#do_cretb. = (xdpi >= 600 && ydpi >= 600 && |
| 2821 | ((caps->color_typecxx . . $ $anonymous_type_64c66a939155289b_3#color_type. & PCL_COLOR_CMYK4bcxx . . $ `src/main/print-pcl.c:334:9`!) == PCL_COLOR_CMYK4bcxx . . $ `src/main/print-pcl.c:334:9`!) && |
| 2822 | printing_color); |
| 2823 | if (privdata.do_cretbcxx . . $ $anonymous_type_64c66a939155289b_0#do_cretb.){ |
| 2824 | privdata.do_cretcxx . . $ $anonymous_type_64c66a939155289b_0#do_cret. = 1; |
| 2825 | dot_sizes_use=dot_sizes_cretcxx . . $ dot_sizes_cret.; |
| 2826 | }else{ |
| 2827 | dot_sizes_use=dot_sizescxx . . $ dot_sizes.; |
| 2828 | } |
| 2829 | |
| 2830 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v, "privdata.do_cret = %d\n", privdata.do_cretcxx . . $ $anonymous_type_64c66a939155289b_0#do_cret.); |
| 2831 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v, "privdata.do_cretb = %d\n", privdata.do_cretbcxx . . $ $anonymous_type_64c66a939155289b_0#do_cretb.); |
| 2832 | |
| 2833 | if (ink_type && printing_color) |
| 2834 | privdata.do_6colorcxx . . $ $anonymous_type_64c66a939155289b_0#do_6color. = (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(ink_type, "Photo") == 0); |
| 2835 | else |
| 2836 | privdata.do_6colorcxx . . $ $anonymous_type_64c66a939155289b_0#do_6color. = 0; |
| 2837 | |
| 2838 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v, "privdata.do_6color = %d\n", privdata.do_6colorcxx . . $ $anonymous_type_64c66a939155289b_0#do_6color.); |
| 2839 | |
| 2840 | /* |
| 2841 | * Compute the output size... |
| 2842 | */ |
| 2843 | |
| 2844 | out_width = (int) stp_get_widthcxx . . $ stp_get_width(7f9a8d44e8193bba).(v) + .5; |
| 2845 | out_height = (int) stp_get_heightcxx . . $ stp_get_height(7f9a8d44e8193bba).(v) + .5; |
| 2846 | |
| 2847 | internal_imageable_areacxx . . $ internal_imageable_area(a6092833ba136695).(v, 0, &page_left, &page_right, |
| 2848 | &page_bottom, &page_top); |
| 2849 | left -= page_left; |
| 2850 | top -= page_top; |
| 2851 | |
| 2852 | image_height = stp_image_heightcxx . . $ stp_image_height(ba31fd85910919f2).(image); |
| 2853 | image_width = stp_image_widthcxx . . $ stp_image_width(ba31fd85910919f2).(image); |
| 2854 | |
| 2855 | /* |
| 2856 | * Set media size here because it is needed by the margin calculation code. |
| 2857 | */ |
| 2858 | |
| 2859 | if (!media_size) |
| 2860 | media_size = ""; |
| 2861 | if (strlencxx . . $ strlen(751346f8406fd082).(media_size) == 0 && |
| 2862 | ((pp = stpi_get_papersize_by_sizecxx . . $ stpi_get_papersize_by_size(a19d0c2e517567dd).(paper_sizes, stp_get_page_heightcxx . . $ stp_get_page_height(7f9a8d44e8193bba).(v), |
| 2863 | stp_get_page_widthcxx . . $ stp_get_page_width(7f9a8d44e8193bba).(v))) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)) |
| 2864 | media_size = pp->namecxx . . $ $anonymous_type_51fd7f0ef3c7bff0_2#name.; |
| 2865 | |
| 2866 | pcl_media_size = pcl_convert_media_sizecxx . . $ pcl_convert_media_size(b1e629819c29df09).(v, media_size); |
| 2867 | |
| 2868 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v,"pcl_media_size = %d, media_size = %s\n", pcl_media_size, media_size); |
| 2869 | |
| 2870 | /* |
| 2871 | * If the media size requested is unknown, try it as a custom size. |
| 2872 | * |
| 2873 | * Warning: The margins may need to be fixed for this! |
| 2874 | */ |
| 2875 | |
| 2876 | if (pcl_media_size == -1) { |
| 2877 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v, "Paper size %s is not directly supported by printer.\n", |
| 2878 | media_size); |
| 2879 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v, "Trying as custom pagesize (watch the margins!)\n"); |
| 2880 | pcl_media_size = PCL_PAPERSIZE_CUSTOMcxx . . $ `src/main/print-pcl.c:134:9`!; /* Custom */ |
| 2881 | } |
| 2882 | |
| 2883 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v, "Duplex: %s, Page_Number: %d\n", duplex_mode, page_number); |
| 2884 | privdata.duplexcxx . . $ $anonymous_type_64c66a939155289b_0#duplex.=0; |
| 2885 | privdata.tumblecxx . . $ $anonymous_type_64c66a939155289b_0#tumble.=0; |
| 2886 | privdata.copiescxx . . $ $anonymous_type_64c66a939155289b_0#copies.=1; |
| 2887 | |
| 2888 | /* |
| 2889 | * Duplex |
| 2890 | */ |
| 2891 | |
| 2892 | if (duplex_mode) |
| 2893 | { |
| 2894 | if (caps->stp_printer_typecxx . . $ $anonymous_type_64c66a939155289b_3#stp_printer_type. & PCL_PRINTER_DUPLEXcxx . . $ `src/main/print-pcl.c:345:9`!) |
| 2895 | { |
| 2896 | if ((strcmpcxx . . $ strcmp(5ae29d726ae57f88).(duplex_mode, "DuplexTumble") == 0) || (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(duplex_mode, "DuplexNoTumble") == 0)) |
| 2897 | privdata.duplexcxx . . $ $anonymous_type_64c66a939155289b_0#duplex.=1; |
| 2898 | if ((strcmpcxx . . $ strcmp(5ae29d726ae57f88).(duplex_mode, "DuplexTumble") == 0)) |
| 2899 | privdata.tumblecxx . . $ $anonymous_type_64c66a939155289b_0#tumble.=1; |
| 2900 | } |
| 2901 | } |
| 2902 | |
| 2903 | /* |
| 2904 | * Multiple copies! |
| 2905 | */ |
| 2906 | |
| 2907 | if (stp_check_boolean_parametercxx . . $ stp_check_boolean_parameter(cff2817d3dcc2695).(v, "NativeCopies", STP_PARAMETER_ACTIVEcxx . . $ STP_PARAMETER_ACTIVE.) && |
| 2908 | stp_get_boolean_parametercxx . . $ stp_get_boolean_parameter(b1e629819c29df09).(v, "NativeCopies") && |
| 2909 | stp_check_int_parametercxx . . $ stp_check_int_parameter(cff2817d3dcc2695).(v, "NumCopies", STP_PARAMETER_ACTIVEcxx . . $ STP_PARAMETER_ACTIVE.)) |
| 2910 | privdata.copiescxx . . $ $anonymous_type_64c66a939155289b_0#copies. = stp_get_int_parametercxx . . $ stp_get_int_parameter(b1e629819c29df09).(v, "NumCopies"); |
| 2911 | |
| 2912 | /* |
| 2913 | * Label (PJL) settings and Orientation |
| 2914 | */ |
| 2915 | |
| 2916 | if ((caps->stp_printer_typecxx . . $ $anonymous_type_64c66a939155289b_3#stp_printer_type. & PCL_PRINTER_LABELcxx . . $ `src/main/print-pcl.c:346:9`!)) { |
| 2917 | label = 1; |
| 2918 | privdata.orientationcxx . . $ $anonymous_type_64c66a939155289b_0#orientation. = 0; |
| 2919 | if ((strncmpcxx . . $ strncmp(fd278af2f295fa2e).(orientation_mode, "Landscape", 9) == 0)) |
| 2920 | privdata.orientationcxx . . $ $anonymous_type_64c66a939155289b_0#orientation. = 1; |
| 2921 | else if ((strncmpcxx . . $ strncmp(fd278af2f295fa2e).(orientation_mode, "UpsideDown", 10) == 0)) |
| 2922 | privdata.orientationcxx . . $ $anonymous_type_64c66a939155289b_0#orientation. = 2; |
| 2923 | else if ((strncmpcxx . . $ strncmp(fd278af2f295fa2e).(orientation_mode, "Seascape", 8) == 0)) |
| 2924 | privdata.orientationcxx . . $ $anonymous_type_64c66a939155289b_0#orientation. = 3; |
| 2925 | |
| 2926 | /* |
| 2927 | * Label Separator mode |
| 2928 | */ |
| 2929 | privdata.label_separatorcxx . . $ $anonymous_type_64c66a939155289b_0#label_separator. = 0; |
| 2930 | if ((strncmpcxx . . $ strncmp(fd278af2f295fa2e).(label_separator_mode, "GAP", 3) == 0)) |
| 2931 | privdata.label_separatorcxx . . $ $anonymous_type_64c66a939155289b_0#label_separator. = 1; |
| 2932 | if ((strncmpcxx . . $ strncmp(fd278af2f295fa2e).(label_separator_mode, "TOP", 3) == 0)) |
| 2933 | privdata.label_separatorcxx . . $ $anonymous_type_64c66a939155289b_0#label_separator. = 2; |
| 2934 | if ((strncmpcxx . . $ strncmp(fd278af2f295fa2e).(label_separator_mode, "BOTTOM", 6) == 0)) |
| 2935 | privdata.label_separatorcxx . . $ $anonymous_type_64c66a939155289b_0#label_separator. = 3; |
| 2936 | if ((strncmpcxx . . $ strncmp(fd278af2f295fa2e).(label_separator_mode, "NOTCH", 5) == 0)) |
| 2937 | privdata.label_separatorcxx . . $ $anonymous_type_64c66a939155289b_0#label_separator. = 4; |
| 2938 | if ((strncmpcxx . . $ strncmp(fd278af2f295fa2e).(label_separator_mode, "NONE", 10) == 0)) |
| 2939 | privdata.label_separatorcxx . . $ $anonymous_type_64c66a939155289b_0#label_separator. = 5; |
| 2940 | |
| 2941 | /* |
| 2942 | * Print Offsets |
| 2943 | */ |
| 2944 | privdata.h_offsetcxx . . $ $anonymous_type_64c66a939155289b_0#h_offset. = (int) (h_offset * 720.0); |
| 2945 | privdata.v_offsetcxx . . $ $anonymous_type_64c66a939155289b_0#v_offset. = (int) (v_offset * 720.0); |
| 2946 | |
| 2947 | /* |
| 2948 | * Darkness Mode |
| 2949 | */ |
| 2950 | if (stp_check_int_parametercxx . . $ stp_check_int_parameter(cff2817d3dcc2695).(v, "Darkness", STP_PARAMETER_ACTIVEcxx . . $ STP_PARAMETER_ACTIVE.)) |
| 2951 | { |
| 2952 | privdata.darknesscxx . . $ $anonymous_type_64c66a939155289b_0#darkness. = stp_get_int_parametercxx . . $ stp_get_int_parameter(b1e629819c29df09).(v, "Darkness"); |
| 2953 | } |
| 2954 | else |
| 2955 | { |
| 2956 | privdata.darknesscxx . . $ $anonymous_type_64c66a939155289b_0#darkness. = 30; |
| 2957 | } |
| 2958 | } |
| 2959 | |
| 2960 | |
| 2961 | /* |
| 2962 | * Send PCL initialization commands... |
| 2963 | */ |
| 2964 | |
| 2965 | if ((privdata.duplexcxx . . $ $anonymous_type_64c66a939155289b_0#duplex. == 0) || ((page_number & 1) == 0)) |
| 2966 | { |
| 2967 | int pcl_media_type, /* PCL media type code */ |
| 2968 | pcl_media_source; /* PCL media source code */ |
| 2969 | |
| 2970 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v, "Normal init\n"); |
| 2971 | |
| 2972 | if (label) |
| 2973 | { |
| 2974 | if (privdata.darknesscxx . . $ $anonymous_type_64c66a939155289b_0#darkness. > -21 && privdata.darknesscxx . . $ $anonymous_type_64c66a939155289b_0#darkness. < 21) |
| 2975 | { |
| 2976 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033%-12345X@PJL JOB NAME=\"JOB_CONFIG\" SECURITY=\"0x0000FFFF\"\n", v); |
| 2977 | stp_zprintfcxx . . $ stp_zprintf(7aef7aa9b820d38).(v, "@PJL DEFAULT DARKNESS=%d\n", privdata.darknesscxx . . $ $anonymous_type_64c66a939155289b_0#darkness.); |
| 2978 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("@PJL EOJ\n", v); |
| 2979 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033%-12345X\n", v); |
| 2980 | } |
| 2981 | if (privdata.do_cretbcxx . . $ $anonymous_type_64c66a939155289b_0#do_cretb.) |
| 2982 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*rbC", v); /* End raster graphics */ |
| 2983 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033E", v); /* PCL reset */ |
| 2984 | if (privdata.do_cretbcxx . . $ $anonymous_type_64c66a939155289b_0#do_cretb.) |
| 2985 | stp_zprintfcxx . . $ stp_zprintf(7aef7aa9b820d38).(v, "\033%%-12345X@PJL ENTER LANGUAGE=PCL3GUI\n"); |
| 2986 | |
| 2987 | stp_zprintfcxx . . $ stp_zprintf(7aef7aa9b820d38).(v, "\033%%-12345X@PJL SET RESOLUTION=%d\n" |
| 2988 | "@PJL SET PAPERWIDTH=%d\n" |
| 2989 | "@PJL SET PAPERLENGTH=%d\n" |
| 2990 | "@PJL SET VERTICALOFFSET=%d\n" |
| 2991 | "@PJL SET HORIZONTALOFFSET=%d\n" |
| 2992 | "@PJL ENTER LANGUAGE=PCL\n", (int) xdpi, out_width*10, |
| 2993 | out_height*10, privdata.v_offsetcxx . . $ $anonymous_type_64c66a939155289b_0#v_offset., privdata.h_offsetcxx . . $ $anonymous_type_64c66a939155289b_0#h_offset.); |
| 2994 | |
| 2995 | if ( privdata.label_separatorcxx . . $ $anonymous_type_64c66a939155289b_0#label_separator. != 0) { |
| 2996 | stp_zprintfcxx . . $ stp_zprintf(7aef7aa9b820d38).(v, "\033%%-12345X@PJL JOB SETUP = \"ON\" " |
| 2997 | "NAME = \"JOB_MEDIACONFIG\"\n" |
| 2998 | "@PJL DEFAULT PAPERSENSORTYPE=%s\n" |
| 2999 | "@PJL RESET\n@PJL EOJ\n", label_separator_mode); |
| 3000 | } |
| 3001 | |
| 3002 | stp_zprintfcxx . . $ stp_zprintf(7aef7aa9b820d38).(v, "\033&l%dA", pcl_media_size); /* Set media size we calculated above */ |
| 3003 | |
| 3004 | stp_zprintfcxx . . $ stp_zprintf(7aef7aa9b820d38).(v, "\033&l%dO", privdata.orientationcxx . . $ $anonymous_type_64c66a939155289b_0#orientation.); |
| 3005 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*r0F",v); /* Presentation mode */ |
| 3006 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033&l6D\033&k12H",v); /* 6 lines per inch, 10 chars per inch */ |
| 3007 | } |
| 3008 | else |
| 3009 | { |
| 3010 | if (privdata.do_cretbcxx . . $ $anonymous_type_64c66a939155289b_0#do_cretb.) |
| 3011 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*rbC", v); /* End raster graphics */ |
| 3012 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033E", v); /* PCL reset */ |
| 3013 | if (privdata.do_cretbcxx . . $ $anonymous_type_64c66a939155289b_0#do_cretb.) |
| 3014 | stp_zprintfcxx . . $ stp_zprintf(7aef7aa9b820d38).(v, "\033%%-12345X@PJL ENTER LANGUAGE=PCL3GUI\n"); |
| 3015 | |
| 3016 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033&l6D\033&k12H",v); /* 6 lines per inch, 10 chars per inch */ |
| 3017 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033&l0O",v); /* Portrait */ |
| 3018 | |
| 3019 | stp_zprintfcxx . . $ stp_zprintf(7aef7aa9b820d38).(v, "\033&l%dA", pcl_media_size); /* Set media size we calculated above */ |
| 3020 | } |
| 3021 | |
| 3022 | stp_zprintfcxx . . $ stp_zprintf(7aef7aa9b820d38).(v, "\033&l%dP", ((int) stp_get_page_heightcxx . . $ stp_get_page_height(7f9a8d44e8193bba).(v)) / 12); |
| 3023 | /* Length of "forms" in "lines" */ |
| 3024 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033&l0L", v); /* Turn off perforation skip */ |
| 3025 | if (! label) { |
| 3026 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033&l0E", v); /* Reset top margin to 0 */ |
| 3027 | } |
| 3028 | |
| 3029 | /* |
| 3030 | * Convert media source string to the code, if specified. |
| 3031 | */ |
| 3032 | |
| 3033 | if (media_source && strlencxx . . $ strlen(751346f8406fd082).(media_source) != 0) { |
| 3034 | pcl_media_source = pcl_string_to_valcxx . . $ pcl_string_to_val(523918d142e3b7af).(v, media_source, pcl_media_sourcescxx . . $ pcl_media_sources., |
| 3035 | sizeof(pcl_media_sourcescxx . . $ pcl_media_sources.) / sizeof(pcl_tcxx . . $ pcl_t#)); |
| 3036 | |
| 3037 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v,"pcl_media_source = %d, media_source = %s\n", pcl_media_source, |
| 3038 | media_source); |
| 3039 | |
| 3040 | if (pcl_media_source == -1) |
| 3041 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v, "Unknown media source %s, ignored.\n", media_source); |
| 3042 | else if (pcl_media_source != PCL_PAPERSOURCE_STANDARDcxx . . $ `src/main/print-pcl.c:217:9`!) { |
| 3043 | |
| 3044 | /* Correct the value by taking the modulus */ |
| 3045 | |
| 3046 | if ((pcl_media_source & PAPERSOURCE_ADJ_GUIDEcxx . . $ `src/main/print-pcl.c:215:9`!) == |
| 3047 | PAPERSOURCE_ADJ_GUIDEcxx . . $ `src/main/print-pcl.c:215:9`!) |
| 3048 | { |
| 3049 | manual_feed_left_adjust = 1; |
| 3050 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v, "Adjusting left margin for manual feed.\n"); |
| 3051 | } |
| 3052 | pcl_media_source = pcl_media_source % PAPERSOURCE_MODcxx . . $ `src/main/print-pcl.c:212:9`!; |
| 3053 | stp_zprintfcxx . . $ stp_zprintf(7aef7aa9b820d38).(v, "\033&l%dH", pcl_media_source); |
| 3054 | } |
| 3055 | } |
| 3056 | |
| 3057 | /* |
| 3058 | * Convert media type string to the code, if specified. |
| 3059 | */ |
| 3060 | |
| 3061 | if (media_type && strlencxx . . $ strlen(751346f8406fd082).(media_type) != 0) { |
| 3062 | pcl_media_type = pcl_string_to_valcxx . . $ pcl_string_to_val(523918d142e3b7af).(v, media_type, pcl_media_typescxx . . $ pcl_media_types., |
| 3063 | sizeof(pcl_media_typescxx . . $ pcl_media_types.) / sizeof(pcl_tcxx . . $ pcl_t#)); |
| 3064 | |
| 3065 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v,"pcl_media_type = %d, media_type = %s\n", pcl_media_type, |
| 3066 | media_type); |
| 3067 | |
| 3068 | if (pcl_media_type == -1) { |
| 3069 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v, "Unknown media type %s, set to PLAIN.\n", media_type); |
| 3070 | pcl_media_type = PCL_PAPERTYPE_PLAINcxx . . $ `src/main/print-pcl.c:186:9`!; |
| 3071 | } |
| 3072 | |
| 3073 | /* |
| 3074 | * The HP812C doesn't like glossy paper being selected when using 600x600 |
| 3075 | * C-RET (PhotoRET II). So we use Premium paper instead. |
| 3076 | * |
| 3077 | */ |
| 3078 | |
| 3079 | if (privdata.do_cretbcxx . . $ $anonymous_type_64c66a939155289b_0#do_cretb. && pcl_media_type == PCL_PAPERTYPE_GLOSSYcxx . . $ `src/main/print-pcl.c:189:9`!) { |
| 3080 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v, "Media type GLOSSY, set to PREMIUM for PhotoRET II.\n"); |
| 3081 | pcl_media_type = PCL_PAPERTYPE_PREMIUMcxx . . $ `src/main/print-pcl.c:188:9`!; |
| 3082 | } |
| 3083 | } |
| 3084 | else |
| 3085 | pcl_media_type = PCL_PAPERTYPE_PLAINcxx . . $ `src/main/print-pcl.c:186:9`!; |
| 3086 | |
| 3087 | /* |
| 3088 | * Set DJ print quality to "best" if resolution >= 300 |
| 3089 | */ |
| 3090 | |
| 3091 | if (caps->stp_printer_typecxx . . $ $anonymous_type_64c66a939155289b_3#stp_printer_type. & PCL_PRINTER_LJ_COLORcxx . . $ `src/main/print-pcl.c:347:9`!) |
| 3092 | stp_zprintfcxx . . $ stp_zprintf(7aef7aa9b820d38).(v, "\033&l%dM", pcl_media_type); |
| 3093 | else if ((xdpi >= 300) && ((caps->stp_printer_typecxx . . $ $anonymous_type_64c66a939155289b_3#stp_printer_type. & PCL_PRINTER_DJcxx . . $ `src/main/print-pcl.c:338:9`!) == PCL_PRINTER_DJcxx . . $ `src/main/print-pcl.c:338:9`!)) |
| 3094 | { |
| 3095 | if ((caps->stp_printer_typecxx . . $ $anonymous_type_64c66a939155289b_3#stp_printer_type. & PCL_PRINTER_MEDIATYPEcxx . . $ `src/main/print-pcl.c:342:9`!) == PCL_PRINTER_MEDIATYPEcxx . . $ `src/main/print-pcl.c:342:9`!) |
| 3096 | { |
| 3097 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*o1M", v); /* Quality = presentation */ |
| 3098 | stp_zprintfcxx . . $ stp_zprintf(7aef7aa9b820d38).(v, "\033&l%dM", pcl_media_type); |
| 3099 | } |
| 3100 | else |
| 3101 | { |
| 3102 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*r2Q", v); /* Quality (high) */ |
| 3103 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*o2Q", v); /* Shingling (4 passes) */ |
| 3104 | |
| 3105 | /* Depletion depends on media type and cart type. */ |
| 3106 | |
| 3107 | if ((pcl_media_type == PCL_PAPERTYPE_PLAINcxx . . $ `src/main/print-pcl.c:186:9`!) |
| 3108 | || (pcl_media_type == PCL_PAPERTYPE_BONDcxx . . $ `src/main/print-pcl.c:187:9`!)) { |
| 3109 | if ((caps->color_typecxx . . $ $anonymous_type_64c66a939155289b_3#color_type. & PCL_COLOR_CMYcxx . . $ `src/main/print-pcl.c:330:9`!) == PCL_COLOR_CMYcxx . . $ `src/main/print-pcl.c:330:9`!) |
| 3110 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*o2D", v); /* Depletion 25% */ |
| 3111 | else |
| 3112 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*o5D", v); /* Depletion 50% with gamma correction */ |
| 3113 | } |
| 3114 | |
| 3115 | else if ((pcl_media_type == PCL_PAPERTYPE_PREMIUMcxx . . $ `src/main/print-pcl.c:188:9`!) |
| 3116 | || (pcl_media_type == PCL_PAPERTYPE_GLOSSYcxx . . $ `src/main/print-pcl.c:189:9`!) |
| 3117 | || (pcl_media_type == PCL_PAPERTYPE_TRANScxx . . $ `src/main/print-pcl.c:190:9`!)) |
| 3118 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*o1D", v); /* Depletion none */ |
| 3119 | } |
| 3120 | } |
| 3121 | |
| 3122 | /* Number of copies */ |
| 3123 | if (privdata.copiescxx . . $ $anonymous_type_64c66a939155289b_0#copies. > 1) |
| 3124 | stp_zprintfcxx . . $ stp_zprintf(7aef7aa9b820d38).(v,"\033&l%dX", privdata.copiescxx . . $ $anonymous_type_64c66a939155289b_0#copies.); |
| 3125 | |
| 3126 | /* |
| 3127 | * Duplex |
| 3128 | */ |
| 3129 | if (privdata.duplexcxx . . $ $anonymous_type_64c66a939155289b_0#duplex.) |
| 3130 | stp_zprintfcxx . . $ stp_zprintf(7aef7aa9b820d38).(v,"\033&l%dS", privdata.duplexcxx . . $ $anonymous_type_64c66a939155289b_0#duplex. + privdata.tumblecxx . . $ $anonymous_type_64c66a939155289b_0#tumble.); |
| 3131 | } |
| 3132 | else |
| 3133 | { |
| 3134 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v, "Back face init\n"); |
| 3135 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033&a2G", v); |
| 3136 | } |
| 3137 | |
| 3138 | /* |
| 3139 | * See if we need to use the CRD (Configure Raster Data) command, because we're |
| 3140 | * doing something interesting on a DeskJet. |
| 3141 | * (I hate long complicated if statements, the compiler will sort it out!). |
| 3142 | */ |
| 3143 | |
| 3144 | privdata.use_crdcxx . . $ $anonymous_type_64c66a939155289b_0#use_crd. = 0; |
| 3145 | if ((caps->stp_printer_typecxx . . $ $anonymous_type_64c66a939155289b_3#stp_printer_type. & PCL_PRINTER_DJcxx . . $ `src/main/print-pcl.c:338:9`!) == PCL_PRINTER_DJcxx . . $ `src/main/print-pcl.c:338:9`!) |
| 3146 | { |
| 3147 | if (xdpi != ydpi) /* Different X and Y Resolutions */ |
| 3148 | privdata.use_crdcxx . . $ $anonymous_type_64c66a939155289b_0#use_crd. = 1; |
| 3149 | if (privdata.do_cretcxx . . $ $anonymous_type_64c66a939155289b_0#do_cret.) /* Resolution Enhancement */ |
| 3150 | privdata.use_crdcxx . . $ $anonymous_type_64c66a939155289b_0#use_crd. = 1; |
| 3151 | if (privdata.do_6colorcxx . . $ $anonymous_type_64c66a939155289b_0#do_6color.) /* Photo Ink printing */ |
| 3152 | privdata.use_crdcxx . . $ $anonymous_type_64c66a939155289b_0#use_crd. = 1; |
| 3153 | if (privdata.duplexcxx . . $ $anonymous_type_64c66a939155289b_0#duplex.) /* Duplexing */ |
| 3154 | privdata.use_crdcxx . . $ $anonymous_type_64c66a939155289b_0#use_crd. = 1; |
| 3155 | } |
| 3156 | |
| 3157 | if (privdata.use_crdcxx . . $ $anonymous_type_64c66a939155289b_0#use_crd.) |
| 3158 | /* Set resolution using CRD */ |
| 3159 | { |
| 3160 | |
| 3161 | /* |
| 3162 | * If duplexing on a CRD printer, we need to use the (re)load media command. |
| 3163 | */ |
| 3164 | |
| 3165 | if (privdata.duplexcxx . . $ $anonymous_type_64c66a939155289b_0#duplex.) |
| 3166 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033&l-2H",v); /* Load media */ |
| 3167 | |
| 3168 | /* |
| 3169 | * Send configure image data command with horizontal and |
| 3170 | * vertical resolutions as well as a color count... |
| 3171 | */ |
| 3172 | |
| 3173 | if (printing_color) |
| 3174 | if (caps->color_typecxx . . $ $anonymous_type_64c66a939155289b_3#color_type. & (PCL_COLOR_CMYcxx . . $ `src/main/print-pcl.c:330:9`! | PCL_COLOR_RGBcxx . . $ `src/main/print-pcl.c:335:9`!)) |
| 3175 | planes = 3; |
| 3176 | else |
| 3177 | if (privdata.do_6colorcxx . . $ $anonymous_type_64c66a939155289b_0#do_6color.) |
| 3178 | planes = 6; |
| 3179 | else |
| 3180 | planes = 4; |
| 3181 | else |
| 3182 | planes = 1; |
| 3183 | |
| 3184 | stp_zprintfcxx . . $ stp_zprintf(7aef7aa9b820d38).(v, "\033*g%dW", 2 + (planes * 6)); |
| 3185 | stp_putccxx . . $ stp_putc(a57e1a3820493fb).(2, v); /* Format 2 (Complex Direct Planar) */ |
| 3186 | stp_putccxx . . $ stp_putc(a57e1a3820493fb).(planes, v); /* # output planes */ |
| 3187 | |
| 3188 | if (planes != 3) { /* Black resolution */ |
| 3189 | stp_send_commandcxx . . $ stp_send_command(6c1d4952f19f3c82).(v, "", "HHH", xdpi, ydpi, (privdata.do_cretbcxx . . $ $anonymous_type_64c66a939155289b_0#do_cretb. || !privdata.do_cretcxx . . $ $anonymous_type_64c66a939155289b_0#do_cret.) ? 2 : 4); |
| 3190 | } |
| 3191 | |
| 3192 | if (planes != 1) { /* Cyan, magenta, yellow resolutions */ |
| 3193 | stp_send_commandcxx . . $ stp_send_command(6c1d4952f19f3c82).(v, "", "HHH", xdpi, ydpi, privdata.do_cretcxx . . $ $anonymous_type_64c66a939155289b_0#do_cret. ? 4 : 2); |
| 3194 | stp_send_commandcxx . . $ stp_send_command(6c1d4952f19f3c82).(v, "", "HHH", xdpi, ydpi, privdata.do_cretcxx . . $ $anonymous_type_64c66a939155289b_0#do_cret. ? 4 : 2); |
| 3195 | stp_send_commandcxx . . $ stp_send_command(6c1d4952f19f3c82).(v, "", "HHH", xdpi, ydpi, privdata.do_cretcxx . . $ $anonymous_type_64c66a939155289b_0#do_cret. ? 4 : 2); |
| 3196 | } |
| 3197 | if (planes == 6) /* LC, LM resolutions */ |
| 3198 | { |
| 3199 | stp_send_commandcxx . . $ stp_send_command(6c1d4952f19f3c82).(v, "", "HHH", xdpi, ydpi, privdata.do_cretcxx . . $ $anonymous_type_64c66a939155289b_0#do_cret. ? 4 : 2); |
| 3200 | stp_send_commandcxx . . $ stp_send_command(6c1d4952f19f3c82).(v, "", "HHH", xdpi, ydpi, privdata.do_cretcxx . . $ $anonymous_type_64c66a939155289b_0#do_cret. ? 4 : 2); |
| 3201 | } |
| 3202 | } |
| 3203 | else |
| 3204 | { |
| 3205 | stp_zprintfcxx . . $ stp_zprintf(7aef7aa9b820d38).(v, "\033*t%dR", (int) xdpi); /* Simple resolution */ |
| 3206 | if (printing_color && ! (caps->stp_printer_typecxx . . $ $anonymous_type_64c66a939155289b_3#stp_printer_type. & PCL_PRINTER_LJ_COLORcxx . . $ `src/main/print-pcl.c:347:9`!)) |
| 3207 | { |
| 3208 | if ((caps->color_typecxx . . $ $anonymous_type_64c66a939155289b_3#color_type. & PCL_COLOR_CMYcxx . . $ `src/main/print-pcl.c:330:9`!) == PCL_COLOR_CMYcxx . . $ `src/main/print-pcl.c:330:9`!) |
| 3209 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*r-3U", v); /* Simple CMY color */ |
| 3210 | else |
| 3211 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*r-4U", v); /* Simple KCMY color */ |
| 3212 | } |
| 3213 | } |
| 3214 | |
| 3215 | if ((caps->stp_printer_typecxx . . $ $anonymous_type_64c66a939155289b_3#stp_printer_type. & PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`!) == PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! && |
| 3216 | !(stp_get_debug_levelcxx . . $ stp_get_debug_level(f708dce9a8856c70).() & STP_DBG_NO_COMPRESSIONcxx . . $ `include/gutenprint/util.h:188:9`!)) |
| 3217 | { |
| 3218 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*b2M", v); /* Mode 2 (TIFF) */ |
| 3219 | } |
| 3220 | else |
| 3221 | { |
| 3222 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*b0M", v); /* Mode 0 (no compression) */ |
| 3223 | } |
| 3224 | |
| 3225 | /* |
| 3226 | * Convert image size to printer resolution and setup the page for printing... |
| 3227 | */ |
| 3228 | |
| 3229 | out_width = xdpi * out_width / 72; |
| 3230 | out_height = ydpi * out_height / 72; |
| 3231 | |
| 3232 | if (pcl_media_size == PCL_PAPERSIZE_A4cxx . . $ `src/main/print-pcl.c:119:9`!) |
| 3233 | { |
| 3234 | the_left_margin = caps->a4_marginscxx . . $ $anonymous_type_64c66a939155289b_3#a4_margins..left_margincxx . . $ $anonymous_type_64c66a939155289b_2#left_margin.; |
| 3235 | the_top_margin = caps->a4_marginscxx . . $ $anonymous_type_64c66a939155289b_3#a4_margins..top_margincxx . . $ $anonymous_type_64c66a939155289b_2#top_margin.; |
| 3236 | } |
| 3237 | else |
| 3238 | { |
| 3239 | the_left_margin = caps->normal_marginscxx . . $ $anonymous_type_64c66a939155289b_3#normal_margins..left_margincxx . . $ $anonymous_type_64c66a939155289b_2#left_margin.; |
| 3240 | the_top_margin = caps->normal_marginscxx . . $ $anonymous_type_64c66a939155289b_3#normal_margins..top_margincxx . . $ $anonymous_type_64c66a939155289b_2#top_margin.; |
| 3241 | } |
| 3242 | |
| 3243 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v, "left %d margin %d top %d margin %d width %d height %d\n", |
| 3244 | left, the_left_margin, top, the_top_margin, out_width, out_height); |
| 3245 | |
| 3246 | if (manual_feed_left_adjust) |
| 3247 | { |
| 3248 | unsigned wdelta = caps->custom_max_widthcxx . . $ $anonymous_type_64c66a939155289b_3#custom_max_width. - stp_get_page_widthcxx . . $ stp_get_page_width(7f9a8d44e8193bba).(v); |
| 3249 | if (wdelta > 0) |
| 3250 | { |
| 3251 | /* |
| 3252 | * Why 3? I would expect it would be 2 here, but it appears |
| 3253 | * that at least one printer (LJ 1022) actually partially |
| 3254 | * adjusts the margin itself. Adjusting the left margin by 1/3 |
| 3255 | * of the difference between the maximum width and the actual |
| 3256 | * width experimentally yields correct results -- rlk 20081014 |
| 3257 | */ |
| 3258 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v, |
| 3259 | " Adjusting manual feed left margin by %d\n", wdelta / 3); |
| 3260 | extra_left_margin += wdelta / 3; |
| 3261 | } |
| 3262 | } |
| 3263 | |
| 3264 | if (!privdata.do_cretbcxx . . $ $anonymous_type_64c66a939155289b_0#do_cretb.) { |
| 3265 | stp_zprintfcxx . . $ stp_zprintf(7aef7aa9b820d38).(v, "\033&a%dH", 10 * (left + extra_left_margin)); /* Set left raster position */ |
| 3266 | stp_zprintfcxx . . $ stp_zprintf(7aef7aa9b820d38).(v, "\033&a%dV", 10 * (top + the_top_margin)); |
| 3267 | /* Set top raster position */ |
| 3268 | } |
| 3269 | stp_zprintfcxx . . $ stp_zprintf(7aef7aa9b820d38).(v, "\033*r%dS", out_width); /* Set raster width */ |
| 3270 | stp_zprintfcxx . . $ stp_zprintf(7aef7aa9b820d38).(v, "\033*r%dT", out_height); /* Set raster height */ |
| 3271 | |
| 3272 | if (printing_color && caps->stp_printer_typecxx . . $ $anonymous_type_64c66a939155289b_3#stp_printer_type. & PCL_PRINTER_LJ_COLORcxx . . $ `src/main/print-pcl.c:347:9`!) |
| 3273 | { |
| 3274 | privdata.row_bufcxx . . $ $anonymous_type_64c66a939155289b_0#row_buf. = stp_malloccxx . . $ stp_malloc(bfcfa4d6b7f7ef64).(out_width * out_height); |
| 3275 | initialize_lj_colorcxx . . $ initialize_lj_color(1a97b8462f9f913c).(v); |
| 3276 | } |
| 3277 | |
| 3278 | if (privdata.do_cretbcxx . . $ $anonymous_type_64c66a939155289b_0#do_cretb.) |
| 3279 | { |
| 3280 | /* Move to top left of printed area */ |
| 3281 | stp_zprintfcxx . . $ stp_zprintf(7aef7aa9b820d38).(v, "\033*p%dY", (top + the_top_margin)*4); /* Measured in dots. */ |
| 3282 | stp_zprintfcxx . . $ stp_zprintf(7aef7aa9b820d38).(v, "\033*p%dX", (left + extra_left_margin)*4); |
| 3283 | } |
| 3284 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*r1A", v); /* Start GFX */ |
| 3285 | |
| 3286 | /* |
| 3287 | * Allocate memory for the raster data... |
| 3288 | */ |
| 3289 | |
| 3290 | privdata.heightcxx . . $ $anonymous_type_64c66a939155289b_0#height. = (out_width + 7) / 8; |
| 3291 | if (privdata.do_cretcxx . . $ $anonymous_type_64c66a939155289b_0#do_cret.) |
| 3292 | privdata.heightcxx . . $ $anonymous_type_64c66a939155289b_0#height. *= 2; |
| 3293 | else if (printing_color && caps->stp_printer_typecxx . . $ $anonymous_type_64c66a939155289b_3#stp_printer_type. & PCL_PRINTER_LJ_COLORcxx . . $ `src/main/print-pcl.c:347:9`!) |
| 3294 | privdata.heightcxx . . $ $anonymous_type_64c66a939155289b_0#height. = out_width * 3; |
| 3295 | |
| 3296 | if (!printing_color) |
| 3297 | { |
| 3298 | black = stp_malloccxx . . $ stp_malloc(bfcfa4d6b7f7ef64).(privdata.heightcxx . . $ $anonymous_type_64c66a939155289b_0#height.); |
| 3299 | cyan = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 3300 | magenta = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 3301 | yellow = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 3302 | lcyan = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 3303 | lmagenta = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 3304 | } |
| 3305 | else |
| 3306 | { |
| 3307 | cyan = stp_malloccxx . . $ stp_malloc(bfcfa4d6b7f7ef64).(privdata.heightcxx . . $ $anonymous_type_64c66a939155289b_0#height.); |
| 3308 | magenta = stp_malloccxx . . $ stp_malloc(bfcfa4d6b7f7ef64).(privdata.heightcxx . . $ $anonymous_type_64c66a939155289b_0#height.); |
| 3309 | yellow = stp_malloccxx . . $ stp_malloc(bfcfa4d6b7f7ef64).(privdata.heightcxx . . $ $anonymous_type_64c66a939155289b_0#height.); |
| 3310 | |
| 3311 | if (caps->color_typecxx . . $ $anonymous_type_64c66a939155289b_3#color_type. & (PCL_COLOR_CMYcxx . . $ `src/main/print-pcl.c:330:9`! | PCL_COLOR_RGBcxx . . $ `src/main/print-pcl.c:335:9`!)) |
| 3312 | black = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 3313 | else |
| 3314 | black = stp_malloccxx . . $ stp_malloc(bfcfa4d6b7f7ef64).(privdata.heightcxx . . $ $anonymous_type_64c66a939155289b_0#height.); |
| 3315 | if (privdata.do_6colorcxx . . $ $anonymous_type_64c66a939155289b_0#do_6color.) |
| 3316 | { |
| 3317 | lcyan = stp_malloccxx . . $ stp_malloc(bfcfa4d6b7f7ef64).(privdata.heightcxx . . $ $anonymous_type_64c66a939155289b_0#height.); |
| 3318 | lmagenta = stp_malloccxx . . $ stp_malloc(bfcfa4d6b7f7ef64).(privdata.heightcxx . . $ $anonymous_type_64c66a939155289b_0#height.); |
| 3319 | } |
| 3320 | else |
| 3321 | { |
| 3322 | lcyan = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 3323 | lmagenta = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 3324 | } |
| 3325 | } |
| 3326 | |
| 3327 | if (black) |
| 3328 | { |
| 3329 | if (cyan) |
| 3330 | stp_set_string_parametercxx . . $ stp_set_string_parameter(7405204ff890c7b8).(v, "STPIOutputType", "KCMY"); |
| 3331 | else |
| 3332 | stp_set_string_parametercxx . . $ stp_set_string_parameter(7405204ff890c7b8).(v, "STPIOutputType", "Grayscale"); |
| 3333 | } |
| 3334 | else if (caps->color_typecxx . . $ $anonymous_type_64c66a939155289b_3#color_type. & PCL_COLOR_RGBcxx . . $ `src/main/print-pcl.c:335:9`!) |
| 3335 | stp_set_string_parametercxx . . $ stp_set_string_parameter(7405204ff890c7b8).(v, "STPIOutputType", "RGB"); |
| 3336 | else |
| 3337 | stp_set_string_parametercxx . . $ stp_set_string_parameter(7405204ff890c7b8).(v, "STPIOutputType", "CMY"); |
| 3338 | |
| 3339 | /* Allocate buffer for pcl_mode2 tiff compression */ |
| 3340 | |
| 3341 | if ((caps->stp_printer_typecxx . . $ $anonymous_type_64c66a939155289b_3#stp_printer_type. & PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`!) == PCL_PRINTER_TIFFcxx . . $ `src/main/print-pcl.c:341:9`! && |
| 3342 | !(stp_get_debug_levelcxx . . $ stp_get_debug_level(f708dce9a8856c70).() & STP_DBG_NO_COMPRESSIONcxx . . $ `include/gutenprint/util.h:188:9`!)) |
| 3343 | { |
| 3344 | privdata.comp_bufcxx . . $ $anonymous_type_64c66a939155289b_0#comp_buf. = stp_malloccxx . . $ stp_malloc(bfcfa4d6b7f7ef64).((privdata.heightcxx . . $ $anonymous_type_64c66a939155289b_0#height. + 128 + 7) * 129 / 128); |
| 3345 | privdata.writefunccxx . . $ $anonymous_type_64c66a939155289b_0#writefunc. = pcl_mode2cxx . . $ pcl_mode2(1d73a4498ccb64b0).; |
| 3346 | } |
| 3347 | else |
| 3348 | { |
| 3349 | privdata.comp_bufcxx . . $ $anonymous_type_64c66a939155289b_0#comp_buf. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 3350 | privdata.writefunccxx . . $ $anonymous_type_64c66a939155289b_0#writefunc. = pcl_mode0cxx . . $ pcl_mode0(1d73a4498ccb64b0).; |
| 3351 | } |
| 3352 | |
| 3353 | /* Set up dithering for special printers. */ |
| 3354 | |
| 3355 | #if 1 /* Leave alone for now */ |
| 3356 | if (!stp_check_float_parametercxx . . $ stp_check_float_parameter(cff2817d3dcc2695).(v, "GCRLower", STP_PARAMETER_ACTIVEcxx . . $ STP_PARAMETER_ACTIVE.)) |
| 3357 | stp_set_default_float_parametercxx . . $ stp_set_default_float_parameter(bd523a1c1fbe60d3).(v, "GCRLower", .3); |
| 3358 | if (!stp_check_float_parametercxx . . $ stp_check_float_parameter(cff2817d3dcc2695).(v, "GCRUpper", STP_PARAMETER_ACTIVEcxx . . $ STP_PARAMETER_ACTIVE.)) |
| 3359 | stp_set_default_float_parametercxx . . $ stp_set_default_float_parameter(bd523a1c1fbe60d3).(v, "GCRUpper", .999); |
| 3360 | #endif |
| 3361 | stp_dither_initcxx . . $ stp_dither_init(d3ac8ed317e2c6e7).(v, image, out_width, xdpi, ydpi); |
| 3362 | |
| 3363 | if (privdata.nodithercxx . . $ $anonymous_type_64c66a939155289b_0#nodither.) |
| 3364 | { |
| 3365 | int i = 0; |
| 3366 | stp_channel_resetcxx . . $ stp_channel_reset(1a97b8462f9f913c).(v); |
| 3367 | if (black) |
| 3368 | stp_channel_addcxx . . $ stp_channel_add(be410e6e969dd53f).(v, i++, 0, 1.0); |
| 3369 | if (cyan) |
| 3370 | stp_channel_addcxx . . $ stp_channel_add(be410e6e969dd53f).(v, i++, 0, 1.0); |
| 3371 | if (magenta) |
| 3372 | stp_channel_addcxx . . $ stp_channel_add(be410e6e969dd53f).(v, i++, 0, 1.0); |
| 3373 | if (yellow) |
| 3374 | stp_channel_addcxx . . $ stp_channel_add(be410e6e969dd53f).(v, i++, 0, 1.0); |
| 3375 | } |
| 3376 | else |
| 3377 | { |
| 3378 | if (black) |
| 3379 | { |
| 3380 | stp_dither_add_channelcxx . . $ stp_dither_add_channel(4bbde36c7860b58e).(v, black, STP_ECOLOR_Kcxx . . $ `include/gutenprint/dither.h:49:9`!, 0); |
| 3381 | stp_channel_set_black_channelcxx . . $ stp_channel_set_black_channel(c8b26ae77f1a10bd).(v, STP_ECOLOR_Kcxx . . $ `include/gutenprint/dither.h:49:9`!); |
| 3382 | } |
| 3383 | if (cyan) |
| 3384 | stp_dither_add_channelcxx . . $ stp_dither_add_channel(4bbde36c7860b58e).(v, cyan, STP_ECOLOR_Ccxx . . $ `include/gutenprint/dither.h:50:9`!, 0); |
| 3385 | if (lcyan) |
| 3386 | stp_dither_add_channelcxx . . $ stp_dither_add_channel(4bbde36c7860b58e).(v, lcyan, STP_ECOLOR_Ccxx . . $ `include/gutenprint/dither.h:50:9`!, 1); |
| 3387 | if (magenta) |
| 3388 | stp_dither_add_channelcxx . . $ stp_dither_add_channel(4bbde36c7860b58e).(v, magenta, STP_ECOLOR_Mcxx . . $ `include/gutenprint/dither.h:51:9`!, 0); |
| 3389 | if (lmagenta) |
| 3390 | stp_dither_add_channelcxx . . $ stp_dither_add_channel(4bbde36c7860b58e).(v, lmagenta, STP_ECOLOR_Mcxx . . $ `include/gutenprint/dither.h:51:9`!, 1); |
| 3391 | if (yellow) |
| 3392 | stp_dither_add_channelcxx . . $ stp_dither_add_channel(4bbde36c7860b58e).(v, yellow, STP_ECOLOR_Ycxx . . $ `include/gutenprint/dither.h:52:9`!, 0); |
| 3393 | } |
| 3394 | |
| 3395 | /* Ensure that density does not exceed 1.0 */ |
| 3396 | |
| 3397 | if (!stp_check_float_parametercxx . . $ stp_check_float_parameter(cff2817d3dcc2695).(v, "Density", STP_PARAMETER_DEFAULTEDcxx . . $ STP_PARAMETER_DEFAULTED.)) |
| 3398 | { |
| 3399 | stp_set_float_parameter_activecxx . . $ stp_set_float_parameter_active(9e15dbe4857cde8c).(v, "Density", STP_PARAMETER_ACTIVEcxx . . $ STP_PARAMETER_ACTIVE.); |
| 3400 | stp_set_float_parametercxx . . $ stp_set_float_parameter(bd523a1c1fbe60d3).(v, "Density", 1.0); |
| 3401 | } |
| 3402 | |
| 3403 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v, "Density: %f\n", stp_get_float_parametercxx . . $ stp_get_float_parameter(ac3b1c02c916f219).(v, "Density")); |
| 3404 | if (stp_get_float_parametercxx . . $ stp_get_float_parameter(ac3b1c02c916f219).(v, "Density") > 1.0) |
| 3405 | stp_set_float_parametercxx . . $ stp_set_float_parameter(bd523a1c1fbe60d3).(v, "Density", 1.0); |
| 3406 | density = stp_get_float_parametercxx . . $ stp_get_float_parameter(ac3b1c02c916f219).(v, "Density"); |
| 3407 | |
| 3408 | if (privdata.do_cretcxx . . $ $anonymous_type_64c66a939155289b_0#do_cret.) /* 4-level printing for 800/1120 */ |
| 3409 | { |
| 3410 | if (yellow) |
| 3411 | stp_dither_set_inks_simplecxx . . $ stp_dither_set_inks_simple(4254c7b92a2614d5).(v, STP_ECOLOR_Ycxx . . $ `include/gutenprint/dither.h:52:9`!, 3, dot_sizes_use, 1.0, 0.08); |
| 3412 | if (black && !privdata.do_cretbcxx . . $ $anonymous_type_64c66a939155289b_0#do_cretb.) |
| 3413 | stp_dither_set_inks_simplecxx . . $ stp_dither_set_inks_simple(4254c7b92a2614d5).(v, STP_ECOLOR_Kcxx . . $ `include/gutenprint/dither.h:49:9`!, 3, dot_sizes_use, 1.0, 1.0); |
| 3414 | |
| 3415 | /* Note: no printer I know of does both CRet (4-level) and 6 color, but |
| 3416 | what the heck. variable_dither_ranges copied from print-escp2.c */ |
| 3417 | |
| 3418 | if (privdata.do_6colorcxx . . $ $anonymous_type_64c66a939155289b_0#do_6color.) /* Photo for 69x */ |
| 3419 | { |
| 3420 | stp_dither_set_inks_fullcxx . . $ stp_dither_set_inks_full(c3fa7fa481f2d18c).(v, STP_ECOLOR_Ccxx . . $ `include/gutenprint/dither.h:50:9`!, 6, variable_shadescxx . . $ variable_shades., 1.0, |
| 3421 | 0.31 / .5); |
| 3422 | stp_dither_set_inks_fullcxx . . $ stp_dither_set_inks_full(c3fa7fa481f2d18c).(v, STP_ECOLOR_Mcxx . . $ `include/gutenprint/dither.h:51:9`!, 6, variable_shadescxx . . $ variable_shades., 1.0, |
| 3423 | 0.61 / .97); |
| 3424 | } |
| 3425 | else |
| 3426 | { |
| 3427 | if (cyan) |
| 3428 | stp_dither_set_inks_simplecxx . . $ stp_dither_set_inks_simple(4254c7b92a2614d5).(v, STP_ECOLOR_Ccxx . . $ `include/gutenprint/dither.h:50:9`!, 3, dot_sizes_use, 1.0, |
| 3429 | 0.31 / .5); |
| 3430 | if (magenta) |
| 3431 | stp_dither_set_inks_simplecxx . . $ stp_dither_set_inks_simple(4254c7b92a2614d5).(v, STP_ECOLOR_Mcxx . . $ `include/gutenprint/dither.h:51:9`!, 3, dot_sizes_use, 1.0, |
| 3432 | 0.61 / .7); |
| 3433 | } |
| 3434 | } |
| 3435 | else if (privdata.do_6colorcxx . . $ $anonymous_type_64c66a939155289b_0#do_6color.) |
| 3436 | { |
| 3437 | /* Set light inks for 6 color printers. |
| 3438 | Numbers copied from print-escp2.c */ |
| 3439 | stp_dither_set_inks_fullcxx . . $ stp_dither_set_inks_full(c3fa7fa481f2d18c).(v, STP_ECOLOR_Ccxx . . $ `include/gutenprint/dither.h:50:9`!, 2, photo_dither_shadescxx . . $ photo_dither_shades., 1.0, |
| 3440 | 0.31 / .5); |
| 3441 | stp_dither_set_inks_fullcxx . . $ stp_dither_set_inks_full(c3fa7fa481f2d18c).(v, STP_ECOLOR_Mcxx . . $ `include/gutenprint/dither.h:51:9`!, 2, photo_dither_shadescxx . . $ photo_dither_shades., 1.0, |
| 3442 | 0.61 / .7); |
| 3443 | } |
| 3444 | if (black) |
| 3445 | stp_channel_set_density_adjustmentcxx . . $ stp_channel_set_density_adjustment(a8240c31a9a620dc).(v, STP_ECOLOR_Kcxx . . $ `include/gutenprint/dither.h:49:9`!, 0, |
| 3446 | get_double_paramcxx . . $ get_double_param(59eb18042deb636b).(v, "BlackDensity") * |
| 3447 | density); |
| 3448 | if (cyan) |
| 3449 | stp_channel_set_density_adjustmentcxx . . $ stp_channel_set_density_adjustment(a8240c31a9a620dc).(v, STP_ECOLOR_Ccxx . . $ `include/gutenprint/dither.h:50:9`!, 0, |
| 3450 | get_double_paramcxx . . $ get_double_param(59eb18042deb636b).(v, "CyanDensity") * |
| 3451 | density); |
| 3452 | if (magenta) |
| 3453 | stp_channel_set_density_adjustmentcxx . . $ stp_channel_set_density_adjustment(a8240c31a9a620dc).(v, STP_ECOLOR_Mcxx . . $ `include/gutenprint/dither.h:51:9`!, 0, |
| 3454 | get_double_paramcxx . . $ get_double_param(59eb18042deb636b).(v, "MagentaDensity") * |
| 3455 | density); |
| 3456 | if (yellow) |
| 3457 | stp_channel_set_density_adjustmentcxx . . $ stp_channel_set_density_adjustment(a8240c31a9a620dc).(v, STP_ECOLOR_Ycxx . . $ `include/gutenprint/dither.h:52:9`!, 0, |
| 3458 | get_double_paramcxx . . $ get_double_param(59eb18042deb636b).(v, "YellowDensity") * |
| 3459 | density); |
| 3460 | if (lcyan) |
| 3461 | stp_channel_set_density_adjustmentcxx . . $ stp_channel_set_density_adjustment(a8240c31a9a620dc). |
| 3462 | (v, STP_ECOLOR_Ccxx . . $ `include/gutenprint/dither.h:50:9`!, 1, (get_double_paramcxx . . $ get_double_param(59eb18042deb636b).(v, "CyanDensity") * |
| 3463 | get_double_paramcxx . . $ get_double_param(59eb18042deb636b).(v, "LightCyanTrans") * |
| 3464 | density)); |
| 3465 | if (lmagenta) |
| 3466 | stp_channel_set_density_adjustmentcxx . . $ stp_channel_set_density_adjustment(a8240c31a9a620dc). |
| 3467 | (v, STP_ECOLOR_Mcxx . . $ `include/gutenprint/dither.h:51:9`!, 1, (get_double_paramcxx . . $ get_double_param(59eb18042deb636b).(v, "MagentaDensity") * |
| 3468 | get_double_paramcxx . . $ get_double_param(59eb18042deb636b).(v, "LightMagentaTrans") * |
| 3469 | density)); |
| 3470 | |
| 3471 | |
| 3472 | if (!(caps->color_typecxx . . $ $anonymous_type_64c66a939155289b_3#color_type. & PCL_COLOR_RGBcxx . . $ `src/main/print-pcl.c:335:9`!)) |
| 3473 | { |
| 3474 | if (!stp_check_curve_parametercxx . . $ stp_check_curve_parameter(cff2817d3dcc2695).(v, "HueMap", STP_PARAMETER_ACTIVEcxx . . $ STP_PARAMETER_ACTIVE.)) |
| 3475 | { |
| 3476 | stp_curve_tcxx . . $ stp_curve_t# *hue_adjustment = |
| 3477 | stp_curve_create_from_stringcxx . . $ stp_curve_create_from_string(fc1a54117bc5f637).(standard_hue_adjustmentcxx . . $ standard_hue_adjustment.); |
| 3478 | stp_set_curve_parametercxx . . $ stp_set_curve_parameter(434798a77903eb98).(v, "HueMap", hue_adjustment); |
| 3479 | stp_curve_destroycxx . . $ stp_curve_destroy(357dc05c3c24eef1).(hue_adjustment); |
| 3480 | } |
| 3481 | if (!stp_check_curve_parametercxx . . $ stp_check_curve_parameter(cff2817d3dcc2695).(v, "LumMap", STP_PARAMETER_ACTIVEcxx . . $ STP_PARAMETER_ACTIVE.)) |
| 3482 | { |
| 3483 | stp_curve_tcxx . . $ stp_curve_t# *lum_adjustment = |
| 3484 | stp_curve_create_from_stringcxx . . $ stp_curve_create_from_string(fc1a54117bc5f637).(standard_lum_adjustmentcxx . . $ standard_lum_adjustment.); |
| 3485 | #if 0 |
| 3486 | /* |
| 3487 | * This would represent a change to the PCL driver in 5.2.12 |
| 3488 | * |
| 3489 | * This call was missing and has represented a bug (if a clearly |
| 3490 | * non-fatal one) in the PCL driver since time immemorial. The |
| 3491 | * non-use of the variable was finally called out by gcc6. In my |
| 3492 | * judgment, fixing the bug and changing the output of many PCL |
| 3493 | * printers (even if it were for the better) would be more problematic |
| 3494 | * than leaving the output as-is. |
| 3495 | * |
| 3496 | * - Robert Krawitz 2016-12-29 |
| 3497 | */ |
| 3498 | stp_set_curve_parameter(v, "LumMap", lum_adjustment); |
| 3499 | #endif |
| 3500 | stp_curve_destroycxx . . $ stp_curve_destroy(357dc05c3c24eef1).(lum_adjustment); |
| 3501 | } |
| 3502 | } |
| 3503 | |
| 3504 | if (printing_color && (caps->stp_printer_typecxx . . $ $anonymous_type_64c66a939155289b_3#stp_printer_type. & PCL_PRINTER_LJ_COLORcxx . . $ `src/main/print-pcl.c:347:9`!)) |
| 3505 | { |
| 3506 | stp_set_float_parametercxx . . $ stp_set_float_parameter(bd523a1c1fbe60d3).(v, "AppGammaScale", 1.0); |
| 3507 | (void) stp_color_initcxx . . $ stp_color_init(8474e95f5358b69d).(v, image, 256); |
| 3508 | } |
| 3509 | else |
| 3510 | (void) stp_color_initcxx . . $ stp_color_init(8474e95f5358b69d).(v, image, 65536); |
| 3511 | |
| 3512 | errdiv = image_height / out_height; |
| 3513 | errmod = image_height % out_height; |
| 3514 | errval = 0; |
| 3515 | errlast = -1; |
| 3516 | errline = 0; |
| 3517 | privdata.blank_linescxx . . $ $anonymous_type_64c66a939155289b_0#blank_lines. = 0; |
| 3518 | #ifndef PCL_DEBUG_DISABLE_BLANKLINE_REMOVAL |
| 3519 | privdata.do_blankcxx . . $ $anonymous_type_64c66a939155289b_0#do_blank. = ((caps->stp_printer_typecxx . . $ $anonymous_type_64c66a939155289b_3#stp_printer_type. & PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`!) == |
| 3520 | PCL_PRINTER_BLANKLINEcxx . . $ `src/main/print-pcl.c:344:9`!); |
| 3521 | #else |
| 3522 | privdata.do_blank = 0; |
| 3523 | #endif |
| 3524 | stp_allocate_component_datacxx . . $ stp_allocate_component_data(c746010122f90098).(v, "Driver", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &privdata); |
| 3525 | |
| 3526 | for (y = 0; y < out_height; y ++) |
| 3527 | { |
| 3528 | int duplicate_line = 1; |
| 3529 | if (errline != errlast) |
| 3530 | { |
| 3531 | errlast = errline; |
| 3532 | duplicate_line = 0; |
| 3533 | if (stp_color_get_rowcxx . . $ stp_color_get_row(ba7b466a9562988e).(v, image, errline, &zero_mask)) |
| 3534 | { |
| 3535 | status = 2; |
| 3536 | break; |
| 3537 | } |
| 3538 | } |
| 3539 | if (privdata.nodithercxx . . $ $anonymous_type_64c66a939155289b_0#nodither.) |
| 3540 | { |
| 3541 | if (! duplicate_line) |
| 3542 | { |
| 3543 | unsigned row_errdiv = image_width / out_width; |
| 3544 | unsigned row_errmod = image_width % out_width; |
| 3545 | unsigned row_errval = 0; |
| 3546 | unsigned row_errlast = -1; |
| 3547 | unsigned row_errcol = 0; |
| 3548 | unsigned short *output = stp_channel_get_outputcxx . . $ stp_channel_get_output(58f317534f8c8659).(v); |
| 3549 | unsigned char *optr = privdata.row_bufcxx . . $ $anonymous_type_64c66a939155289b_0#row_buf.; |
| 3550 | unsigned int x; |
| 3551 | for (x = 0; x < out_width; x++) |
| 3552 | { |
| 3553 | if (row_errcol != row_errlast) |
| 3554 | { |
| 3555 | row_errlast = row_errcol; |
| 3556 | optr[0] = output[(row_errcol * 3) + 0] / (unsigned short) 257; |
| 3557 | optr[1] = output[(row_errcol * 3) + 1] / (unsigned short) 257; |
| 3558 | optr[2] = output[(row_errcol * 3) + 2] / (unsigned short) 257; |
| 3559 | } |
| 3560 | else |
| 3561 | { |
| 3562 | optr[0] = optr[-3]; |
| 3563 | optr[1] = optr[-2]; |
| 3564 | optr[2] = optr[-1]; |
| 3565 | } |
| 3566 | optr += 3; |
| 3567 | row_errval += row_errmod; |
| 3568 | row_errcol += row_errdiv; |
| 3569 | if (row_errval >= out_width) |
| 3570 | { |
| 3571 | row_errval -= out_width; |
| 3572 | row_errcol++; |
| 3573 | } |
| 3574 | } |
| 3575 | } |
| 3576 | (*(privdata.writefunccxx . . $ $anonymous_type_64c66a939155289b_0#writefunc.))(v, privdata.row_bufcxx . . $ $anonymous_type_64c66a939155289b_0#row_buf., privdata.heightcxx . . $ $anonymous_type_64c66a939155289b_0#height., 1); |
| 3577 | } |
| 3578 | else |
| 3579 | { |
| 3580 | stp_dithercxx . . $ stp_dither(c27f96f0d387255a).(v, y, duplicate_line, zero_mask, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 3581 | pcl_printfunccxx . . $ pcl_printfunc(1a97b8462f9f913c).(v); |
| 3582 | } |
| 3583 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v,"pcl_print: y = %d, line = %d, val = %d, mod = %d, height = %d\n", |
| 3584 | y, errline, errval, errmod, out_height); |
| 3585 | errval += errmod; |
| 3586 | errline += errdiv; |
| 3587 | if (errval >= out_height) |
| 3588 | { |
| 3589 | errval -= out_height; |
| 3590 | errline ++; |
| 3591 | } |
| 3592 | } |
| 3593 | |
| 3594 | /* Output trailing blank lines (may not be required?) */ |
| 3595 | |
| 3596 | if (privdata.blank_linescxx . . $ $anonymous_type_64c66a939155289b_0#blank_lines. > 1) |
| 3597 | { |
| 3598 | privdata.blank_linescxx . . $ $anonymous_type_64c66a939155289b_0#blank_lines.--; /* correct for one already output */ |
| 3599 | stp_dprintfcxx . . $ stp_dprintf(13526ca24396f6ac).(STP_DBG_PCLcxx . . $ `include/gutenprint/util.h:170:9`!, v, "Blank Lines = %d\n", privdata.blank_linescxx . . $ $anonymous_type_64c66a939155289b_0#blank_lines.); |
| 3600 | stp_zprintfcxx . . $ stp_zprintf(7aef7aa9b820d38).(v, "\033*b%dY", privdata.blank_linescxx . . $ $anonymous_type_64c66a939155289b_0#blank_lines.); |
| 3601 | privdata.blank_linescxx . . $ $anonymous_type_64c66a939155289b_0#blank_lines.=0; |
| 3602 | } |
| 3603 | |
| 3604 | stp_image_concludecxx . . $ stp_image_conclude(7010b42a94b47a79).(image); |
| 3605 | |
| 3606 | /* |
| 3607 | * Cleanup... |
| 3608 | */ |
| 3609 | |
| 3610 | if (black != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 3611 | stp_freecxx . . $ stp_free(5d22bdacc48458e8).(black); |
| 3612 | if (cyan != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 3613 | { |
| 3614 | stp_freecxx . . $ stp_free(5d22bdacc48458e8).(cyan); |
| 3615 | stp_freecxx . . $ stp_free(5d22bdacc48458e8).(magenta); |
| 3616 | stp_freecxx . . $ stp_free(5d22bdacc48458e8).(yellow); |
| 3617 | } |
| 3618 | if (lcyan != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 3619 | { |
| 3620 | stp_freecxx . . $ stp_free(5d22bdacc48458e8).(lcyan); |
| 3621 | stp_freecxx . . $ stp_free(5d22bdacc48458e8).(lmagenta); |
| 3622 | } |
| 3623 | |
| 3624 | if (privdata.comp_bufcxx . . $ $anonymous_type_64c66a939155289b_0#comp_buf. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 3625 | stp_freecxx . . $ stp_free(5d22bdacc48458e8).(privdata.comp_bufcxx . . $ $anonymous_type_64c66a939155289b_0#comp_buf.); |
| 3626 | if (privdata.row_bufcxx . . $ $anonymous_type_64c66a939155289b_0#row_buf. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 3627 | stp_freecxx . . $ stp_free(5d22bdacc48458e8).(privdata.row_bufcxx . . $ $anonymous_type_64c66a939155289b_0#row_buf.); |
| 3628 | |
| 3629 | if ((caps->stp_printer_typecxx . . $ $anonymous_type_64c66a939155289b_3#stp_printer_type. & PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`!) == PCL_PRINTER_NEW_ERGcxx . . $ `src/main/print-pcl.c:339:9`!) |
| 3630 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*rC", v); |
| 3631 | else |
| 3632 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033*rB", v); |
| 3633 | |
| 3634 | if ((privdata.duplexcxx . . $ $anonymous_type_64c66a939155289b_0#duplex. == 1) && ((page_number & 1) == 0)) |
| 3635 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\014", v); /* Form feed */ |
| 3636 | else |
| 3637 | { |
| 3638 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033&l0H", v); /* Eject page */ |
| 3639 | if (privdata.do_cretbcxx . . $ $anonymous_type_64c66a939155289b_0#do_cretb.) |
| 3640 | stp_zprintfcxx . . $ stp_zprintf(7aef7aa9b820d38).(v, "\033%%-12345X\n"); |
| 3641 | stp_putscxx . . $ stp_puts(35a89ecf160f646a).("\033E", v); /* PCL reset */ |
| 3642 | } |
| 3643 | return status; |
| 3644 | } |
| 3645 | |
| 3646 | static int |
| 3647 | pcl_printcxx . . $ pcl_print(be5d09c432b01f95).(const stp_vars_tcxx . . $ stp_vars_t# *v, stp_image_tcxx . . $ stp_image_t# *image) |
| 3648 | { |
| 3649 | int status; |
| 3650 | stp_vars_tcxx . . $ stp_vars_t# *nv = stp_vars_create_copycxx . . $ stp_vars_create_copy(d6c73ebbfa1de3f9).(v); |
| 3651 | status = pcl_do_printcxx . . $ pcl_do_print(54c0568b42af3904).(nv, image); |
| 3652 | stp_vars_destroycxx . . $ stp_vars_destroy(1a97b8462f9f913c).(nv); |
| 3653 | return status; |
| 3654 | } |
| 3655 | |
| 3656 | static const stp_printfuncs_tcxx . . $ stp_printfuncs_t# print_pcl_printfuncscxx . . $ print_pcl_printfuncs. = |
| 3657 | { |
| 3658 | pcl_list_parameterscxx . . $ pcl_list_parameters(817585d40f809196)., |
| 3659 | pcl_parameterscxx . . $ pcl_parameters(dfd5b9531b51a6d2)., |
| 3660 | stp_default_media_sizecxx . . $ stp_default_media_size(2eafa46ec96dc268)., |
| 3661 | pcl_imageable_areacxx . . $ pcl_imageable_area(25e50967534aa153)., |
| 3662 | pcl_imageable_areacxx . . $ pcl_imageable_area(25e50967534aa153)., |
| 3663 | pcl_limitcxx . . $ pcl_limit(25e50967534aa153)., |
| 3664 | pcl_printcxx . . $ pcl_print(be5d09c432b01f95)., |
| 3665 | pcl_describe_resolutioncxx . . $ pcl_describe_resolution(5883f070c6139f40)., |
| 3666 | pcl_describe_outputcxx . . $ pcl_describe_output(4be828c28602b542)., |
| 3667 | stp_verify_printer_paramscxx . . $ stp_verify_printer_params(60b55b6a36641e80)., |
| 3668 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 3669 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 3670 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 3671 | pcl_describe_papersizecxx . . $ pcl_describe_papersize(977e5bf217e59ec). |
| 3672 | }; |
| 3673 | |
| 3674 | |
| 3675 | /* |
| 3676 | * 'pcl_mode0()' - Send PCL graphics using mode 0 (no) compression. |
| 3677 | */ |
| 3678 | |
| 3679 | static void |
| 3680 | pcl_mode0cxx . . $ pcl_mode0(1d73a4498ccb64b0).(stp_vars_tcxx . . $ stp_vars_t# *v, /* I - Print file or command */ |
| 3681 | unsigned char *line, /* I - Output bitmap data */ |
| 3682 | int height, /* I - Height of bitmap data */ |
| 3683 | int last_plane) /* I - True if this is the last plane */ |
| 3684 | { |
| 3685 | stp_zprintfcxx . . $ stp_zprintf(7aef7aa9b820d38).(v, "\033*b%d%c", height, last_plane ? 'W' : 'V'); |
| 3686 | stp_zfwritecxx . . $ stp_zfwrite(e7e85bda1a353e8c).((const char *) line, height, 1, v); |
| 3687 | } |
| 3688 | |
| 3689 | |
| 3690 | /* |
| 3691 | * 'pcl_mode2()' - Send PCL graphics using mode 2 (TIFF) compression. |
| 3692 | */ |
| 3693 | |
| 3694 | static void |
| 3695 | pcl_mode2cxx . . $ pcl_mode2(1d73a4498ccb64b0).(stp_vars_tcxx . . $ stp_vars_t# *v, /* I - Print file or command */ |
| 3696 | unsigned char *line, /* I - Output bitmap data */ |
| 3697 | int height, /* I - Height of bitmap data */ |
| 3698 | int last_plane) /* I - True if this is the last plane */ |
| 3699 | { |
| 3700 | pcl_privdata_tcxx . . $ pcl_privdata_t# *privdata = |
| 3701 | (pcl_privdata_tcxx . . $ pcl_privdata_t# *) stp_get_component_datacxx . . $ stp_get_component_data(2bc0070dfdce2f04).(v, "Driver"); |
| 3702 | unsigned char *comp_buf = privdata->comp_bufcxx . . $ $anonymous_type_64c66a939155289b_0#comp_buf.; |
| 3703 | unsigned char *comp_ptr; /* Current slot in buffer */ |
| 3704 | |
| 3705 | stp_pack_tiffcxx . . $ stp_pack_tiff(89b35e14f2325ba5).(v, line, height, comp_buf, &comp_ptr, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 3706 | |
| 3707 | /* |
| 3708 | * Send a line of raster graphics... |
| 3709 | */ |
| 3710 | |
| 3711 | stp_zprintfcxx . . $ stp_zprintf(7aef7aa9b820d38).(v, "\033*b%d%c", (int)(comp_ptr - comp_buf), last_plane ? 'W' : 'V'); |
| 3712 | stp_zfwritecxx . . $ stp_zfwrite(e7e85bda1a353e8c).((const char *)comp_buf, comp_ptr - comp_buf, 1, v); |
| 3713 | } |
| 3714 | |
| 3715 | |
| 3716 | static stp_family_tcxx . . $ stp_family_t# print_pcl_module_datacxx . . $ print_pcl_module_data. = |
| 3717 | { |
| 3718 | &print_pcl_printfuncscxx . . $ print_pcl_printfuncs., |
| 3719 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! |
| 3720 | }; |
| 3721 | |
| 3722 | |
| 3723 | static int |
| 3724 | print_pcl_module_initcxx . . $ print_pcl_module_init(b126dc7c1de90089).(void) |
| 3725 | { |
| 3726 | return stpi_family_registercxx . . $ stpi_family_register(29ae8ff464c7f7e5).(print_pcl_module_datacxx . . $ print_pcl_module_data..printer_listcxx . . $ stp_family#printer_list.); |
| 3727 | } |
| 3728 | |
| 3729 | |
| 3730 | static int |
| 3731 | print_pcl_module_exitcxx . . $ print_pcl_module_exit(b126dc7c1de90089).(void) |
| 3732 | { |
| 3733 | return stpi_family_unregistercxx . . $ stpi_family_unregister(29ae8ff464c7f7e5).(print_pcl_module_datacxx . . $ print_pcl_module_data..printer_listcxx . . $ stp_family#printer_list.); |
| 3734 | } |
| 3735 | |
| 3736 | |
| 3737 | /* Module header */ |
| 3738 | #define stp_module_versioncxx . . $ `src/main/print-pcl.c:3738:9`! print_pcl_LTX_stp_module_version |
| 3739 | #define stp_module_datacxx . . $ `src/main/print-pcl.c:3739:9`! print_pcl_LTX_stp_module_data |
| 3740 | |
| 3741 | stp_module_version_tcxx . . $ stp_module_version_t# stp_module_versioncxx . . $ `src/main/print-pcl.c:3738:9`! = {0, 0}; |
| 3742 | |
| 3743 | stp_module_tcxx . . $ stp_module_t# stp_module_datacxx . . $ `src/main/print-pcl.c:3739:9`! = |
| 3744 | { |
| 3745 | "pcl", |
| 3746 | VERSIONcxx . . $ `../../config.h:204:9`!, |
| 3747 | "PCL family driver", |
| 3748 | STP_MODULE_CLASS_FAMILYcxx . . $ STP_MODULE_CLASS_FAMILY., |
| 3749 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 3750 | print_pcl_module_initcxx . . $ print_pcl_module_init(b126dc7c1de90089)., |
| 3751 | print_pcl_module_exitcxx . . $ print_pcl_module_exit(b126dc7c1de90089)., |
| 3752 | (void *) &print_pcl_module_datacxx . . $ print_pcl_module_data. |
| 3753 | }; |