Lines Matching refs:option
43 const char *option);
46 const char *option,
71 const char *option, /* I - Option 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()
111 if (_cups_strcasecmp(cptr->option->keyword, option)) in cupsGetConflicts()
114 num_options = cupsAddOption(cptr->option->keyword, in cupsGetConflicts()
118 cptr->option->keyword)) != NULL) in cupsGetConflicts()
119 num_options = cupsAddOption(cptr->option->keyword, marked->choice, in cupsGetConflicts()
170 const char *option, /* I - Newly selected option or @code NULL@ for none */ in cupsResolveConflicts() argument
202 if (!ppd || !num_options || !options || (option == NULL) != (choice == NULL)) in cupsResolveConflicts()
215 if (option && _cups_strcasecmp(option, "Collate")) in cupsResolveConflicts()
216 num_newopts = cupsAddOption(option, choice, num_newopts, &newopts); in cupsResolveConflicts()
319 if (option && in cupsResolveConflicts()
320 (!_cups_strcasecmp(resoption, option) || in cupsResolveConflicts()
321 !_cups_strcasecmp(firstpage, option) || in cupsResolveConflicts()
322 (!_cups_strcasecmp(option, "PageSize") && in cupsResolveConflicts()
324 (!_cups_strcasecmp(option, "AP_FIRSTPAGE_PageSize") && in cupsResolveConflicts()
326 (!_cups_strcasecmp(option, "AP_FIRSTPAGE_PageSize") && in cupsResolveConflicts()
328 (!_cups_strcasecmp(option, "PageRegion") && in cupsResolveConflicts()
330 (!_cups_strcasecmp(option, "AP_FIRSTPAGE_PageRegion") && in cupsResolveConflicts()
332 (!_cups_strcasecmp(option, "AP_FIRSTPAGE_PageRegion") && in cupsResolveConflicts()
390 if (option && in cupsResolveConflicts()
391 (!_cups_strcasecmp(constptr->option->keyword, option) || in cupsResolveConflicts()
392 (!_cups_strcasecmp(option, "PageSize") && in cupsResolveConflicts()
393 !_cups_strcasecmp(constptr->option->keyword, "PageRegion")) || in cupsResolveConflicts()
394 (!_cups_strcasecmp(option, "PageRegion") && in cupsResolveConflicts()
395 !_cups_strcasecmp(constptr->option->keyword, "PageSize")))) in cupsResolveConflicts()
402 if ((value = cupsGetOption(constptr->option->keyword, num_newopts, in cupsResolveConflicts()
405 if (!_cups_strcasecmp(constptr->option->keyword, "PageSize") || in cupsResolveConflicts()
406 !_cups_strcasecmp(constptr->option->keyword, "PageRegion")) in cupsResolveConflicts()
422 marked = ppdFindMarkedChoice(ppd, constptr->option->keyword); in cupsResolveConflicts()
436 if (_cups_strcasecmp(value, constptr->option->defchoice) && in cupsResolveConflicts()
437 (test = ppd_test_constraints(ppd, constptr->option->keyword, in cupsResolveConflicts()
438 constptr->option->defchoice, in cupsResolveConflicts()
446 num_newopts = cupsAddOption(constptr->option->keyword, in cupsResolveConflicts()
447 constptr->option->defchoice, in cupsResolveConflicts()
457 for (j = constptr->option->num_choices, in cupsResolveConflicts()
458 cptr = constptr->option->choices; in cupsResolveConflicts()
466 _cups_strcasecmp(constptr->option->defchoice, cptr->choice) && in cupsResolveConflicts()
468 (test = ppd_test_constraints(ppd, constptr->option->keyword, in cupsResolveConflicts()
477 num_newopts = cupsAddOption(constptr->option->keyword, in cupsResolveConflicts()
518 if (option && !_cups_strcasecmp(option, "Collate")) in cupsResolveConflicts()
519 num_newopts = cupsAddOption(option, choice, num_newopts, &newopts); in cupsResolveConflicts()
616 cptr->option->conflicted = 1; in ppdConflicts()
642 const char *option, /* I - Option */ 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()
684 ppd_option_t *option; /* Current option */ in ppd_is_installable() local
687 for (i = installable->num_options, option = installable->options; in ppd_is_installable()
689 i --, option ++) in ppd_is_installable()
690 if (!_cups_strcasecmp(option->keyword, name)) in ppd_is_installable()
712 char option[PPD_MAX_NAME], /* Option name/MainKeyword */ in ppd_load_constraints() local
785 constptr[0].option = ppdFindOption(ppd, oldconst->option1 + 6); in ppd_load_constraints()
786 constptr[0].choice = ppdFindChoice(constptr[0].option, "Custom"); in ppd_load_constraints()
791 constptr[0].option = ppdFindOption(ppd, oldconst->option1); 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()
810 constptr[1].option = ppdFindOption(ppd, oldconst->option2 + 6); in ppd_load_constraints()
811 constptr[1].choice = ppdFindChoice(constptr[1].option, "Custom"); in ppd_load_constraints()
816 constptr[1].option = ppdFindOption(ppd, oldconst->option2); 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()
893 for (vptr ++, ptr = option; *vptr && !_cups_isspace(*vptr); vptr ++) in ppd_load_constraints()
894 if (ptr < (option + sizeof(option) - 1)) in ppd_load_constraints()
913 if (!_cups_strncasecmp(option, "Custom", 6) && !_cups_strcasecmp(choice, "True")) in ppd_load_constraints()
915 _cups_strcpy(option, option + 6); in ppd_load_constraints()
919 constptr->option = ppdFindOption(ppd, option); in ppd_load_constraints()
920 constptr->choice = ppdFindChoice(constptr->option, choice); in ppd_load_constraints()
921 constptr->installable = ppd_is_installable(installable, option); in ppd_load_constraints()
924 if (!constptr->option || (!constptr->choice && choice[0])) in ppd_load_constraints()
927 option, choice)); in ppd_load_constraints()
950 const char *option, /* I - Current option */ in ppd_test_constraints() argument
968 "num_options=%d, options=%p, which=%d)", ppd, option, choice, in ppd_test_constraints()
987 consts->constraints[0].option->keyword, in ppd_test_constraints()
990 consts->constraints[1].option->keyword, in ppd_test_constraints()
1000 if ((which == _PPD_OPTION_CONSTRAINTS || which == _PPD_INSTALLABLE_CONSTRAINTS) && option) in ppd_test_constraints()
1010 if (!_cups_strcasecmp(constptr->option->keyword, option)) in ppd_test_constraints()
1013 if (!_cups_strncasecmp(option, "AP_FIRSTPAGE_", 13) && in ppd_test_constraints()
1014 !_cups_strcasecmp(constptr->option->keyword, option + 13)) in ppd_test_constraints()
1028 DEBUG_printf(("9ppd_test_constraints: %s=%s?", constptr->option->keyword, in ppd_test_constraints()
1032 (!_cups_strcasecmp(constptr->option->keyword, "PageSize") || in ppd_test_constraints()
1033 !_cups_strcasecmp(constptr->option->keyword, "PageRegion"))) in ppd_test_constraints()
1041 if (option && choice && in ppd_test_constraints()
1042 (!_cups_strcasecmp(option, "PageSize") || in ppd_test_constraints()
1043 !_cups_strcasecmp(option, "PageRegion"))) in ppd_test_constraints()
1062 if (option && choice && in ppd_test_constraints()
1063 (!_cups_strcasecmp(option, "AP_FIRSTPAGE_PageSize") || in ppd_test_constraints()
1064 !_cups_strcasecmp(option, "AP_FIRSTPAGE_PageRegion"))) in ppd_test_constraints()
1089 if (option && choice && !_cups_strcasecmp(option, constptr->option->keyword)) in ppd_test_constraints()
1096 else if ((value = cupsGetOption(constptr->option->keyword, num_options, in ppd_test_constraints()
1112 constptr->option->keyword); in ppd_test_constraints()
1114 if (option && choice && !_cups_strcasecmp(option, firstpage)) in ppd_test_constraints()
1140 else if (option && choice && in ppd_test_constraints()
1141 !_cups_strcasecmp(option, constptr->option->keyword)) in ppd_test_constraints()
1150 else if ((value = cupsGetOption(constptr->option->keyword, num_options, in ppd_test_constraints()
1162 key.option = constptr->option; in ppd_test_constraints()