Lines Matching refs:choice
80 ppd_choice_t *choice; /* Marked choice */ in _cupsConvertOptions() local
248 if ((choice = ppdFindMarkedChoice(ppd, "OutputBin")) != NULL) in _cupsConvertOptions()
249 keyword = _ppdCacheGetBin(pc, choice->choice); in _cupsConvertOptions()
259 if ((choice = ppdFindMarkedChoice(ppd, "ColorModel")) != NULL) in _cupsConvertOptions()
261 if (!_cups_strcasecmp(choice->choice, "Gray")) in _cupsConvertOptions()
281 else if ((choice = ppdFindMarkedChoice(ppd, "cupsPrintQuality")) != NULL) in _cupsConvertOptions()
283 if (!_cups_strcasecmp(choice->choice, "draft")) in _cupsConvertOptions()
285 else if (!_cups_strcasecmp(choice->choice, "normal")) in _cupsConvertOptions()
287 else if (!_cups_strcasecmp(choice->choice, "high")) in _cupsConvertOptions()
293 else if (pc->sides_option && (choice = ppdFindMarkedChoice(ppd, pc->sides_option)) != NULL) in _cupsConvertOptions()
295 if (pc->sides_1sided && !_cups_strcasecmp(choice->choice, pc->sides_1sided)) in _cupsConvertOptions()
297 else if (pc->sides_2sided_long && !_cups_strcasecmp(choice->choice, pc->sides_2sided_long)) in _cupsConvertOptions()
299 else if (pc->sides_2sided_short && !_cups_strcasecmp(choice->choice, pc->sides_2sided_short)) in _cupsConvertOptions()
992 ppd_choice_t *choice; /* Current InputSlot/MediaType */ in _ppdCacheCreateWithPPD() local
1243 for (i = input_slot->num_choices, choice = input_slot->choices, in _ppdCacheCreateWithPPD()
1246 i --, choice ++, map ++) in _ppdCacheCreateWithPPD()
1248 if (!_cups_strncasecmp(choice->choice, "Auto", 4) || in _ppdCacheCreateWithPPD()
1249 !_cups_strcasecmp(choice->choice, "Default")) in _ppdCacheCreateWithPPD()
1251 else if (!_cups_strcasecmp(choice->choice, "Cassette")) in _ppdCacheCreateWithPPD()
1253 else if (!_cups_strcasecmp(choice->choice, "PhotoTray")) in _ppdCacheCreateWithPPD()
1255 else if (!_cups_strcasecmp(choice->choice, "CDTray")) in _ppdCacheCreateWithPPD()
1257 else if (!_cups_strncasecmp(choice->choice, "Multipurpose", 12) || in _ppdCacheCreateWithPPD()
1258 !_cups_strcasecmp(choice->choice, "MP") || in _ppdCacheCreateWithPPD()
1259 !_cups_strcasecmp(choice->choice, "MPTray")) in _ppdCacheCreateWithPPD()
1261 else if (!_cups_strcasecmp(choice->choice, "LargeCapacity")) in _ppdCacheCreateWithPPD()
1263 else if (!_cups_strncasecmp(choice->choice, "Lower", 5)) in _ppdCacheCreateWithPPD()
1265 else if (!_cups_strncasecmp(choice->choice, "Middle", 6)) in _ppdCacheCreateWithPPD()
1267 else if (!_cups_strncasecmp(choice->choice, "Upper", 5)) in _ppdCacheCreateWithPPD()
1269 else if (!_cups_strncasecmp(choice->choice, "Side", 4)) in _ppdCacheCreateWithPPD()
1271 else if (!_cups_strcasecmp(choice->choice, "Roll")) in _ppdCacheCreateWithPPD()
1280 pwg_unppdize_name(choice->choice, pwg_keyword, sizeof(pwg_keyword), in _ppdCacheCreateWithPPD()
1285 map->ppd = strdup(choice->choice); in _ppdCacheCreateWithPPD()
1292 pwg_add_message(pc->strings, msg_id, choice->text); in _ppdCacheCreateWithPPD()
1311 for (i = media_type->num_choices, choice = media_type->choices, in _ppdCacheCreateWithPPD()
1314 i --, choice ++, map ++) in _ppdCacheCreateWithPPD()
1316 if (!_cups_strncasecmp(choice->choice, "Auto", 4) || in _ppdCacheCreateWithPPD()
1317 !_cups_strcasecmp(choice->choice, "Any") || in _ppdCacheCreateWithPPD()
1318 !_cups_strcasecmp(choice->choice, "Default")) in _ppdCacheCreateWithPPD()
1320 else if (!_cups_strncasecmp(choice->choice, "Card", 4)) in _ppdCacheCreateWithPPD()
1322 else if (!_cups_strncasecmp(choice->choice, "Env", 3)) in _ppdCacheCreateWithPPD()
1324 else if (!_cups_strncasecmp(choice->choice, "Gloss", 5)) in _ppdCacheCreateWithPPD()
1326 else if (!_cups_strcasecmp(choice->choice, "HighGloss")) in _ppdCacheCreateWithPPD()
1328 else if (!_cups_strcasecmp(choice->choice, "Matte")) in _ppdCacheCreateWithPPD()
1330 else if (!_cups_strncasecmp(choice->choice, "Plain", 5)) in _ppdCacheCreateWithPPD()
1332 else if (!_cups_strncasecmp(choice->choice, "Coated", 6)) in _ppdCacheCreateWithPPD()
1334 else if (!_cups_strcasecmp(choice->choice, "Inkjet")) in _ppdCacheCreateWithPPD()
1336 else if (!_cups_strcasecmp(choice->choice, "Letterhead")) in _ppdCacheCreateWithPPD()
1338 else if (!_cups_strncasecmp(choice->choice, "Preprint", 8)) in _ppdCacheCreateWithPPD()
1340 else if (!_cups_strcasecmp(choice->choice, "Recycled")) in _ppdCacheCreateWithPPD()
1342 else if (!_cups_strncasecmp(choice->choice, "Transparen", 10)) in _ppdCacheCreateWithPPD()
1351 pwg_unppdize_name(choice->choice, pwg_keyword, sizeof(pwg_keyword), in _ppdCacheCreateWithPPD()
1356 map->ppd = strdup(choice->choice); in _ppdCacheCreateWithPPD()
1363 pwg_add_message(pc->strings, msg_id, choice->text); in _ppdCacheCreateWithPPD()
1382 for (i = output_bin->num_choices, choice = output_bin->choices, in _ppdCacheCreateWithPPD()
1385 i --, choice ++, map ++) in _ppdCacheCreateWithPPD()
1387 pwg_unppdize_name(choice->choice, pwg_keyword, sizeof(pwg_keyword), "_"); in _ppdCacheCreateWithPPD()
1390 map->ppd = strdup(choice->choice); in _ppdCacheCreateWithPPD()
1397 pwg_add_message(pc->strings, msg_id, choice->text); in _ppdCacheCreateWithPPD()
1625 for (i = duplex->num_choices, choice = duplex->choices; in _ppdCacheCreateWithPPD()
1627 i --, choice ++) in _ppdCacheCreateWithPPD()
1629 if ((!_cups_strcasecmp(choice->choice, "None") || in _ppdCacheCreateWithPPD()
1630 !_cups_strcasecmp(choice->choice, "False")) && !pc->sides_1sided) in _ppdCacheCreateWithPPD()
1631 pc->sides_1sided = strdup(choice->choice); in _ppdCacheCreateWithPPD()
1632 else if ((!_cups_strcasecmp(choice->choice, "DuplexNoTumble") || in _ppdCacheCreateWithPPD()
1633 !_cups_strcasecmp(choice->choice, "LongEdge") || in _ppdCacheCreateWithPPD()
1634 !_cups_strcasecmp(choice->choice, "Top")) && !pc->sides_2sided_long) in _ppdCacheCreateWithPPD()
1635 pc->sides_2sided_long = strdup(choice->choice); in _ppdCacheCreateWithPPD()
1636 else if ((!_cups_strcasecmp(choice->choice, "DuplexTumble") || in _ppdCacheCreateWithPPD()
1637 !_cups_strcasecmp(choice->choice, "ShortEdge") || in _ppdCacheCreateWithPPD()
1638 !_cups_strcasecmp(choice->choice, "Bottom")) && in _ppdCacheCreateWithPPD()
1640 pc->sides_2sided_short = strdup(choice->choice); in _ppdCacheCreateWithPPD()
1864 for (choice = ppd_option->choices, i = ppd_option->num_choices; i > 0; choice ++, i --) in _ppdCacheCreateWithPPD()
1866 cupsArrayAdd(pc->templates, (void *)choice->choice); in _ppdCacheCreateWithPPD()
1872 snprintf(msg_id, sizeof(msg_id), "finishing-template.%s", choice->choice); in _ppdCacheCreateWithPPD()
1873 pwg_add_message(pc->strings, msg_id, choice->text); in _ppdCacheCreateWithPPD()
2148 ppd_choice_t *choice; /* Marked PPD choice */ in _ppdCacheGetFinishingValues() local
2182 …if ((choice = ppdFindMarkedChoice(ppd, option->name)) == NULL || _cups_strcasecmp(option->value, c… in _ppdCacheGetFinishingValues()