• Home
  • Raw
  • Download

Lines Matching refs:pwg

628       map->pwg = _cupsStrAlloc(pwg_keyword);  in _ppdCacheCreateWithFile()
683 size->map.pwg = _cupsStrAlloc(pwg_keyword); in _ppdCacheCreateWithFile()
767 map->pwg = _cupsStrAlloc(pwg_keyword); in _ppdCacheCreateWithFile()
816 map->pwg = _cupsStrAlloc(pwg_keyword); in _ppdCacheCreateWithFile()
1055 if (!strcmp(pc->sizes[j].map.pwg, pwg_media->pwg)) in _ppdCacheCreateWithPPD()
1068 pwg_name = pwg_media->pwg; in _ppdCacheCreateWithPPD()
1116 old_known_pwg = strncmp(old_size->map.pwg, "oe_", 3) && in _ppdCacheCreateWithPPD()
1117 strncmp(old_size->map.pwg, "om_", 3); in _ppdCacheCreateWithPPD()
1134 _cupsStrFree(old_size->map.pwg); in _ppdCacheCreateWithPPD()
1156 new_size->map.pwg = _cupsStrAlloc(pwg_name); in _ppdCacheCreateWithPPD()
1254 map->pwg = _cupsStrAlloc(pwg_name); in _ppdCacheCreateWithPPD()
1318 map->pwg = _cupsStrAlloc(pwg_name); in _ppdCacheCreateWithPPD()
1345 map->pwg = _cupsStrAlloc(pwg_keyword); in _ppdCacheCreateWithPPD()
1897 _cupsStrFree(map->pwg); in _ppdCacheDestroy()
1908 _cupsStrFree(size->map.pwg); in _ppdCacheDestroy()
1922 _cupsStrFree(map->pwg); in _ppdCacheDestroy()
1933 _cupsStrFree(map->pwg); in _ppdCacheDestroy()
1989 return (pc->bins[i].pwg); in _ppdCacheGetBin()
2207 if (!_cups_strcasecmp(keyword, pc->sources[i].pwg)) in _ppdCacheGetInputSlot()
2261 if (!_cups_strcasecmp(keyword, pc->types[i].pwg)) in _ppdCacheGetMediaType()
2295 if (!_cups_strcasecmp(output_bin, pc->bins[i].pwg)) in _ppdCacheGetOutputBin()
2381 (int)(size - pc->sizes), size->map.pwg, size->map.ppd)); in _ppdCacheGetPageSize()
2384 !_cups_strcasecmp(ppd_name, size->map.pwg)) in _ppdCacheGetPageSize()
2632 !_cups_strcasecmp(page_size, size->map.pwg)) in _ppdCacheGetSize()
2678 return (source->pwg); in _ppdCacheGetSource()
2707 return (type->pwg); in _ppdCacheGetType()
2768 cupsFilePrintf(fp, "Bin %s %s\n", map->pwg, map->ppd); in _ppdCacheWriteFile()
2777 cupsFilePrintf(fp, "Size %s %s %d %d %d %d %d %d\n", size->map.pwg, in _ppdCacheWriteFile()
2798 cupsFilePrintf(fp, "Source %s %s\n", map->pwg, map->ppd); in _ppdCacheWriteFile()
2809 cupsFilePrintf(fp, "Type %s %s\n", map->pwg, map->ppd); in _ppdCacheWriteFile()
2968 pwg_media_t *pwg; /* PWG media size */ in _ppdCreateFromIPP() local
3238 …if (x_dim && y_dim && (pwg = pwgMediaForSize(ippGetInteger(x_dim, 0), ippGetInteger(y_dim, 0))) !=… in _ppdCreateFromIPP()
3239 strlcpy(ppdname, pwg->ppd, sizeof(ppdname)); in _ppdCreateFromIPP()
3246 …else if ((pwg = pwgMediaForPWG(ippGetString(ippFindAttribute(response, "media-default", IPP_TAG_ZE… in _ppdCreateFromIPP()
3247 strlcpy(ppdname, pwg->ppd, sizeof(ppdname)); in _ppdCreateFromIPP()
3269 pwg = pwgMediaForSize(ippGetInteger(x_dim, 0), ippGetInteger(y_dim, 0)); in _ppdCreateFromIPP()
3272 pwg = pwgMediaForPWG(ippGetString(attr, i, NULL)); in _ppdCreateFromIPP()
3274 if (pwg) in _ppdCreateFromIPP()
3279 if (cupsArrayFind(sizes, (void *)pwg->ppd)) in _ppdCreateFromIPP()
3281 cupsFilePrintf(fp, "*%% warning: Duplicate size '%s' reported by printer.\n", pwg->ppd); in _ppdCreateFromIPP()
3285 cupsArrayAdd(sizes, (void *)pwg->ppd); in _ppdCreateFromIPP()
3287 _cupsStrFormatd(twidth, twidth + sizeof(twidth), pwg->width * 72.0 / 2540.0, loc); in _ppdCreateFromIPP()
3288 _cupsStrFormatd(tlength, tlength + sizeof(tlength), pwg->length * 72.0 / 2540.0, loc); in _ppdCreateFromIPP()
3290 …cupsFilePrintf(fp, "*PageSize %s: \"<</PageSize[%s %s]>>setpagedevice\"\n", pwg->ppd, twidth, tlen… in _ppdCreateFromIPP()
3309 pwg = pwgMediaForSize(ippGetInteger(x_dim, 0), ippGetInteger(y_dim, 0)); in _ppdCreateFromIPP()
3312 pwg = pwgMediaForPWG(ippGetString(attr, i, NULL)); in _ppdCreateFromIPP()
3314 if (pwg) in _ppdCreateFromIPP()
3319 if (cupsArrayFind(sizes, (void *)pwg->ppd)) in _ppdCreateFromIPP()
3322 cupsArrayAdd(sizes, (void *)pwg->ppd); in _ppdCreateFromIPP()
3324 _cupsStrFormatd(twidth, twidth + sizeof(twidth), pwg->width * 72.0 / 2540.0, loc); in _ppdCreateFromIPP()
3325 _cupsStrFormatd(tlength, tlength + sizeof(tlength), pwg->length * 72.0 / 2540.0, loc); in _ppdCreateFromIPP()
3327 …cupsFilePrintf(fp, "*PageRegion %s: \"<</PageSize[%s %s]>>setpagedevice\"\n", pwg->ppd, twidth, tl… in _ppdCreateFromIPP()
3345 pwg = pwgMediaForSize(ippGetInteger(x_dim, 0), ippGetInteger(y_dim, 0)); in _ppdCreateFromIPP()
3348 pwg = pwgMediaForPWG(ippGetString(attr, i, NULL)); in _ppdCreateFromIPP()
3350 if (pwg) in _ppdCreateFromIPP()
3359 if (cupsArrayFind(sizes, (void *)pwg->ppd)) in _ppdCreateFromIPP()
3362 cupsArrayAdd(sizes, (void *)pwg->ppd); in _ppdCreateFromIPP()
3366 _cupsStrFormatd(tright, tright + sizeof(tright), (pwg->width - right) * 72.0 / 2540.0, loc); in _ppdCreateFromIPP()
3367 _cupsStrFormatd(ttop, ttop + sizeof(ttop), (pwg->length - top) * 72.0 / 2540.0, loc); in _ppdCreateFromIPP()
3368 _cupsStrFormatd(twidth, twidth + sizeof(twidth), pwg->width * 72.0 / 2540.0, loc); in _ppdCreateFromIPP()
3369 _cupsStrFormatd(tlength, tlength + sizeof(tlength), pwg->length * 72.0 / 2540.0, loc); in _ppdCreateFromIPP()
3371 …cupsFilePrintf(fp, "*ImageableArea %s: \"%s %s %s %s\"\n", pwg->ppd, tleft, tbottom, tright, ttop); in _ppdCreateFromIPP()
3372 cupsFilePrintf(fp, "*PaperDimension %s: \"%s %s\"\n", pwg->ppd, twidth, tlength); in _ppdCreateFromIPP()
4383 else if (!media->pwg || !strncmp(media->pwg, "custom_", 7) || in _pwgPageSizeForMedia()
4384 (sizeptr = strchr(media->pwg, '_')) == NULL || in _pwgPageSizeForMedia()