Lines Matching refs:dstfp
45 static void write_option(cups_file_t *dstfp, int order,
68 *dstfp; /* Destination PPD file */ in cupsAdminCreateWindowsPPD() local
153 if ((dstfp = cupsTempFile2(buffer, bufsize)) == NULL) in cupsAdminCreateWindowsPPD()
166 cupsFilePuts(dstfp, "*PPD-Adobe: \"4.3\"\n"); in cupsAdminCreateWindowsPPD()
171 cupsFilePrintf(dstfp, "*%% Modified on %04d%02d%02d%02d%02d%02d+0000 " in cupsAdminCreateWindowsPPD()
207 cupsFilePrintf(dstfp, "*%% Commented out for CUPS Windows Driver...\n" in cupsAdminCreateWindowsPPD()
214 cupsFilePrintf(dstfp, "%s\n", line); in cupsAdminCreateWindowsPPD()
219 cupsFilePrintf(dstfp, "%s\n", line); in cupsAdminCreateWindowsPPD()
229 cupsFilePrintf(dstfp, "*OrderDependency: %d%s\n", jclorder, ptr); in cupsAdminCreateWindowsPPD()
233 cupsFilePrintf(dstfp, "%s\n", line); in cupsAdminCreateWindowsPPD()
247 cupsFileClose(dstfp); in cupsAdminCreateWindowsPPD()
266 cupsFileClose(dstfp); in cupsAdminCreateWindowsPPD()
285 cupsFileClose(dstfp); in cupsAdminCreateWindowsPPD()
313 cupsFilePrintf(dstfp, "*%% Changed for CUPS Windows Driver...\n%s\n", in cupsAdminCreateWindowsPPD()
317 cupsFilePrintf(dstfp, "%s\n", line); in cupsAdminCreateWindowsPPD()
327 cupsFileClose(dstfp); in cupsAdminCreateWindowsPPD()
339 cupsFilePuts(dstfp, "\n*% CUPS Job Ticket support and options...\n"); in cupsAdminCreateWindowsPPD()
340 cupsFilePuts(dstfp, "*Protocols: PJL\n"); in cupsAdminCreateWindowsPPD()
341 cupsFilePuts(dstfp, "*JCLBegin: \"%!PS-Adobe-3.0<0A>\"\n"); in cupsAdminCreateWindowsPPD()
342 cupsFilePuts(dstfp, "*JCLToPSInterpreter: \"\"\n"); in cupsAdminCreateWindowsPPD()
343 cupsFilePuts(dstfp, "*JCLEnd: \"\"\n"); in cupsAdminCreateWindowsPPD()
345 cupsFilePuts(dstfp, "\n*OpenGroup: CUPS/CUPS Options\n\n"); in cupsAdminCreateWindowsPPD()
351 write_option(dstfp, jclorder ++, "cupsJobHoldUntil", "Hold Until", in cupsAdminCreateWindowsPPD()
358 write_option(dstfp, jclorder ++, "cupsJobPriority", "Priority", in cupsAdminCreateWindowsPPD()
366 write_option(dstfp, jclorder ++, "cupsJobSheetsStart", "Start Banner", in cupsAdminCreateWindowsPPD()
368 write_option(dstfp, jclorder, "cupsJobSheetsEnd", "End Banner", in cupsAdminCreateWindowsPPD()
372 cupsFilePuts(dstfp, "*CloseGroup: CUPS\n"); in cupsAdminCreateWindowsPPD()
373 cupsFileClose(dstfp); in cupsAdminCreateWindowsPPD()
2283 write_option(cups_file_t *dstfp, /* I - PPD file */ in write_option() argument
2296 cupsFilePrintf(dstfp, "*JCLOpenUI *%s/%s: PickOne\n" in write_option()
2306 cupsFilePrintf(dstfp, "*Default%s: %d\n", name, in write_option()
2319 cupsFilePrintf(dstfp, "*%s %d: \"", name, i); in write_option()
2322 cupsFilePrintf(dstfp, "%%cupsJobTicket: %s=%d\n\"\n*End\n", in write_option()
2325 cupsFilePrintf(dstfp, "%%cupsJobTicket: %s=%d\"\n", attrname, i); in write_option()
2327 cupsFilePrintf(dstfp, ",%d\"\n", i); in write_option()
2329 cupsFilePrintf(dstfp, ",%d\n\"\n*End\n", i); in write_option()
2340 cupsFilePrintf(dstfp, "*%s %d: \"", name, suppattr->values[i].integer); in write_option()
2343 cupsFilePrintf(dstfp, "%%cupsJobTicket: %s=%d\n\"\n*End\n", attrname, in write_option()
2346 cupsFilePrintf(dstfp, "%%cupsJobTicket: %s=%d\"\n", attrname, in write_option()
2349 cupsFilePrintf(dstfp, ",%d\"\n", suppattr->values[i].integer); in write_option()
2351 cupsFilePrintf(dstfp, ",%d\n\"\n*End\n", suppattr->values[i].integer); in write_option()
2361 cupsFilePrintf(dstfp, "*Default%s: %s\n", name, in write_option()
2366 cupsFilePrintf(dstfp, "*%s %s: \"", name, in write_option()
2370 cupsFilePrintf(dstfp, "%%cupsJobTicket: %s=%s\n\"\n*End\n", attrname, in write_option()
2373 cupsFilePrintf(dstfp, "%%cupsJobTicket: %s=%s\"\n", attrname, in write_option()
2376 cupsFilePrintf(dstfp, ",%s\"\n", suppattr->values[i].string.text); in write_option()
2378 cupsFilePrintf(dstfp, ",%s\n\"\n*End\n", in write_option()
2383 cupsFilePrintf(dstfp, "*JCLCloseUI: *%s\n\n", name); in write_option()