Lines Matching refs:choice
80 ppd_choice_t *choice; /* Marked choice */ in _cupsConvertOptions() local
246 if ((choice = ppdFindMarkedChoice(ppd, "OutputBin")) != NULL) in _cupsConvertOptions()
247 keyword = _ppdCacheGetBin(pc, choice->choice); in _cupsConvertOptions()
257 if ((choice = ppdFindMarkedChoice(ppd, "ColorModel")) != NULL) in _cupsConvertOptions()
259 if (!_cups_strcasecmp(choice->choice, "Gray")) in _cupsConvertOptions()
279 else if ((choice = ppdFindMarkedChoice(ppd, "cupsPrintQuality")) != NULL) in _cupsConvertOptions()
281 if (!_cups_strcasecmp(choice->choice, "draft")) in _cupsConvertOptions()
283 else if (!_cups_strcasecmp(choice->choice, "normal")) in _cupsConvertOptions()
285 else if (!_cups_strcasecmp(choice->choice, "high")) in _cupsConvertOptions()
291 else if (pc->sides_option && (choice = ppdFindMarkedChoice(ppd, pc->sides_option)) != NULL) in _cupsConvertOptions()
293 if (!_cups_strcasecmp(choice->choice, pc->sides_1sided)) in _cupsConvertOptions()
295 else if (!_cups_strcasecmp(choice->choice, pc->sides_2sided_long)) in _cupsConvertOptions()
297 if (!_cups_strcasecmp(choice->choice, pc->sides_2sided_short)) in _cupsConvertOptions()
965 ppd_choice_t *choice; /* Current InputSlot/MediaType */ in _ppdCacheCreateWithPPD() local
1213 for (i = input_slot->num_choices, choice = input_slot->choices, in _ppdCacheCreateWithPPD()
1216 i --, choice ++, map ++) in _ppdCacheCreateWithPPD()
1218 if (!_cups_strncasecmp(choice->choice, "Auto", 4) || in _ppdCacheCreateWithPPD()
1219 !_cups_strcasecmp(choice->choice, "Default")) in _ppdCacheCreateWithPPD()
1221 else if (!_cups_strcasecmp(choice->choice, "Cassette")) in _ppdCacheCreateWithPPD()
1223 else if (!_cups_strcasecmp(choice->choice, "PhotoTray")) in _ppdCacheCreateWithPPD()
1225 else if (!_cups_strcasecmp(choice->choice, "CDTray")) in _ppdCacheCreateWithPPD()
1227 else if (!_cups_strncasecmp(choice->choice, "Multipurpose", 12) || in _ppdCacheCreateWithPPD()
1228 !_cups_strcasecmp(choice->choice, "MP") || in _ppdCacheCreateWithPPD()
1229 !_cups_strcasecmp(choice->choice, "MPTray")) in _ppdCacheCreateWithPPD()
1231 else if (!_cups_strcasecmp(choice->choice, "LargeCapacity")) in _ppdCacheCreateWithPPD()
1233 else if (!_cups_strncasecmp(choice->choice, "Lower", 5)) in _ppdCacheCreateWithPPD()
1235 else if (!_cups_strncasecmp(choice->choice, "Middle", 6)) in _ppdCacheCreateWithPPD()
1237 else if (!_cups_strncasecmp(choice->choice, "Upper", 5)) in _ppdCacheCreateWithPPD()
1239 else if (!_cups_strncasecmp(choice->choice, "Side", 4)) in _ppdCacheCreateWithPPD()
1241 else if (!_cups_strcasecmp(choice->choice, "Roll")) in _ppdCacheCreateWithPPD()
1250 pwg_unppdize_name(choice->choice, pwg_keyword, sizeof(pwg_keyword), in _ppdCacheCreateWithPPD()
1255 map->ppd = _cupsStrAlloc(choice->choice); in _ppdCacheCreateWithPPD()
1274 for (i = media_type->num_choices, choice = media_type->choices, in _ppdCacheCreateWithPPD()
1277 i --, choice ++, map ++) in _ppdCacheCreateWithPPD()
1279 if (!_cups_strncasecmp(choice->choice, "Auto", 4) || in _ppdCacheCreateWithPPD()
1280 !_cups_strcasecmp(choice->choice, "Any") || in _ppdCacheCreateWithPPD()
1281 !_cups_strcasecmp(choice->choice, "Default")) in _ppdCacheCreateWithPPD()
1283 else if (!_cups_strncasecmp(choice->choice, "Card", 4)) in _ppdCacheCreateWithPPD()
1285 else if (!_cups_strncasecmp(choice->choice, "Env", 3)) in _ppdCacheCreateWithPPD()
1287 else if (!_cups_strncasecmp(choice->choice, "Gloss", 5)) in _ppdCacheCreateWithPPD()
1289 else if (!_cups_strcasecmp(choice->choice, "HighGloss")) in _ppdCacheCreateWithPPD()
1291 else if (!_cups_strcasecmp(choice->choice, "Matte")) in _ppdCacheCreateWithPPD()
1293 else if (!_cups_strncasecmp(choice->choice, "Plain", 5)) in _ppdCacheCreateWithPPD()
1295 else if (!_cups_strncasecmp(choice->choice, "Coated", 6)) in _ppdCacheCreateWithPPD()
1297 else if (!_cups_strcasecmp(choice->choice, "Inkjet")) in _ppdCacheCreateWithPPD()
1299 else if (!_cups_strcasecmp(choice->choice, "Letterhead")) in _ppdCacheCreateWithPPD()
1301 else if (!_cups_strncasecmp(choice->choice, "Preprint", 8)) in _ppdCacheCreateWithPPD()
1303 else if (!_cups_strcasecmp(choice->choice, "Recycled")) in _ppdCacheCreateWithPPD()
1305 else if (!_cups_strncasecmp(choice->choice, "Transparen", 10)) in _ppdCacheCreateWithPPD()
1314 pwg_unppdize_name(choice->choice, pwg_keyword, sizeof(pwg_keyword), in _ppdCacheCreateWithPPD()
1319 map->ppd = _cupsStrAlloc(choice->choice); in _ppdCacheCreateWithPPD()
1338 for (i = output_bin->num_choices, choice = output_bin->choices, in _ppdCacheCreateWithPPD()
1341 i --, choice ++, map ++) in _ppdCacheCreateWithPPD()
1343 pwg_unppdize_name(choice->choice, pwg_keyword, sizeof(pwg_keyword), "_"); in _ppdCacheCreateWithPPD()
1346 map->ppd = _cupsStrAlloc(choice->choice); in _ppdCacheCreateWithPPD()
1563 for (i = duplex->num_choices, choice = duplex->choices; in _ppdCacheCreateWithPPD()
1565 i --, choice ++) in _ppdCacheCreateWithPPD()
1567 if ((!_cups_strcasecmp(choice->choice, "None") || in _ppdCacheCreateWithPPD()
1568 !_cups_strcasecmp(choice->choice, "False")) && !pc->sides_1sided) in _ppdCacheCreateWithPPD()
1569 pc->sides_1sided = _cupsStrAlloc(choice->choice); in _ppdCacheCreateWithPPD()
1570 else if ((!_cups_strcasecmp(choice->choice, "DuplexNoTumble") || in _ppdCacheCreateWithPPD()
1571 !_cups_strcasecmp(choice->choice, "LongEdge") || in _ppdCacheCreateWithPPD()
1572 !_cups_strcasecmp(choice->choice, "Top")) && !pc->sides_2sided_long) in _ppdCacheCreateWithPPD()
1573 pc->sides_2sided_long = _cupsStrAlloc(choice->choice); in _ppdCacheCreateWithPPD()
1574 else if ((!_cups_strcasecmp(choice->choice, "DuplexTumble") || in _ppdCacheCreateWithPPD()
1575 !_cups_strcasecmp(choice->choice, "ShortEdge") || in _ppdCacheCreateWithPPD()
1576 !_cups_strcasecmp(choice->choice, "Bottom")) && in _ppdCacheCreateWithPPD()
1578 pc->sides_2sided_short = _cupsStrAlloc(choice->choice); in _ppdCacheCreateWithPPD()