Home
last modified time | relevance | path

Searched refs:cparam (Results 1 – 6 of 6) sorted by relevance

/external/libcups/cups/
Dppd-emit.c611 ppd_cparam_t *cparam; /* Custom parameter */ in ppdEmitString() local
659 for (cparam = (ppd_cparam_t *)cupsArrayFirst(coption->params); in ppdEmitString()
660 cparam; in ppdEmitString()
661 cparam = (ppd_cparam_t *)cupsArrayNext(coption->params)) in ppdEmitString()
663 switch (cparam->type) in ppdEmitString()
676 if (cparam->current.custom_string) in ppdEmitString()
677 bufsize += strlen(cparam->current.custom_string); in ppdEmitString()
705 for (cparam = (ppd_cparam_t *)cupsArrayFirst(coption->params); in ppdEmitString()
706 cparam; in ppdEmitString()
707 cparam = (ppd_cparam_t *)cupsArrayNext(coption->params)) in ppdEmitString()
[all …]
Dtestppd.c1001 ppd_cparam_t *cparam; /* Custom parameter */ in main() local
1051 for (cparam = (ppd_cparam_t *)cupsArrayFirst(coption->params); in main()
1052 cparam; in main()
1053 cparam = (ppd_cparam_t *)cupsArrayNext(coption->params)) in main()
1055 switch (cparam->type) in main()
1059 cparam->name, cparam->text, in main()
1060 cparam->minimum.custom_curve, in main()
1061 cparam->maximum.custom_curve); in main()
1066 cparam->name, cparam->text, in main()
1067 cparam->minimum.custom_int, in main()
[all …]
Dppd-mark.c847 ppd_cparam_t *cparam; /* Custom parameter */ in ppd_mark_option() local
853 if ((cparam = (ppd_cparam_t *)cupsArrayFirst(coption->params)) == NULL) in ppd_mark_option()
856 switch (cparam->type) in ppd_mark_option()
861 cparam->current.custom_real = (float)_cupsStrScand(choice + 7, in ppd_mark_option()
866 cparam->current.custom_points = (float)_cupsStrScand(choice + 7, in ppd_mark_option()
873 cparam->current.custom_points *= 72.0f / 2.54f; in ppd_mark_option()
875 cparam->current.custom_points *= 72.0f / 25.4f; in ppd_mark_option()
877 cparam->current.custom_points *= 72.0f / 0.0254f; in ppd_mark_option()
879 cparam->current.custom_points *= 72.0f; in ppd_mark_option()
881 cparam->current.custom_points *= 12.0f * 72.0f; in ppd_mark_option()
[all …]
Dppd.c125 ppd_cparam_t *cparam; /* Current custom parameter */ in ppdClose() local
241 for (cparam = (ppd_cparam_t *)cupsArrayFirst(coption->params); in ppdClose()
242 cparam; in ppdClose()
243 cparam = (ppd_cparam_t *)cupsArrayNext(coption->params)) in ppdClose()
245 switch (cparam->type) in ppdClose()
250 _cupsStrFree(cparam->current.custom_string); in ppdClose()
257 free(cparam); in ppdClose()
998 ppd_cparam_t *cparam; /* Custom parameter */ in _ppdOpen() local
1016 if ((cparam = ppd_get_cparam(coption, name, text)) == NULL) in _ppdOpen()
1036 cparam->order = corder; in _ppdOpen()
[all …]
Dppd-page.c41 ppd_cparam_t *cparam; /* Custom option parameter */ in ppdPageSize() local
129 if ((cparam = ppdFindCustomParam(coption, "Width")) != NULL) in ppdPageSize()
130 cparam->current.custom_points = (float)w; in ppdPageSize()
132 if ((cparam = ppdFindCustomParam(coption, "Height")) != NULL) in ppdPageSize()
133 cparam->current.custom_points = (float)l; in ppdPageSize()
Dppd-localize.c58 ppd_cparam_t *cparam; /* Current custom parameter */ in ppdLocalize() local
125 for (cparam = (ppd_cparam_t *)cupsArrayFirst(coption->params); in ppdLocalize()
126 cparam; in ppdLocalize()
127 cparam = (ppd_cparam_t *)cupsArrayNext(coption->params)) in ppdLocalize()
131 if ((locattr = _ppdLocalizedAttr(ppd, ckeyword, cparam->name, in ppdLocalize()
133 strlcpy(cparam->text, locattr->text, sizeof(cparam->text)); in ppdLocalize()