• Home
  • Raw
  • Download

Lines Matching refs:cparam

2634   ppd_cparam_t	*cparam;		/* Custom parameter */  in do_set_options()  local
2914 for (cparam = ppdFirstCustomParam(coption), m = 0; in do_set_options()
2915 cparam; in do_set_options()
2916 cparam = ppdNextCustomParam(coption), m ++) in do_set_options()
2919 _cups_strcasecmp(cparam->name, "Width") && in do_set_options()
2920 _cups_strcasecmp(cparam->name, "Height")) in do_set_options()
2926 cgiSetArray("PARAMS", m, cparam->name); in do_set_options()
2927 cgiSetArray("PARAMTEXT", m, cparam->text); in do_set_options()
2930 switch (cparam->type) in do_set_options()
2954 cparam->current.custom_points / 72.0 * 25.4); in do_set_options()
2957 cparam->current.custom_points / 72.0 * 2.54); in do_set_options()
2960 cparam->current.custom_points / 72.0); in do_set_options()
2963 cparam->current.custom_points / 72.0 / 12.0); in do_set_options()
2966 cparam->current.custom_points / 72.0 * 0.0254); in do_set_options()
2969 cparam->current.custom_points); in do_set_options()
2977 cparam->current.custom_real); in do_set_options()
2983 cparam->current.custom_int); in do_set_options()
2989 if (cparam->current.custom_password) in do_set_options()
2991 cparam->current.custom_password); in do_set_options()
2998 if (cparam->current.custom_string) in do_set_options()
3000 cparam->current.custom_string); in do_set_options()
3455 ppd_cparam_t *cparam; /* Current custom parameter */ in get_option_value() local
3526 cparam = ppdFirstCustomParam(coption); in get_option_value()
3527 snprintf(keyword, sizeof(keyword), "%s.%s", coption->keyword, cparam->name); in get_option_value()
3532 switch (cparam->type) in get_option_value()
3541 number < cparam->minimum.custom_real || in get_option_value()
3542 number > cparam->maximum.custom_real) in get_option_value()
3551 integer < cparam->minimum.custom_int || in get_option_value()
3552 integer > cparam->maximum.custom_int) in get_option_value()
3568 if (number_points < cparam->minimum.custom_points || in get_option_value()
3569 number_points > cparam->maximum.custom_points) in get_option_value()
3583 if (integer < cparam->minimum.custom_string || in get_option_value()
3584 integer > cparam->maximum.custom_string) in get_option_value()
3599 for (cparam = ppdFirstCustomParam(coption); in get_option_value()
3600 cparam; in get_option_value()
3601 cparam = ppdNextCustomParam(coption)) in get_option_value()
3604 cparam->name); in get_option_value()
3609 snprintf(bufptr, (size_t)(bufend - bufptr), "%s%s=", prefix, cparam->name); in get_option_value()
3613 switch (cparam->type) in get_option_value()
3622 number < cparam->minimum.custom_real || in get_option_value()
3623 number > cparam->maximum.custom_real) in get_option_value()
3632 integer < cparam->minimum.custom_int || in get_option_value()
3633 integer > cparam->maximum.custom_int) in get_option_value()
3650 if (number_points < cparam->minimum.custom_points || in get_option_value()
3651 number_points > cparam->maximum.custom_points) in get_option_value()
3665 if (integer < cparam->minimum.custom_string || in get_option_value()
3666 integer > cparam->maximum.custom_string) in get_option_value()