Lines Matching refs:cparam
843 ppd_cparam_t *cparam; /* Custom parameter */ in ppd_mark_option() local
849 if ((cparam = (ppd_cparam_t *)cupsArrayFirst(coption->params)) == NULL) in ppd_mark_option()
852 switch (cparam->type) in ppd_mark_option()
860 cparam->current.custom_real = (float)_cupsStrScand(choice + 7, in ppd_mark_option()
865 cparam->current.custom_points = (float)_cupsStrScand(choice + 7, in ppd_mark_option()
872 cparam->current.custom_points *= 72.0f / 2.54f; in ppd_mark_option()
874 cparam->current.custom_points *= 72.0f / 25.4f; in ppd_mark_option()
876 cparam->current.custom_points *= 72.0f / 0.0254f; in ppd_mark_option()
878 cparam->current.custom_points *= 72.0f; in ppd_mark_option()
880 cparam->current.custom_points *= 12.0f * 72.0f; in ppd_mark_option()
885 cparam->current.custom_int = atoi(choice + 7); in ppd_mark_option()
891 if (cparam->current.custom_string) in ppd_mark_option()
892 free(cparam->current.custom_string); in ppd_mark_option()
894 cparam->current.custom_string = strdup(choice + 7); in ppd_mark_option()
913 ppd_cparam_t *cparam; /* Custom parameter */ in ppd_mark_option() local
929 if ((cparam = ppdFindCustomParam(coption, val->name)) == NULL) in ppd_mark_option()
932 switch (cparam->type) in ppd_mark_option()
940 cparam->current.custom_real = (float)_cupsStrScand(val->value, in ppd_mark_option()
945 cparam->current.custom_points = (float)_cupsStrScand(val->value, in ppd_mark_option()
952 cparam->current.custom_points *= 72.0f / 2.54f; in ppd_mark_option()
954 cparam->current.custom_points *= 72.0f / 25.4f; in ppd_mark_option()
956 cparam->current.custom_points *= 72.0f / 0.0254f; in ppd_mark_option()
958 cparam->current.custom_points *= 72.0f; in ppd_mark_option()
960 cparam->current.custom_points *= 12.0f * 72.0f; in ppd_mark_option()
965 cparam->current.custom_int = atoi(val->value); in ppd_mark_option()
971 if (cparam->current.custom_string) in ppd_mark_option()
972 free(cparam->current.custom_string); in ppd_mark_option()
974 cparam->current.custom_string = strdup(val->value); in ppd_mark_option()