• Home
  • Raw
  • Download

Lines Matching refs:ppd

41 static void	pwg_unppdize_name(const char *ppd, char *name, size_t namesize,
55 ppd_file_t *ppd, /* I - PPD file */ in _cupsConvertOptions() argument
246 if ((choice = ppdFindMarkedChoice(ppd, "OutputBin")) != NULL) in _cupsConvertOptions()
257 if ((choice = ppdFindMarkedChoice(ppd, "ColorModel")) != NULL) in _cupsConvertOptions()
279 else if ((choice = ppdFindMarkedChoice(ppd, "cupsPrintQuality")) != NULL) in _cupsConvertOptions()
291 else if (pc->sides_option && (choice = ppdFindMarkedChoice(ppd, pc->sides_option)) != NULL) in _cupsConvertOptions()
629 map->ppd = _cupsStrAlloc(ppd_keyword); in _ppdCacheCreateWithFile()
684 size->map.ppd = _cupsStrAlloc(ppd_keyword); in _ppdCacheCreateWithFile()
768 map->ppd = _cupsStrAlloc(ppd_keyword); in _ppdCacheCreateWithFile()
817 map->ppd = _cupsStrAlloc(ppd_keyword); in _ppdCacheCreateWithFile()
956 _ppdCacheCreateWithPPD(ppd_file_t *ppd) /* I - PPD file */ in _ppdCacheCreateWithPPD() argument
1001 DEBUG_printf(("_ppdCacheCreateWithPPD(ppd=%p)", ppd)); in _ppdCacheCreateWithPPD()
1007 if (!ppd) in _ppdCacheCreateWithPPD()
1024 if (ppd->num_sizes > 0) in _ppdCacheCreateWithPPD()
1026 if ((pc->sizes = calloc((size_t)ppd->num_sizes, sizeof(pwg_size_t))) == NULL) in _ppdCacheCreateWithPPD()
1029 "pwg_size_t's.", ppd->num_sizes)); in _ppdCacheCreateWithPPD()
1033 for (i = ppd->num_sizes, pwg_size = pc->sizes, ppd_size = ppd->sizes; in _ppdCacheCreateWithPPD()
1133 _cupsStrFree(old_size->map.ppd); in _ppdCacheCreateWithPPD()
1155 new_size->map.ppd = _cupsStrAlloc(ppd_size->name); in _ppdCacheCreateWithPPD()
1167 if (ppd->variable_sizes) in _ppdCacheCreateWithPPD()
1174 PWG_FROM_POINTS(ppd->custom_max[0]), in _ppdCacheCreateWithPPD()
1175 PWG_FROM_POINTS(ppd->custom_max[1]), NULL); in _ppdCacheCreateWithPPD()
1177 pc->custom_max_width = PWG_FROM_POINTS(ppd->custom_max[0]); in _ppdCacheCreateWithPPD()
1178 pc->custom_max_length = PWG_FROM_POINTS(ppd->custom_max[1]); in _ppdCacheCreateWithPPD()
1181 PWG_FROM_POINTS(ppd->custom_min[0]), in _ppdCacheCreateWithPPD()
1182 PWG_FROM_POINTS(ppd->custom_min[1]), NULL); in _ppdCacheCreateWithPPD()
1184 pc->custom_min_width = PWG_FROM_POINTS(ppd->custom_min[0]); in _ppdCacheCreateWithPPD()
1185 pc->custom_min_length = PWG_FROM_POINTS(ppd->custom_min[1]); in _ppdCacheCreateWithPPD()
1187 pc->custom_size.left = PWG_FROM_POINTS(ppd->custom_margins[0]); in _ppdCacheCreateWithPPD()
1188 pc->custom_size.bottom = PWG_FROM_POINTS(ppd->custom_margins[1]); in _ppdCacheCreateWithPPD()
1189 pc->custom_size.right = PWG_FROM_POINTS(ppd->custom_margins[2]); in _ppdCacheCreateWithPPD()
1190 pc->custom_size.top = PWG_FROM_POINTS(ppd->custom_margins[3]); in _ppdCacheCreateWithPPD()
1197 if ((input_slot = ppdFindOption(ppd, "InputSlot")) == NULL) in _ppdCacheCreateWithPPD()
1198 input_slot = ppdFindOption(ppd, "HPPaperSource"); in _ppdCacheCreateWithPPD()
1255 map->ppd = _cupsStrAlloc(choice->choice); in _ppdCacheCreateWithPPD()
1263 if ((media_type = ppdFindOption(ppd, "MediaType")) != NULL) in _ppdCacheCreateWithPPD()
1319 map->ppd = _cupsStrAlloc(choice->choice); in _ppdCacheCreateWithPPD()
1327 if ((output_bin = ppdFindOption(ppd, "OutputBin")) != NULL) in _ppdCacheCreateWithPPD()
1346 map->ppd = _cupsStrAlloc(choice->choice); in _ppdCacheCreateWithPPD()
1350 if ((ppd_attr = ppdFindAttr(ppd, "APPrinterPreset", NULL)) != NULL) in _ppdCacheCreateWithPPD()
1445 while ((ppd_attr = ppdFindNextAttr(ppd, "APPrinterPreset", NULL)) != NULL); in _ppdCacheCreateWithPPD()
1460 if ((color_model = ppdFindOption(ppd, "ColorModel")) != NULL && in _ppdCacheCreateWithPPD()
1466 else if ((color_model = ppdFindOption(ppd, "HPColorMode")) != NULL && in _ppdCacheCreateWithPPD()
1472 else if ((color_model = ppdFindOption(ppd, "BRMonoColor")) != NULL && in _ppdCacheCreateWithPPD()
1478 else if ((color_model = ppdFindOption(ppd, "CNIJSGrayScale")) != NULL && in _ppdCacheCreateWithPPD()
1484 else if ((color_model = ppdFindOption(ppd, "HPColorAsGray")) != NULL && in _ppdCacheCreateWithPPD()
1553 if ((duplex = ppdFindOption(ppd, "Duplex")) == NULL) in _ppdCacheCreateWithPPD()
1554 if ((duplex = ppdFindOption(ppd, "JCLDuplex")) == NULL) in _ppdCacheCreateWithPPD()
1555 if ((duplex = ppdFindOption(ppd, "EFDuplex")) == NULL) in _ppdCacheCreateWithPPD()
1556 if ((duplex = ppdFindOption(ppd, "EFDuplexing")) == NULL) in _ppdCacheCreateWithPPD()
1557 duplex = ppdFindOption(ppd, "KD03Duplex"); in _ppdCacheCreateWithPPD()
1593 if ((ppd_attr = ppdFindAttr(ppd, "cupsFilter2", NULL)) != NULL) in _ppdCacheCreateWithPPD()
1599 while ((ppd_attr = ppdFindNextAttr(ppd, "cupsFilter2", NULL)) != NULL); in _ppdCacheCreateWithPPD()
1601 else if (ppd->num_filters > 0) in _ppdCacheCreateWithPPD()
1603 for (i = 0; i < ppd->num_filters; i ++) in _ppdCacheCreateWithPPD()
1604 cupsArrayAdd(pc->filters, ppd->filters[i]); in _ppdCacheCreateWithPPD()
1621 ((ppd_attr = ppdFindAttr(ppd, "cupsCommands", NULL)) == NULL || in _ppdCacheCreateWithPPD()
1643 if ((ppd_attr = ppdFindAttr(ppd, "cupsPreFilter", NULL)) != NULL) in _ppdCacheCreateWithPPD()
1653 while ((ppd_attr = ppdFindNextAttr(ppd, "cupsPreFilter", NULL)) != NULL); in _ppdCacheCreateWithPPD()
1656 if ((ppd_attr = ppdFindAttr(ppd, "cupsSingleFile", NULL)) != NULL) in _ppdCacheCreateWithPPD()
1663 if (ppd->product) in _ppdCacheCreateWithPPD()
1664 pc->product = _cupsStrAlloc(ppd->product); in _ppdCacheCreateWithPPD()
1670 if ((ppd_attr = ppdFindAttr(ppd, "cupsIPPFinishings", NULL)) != NULL) in _ppdCacheCreateWithPPD()
1692 while ((ppd_attr = ppdFindNextAttr(ppd, "cupsIPPFinishings", in _ppdCacheCreateWithPPD()
1705 if ((ppd_option = ppdFindOption(ppd, "StapleLocation")) != NULL) in _ppdCacheCreateWithPPD()
1723 if ((ppd_option = ppdFindOption(ppd, "RIPunch")) != NULL) in _ppdCacheCreateWithPPD()
1749 if ((ppd_option = ppdFindOption(ppd, "BindEdge")) != NULL) in _ppdCacheCreateWithPPD()
1765 if ((ppd_option = ppdFindOption(ppd, "FoldType")) != NULL) in _ppdCacheCreateWithPPD()
1787 if ((ppd_option = ppdFindOption(ppd, "RIFoldType")) != NULL) in _ppdCacheCreateWithPPD()
1808 if ((ppd_attr = ppdFindAttr(ppd, "cupsMaxCopies", NULL)) != NULL) in _ppdCacheCreateWithPPD()
1810 else if (ppd->manual_copies) in _ppdCacheCreateWithPPD()
1820 if ((ppd_attr = ppdFindAttr(ppd, "cupsChargeInfoURI", NULL)) != NULL) in _ppdCacheCreateWithPPD()
1823 if ((ppd_attr = ppdFindAttr(ppd, "cupsJobAccountId", NULL)) != NULL) in _ppdCacheCreateWithPPD()
1826 if ((ppd_attr = ppdFindAttr(ppd, "cupsJobAccountingUserId", NULL)) != NULL) in _ppdCacheCreateWithPPD()
1829 if ((ppd_attr = ppdFindAttr(ppd, "cupsJobPassword", NULL)) != NULL) in _ppdCacheCreateWithPPD()
1832 if ((ppd_attr = ppdFindAttr(ppd, "cupsMandatory", NULL)) != NULL) in _ppdCacheCreateWithPPD()
1843 for (ppd_attr = ppdFindAttr(ppd, "cupsICCProfile", NULL); in _ppdCacheCreateWithPPD()
1845 ppd_attr = ppdFindNextAttr(ppd, "cupsICCProfile", NULL)) in _ppdCacheCreateWithPPD()
1848 if ((ppd_attr = ppdFindAttr(ppd, "APPrinterIconPath", NULL)) != NULL) in _ppdCacheCreateWithPPD()
1898 _cupsStrFree(map->ppd); in _ppdCacheDestroy()
1909 _cupsStrFree(size->map.ppd); in _ppdCacheDestroy()
1923 _cupsStrFree(map->ppd); in _ppdCacheDestroy()
1934 _cupsStrFree(map->ppd); in _ppdCacheDestroy()
1988 if (!_cups_strcasecmp(output_bin, pc->bins[i].ppd)) in _ppdCacheGetBin()
2208 return (pc->sources[i].ppd); in _ppdCacheGetInputSlot()
2262 return (pc->types[i].ppd); in _ppdCacheGetMediaType()
2296 return (pc->bins[i].ppd); in _ppdCacheGetOutputBin()
2381 (int)(size - pc->sizes), size->map.pwg, size->map.ppd)); in _ppdCacheGetPageSize()
2383 if (!_cups_strcasecmp(ppd_name, size->map.ppd) || in _ppdCacheGetPageSize()
2391 return (size->map.ppd); in _ppdCacheGetPageSize()
2482 DEBUG_printf(("1_ppdCacheGetPageSize: Returning \"%s\"", size->map.ppd)); in _ppdCacheGetPageSize()
2484 return (size->map.ppd); in _ppdCacheGetPageSize()
2491 closest->map.ppd)); in _ppdCacheGetPageSize()
2493 return (closest->map.ppd); in _ppdCacheGetPageSize()
2631 if (!_cups_strcasecmp(page_size, size->map.ppd) || in _ppdCacheGetSize()
2677 if (!_cups_strcasecmp(input_slot, source->ppd)) in _ppdCacheGetSource()
2706 if (!_cups_strcasecmp(media_type, type->ppd)) in _ppdCacheGetType()
2768 cupsFilePrintf(fp, "Bin %s %s\n", map->pwg, map->ppd); in _ppdCacheWriteFile()
2778 size->map.ppd, size->width, size->length, size->left, in _ppdCacheWriteFile()
2798 cupsFilePrintf(fp, "Source %s %s\n", map->pwg, map->ppd); in _ppdCacheWriteFile()
2809 cupsFilePrintf(fp, "Type %s %s\n", map->pwg, map->ppd); in _ppdCacheWriteFile()
3239 strlcpy(ppdname, pwg->ppd, sizeof(ppdname)); in _ppdCreateFromIPP()
3247 strlcpy(ppdname, pwg->ppd, sizeof(ppdname)); in _ppdCreateFromIPP()
3279 if (cupsArrayFind(sizes, (void *)pwg->ppd)) in _ppdCreateFromIPP()
3281 cupsFilePrintf(fp, "*%% warning: Duplicate size '%s' reported by printer.\n", pwg->ppd); in _ppdCreateFromIPP()
3285 cupsArrayAdd(sizes, (void *)pwg->ppd); in _ppdCreateFromIPP()
3290 …cupsFilePrintf(fp, "*PageSize %s: \"<</PageSize[%s %s]>>setpagedevice\"\n", pwg->ppd, twidth, tlen… in _ppdCreateFromIPP()
3319 if (cupsArrayFind(sizes, (void *)pwg->ppd)) in _ppdCreateFromIPP()
3322 cupsArrayAdd(sizes, (void *)pwg->ppd); in _ppdCreateFromIPP()
3327 …cupsFilePrintf(fp, "*PageRegion %s: \"<</PageSize[%s %s]>>setpagedevice\"\n", pwg->ppd, twidth, tl… in _ppdCreateFromIPP()
3359 if (cupsArrayFind(sizes, (void *)pwg->ppd)) in _ppdCreateFromIPP()
3362 cupsArrayAdd(sizes, (void *)pwg->ppd); in _ppdCreateFromIPP()
3371 …cupsFilePrintf(fp, "*ImageableArea %s: \"%s %s %s %s\"\n", pwg->ppd, tleft, tbottom, tright, ttop); in _ppdCreateFromIPP()
3372 cupsFilePrintf(fp, "*PaperDimension %s: \"%s %s\"\n", pwg->ppd, twidth, tlength); in _ppdCreateFromIPP()
4375 if (media->ppd) in _pwgPageSizeForMedia()
4381 strlcpy(name, media->ppd, namesize); in _pwgPageSizeForMedia()
4534 pwg_unppdize_name(const char *ppd, /* I - PPD keyword */ in pwg_unppdize_name() argument
4543 if (_cups_islower(*ppd)) in pwg_unppdize_name()
4551 for (ppdptr = ppd + 1; *ppdptr; ppdptr ++) in pwg_unppdize_name()
4557 strlcpy(name, ppd, namesize); in pwg_unppdize_name()
4562 for (ptr = name, end = name + namesize - 1; *ppd && ptr < end; ppd ++) in pwg_unppdize_name()
4564 if (_cups_isalnum(*ppd) || *ppd == '-') in pwg_unppdize_name()
4565 *ptr++ = (char)tolower(*ppd & 255); in pwg_unppdize_name()
4566 else if (strchr(dashchars, *ppd)) in pwg_unppdize_name()
4569 *ptr++ = *ppd; in pwg_unppdize_name()
4571 if (!_cups_isupper(*ppd) && _cups_isalnum(*ppd) && in pwg_unppdize_name()
4572 _cups_isupper(ppd[1]) && ptr < end) in pwg_unppdize_name()
4574 else if (!isdigit(*ppd & 255) && isdigit(ppd[1] & 255)) in pwg_unppdize_name()