Lines Matching refs:option
44 const char *option);
47 const char *option,
72 const char *option, /* I - Option to test */ in cupsGetConflicts() argument
91 if (!ppd || !option || !choice || !options) in cupsGetConflicts()
98 active = ppd_test_constraints(ppd, option, choice, 0, NULL, in cupsGetConflicts()
112 if (_cups_strcasecmp(cptr->option->keyword, option)) in cupsGetConflicts()
115 num_options = cupsAddOption(cptr->option->keyword, in cupsGetConflicts()
119 cptr->option->keyword)) != NULL) in cupsGetConflicts()
120 num_options = cupsAddOption(cptr->option->keyword, marked->choice, in cupsGetConflicts()
171 const char *option, /* I - Newly selected option or @code NULL@ for none */ in cupsResolveConflicts() argument
203 if (!ppd || !num_options || !options || (option == NULL) != (choice == NULL)) in cupsResolveConflicts()
216 if (option && _cups_strcasecmp(option, "Collate")) in cupsResolveConflicts()
217 num_newopts = cupsAddOption(option, choice, num_newopts, &newopts); in cupsResolveConflicts()
320 if (option && in cupsResolveConflicts()
321 (!_cups_strcasecmp(resoption, option) || in cupsResolveConflicts()
322 !_cups_strcasecmp(firstpage, option) || in cupsResolveConflicts()
323 (!_cups_strcasecmp(option, "PageSize") && in cupsResolveConflicts()
325 (!_cups_strcasecmp(option, "AP_FIRSTPAGE_PageSize") && in cupsResolveConflicts()
327 (!_cups_strcasecmp(option, "AP_FIRSTPAGE_PageSize") && in cupsResolveConflicts()
329 (!_cups_strcasecmp(option, "PageRegion") && in cupsResolveConflicts()
331 (!_cups_strcasecmp(option, "AP_FIRSTPAGE_PageRegion") && in cupsResolveConflicts()
333 (!_cups_strcasecmp(option, "AP_FIRSTPAGE_PageRegion") && in cupsResolveConflicts()
391 if (option && in cupsResolveConflicts()
392 (!_cups_strcasecmp(constptr->option->keyword, option) || in cupsResolveConflicts()
393 (!_cups_strcasecmp(option, "PageSize") && in cupsResolveConflicts()
394 !_cups_strcasecmp(constptr->option->keyword, "PageRegion")) || in cupsResolveConflicts()
395 (!_cups_strcasecmp(option, "PageRegion") && in cupsResolveConflicts()
396 !_cups_strcasecmp(constptr->option->keyword, "PageSize")))) in cupsResolveConflicts()
403 if ((value = cupsGetOption(constptr->option->keyword, num_newopts, in cupsResolveConflicts()
406 if (!_cups_strcasecmp(constptr->option->keyword, "PageSize") || in cupsResolveConflicts()
407 !_cups_strcasecmp(constptr->option->keyword, "PageRegion")) in cupsResolveConflicts()
423 marked = ppdFindMarkedChoice(ppd, constptr->option->keyword); in cupsResolveConflicts()
437 if (_cups_strcasecmp(value, constptr->option->defchoice) && in cupsResolveConflicts()
438 (test = ppd_test_constraints(ppd, constptr->option->keyword, in cupsResolveConflicts()
439 constptr->option->defchoice, in cupsResolveConflicts()
447 num_newopts = cupsAddOption(constptr->option->keyword, in cupsResolveConflicts()
448 constptr->option->defchoice, in cupsResolveConflicts()
458 for (j = constptr->option->num_choices, in cupsResolveConflicts()
459 cptr = constptr->option->choices; in cupsResolveConflicts()
467 _cups_strcasecmp(constptr->option->defchoice, cptr->choice) && in cupsResolveConflicts()
469 (test = ppd_test_constraints(ppd, constptr->option->keyword, in cupsResolveConflicts()
478 num_newopts = cupsAddOption(constptr->option->keyword, in cupsResolveConflicts()
519 if (option && !_cups_strcasecmp(option, "Collate")) in cupsResolveConflicts()
520 num_newopts = cupsAddOption(option, choice, num_newopts, &newopts); in cupsResolveConflicts()
617 cptr->option->conflicted = 1; in ppdConflicts()
643 const char *option, /* I - Option */ in ppdInstallableConflict() argument
650 ppd, option, choice)); in ppdInstallableConflict()
656 if (!ppd || !option || !choice) in ppdInstallableConflict()
663 active = ppd_test_constraints(ppd, option, choice, 0, NULL, in ppdInstallableConflict()
685 ppd_option_t *option; /* Current option */ in ppd_is_installable() local
688 for (i = installable->num_options, option = installable->options; in ppd_is_installable()
690 i --, option ++) in ppd_is_installable()
691 if (!_cups_strcasecmp(option->keyword, name)) in ppd_is_installable()
713 char option[PPD_MAX_NAME], /* Option name/MainKeyword */ in ppd_load_constraints() local
786 constptr[0].option = ppdFindOption(ppd, oldconst->option1 + 6); in ppd_load_constraints()
787 constptr[0].choice = ppdFindChoice(constptr[0].option, "Custom"); in ppd_load_constraints()
792 constptr[0].option = ppdFindOption(ppd, oldconst->option1); in ppd_load_constraints()
793 constptr[0].choice = ppdFindChoice(constptr[0].option, in ppd_load_constraints()
799 if (!constptr[0].option || (!constptr[0].choice && oldconst->choice1[0])) in ppd_load_constraints()
811 constptr[1].option = ppdFindOption(ppd, oldconst->option2 + 6); in ppd_load_constraints()
812 constptr[1].choice = ppdFindChoice(constptr[1].option, "Custom"); in ppd_load_constraints()
817 constptr[1].option = ppdFindOption(ppd, oldconst->option2); in ppd_load_constraints()
818 constptr[1].choice = ppdFindChoice(constptr[1].option, in ppd_load_constraints()
824 if (!constptr[1].option || (!constptr[1].choice && oldconst->choice2[0])) in ppd_load_constraints()
894 for (vptr ++, ptr = option; *vptr && !_cups_isspace(*vptr); vptr ++) in ppd_load_constraints()
895 if (ptr < (option + sizeof(option) - 1)) in ppd_load_constraints()
914 if (!_cups_strncasecmp(option, "Custom", 6) && !_cups_strcasecmp(choice, "True")) in ppd_load_constraints()
916 _cups_strcpy(option, option + 6); in ppd_load_constraints()
920 constptr->option = ppdFindOption(ppd, option); in ppd_load_constraints()
921 constptr->choice = ppdFindChoice(constptr->option, choice); in ppd_load_constraints()
922 constptr->installable = ppd_is_installable(installable, option); in ppd_load_constraints()
925 if (!constptr->option || (!constptr->choice && choice[0])) in ppd_load_constraints()
928 option, choice)); in ppd_load_constraints()
951 const char *option, /* I - Current option */ in ppd_test_constraints() argument
969 "num_options=%d, options=%p, which=%d)", ppd, option, choice, in ppd_test_constraints()
988 consts->constraints[0].option->keyword, in ppd_test_constraints()
991 consts->constraints[1].option->keyword, in ppd_test_constraints()
1001 if (which == _PPD_OPTION_CONSTRAINTS && option) in ppd_test_constraints()
1011 if (!_cups_strcasecmp(constptr->option->keyword, option)) in ppd_test_constraints()
1014 if (!_cups_strncasecmp(option, "AP_FIRSTPAGE_", 13) && in ppd_test_constraints()
1015 !_cups_strcasecmp(constptr->option->keyword, option + 13)) in ppd_test_constraints()
1029 DEBUG_printf(("9ppd_test_constraints: %s=%s?", constptr->option->keyword, in ppd_test_constraints()
1033 (!_cups_strcasecmp(constptr->option->keyword, "PageSize") || in ppd_test_constraints()
1034 !_cups_strcasecmp(constptr->option->keyword, "PageRegion"))) in ppd_test_constraints()
1042 if (option && choice && in ppd_test_constraints()
1043 (!_cups_strcasecmp(option, "PageSize") || in ppd_test_constraints()
1044 !_cups_strcasecmp(option, "PageRegion"))) in ppd_test_constraints()
1063 if (option && choice && in ppd_test_constraints()
1064 (!_cups_strcasecmp(option, "AP_FIRSTPAGE_PageSize") || in ppd_test_constraints()
1065 !_cups_strcasecmp(option, "AP_FIRSTPAGE_PageRegion"))) in ppd_test_constraints()
1090 if (option && choice && !_cups_strcasecmp(option, constptr->option->keyword)) in ppd_test_constraints()
1097 else if ((value = cupsGetOption(constptr->option->keyword, num_options, in ppd_test_constraints()
1113 constptr->option->keyword); in ppd_test_constraints()
1115 if (option && choice && !_cups_strcasecmp(option, firstpage)) in ppd_test_constraints()
1141 else if (option && choice && in ppd_test_constraints()
1142 !_cups_strcasecmp(option, constptr->option->keyword)) in ppd_test_constraints()
1151 else if ((value = cupsGetOption(constptr->option->keyword, num_options, in ppd_test_constraints()
1163 key.option = constptr->option; in ppd_test_constraints()