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

Lines Matching refs:choice

170   ppd_choice_t	*choice;		/* Standard UI option choice */
566 * Verify that we have a default choice...
1120 for (j = option->num_choices, choice = option->choices;
1122 j --, choice ++)
1129 xdpi = strtol(choice->choice, (char **)&ptr, 10);
1130 if (ptr > choice->choice && xdpi > 0)
1149 _(" **FAIL** Bad option %s choice %s\n"
1151 option->keyword, choice->choice);
1287 "string for option %s choice %s contains "
1290 option->choices[j].choice);
1579 for (m = option->num_choices, choice = option->choices;
1581 m --, choice ++)
1583 size = ppdPageSize(ppd, choice->choice);
1588 choice->choice, choice->text,
1589 !strcmp(option->defchoice, choice->choice)
1595 choice->choice, choice->text,
1599 !strcmp(option->defchoice, choice->choice)
1605 for (m = option->num_choices, choice = option->choices;
1607 m --, choice ++)
1610 choice->choice, choice->text,
1611 !strcmp(option->defchoice, choice->choice)
1773 choice[PPD_MAX_NAME],
1775 *ptr; /* Pointer into option or choice */
1870 choice[0] = '\0';
1873 for (ptr = choice; *vptr && !isspace(*vptr & 255); vptr ++)
1874 if (ptr < (choice + sizeof(choice) - 1))
1880 if (!_cups_strncasecmp(option, "Custom", 6) && !_cups_strcasecmp(choice, "True"))
1883 strlcpy(choice, "Custom", sizeof(choice));
1902 if (choice[0] && !ppdFindChoice(o, choice))
1908 _(" %s Missing choice *%s %s in "
1910 prefix, option, choice, constattr->spec,
1919 if (choice[0])
1920 num_options = cupsAddOption(option, choice, num_options, &options);
1924 if (_cups_strcasecmp(o->choices[i].choice, "None") &&
1925 _cups_strcasecmp(o->choices[i].choice, "Off") &&
1926 _cups_strcasecmp(o->choices[i].choice, "False"))
1928 num_options = cupsAddOption(option, o->choices[i].choice,
1985 strlcpy(choice, "Custom", sizeof(choice));
1990 strlcpy(choice, c->choice1, sizeof(choice));
2007 else if (choice[0] && !ppdFindChoice(o, choice))
2013 _(" %s Missing choice *%s %s in "
2026 strlcpy(choice, "Custom", sizeof(choice));
2031 strlcpy(choice, c->choice2, sizeof(choice));
2048 else if (choice[0] && !ppdFindChoice(o, choice))
2054 _(" %s Missing choice *%s %s in "
2084 ppd_choice_t *choicea, /* First choice */
2085 *choiceb; /* Second choice */
2139 if (!strcmp(choicea->choice, choiceb->choice))
2147 "option %s choice name %s."),
2148 optiona->keyword, choicea->choice);
2156 else if (!_cups_strcasecmp(choicea->choice, choiceb->choice))
2163 _(" **FAIL** Option %s choice names %s and "
2165 optiona->keyword, choicea->choice, choiceb->choice);
2234 * Check that the default option value matches a choice...
2238 if (!strcmp(option->choices[k].choice, attr->value))
2274 ppd_choice_t *choice; /* Current choice */
2295 "choice None.\n"
2304 for (i = option->num_choices, choice = option->choices;
2306 i --, choice ++)
2307 if (strcmp(choice->choice, "None") &&
2308 strcmp(choice->choice, "DuplexNoTumble") &&
2309 strcmp(choice->choice, "DuplexTumble") &&
2310 strcmp(choice->choice, "SimplexTumble"))
2318 _(" %s Bad %s choice %s.\n"
2320 prefix, option->keyword, choice->choice);
3477 * First see if this choice is a number; if so, don't require
3492 if (!_cups_strcasecmp(option->choices[j].choice, "Custom") &&
3509 "choice %s."),
3541 "choice %s."),
3558 "choice %s."),
3570 option->choices[j].choice)) == NULL &&
3572 option->choices[j].choice)) == NULL)
3581 "choice %s."),
3583 option->choices[j].choice);
3597 "choice %s."),
3599 option->choices[j].choice);
3686 * This constraint maps to a specific choice.
3694 * This constraint applies to any choice for this option.
3702 !_cups_strcasecmp(c1->choice, "None") ||
3703 !_cups_strcasecmp(c1->choice, "Off") ||
3704 !_cups_strcasecmp(c1->choice, "False"))
3719 * This constraint maps to a specific choice.
3727 * This constraint applies to any choice for this option.
3735 !_cups_strcasecmp(c2->choice, "None") ||
3736 !_cups_strcasecmp(c2->choice, "Off") ||
3737 !_cups_strcasecmp(c2->choice, "False"))
3749 prefix, o1->keyword, c1->choice, o2->keyword, c2->choice,