• Home
  • Raw
  • Download

Lines Matching refs:attr

34   ppd_attr_t	*attr;			// PPD attribute  in import_ppd()  local
114 attr = ppdFindAttr(ppd, "FileVersion", NULL); in import_ppd()
115 driver->version = new ppdcString(attr ? attr->value : NULL); in import_ppd()
148 attr = ppdFindAttr(ppd, "DefaultFont", NULL); in import_ppd()
149 driver->default_font = new ppdcString(attr ? attr->value : NULL); in import_ppd()
238 attr = ppd->attrs[i]; in import_ppd()
240 if (!strcmp(attr->name, "Font")) in import_ppd()
250 if (sscanf(attr->value, "%s%*[^\"]\"%[^\"]\"%s%s", encoding, version, in import_ppd()
254 attr->value); in import_ppd()
263 font = new ppdcFont(attr->spec, encoding, version, charset, fstatus); in import_ppd()
267 else if (!strcmp(attr->name, "CustomPageSize")) in import_ppd()
269 driver->set_custom_size_code(attr->value); in import_ppd()
271 else if ((strncmp(attr->name, "Default", 7) || in import_ppd()
272 !strcmp(attr->name, "DefaultColorSpace")) && in import_ppd()
273 strcmp(attr->name, "ColorDevice") && in import_ppd()
274 strcmp(attr->name, "Manufacturer") && in import_ppd()
275 strcmp(attr->name, "ModelName") && in import_ppd()
276 strcmp(attr->name, "MaxMediaHeight") && in import_ppd()
277 strcmp(attr->name, "MaxMediaWidth") && in import_ppd()
278 strcmp(attr->name, "NickName") && in import_ppd()
279 strcmp(attr->name, "ParamCustomPageSize") && in import_ppd()
280 strcmp(attr->name, "ShortNickName") && in import_ppd()
281 strcmp(attr->name, "Throughput") && in import_ppd()
282 strcmp(attr->name, "PCFileName") && in import_ppd()
283 strcmp(attr->name, "FileVersion") && in import_ppd()
284 strcmp(attr->name, "FormatVersion") && in import_ppd()
285 strcmp(attr->name, "HWMargins") && in import_ppd()
286 strcmp(attr->name, "VariablePaperSize") && in import_ppd()
287 strcmp(attr->name, "LanguageEncoding") && in import_ppd()
288 strcmp(attr->name, "LanguageVersion") && in import_ppd()
289 strcmp(attr->name, "cupsFilter") && in import_ppd()
290 strcmp(attr->name, "cupsFlipDuplex") && in import_ppd()
291 strcmp(attr->name, "cupsLanguages") && in import_ppd()
292 strcmp(attr->name, "cupsManualCopies") && in import_ppd()
293 strcmp(attr->name, "cupsModelNumber") && in import_ppd()
294 strcmp(attr->name, "cupsVersion")) in import_ppd()
296 if ((ptr = strchr(attr->name, '.')) != NULL && in import_ppd()
297 ((ptr - attr->name) == 2 || (ptr - attr->name) == 5)) in import_ppd()
300 if (isalpha(attr->name[0] & 255) && in import_ppd()
301 isalpha(attr->name[1] & 255) && in import_ppd()
302 (attr->name[2] == '.' || in import_ppd()
303 (attr->name[2] == '_' && isalpha(attr->name[3] & 255) && in import_ppd()
304 isalpha(attr->name[4] & 255)))) in import_ppd()
309 driver->add_attr(new ppdcAttr(attr->name, attr->spec, attr->text, in import_ppd()
310 attr->value)); in import_ppd()
312 else if (!strncmp(attr->name, "Default", 7) && in import_ppd()
313 !ppdFindOption(ppd, attr->name + 7) && in import_ppd()
314 strcmp(attr->name, "DefaultFont") && in import_ppd()
315 strcmp(attr->name, "DefaultImageableArea") && in import_ppd()
316 strcmp(attr->name, "DefaultPaperDimension") && in import_ppd()
317 strcmp(attr->name, "DefaultFont")) in import_ppd()
320 driver->add_attr(new ppdcAttr(attr->name, attr->spec, attr->text, in import_ppd()
321 attr->value)); in import_ppd()