• Home
  • Raw
  • Download

Lines Matching refs:choice

47 					      const char *choice,
72 const char *choice, /* I - Choice to test */ in cupsGetConflicts() argument
90 if (!ppd || !option || !choice || !options) in cupsGetConflicts()
97 active = ppd_test_constraints(ppd, option, choice, 0, NULL, in cupsGetConflicts()
113 if (cptr->choice) in cupsGetConflicts()
115 cptr->choice->choice, num_options, in cupsGetConflicts()
119 num_options = cupsAddOption(cptr->option->keyword, marked->choice, in cupsGetConflicts()
171 const char *choice, /* I - Newly selected choice or @code NULL@ for none */ in cupsResolveConflicts() argument
202 if (!ppd || !num_options || !options || (option == NULL) != (choice == NULL)) in cupsResolveConflicts()
216 num_newopts = cupsAddOption(option, choice, num_newopts, &newopts); in cupsResolveConflicts()
423 value = marked ? marked->choice : ""; in cupsResolveConflicts()
465 if (_cups_strcasecmp(value, cptr->choice) && in cupsResolveConflicts()
466 _cups_strcasecmp(constptr->option->defchoice, cptr->choice) && in cupsResolveConflicts()
467 _cups_strcasecmp("Custom", cptr->choice) && in cupsResolveConflicts()
469 cptr->choice, num_newopts, in cupsResolveConflicts()
478 cptr->choice, num_newopts, in cupsResolveConflicts()
519 num_newopts = cupsAddOption(option, choice, num_newopts, &newopts); in cupsResolveConflicts()
643 const char *choice) /* I - Choice */ in ppdInstallableConflict() argument
649 ppd, option, choice)); in ppdInstallableConflict()
655 if (!ppd || !option || !choice) in ppdInstallableConflict()
662 active = ppd_test_constraints(ppd, option, choice, 0, NULL, in ppdInstallableConflict()
713 choice[PPD_MAX_NAME], /* Choice/OptionKeyword */ in ppd_load_constraints() local
786 constptr[0].choice = ppdFindChoice(constptr[0].option, "Custom"); in ppd_load_constraints()
792 constptr[0].choice = ppdFindChoice(constptr[0].option, in ppd_load_constraints()
798 if (!constptr[0].option || (!constptr[0].choice && oldconst->choice1[0])) in ppd_load_constraints()
811 constptr[1].choice = ppdFindChoice(constptr[1].option, "Custom"); in ppd_load_constraints()
817 constptr[1].choice = ppdFindChoice(constptr[1].option, in ppd_load_constraints()
823 if (!constptr[1].option || (!constptr[1].choice && oldconst->choice2[0])) in ppd_load_constraints()
903 choice[0] = '\0'; in ppd_load_constraints()
906 for (ptr = choice; *vptr && !_cups_isspace(*vptr); vptr ++) in ppd_load_constraints()
907 if (ptr < (choice + sizeof(choice) - 1)) in ppd_load_constraints()
913 if (!_cups_strncasecmp(option, "Custom", 6) && !_cups_strcasecmp(choice, "True")) in ppd_load_constraints()
916 strlcpy(choice, "Custom", sizeof(choice)); in ppd_load_constraints()
920 constptr->choice = ppdFindChoice(constptr->option, choice); in ppd_load_constraints()
924 if (!constptr->option || (!constptr->choice && choice[0])) in ppd_load_constraints()
927 option, choice)); in ppd_load_constraints()
951 const char *choice, /* I - Current choice */ in ppd_test_constraints() argument
968 "num_options=%d, options=%p, which=%d)", ppd, option, choice, in ppd_test_constraints()
988 consts->constraints[0].choice ? in ppd_test_constraints()
989 consts->constraints[0].choice->choice : "", in ppd_test_constraints()
991 consts->constraints[1].choice ? in ppd_test_constraints()
992 consts->constraints[1].choice->choice : "")); in ppd_test_constraints()
1029 constptr->choice ? constptr->choice->choice : "")); in ppd_test_constraints()
1031 if (constptr->choice && in ppd_test_constraints()
1041 if (option && choice && in ppd_test_constraints()
1045 value = choice; in ppd_test_constraints()
1062 if (option && choice && in ppd_test_constraints()
1066 firstvalue = choice; in ppd_test_constraints()
1076 if ((!value || _cups_strcasecmp(value, constptr->choice->choice)) && in ppd_test_constraints()
1077 (!firstvalue || _cups_strcasecmp(firstvalue, constptr->choice->choice))) in ppd_test_constraints()
1083 else if (constptr->choice) in ppd_test_constraints()
1089 if (option && choice && !_cups_strcasecmp(option, constptr->option->keyword)) in ppd_test_constraints()
1091 if (!_cups_strncasecmp(choice, "Custom.", 7)) in ppd_test_constraints()
1094 value = choice; in ppd_test_constraints()
1102 else if (constptr->choice->marked) in ppd_test_constraints()
1103 value = constptr->choice->choice; in ppd_test_constraints()
1114 if (option && choice && !_cups_strcasecmp(option, firstpage)) in ppd_test_constraints()
1116 if (!_cups_strncasecmp(choice, "Custom.", 7)) in ppd_test_constraints()
1119 firstvalue = choice; in ppd_test_constraints()
1133 if ((!value || _cups_strcasecmp(value, constptr->choice->choice)) && in ppd_test_constraints()
1134 (!firstvalue || _cups_strcasecmp(firstvalue, constptr->choice->choice))) in ppd_test_constraints()
1140 else if (option && choice && in ppd_test_constraints()
1143 if (!_cups_strcasecmp(choice, "None") || !_cups_strcasecmp(choice, "Off") || in ppd_test_constraints()
1144 !_cups_strcasecmp(choice, "False")) in ppd_test_constraints()
1166 (!_cups_strcasecmp(marked->choice, "None") || in ppd_test_constraints()
1167 !_cups_strcasecmp(marked->choice, "Off") || in ppd_test_constraints()
1168 !_cups_strcasecmp(marked->choice, "False"))) in ppd_test_constraints()