/*
- * "$Id$"
- *
* Option marking routines for CUPS.
*
- * Copyright 2007-2015 by Apple Inc.
+ * Copyright 2007-2017 by Apple Inc.
* Copyright 1997-2007 by Easy Software Products, all rights reserved.
*
- * These coded instructions, statements, and computer programs are the
- * property of Apple Inc. and are protected by Federal copyright
- * law. Distribution and use rights are outlined in the file "LICENSE.txt"
- * which should have been included with this file. If this file is
- * file is missing or damaged, see the license at "http://www.cups.org/".
+ * Licensed under Apache License v2.0. See the file "LICENSE" for more
+ * information.
*
* PostScript is a trademark of Adobe Systems, Inc.
- *
- * This file is subject to the Apple OS-Developed Software exception.
*/
/*
* InputSlot, etc.) is not also set.
*
* For PageSize, we also check for an empty option value since some versions
- * of MacOS X use it to specify auto-selection of the media based solely on
+ * of macOS use it to specify auto-selection of the media based solely on
* the size.
*/
*/
for (i = num_options, optptr = options; i > 0; i --, optptr ++)
+ {
if (!_cups_strcasecmp(optptr->name, "media") ||
!_cups_strcasecmp(optptr->name, "output-bin") ||
!_cups_strcasecmp(optptr->name, "output-mode") ||
ppd_mark_option(ppd, "MirrorPrint", optptr->value);
else
ppd_mark_option(ppd, optptr->name, optptr->value);
+ }
+
+ if (print_quality)
+ {
+ int pq = atoi(print_quality); /* print-quaity value */
+
+ if (pq == IPP_QUALITY_DRAFT)
+ ppd_mark_option(ppd, "cupsPrintQuality", "Draft");
+ else if (pq == IPP_QUALITY_HIGH)
+ ppd_mark_option(ppd, "cupsPrintQuality", "High");
+ else
+ ppd_mark_option(ppd, "cupsPrintQuality", "Normal");
+ }
ppd_debug_marked(ppd, "After...");
*
* Options are returned from all groups in ascending alphanumeric order.
*
- * @since CUPS 1.2/OS X 10.5@
+ * @since CUPS 1.2/macOS 10.5@
*/
ppd_option_t * /* O - First option or @code NULL@ */
*
* Options are returned from all groups in ascending alphanumeric order.
*
- * @since CUPS 1.2/OS X 10.5@
+ * @since CUPS 1.2/macOS 10.5@
*/
ppd_option_t * /* O - Next option or @code NULL@ */
ppd, option, choice));
/*
- * AP_D_InputSlot is the "default input slot" on MacOS X, and setting
+ * AP_D_InputSlot is the "default input slot" on macOS, and setting
* it clears the regular InputSlot choices...
*/
cupsArrayAdd(ppd->marked, c);
}
-
-
-/*
- * End of "$Id$".
- */