Blame examples/constraint.drv

Packit 2fc92b
// Include standard font and media definitions
Packit 2fc92b
#include <font.defs>
Packit 2fc92b
#include <media.defs>
Packit 2fc92b
Packit 2fc92b
// List the fonts that are supported, in this case all standard
Packit 2fc92b
// fonts...
Packit 2fc92b
Font *
Packit 2fc92b
Packit 2fc92b
// Manufacturer, model name, and version
Packit 2fc92b
Manufacturer "Foo"
Packit 2fc92b
ModelName "FooJet 2000"
Packit 2fc92b
Version 1.0
Packit 2fc92b
Packit 2fc92b
// Each filter provided by the driver...
Packit 2fc92b
Filter application/vnd.cups-raster 100 rastertofoo
Packit 2fc92b
Packit 2fc92b
// Supported page sizes
Packit 2fc92b
*MediaSize Letter
Packit 2fc92b
MediaSize A4
Packit 2fc92b
Packit 2fc92b
// Supported resolutions
Packit 2fc92b
*Resolution k 8 0 0 0 "600dpi/600 DPI"
Packit 2fc92b
Packit 2fc92b
// Installable Option Group
Packit 2fc92b
Group "InstallableOptions/Options Installed"
Packit 2fc92b
Packit 2fc92b
  // Duplexing unit option
Packit 2fc92b
  Option "Option1/Duplexing Unit" Boolean AnySetup 10
Packit 2fc92b
    Choice True/Installed ""
Packit 2fc92b
    *Choice "False/Not Installed" ""
Packit 2fc92b
Packit 2fc92b
// General Option Group
Packit 2fc92b
Group General
Packit 2fc92b
Packit 2fc92b
  // Duplexing option
Packit 2fc92b
  Option "Duplex/Two-Sided Printing" PickOne AnySetup 10
Packit 2fc92b
    *Choice "None/No" "<</Duplex false>>setpagedevice"
Packit 2fc92b
    Choice "DuplexNoTumble/Long Edge Binding"
Packit 2fc92b
           "<</Duplex true/Tumble false>>setpagedevice"
Packit 2fc92b
    Choice "DuplexTumble/Short Edge Binding"
Packit 2fc92b
           "<</Duplex true/Tumble true>>setpagedevice"
Packit 2fc92b
Packit 2fc92b
// Only allow duplexing if the duplexer is installed
Packit 2fc92b
UIConstraints "*Duplex *Option1 False"
Packit 2fc92b
Packit 2fc92b
// Specify the name of the PPD file we want to generate...
Packit 2fc92b
PCFileName "foojet2k.ppd"
Packit 2fc92b