libcupsfilters: Added "faxPrefix" option for generated IPP Fax Out PPDs
@@ -3961,8 +3961,9 @@ ppdCreateFromIPP2(char *buffer, /* I - Filename buffer */
cupsFilePuts(fp, "*CloseUI: *print-scaling\n");
}
}
+
/*
- * Phone Option for Fax..
+ * Phone Options for Fax..
*/
if (is_fax) {
@@ -3977,6 +3978,18 @@ ppdCreateFromIPP2(char *buffer, /* I - Filename buffer */
(human_readable ? human_readable : "Phone Number"));
cupsFilePrintf(fp,"*Customphone True: \"\"\n"
"*ParamCustomphone Text: 1 string 0 64\n");
+
+ human_readable = lookup_option("faxPrefix", opt_strings_catalog,
+ printer_opt_strings_catalog);
+
+ cupsFilePrintf(fp, "*OpenUI *faxPrefix/%s: PickOne\n"
+ "*OrderDependency: 10 AnySetup *faxPrefix\n"
+ "*DefaultfaxPrefix: None\n"
+ "*faxPrefix None: \"\"\n"
+ "*CloseUI: *faxPrefix\n",
+ (human_readable ? human_readable : "Pre-Dial Number"));
+ cupsFilePrintf(fp,"*CustomfaxPrefix True: \"\"\n"
+ "*ParamCustomfaxPrefix Text: 1 string 0 64\n");
}
/*
