Lines Matching refs:choices
59 ppd_choice_t ***choices) /* O - Pointers to choices */ in ppdCollect() argument
61 return (ppdCollect2(ppd, section, 0.0, choices)); in ppdCollect()
79 ppd_choice_t ***choices) /* O - Pointers to choices */ in ppdCollect2() argument
90 ppd, section, min_order, choices)); in ppdCollect2()
92 if (!ppd || !choices) in ppdCollect2()
94 if (choices) in ppdCollect2()
95 *choices = NULL; in ppdCollect2()
108 *choices = NULL; in ppdCollect2()
114 *choices = NULL; in ppdCollect2()
212 *choices = collect; in ppdCollect2()
217 *choices = NULL; in ppdCollect2()
608 ppd_choice_t **choices; /* Choices */ in ppdEmitString() local
639 if ((count = ppdCollect2(ppd, section, min_order, &choices)) == 0) in ppdEmitString()
651 if (!_cups_strcasecmp(choices[i]->choice, "Custom") && in ppdEmitString()
652 (coption = ppdFindCustomOption(ppd, choices[i]->option->keyword)) in ppdEmitString()
687 if ((!_cups_strcasecmp(choices[i]->option->keyword, "PageSize") || in ppdEmitString()
688 !_cups_strcasecmp(choices[i]->option->keyword, "PageRegion")) && in ppdEmitString()
689 !_cups_strcasecmp(choices[i]->choice, "Custom")) in ppdEmitString()
696 else if (!_cups_strcasecmp(choices[i]->choice, "Custom") && in ppdEmitString()
698 choices[i]->option->keyword)) in ppdEmitString()
701 bufsize += 23 + strlen(choices[i]->option->keyword) + 6; in ppdEmitString()
730 bufsize += 17 + strlen(choices[i]->option->keyword) + 1 + in ppdEmitString()
731 strlen(choices[i]->choice) + 1; in ppdEmitString()
738 if (choices[i]->code) in ppdEmitString()
739 bufsize += strlen(choices[i]->code) + 1; in ppdEmitString()
753 free(choices); in ppdEmitString()
767 if (!_cups_strcasecmp(choices[i]->choice, "Custom") && in ppdEmitString()
768 choices[i]->code && in ppdEmitString()
769 (coption = ppdFindCustomOption(ppd, choices[i]->option->keyword)) in ppdEmitString()
780 for (cptr = choices[i]->code; *cptr && bufptr < bufend;) in ppdEmitString()
845 strlcpy(bufptr, choices[i]->code, (size_t)(bufend - bufptr + 1)); in ppdEmitString()
864 choices[i]->option->keyword, choices[i]->choice)); in ppdEmitString()
866 if ((!_cups_strcasecmp(choices[i]->option->keyword, "PageSize") || in ppdEmitString()
867 !_cups_strcasecmp(choices[i]->option->keyword, "PageRegion")) && in ppdEmitString()
868 !_cups_strcasecmp(choices[i]->choice, "Custom")) in ppdEmitString()
968 if (!choices[i]->code) in ppdEmitString()
980 else if (!_cups_strcasecmp(choices[i]->choice, "Custom") && in ppdEmitString()
981 (coption = ppdFindCustomOption(ppd, choices[i]->option->keyword)) in ppdEmitString()
1051 …ze_t)(bufend - bufptr + 1), "%%%%BeginFeature: *%s %s\n", choices[i]->option->keyword, choices[i]-… in ppdEmitString()
1055 if (choices[i]->code && choices[i]->code[0]) in ppdEmitString()
1057 j = (int)strlen(choices[i]->code); in ppdEmitString()
1058 memcpy(bufptr, choices[i]->code, (size_t)j); in ppdEmitString()
1061 if (choices[i]->code[j - 1] != '\n') in ppdEmitString()
1074 strlcpy(bufptr, choices[i]->code, (size_t)(bufend - bufptr + 1)); in ppdEmitString()
1084 free(choices); in ppdEmitString()