1 *% Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 *% Use of this source code is governed by a BSD-style license that can be 3 *% found in the LICENSE file. 4 5 *GPDFileVersion: "1.0" 6 *GPDSpecVersion: "1.0" 7 *Include: "StdNames.gpd" 8 *ResourceDLL: "unires.dll" 9 *ModelName: "Google Cloud Printer" 10 *MasterUnits: PAIR(1200, 1200) 11 *MaxCopies: 1 12 *PrintRatePPM: 200 13 *PrinterType: PAGE 14 *IsXPSDriver?: TRUE 15 16 *Feature: ColorMode { 17 *rcNameID: =COLOR_PRINTING_MODE_DISPLAY 18 *DefaultOption: 24bpp 19 *ConcealFromUI?: TRUE 20 *Option: 24bpp { 21 *rcNameID: =24BPP_DISPLAY 22 *DevNumOfPlanes: 1 23 *DevBPP: 24 24 *DrvBPP: 24 25 } 26 } 27 28 *Feature: Memory { 29 *rcNameID: =PRINTER_MEMORY_DISPLAY 30 *DefaultOption: 65536KB 31 *Option: 16384KB { 32 *Name: "16MB" 33 *MemoryConfigKB: PAIR(16384, 16384) 34 } 35 *Option: 65536KB { 36 *Name: "64MB" 37 *MemoryConfigKB: PAIR(65536, 65536) 38 } 39 } 40 41 *Feature: Orientation { 42 *rcNameID: =ORIENTATION_DISPLAY 43 *DefaultOption: PORTRAIT 44 *Option: PORTRAIT { 45 *rcNameID: =PORTRAIT_DISPLAY 46 } 47 *Option: LANDSCAPE_CC270 { 48 *rcNameID: =LANDSCAPE_DISPLAY 49 } 50 } 51 52 *Feature: PaperSize { 53 *rcNameID: =PAPER_SIZE_DISPLAY 54 *DefaultOption: LETTER 55 56 *Option: A4 { 57 *rcNameID: =RCID_DMPAPER_SYSTEM_NAME 58 *switch: Orientation { 59 *case: PORTRAIT { 60 *PrintableArea: PAIR(9921, 14031) 61 *PrintableOrigin: PAIR(0, 0) 62 *CursorOrigin: PAIR(0, 0) 63 } 64 *case: LANDSCAPE_CC270 { 65 *PrintableArea: PAIR(14031, 9921) 66 *PrintableOrigin: PAIR(0, 0) 67 *CursorOrigin: PAIR(0, 0) 68 } 69 } 70 } 71 72 *Option: LETTER { 73 *rcNameID: =RCID_DMPAPER_SYSTEM_NAME 74 *switch: Orientation { 75 *case: PORTRAIT { 76 *PrintableArea: PAIR(10200, 13200) 77 *PrintableOrigin: PAIR(0, 0) 78 *CursorOrigin: PAIR(0, 0) 79 } 80 *case: LANDSCAPE_CC270 { 81 *PrintableArea: PAIR(13200, 10200) 82 *PrintableOrigin: PAIR(0, 0) 83 *CursorOrigin: PAIR(0, 0) 84 } 85 } 86 } 87 } 88 89 *Feature: Resolution { 90 *rcNameID: =RESOLUTION_DISPLAY 91 *DefaultOption: 600dpi 92 93 *Option: 600dpi { 94 *Name: "600 x 600 " =DOTS_PER_INCH 95 *DPI: PAIR(600, 600) 96 *TextDPI: PAIR(600, 600) 97 *SpotDiameter: 100 98 *Command: CmdBeginRaster { *Cmd : "<1B>*v7S<1B>*r1A" } 99 *Command: CmdEndRaster { *Cmd : "<1B>*rC" } 100 *Command: CmdSendBlockData { *Cmd : "<1B>*b" %d{NumOfDataBytes}"W" } 101 } 102 } 103 104 *Command: CmdCR { *Cmd : "<0D>" } 105 *Command: CmdLF { *Cmd : "<0A>" } 106 *Command: CmdFF { *Cmd : "<0C>" } 107