Lines Matching refs:choice
43 const char *choice,
68 const char *choice, /* I - Choice to test */ in cupsGetConflicts() argument
86 if (!ppd || !option || !choice || !options) in cupsGetConflicts()
93 active = ppd_test_constraints(ppd, option, choice, 0, NULL, in cupsGetConflicts()
109 if (cptr->choice) in cupsGetConflicts()
111 cptr->choice->choice, num_options, in cupsGetConflicts()
115 num_options = cupsAddOption(cptr->option->keyword, marked->choice, in cupsGetConflicts()
167 const char *choice, /* I - Newly selected choice or @code NULL@ for none */ in cupsResolveConflicts() argument
198 if (!ppd || !num_options || !options || (option == NULL) != (choice == NULL)) in cupsResolveConflicts()
212 num_newopts = cupsAddOption(option, choice, num_newopts, &newopts); in cupsResolveConflicts()
419 value = marked ? marked->choice : ""; in cupsResolveConflicts()
461 if (_cups_strcasecmp(value, cptr->choice) && in cupsResolveConflicts()
462 _cups_strcasecmp(constptr->option->defchoice, cptr->choice) && in cupsResolveConflicts()
463 _cups_strcasecmp("Custom", cptr->choice) && in cupsResolveConflicts()
465 cptr->choice, num_newopts, in cupsResolveConflicts()
474 cptr->choice, num_newopts, in cupsResolveConflicts()
515 num_newopts = cupsAddOption(option, choice, num_newopts, &newopts); in cupsResolveConflicts()
639 const char *choice) /* I - Choice */ in ppdInstallableConflict() argument
645 ppd, option, choice)); in ppdInstallableConflict()
651 if (!ppd || !option || !choice) in ppdInstallableConflict()
658 active = ppd_test_constraints(ppd, option, choice, 0, NULL, in ppdInstallableConflict()
709 choice[PPD_MAX_NAME], /* Choice/OptionKeyword */ in ppd_load_constraints() local
782 constptr[0].choice = ppdFindChoice(constptr[0].option, "Custom"); in ppd_load_constraints()
788 constptr[0].choice = ppdFindChoice(constptr[0].option, in ppd_load_constraints()
794 if (!constptr[0].option || (!constptr[0].choice && oldconst->choice1[0])) in ppd_load_constraints()
807 constptr[1].choice = ppdFindChoice(constptr[1].option, "Custom"); in ppd_load_constraints()
813 constptr[1].choice = ppdFindChoice(constptr[1].option, in ppd_load_constraints()
819 if (!constptr[1].option || (!constptr[1].choice && oldconst->choice2[0])) in ppd_load_constraints()
899 choice[0] = '\0'; in ppd_load_constraints()
902 for (ptr = choice; *vptr && !_cups_isspace(*vptr); vptr ++) in ppd_load_constraints()
903 if (ptr < (choice + sizeof(choice) - 1)) in ppd_load_constraints()
909 if (!_cups_strncasecmp(option, "Custom", 6) && !_cups_strcasecmp(choice, "True")) in ppd_load_constraints()
912 strlcpy(choice, "Custom", sizeof(choice)); in ppd_load_constraints()
916 constptr->choice = ppdFindChoice(constptr->option, choice); in ppd_load_constraints()
920 if (!constptr->option || (!constptr->choice && choice[0])) in ppd_load_constraints()
923 option, choice)); in ppd_load_constraints()
947 const char *choice, /* I - Current choice */ in ppd_test_constraints() argument
964 "num_options=%d, options=%p, which=%d)", ppd, option, choice, in ppd_test_constraints()
984 consts->constraints[0].choice ? in ppd_test_constraints()
985 consts->constraints[0].choice->choice : "", in ppd_test_constraints()
987 consts->constraints[1].choice ? in ppd_test_constraints()
988 consts->constraints[1].choice->choice : "")); in ppd_test_constraints()
1025 constptr->choice ? constptr->choice->choice : "")); in ppd_test_constraints()
1027 if (constptr->choice && in ppd_test_constraints()
1037 if (option && choice && in ppd_test_constraints()
1041 value = choice; in ppd_test_constraints()
1058 if (option && choice && in ppd_test_constraints()
1062 firstvalue = choice; in ppd_test_constraints()
1072 if ((!value || _cups_strcasecmp(value, constptr->choice->choice)) && in ppd_test_constraints()
1073 (!firstvalue || _cups_strcasecmp(firstvalue, constptr->choice->choice))) in ppd_test_constraints()
1079 else if (constptr->choice) in ppd_test_constraints()
1085 if (option && choice && !_cups_strcasecmp(option, constptr->option->keyword)) in ppd_test_constraints()
1087 if (!_cups_strncasecmp(choice, "Custom.", 7)) in ppd_test_constraints()
1090 value = choice; in ppd_test_constraints()
1098 else if (constptr->choice->marked) in ppd_test_constraints()
1099 value = constptr->choice->choice; in ppd_test_constraints()
1110 if (option && choice && !_cups_strcasecmp(option, firstpage)) in ppd_test_constraints()
1112 if (!_cups_strncasecmp(choice, "Custom.", 7)) in ppd_test_constraints()
1115 firstvalue = choice; in ppd_test_constraints()
1129 if ((!value || _cups_strcasecmp(value, constptr->choice->choice)) && in ppd_test_constraints()
1130 (!firstvalue || _cups_strcasecmp(firstvalue, constptr->choice->choice))) in ppd_test_constraints()
1136 else if (option && choice && in ppd_test_constraints()
1139 if (!_cups_strcasecmp(choice, "None") || !_cups_strcasecmp(choice, "Off") || in ppd_test_constraints()
1140 !_cups_strcasecmp(choice, "False")) in ppd_test_constraints()
1162 (!_cups_strcasecmp(marked->choice, "None") || in ppd_test_constraints()
1163 !_cups_strcasecmp(marked->choice, "Off") || in ppd_test_constraints()
1164 !_cups_strcasecmp(marked->choice, "False"))) in ppd_test_constraints()