Lines Matching refs:ppd

30 #include "ppd-private.h"
51 ppdLocalize(ppd_file_t *ppd) /* I - PPD file */
69 DEBUG_printf(("ppdLocalize(ppd=%p)", ppd));
71 if (!ppd)
84 for (i = ppd->num_groups, group = ppd->groups; i > 0; i --, group ++)
86 if ((locattr = _ppdLocalizedAttr(ppd, "Translation", group->name,
92 if ((locattr = _ppdLocalizedAttr(ppd, "Translation", option->keyword,
101 !ppdFindCustomOption(ppd, option->keyword))
102 locattr = _ppdLocalizedAttr(ppd, option->keyword, choice->choice,
108 locattr = _ppdLocalizedAttr(ppd, ckeyword, "True", ll_CC);
121 for (coption = (ppd_coption_t *)cupsArrayFirst(ppd->coptions);
123 coption = (ppd_coption_t *)cupsArrayNext(ppd->coptions))
131 if ((locattr = _ppdLocalizedAttr(ppd, ckeyword, cparam->name,
141 if ((attr = ppdFindAttr(ppd, "APCustomColorMatchingName", NULL)) != NULL)
143 if ((locattr = _ppdLocalizedAttr(ppd, "APCustomColorMatchingName",
148 for (attr = ppdFindAttr(ppd, "cupsICCProfile", NULL);
150 attr = ppdFindNextAttr(ppd, "cupsICCProfile", NULL))
152 cupsArraySave(ppd->sorted_attrs);
154 if ((locattr = _ppdLocalizedAttr(ppd, "cupsICCProfile", attr->spec,
158 cupsArrayRestore(ppd->sorted_attrs);
165 for (attr = ppdFindAttr(ppd, "APPrinterPreset", NULL);
167 attr = ppdFindNextAttr(ppd, "APPrinterPreset", NULL))
169 cupsArraySave(ppd->sorted_attrs);
171 if ((locattr = _ppdLocalizedAttr(ppd, "APPrinterPreset", attr->spec,
175 cupsArrayRestore(ppd->sorted_attrs);
191 ppdLocalizeAttr(ppd_file_t *ppd, /* I - PPD file */
210 locattr = _ppdLocalizedAttr(ppd, keyword, spec, ll_CC);
212 locattr = _ppdLocalizedAttr(ppd, "Translation", keyword, ll_CC);
215 locattr = ppdFindAttr(ppd, keyword, spec);
237 ppd_file_t *ppd, /* I - PPD file */
260 if (!ppd || !reason || (scheme && !*scheme) ||
274 if ((locattr = _ppdLocalizedAttr(ppd, "cupsIPPReason", reason,
276 locattr = ppdFindAttr(ppd, "cupsIPPReason", reason);
490 ppd_file_t *ppd, /* I - PPD file */
501 if (!ppd || !name)
514 if ((locattr = _ppdLocalizedAttr(ppd, "cupsMarkerName", name,
516 locattr = ppdFindAttr(ppd, "cupsMarkerName", name);
547 _ppdGetLanguages(ppd_file_t *ppd) /* I - PPD file */
560 if ((attr = ppdFindAttr(ppd, "cupsLanguages", NULL)) == NULL || !attr->value)
646 _ppdLocalizedAttr(ppd_file_t *ppd, /* I - PPD file */
655 DEBUG_printf(("4_ppdLocalizedAttr(ppd=%p, keyword=\"%s\", spec=\"%s\", "
656 "ll_CC=\"%s\")", ppd, keyword, spec, ll_CC));
663 if ((attr = ppdFindAttr(ppd, lkeyword, spec)) == NULL)
674 attr = ppdFindAttr(ppd, lkeyword, spec);
680 attr = ppdFindAttr(ppd, lkeyword, spec);
695 attr = ppdFindAttr(ppd, lkeyword, spec);
706 attr = ppdFindAttr(ppd, lkeyword, spec);
717 attr = ppdFindAttr(ppd, lkeyword, spec);