• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/cups-372.4/cups/cups/

Lines Matching refs:choice

26  *   ppdInstallableConflict() - Test whether an option choice conflicts with an
64 const char *choice,
74 * "choice" were marked in the PPD. You would typically call this function
89 const char *choice, /* I - Choice to test */
97 ppd_choice_t *marked; /* Marked choice */
107 if (!ppd || !option || !choice || !options)
114 active = ppd_test_constraints(ppd, option, choice, 0, NULL,
130 if (cptr->choice)
132 cptr->choice->choice, num_options,
136 num_options = cupsAddOption(cptr->option->keyword, marked->choice,
153 * not yet been marked, while "option" and "choice" contain the most recent
157 * "option" and "choice" along with any changes required to resolve conflicts
178 * choice for the conflicting option, then iterating over all possible choices
179 * until a non-conflicting option choice is found.
188 const char *choice, /* I - Newly selected choice or @code NULL@ for none */
207 /* Current resolver choice */
208 *resptr, /* Pointer into option/choice */
212 ppd_choice_t *marked; /* Marked choice */
219 if (!ppd || !num_options || !options || (option == NULL) != (choice == NULL))
233 num_newopts = cupsAddOption(option, choice, num_newopts, &newopts);
354 * Try this choice...
371 * Add the option/choice from the resolver regardless of whether it
388 ppd_choice_t *cptr; /* Current choice */
416 * Get the current option choice...
440 value = marked ? marked->choice : "";
448 * Try the default choice...
471 * Try each choice instead...
482 if (_cups_strcasecmp(value, cptr->choice) &&
483 _cups_strcasecmp(constptr->option->defchoice, cptr->choice) &&
484 _cups_strcasecmp("Custom", cptr->choice) &&
486 cptr->choice, num_newopts,
491 * This choice works...
495 cptr->choice, num_newopts,
536 num_newopts = cupsAddOption(option, choice, num_newopts, &newopts);
647 * 'ppdInstallableConflict()' - Test whether an option choice conflicts with
650 * This function tests whether a particular option choice is available based
660 const char *choice) /* I - Choice */
665 DEBUG_printf(("2ppdInstallableConflict(ppd=%p, option=\"%s\", choice=\"%s\")",
666 ppd, option, choice));
672 if (!ppd || !option || !choice)
679 active = ppd_test_constraints(ppd, option, choice, 0, NULL,
730 choice[PPD_MAX_NAME], /* Choice/OptionKeyword */
731 *ptr; /* Pointer into option or choice */
803 constptr[0].choice = ppdFindChoice(constptr[0].option, "Custom");
809 constptr[0].choice = ppdFindChoice(constptr[0].option,
815 if (!constptr[0].option || (!constptr[0].choice && oldconst->choice1[0]))
828 constptr[1].choice = ppdFindChoice(constptr[1].option, "Custom");
834 constptr[1].choice = ppdFindChoice(constptr[1].option,
840 if (!constptr[1].option || (!constptr[1].choice && oldconst->choice2[0]))
920 choice[0] = '\0';
923 for (ptr = choice; *vptr && !_cups_isspace(*vptr); vptr ++)
924 if (ptr < (choice + sizeof(choice) - 1))
930 if (!_cups_strncasecmp(option, "Custom", 6) && !_cups_strcasecmp(choice, "True"))
933 strlcpy(choice, "Custom", sizeof(choice));
937 constptr->choice = ppdFindChoice(constptr->option, choice);
941 if (!constptr->option || (!constptr->choice && choice[0]))
944 option, choice));
968 const char *choice, /* I - Current choice */
977 *marked; /* Marked choice */
984 DEBUG_printf(("7ppd_test_constraints(ppd=%p, option=\"%s\", choice=\"%s\", "
985 "num_options=%d, options=%p, which=%d)", ppd, option, choice,
1005 consts->constraints[0].choice ?
1006 consts->constraints[0].choice->choice : "",
1008 consts->constraints[1].choice ?
1009 consts->constraints[1].choice->choice : ""));
1046 constptr->choice ? constptr->choice->choice : ""));
1048 if (constptr->choice &&
1058 if (option && choice &&
1062 value = choice;
1079 if (option && choice &&
1083 firstvalue = choice;
1093 if ((!value || _cups_strcasecmp(value, constptr->choice->choice)) &&
1094 (!firstvalue || _cups_strcasecmp(firstvalue, constptr->choice->choice)))
1100 else if (constptr->choice)
1103 * Compare against the constrained choice...
1106 if (option && choice && !_cups_strcasecmp(option, constptr->option->keyword))
1108 if (!_cups_strncasecmp(choice, "Custom.", 7))
1111 value = choice;
1119 else if (constptr->choice->marked)
1120 value = constptr->choice->choice;
1131 if (option && choice && !_cups_strcasecmp(option, firstpage))
1133 if (!_cups_strncasecmp(choice, "Custom.", 7))
1136 firstvalue = choice;
1150 if ((!value || _cups_strcasecmp(value, constptr->choice->choice)) &&
1151 (!firstvalue || _cups_strcasecmp(firstvalue, constptr->choice->choice)))
1157 else if (option && choice &&
1160 if (!_cups_strcasecmp(choice, "None") || !_cups_strcasecmp(choice, "Off") ||
1161 !_cups_strcasecmp(choice, "False"))
1183 (!_cups_strcasecmp(marked->choice, "None") ||
1184 !_cups_strcasecmp(marked->choice, "Off") ||
1185 !_cups_strcasecmp(marked->choice, "False")))