summaryrefslogtreecommitdiffstats
path: root/cloud_print/virtual_driver/gcp_driver.gpd
blob: 9b4ef8beeb54af5816a41e3906e72d93960ab988 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
*% Copyright (c) 2012 The Chromium Authors. All rights reserved.
*% Use of this source code is governed by a BSD-style license that can be
*% found in the LICENSE file.

*GPDFileVersion: "1.0"
*GPDSpecVersion: "1.0"
*Include:        "StdNames.gpd"
*ResourceDLL:    "unires.dll"
*ModelName:      "Google Cloud Printer"
*MasterUnits:    PAIR(1200, 1200)
*MaxCopies:      1
*PrintRatePPM: 200
*PrinterType:    PAGE
*IsXPSDriver?:   TRUE

*Feature: ColorMode {
  *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
  *DefaultOption: 24bpp
  *ConcealFromUI?: TRUE
  *Option: 24bpp {
    *rcNameID: =24BPP_DISPLAY
    *DevNumOfPlanes: 1
    *DevBPP: 24
    *DrvBPP: 24
  }
}

*Feature: Memory {
  *rcNameID: =PRINTER_MEMORY_DISPLAY
  *DefaultOption: 65536KB
  *Option: 16384KB {
    *Name: "16MB"
    *MemoryConfigKB: PAIR(16384, 16384)
  }
  *Option: 65536KB {
    *Name: "64MB"
    *MemoryConfigKB: PAIR(65536, 65536)
  }
}

*Feature: Orientation {
  *rcNameID: =ORIENTATION_DISPLAY
  *DefaultOption: PORTRAIT
  *Option: PORTRAIT {
    *rcNameID: =PORTRAIT_DISPLAY
  }
  *Option: LANDSCAPE_CC270 {
    *rcNameID: =LANDSCAPE_DISPLAY
  }
}

*Feature: PaperSize {
  *rcNameID: =PAPER_SIZE_DISPLAY
  *DefaultOption: LETTER

  *Option: A4 {
    *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
    *switch: Orientation {
      *case: PORTRAIT {
        *PrintableArea: PAIR(9921, 14031)
        *PrintableOrigin: PAIR(0, 0)
        *CursorOrigin: PAIR(0, 0)
      }
      *case: LANDSCAPE_CC270 {
        *PrintableArea: PAIR(14031, 9921)
        *PrintableOrigin: PAIR(0, 0)
        *CursorOrigin: PAIR(0, 0)
      }
    }
  }

  *Option: LETTER {
  *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  *switch: Orientation {
    *case: PORTRAIT {
        *PrintableArea: PAIR(10200, 13200)
        *PrintableOrigin: PAIR(0, 0)
        *CursorOrigin: PAIR(0, 0)
      }
      *case: LANDSCAPE_CC270 {
        *PrintableArea: PAIR(13200, 10200)
        *PrintableOrigin: PAIR(0, 0)
        *CursorOrigin: PAIR(0, 0)
      }
    }
  }
}

*Feature: Resolution {
  *rcNameID: =RESOLUTION_DISPLAY
  *DefaultOption: 600dpi

  *Option: 600dpi {
    *Name: "600 x 600 " =DOTS_PER_INCH
    *DPI: PAIR(600, 600)
    *TextDPI: PAIR(600, 600)
    *SpotDiameter: 100
    *Command: CmdBeginRaster { *Cmd : "<1B>*v7S<1B>*r1A" }
    *Command: CmdEndRaster { *Cmd : "<1B>*rC" }
    *Command: CmdSendBlockData { *Cmd : "<1B>*b" %d{NumOfDataBytes}"W" }
  }
}

*Command: CmdCR { *Cmd : "<0D>" }
*Command: CmdLF { *Cmd : "<0A>" }
*Command: CmdFF { *Cmd : "<0C>" }