Lines Matching refs:ppd
30 ppd_file_t *ppd; // PPD file data in import_ppd() local
49 if ((ppd = ppdOpenFile(f)) == NULL) in import_ppd()
53 if (!ppd->pcfilename) in import_ppd()
55 ppdClose(ppd); in import_ppd()
60 if ((driver = find_driver(ppd->pcfilename)) == NULL) in import_ppd()
65 ppdClose(ppd); in import_ppd()
92 if (ppd->modelname && ppd->manufacturer && in import_ppd()
93 !_cups_strncasecmp(ppd->modelname, ppd->manufacturer, in import_ppd()
94 strlen(ppd->manufacturer))) in import_ppd()
96 ptr = ppd->modelname + strlen(ppd->manufacturer); in import_ppd()
102 ptr = ppd->modelname; in import_ppd()
104 if (ppd->nickname) in import_ppd()
105 driver->add_attr(new ppdcAttr("NickName", NULL, NULL, ppd->nickname)); in import_ppd()
107 if (ppd->shortnickname) in import_ppd()
109 ppd->shortnickname)); in import_ppd()
111 driver->manufacturer = new ppdcString(ppd->manufacturer); in import_ppd()
113 driver->pc_file_name = new ppdcString(ppd->pcfilename); in import_ppd()
114 attr = ppdFindAttr(ppd, "FileVersion", NULL); in import_ppd()
116 driver->model_number = ppd->model_number; in import_ppd()
117 driver->manual_copies = ppd->manual_copies; in import_ppd()
118 driver->color_device = ppd->color_device; in import_ppd()
119 driver->throughput = ppd->throughput; in import_ppd()
120 driver->variable_paper_size = ppd->variable_sizes; in import_ppd()
121 driver->max_width = ppd->custom_max[0]; in import_ppd()
122 driver->max_length = ppd->custom_max[1]; in import_ppd()
123 driver->min_width = ppd->custom_min[0]; in import_ppd()
124 driver->min_length = ppd->custom_min[1]; in import_ppd()
125 driver->left_margin = ppd->custom_margins[0]; in import_ppd()
126 driver->bottom_margin = ppd->custom_margins[1]; in import_ppd()
127 driver->right_margin = ppd->custom_margins[2]; in import_ppd()
128 driver->top_margin = ppd->custom_margins[3]; in import_ppd()
130 for (i = 0; i < ppd->num_filters; i ++) in import_ppd()
132 strlcpy(line, ppd->filters[i], sizeof(line)); in import_ppd()
148 attr = ppdFindAttr(ppd, "DefaultFont", NULL); in import_ppd()
157 region_option = ppdFindOption(ppd, "PageRegion"); in import_ppd()
158 size_option = ppdFindOption(ppd, "PageSize"); in import_ppd()
160 for (i = ppd->num_sizes, size = ppd->sizes; i > 0; i --, size ++) in import_ppd()
184 for (i = ppd->num_groups, group = ppd->groups; i > 0; i --, group ++) in import_ppd()
214 for (i = ppd->num_consts, constraint = ppd->consts; in import_ppd()
236 for (i = 0; i < ppd->num_attrs; i ++) in import_ppd()
238 attr = ppd->attrs[i]; in import_ppd()
313 !ppdFindOption(ppd, attr->name + 7) && in import_ppd()