Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

293 lines
7.8 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileVersion: "1.00"
  7. *GPDFileName: "CNLA408J.GPD"
  8. *Include: "STDNAMES.GPD"
  9. *CodePage: 1252
  10. *ModelName: "Canon LBP-A408 LIPS2"
  11. *MasterUnits: PAIR(240, 240)
  12. *ResourceDLL: "cnl2jres.dll"
  13. *PrinterType: PAGE
  14. *PrintRate: 8
  15. *PrintRateUnit: PPM
  16. *MaxCopies: 99
  17. *Feature: Orientation
  18. {
  19. *rcNameID: =ORIENTATION_DISPLAY
  20. *DefaultOption: PORTRAIT
  21. *Option: PORTRAIT
  22. {
  23. *rcNameID: =PORTRAIT_DISPLAY
  24. *Command: CmdSelect
  25. {
  26. *Order: PAGE_SETUP.1
  27. *Cmd: "<1B>[0%%r<1B>[0;1;0x<1B>[1k"
  28. }
  29. }
  30. *Option: LANDSCAPE_CC90
  31. {
  32. *rcNameID: =LANDSCAPE_DISPLAY
  33. *Command: CmdSelect
  34. {
  35. *Order: PAGE_SETUP.1
  36. *Cmd: "<1B>[1%%r<1B>[0;3;0x<1B>[1k"
  37. }
  38. }
  39. }
  40. *Feature: InputBin
  41. {
  42. *rcNameID: =PAPER_SOURCE_DISPLAY
  43. *DefaultOption: Option1
  44. *Option: Option1
  45. {
  46. *rcNameID: 258
  47. *Command: CmdSelect
  48. {
  49. *Order: DOC_SETUP.2
  50. *Cmd: "<1B>[0q"
  51. }
  52. }
  53. *Option: Option2
  54. {
  55. *rcNameID: 259
  56. *Command: CmdSelect
  57. {
  58. *Order: DOC_SETUP.2
  59. *Cmd: "<1B>[1q"
  60. }
  61. }
  62. }
  63. *Feature: Resolution
  64. {
  65. *rcNameID: =RESOLUTION_DISPLAY
  66. *DefaultOption: Option1
  67. *Option: Option1
  68. {
  69. *Name: "240 x 240 dots per inch"
  70. *DPI: PAIR(240, 240)
  71. *TextDPI: PAIR(240, 240)
  72. *PinsPerLogPass: 16
  73. *PinsPerPhysPass: 16
  74. *MinStripBlankPixels: 24
  75. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  76. *SpotDiameter: 100
  77. *Command: CmdBeginRaster { *Cmd : "<1B>[1e" }
  78. *Command: CmdEndRaster { *Cmd : "<1B>[1k" }
  79. *Command: CmdSendBlockData { *Cmd : "<1B>[" %d{((NumOfDataBytes * 2) / 2) }";16;240.t" }
  80. }
  81. }
  82. *Feature: PaperSize
  83. {
  84. *rcNameID: =PAPER_SIZE_DISPLAY
  85. *DefaultOption: A4
  86. *Option: A4
  87. {
  88. *rcNameID: =A4_DISPLAY
  89. *switch: Orientation
  90. {
  91. *case: PORTRAIT
  92. {
  93. *PrintableArea: PAIR(1880, 2694)
  94. *PrintableOrigin: PAIR(48, 48)
  95. *CursorOrigin: PAIR(0, 0)
  96. *Command: CmdSelect
  97. {
  98. *Order: DOC_SETUP.3
  99. *Cmd: "<1B>[14;;p"
  100. }
  101. }
  102. *case: LANDSCAPE_CC90
  103. {
  104. *PrintableArea: PAIR(1880, 2694)
  105. *PrintableOrigin: PAIR(48, 48)
  106. *CursorOrigin: PAIR(0, 2806)
  107. *Command: CmdSelect
  108. {
  109. *Order: DOC_SETUP.3
  110. *Cmd: "<1B>[14;;p"
  111. }
  112. }
  113. }
  114. }
  115. *Option: A5
  116. {
  117. *rcNameID: =A5_DISPLAY
  118. *switch: Orientation
  119. {
  120. *case: PORTRAIT
  121. {
  122. *PrintableArea: PAIR(1303, 1882)
  123. *PrintableOrigin: PAIR(48, 48)
  124. *CursorOrigin: PAIR(0, 0)
  125. *Command: CmdSelect
  126. {
  127. *Order: DOC_SETUP.3
  128. *Cmd: "<1B>[16;;p"
  129. }
  130. }
  131. *case: LANDSCAPE_CC90
  132. {
  133. *PrintableArea: PAIR(1303, 1882)
  134. *PrintableOrigin: PAIR(48, 48)
  135. *CursorOrigin: PAIR(0, 1985)
  136. *Command: CmdSelect
  137. {
  138. *Order: DOC_SETUP.3
  139. *Cmd: "<1B>[16;;p"
  140. }
  141. }
  142. }
  143. }
  144. *Option: B5
  145. {
  146. *rcNameID: =B5_DISPLAY
  147. *switch: Orientation
  148. {
  149. *case: PORTRAIT
  150. {
  151. *PrintableArea: PAIR(1625, 2326)
  152. *PrintableOrigin: PAIR(48, 48)
  153. *CursorOrigin: PAIR(0, 0)
  154. *Command: CmdSelect
  155. {
  156. *Order: DOC_SETUP.3
  157. *Cmd: "<1B>[26;;p"
  158. }
  159. }
  160. *case: LANDSCAPE_CC90
  161. {
  162. *PrintableArea: PAIR(1625, 2326)
  163. *PrintableOrigin: PAIR(48, 48)
  164. *CursorOrigin: PAIR(0, 2429)
  165. *Command: CmdSelect
  166. {
  167. *Order: DOC_SETUP.3
  168. *Cmd: "<1B>[26;;p"
  169. }
  170. }
  171. }
  172. }
  173. *Option: LETTER
  174. {
  175. *rcNameID: =LETTER_DISPLAY
  176. *switch: Orientation
  177. {
  178. *case: PORTRAIT
  179. {
  180. *PrintableArea: PAIR(1944, 2537)
  181. *PrintableOrigin: PAIR(48, 48)
  182. *CursorOrigin: PAIR(0, 0)
  183. *Command: CmdSelect
  184. {
  185. *Order: DOC_SETUP.3
  186. *Cmd: "<1B>[30;;p"
  187. }
  188. }
  189. *case: LANDSCAPE_CC90
  190. {
  191. *PrintableArea: PAIR(1944, 2537)
  192. *PrintableOrigin: PAIR(48, 48)
  193. *CursorOrigin: PAIR(0, 2640)
  194. *Command: CmdSelect
  195. {
  196. *Order: DOC_SETUP.3
  197. *Cmd: "<1B>[30;;p"
  198. }
  199. }
  200. }
  201. }
  202. *Option: CUSTOMSIZE
  203. {
  204. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  205. *MinSize: PAIR(240, 240)
  206. *MaxSize: PAIR(2040, 2806)
  207. *MaxPrintableWidth: 2040
  208. *MinLeftMargin: 0
  209. *CenterPrintable?: TRUE
  210. *switch: Orientation
  211. {
  212. *case: PORTRAIT
  213. {
  214. *Command: CmdSelect
  215. {
  216. *Order: DOC_SETUP.3
  217. *Cmd: "<1B>[0;;p"
  218. }
  219. }
  220. *case: LANDSCAPE_CC90
  221. {
  222. *Command: CmdSelect
  223. {
  224. *Order: DOC_SETUP.3
  225. *Cmd: "<1B>[1;;p"
  226. }
  227. }
  228. }
  229. }
  230. }
  231. *Feature: Halftone
  232. {
  233. *rcNameID: =HALFTONING_DISPLAY
  234. *DefaultOption: HT_PATSIZE_AUTO
  235. *Option: HT_PATSIZE_AUTO
  236. {
  237. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  238. }
  239. *Option: HT_PATSIZE_SUPERCELL_M
  240. {
  241. *rcNameID: =HT_SUPERCELL_DISPLAY
  242. }
  243. *Option: HT_PATSIZE_6x6_M
  244. {
  245. *rcNameID: =HT_DITHER6X6_DISPLAY
  246. }
  247. *Option: HT_PATSIZE_8x8_M
  248. {
  249. *rcNameID: =HT_DITHER8X8_DISPLAY
  250. }
  251. }
  252. *Command: CmdStartDoc
  253. {
  254. *Order: DOC_SETUP.1
  255. *Cmd: "<1B>%<<1B>[11h<1B>[7 I<1B>%%0"
  256. }
  257. *Command: CmdEndJob
  258. {
  259. *Order: JOB_FINISH.1
  260. *Cmd: "<1B>[0q<1B>%%@<1B>%<"
  261. }
  262. *Command: CmdCopies
  263. {
  264. *Order: DOC_SETUP.5
  265. *Cmd: "<1B>[" %d[1,99]{NumOfCopies}"v"
  266. }
  267. *RotateCoordinate?: TRUE
  268. *RotateRaster?: TRUE
  269. *RotateFont?: FALSE
  270. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_RA_ABLE)
  271. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  272. *XMoveThreshold: 0
  273. *YMoveThreshold: *
  274. *XMoveUnit: 240
  275. *YMoveUnit: 240
  276. *Command: CmdXMoveAbsolute { *Cmd : "<1B>[" %d{DestX}"`" }
  277. *Command: CmdXMoveRelRight { *Cmd : "<1B>[" %d{DestXRel}"a" }
  278. *Command: CmdXMoveRelLeft { *Cmd : "<1B>[" %d{DestXRel}"j" }
  279. *Command: CmdYMoveRelDown { *Cmd : "<1B>[" %d{DestYRel}"e" }
  280. *Command: CmdYMoveRelUp { *Cmd : "<1B>[" %d{DestYRel}"k" }
  281. *Command: CmdCR { *Cmd : "<0D>" }
  282. *Command: CmdLF { *Cmd : "<0A>" }
  283. *Command: CmdFF { *Cmd : "<0C>" }
  284. *Command: CmdBackSpace { *Cmd : "<08>" }
  285. *EjectPageWithFF?: TRUE
  286. *OutputDataFormat: V_BYTE
  287. *OptimizeLeftBound?: TRUE
  288. *CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
  289. *CursorYAfterSendBlockData: NO_MOVE
  290. *DefaultCTT: -1
  291. *CharPosition: BASELINE
  292. *Command: CmdBoldOn { *Cmd : "<1B>n<1B>[?25h<1B>[1m<0E1B>[?25h<1B>[1m<0F1B>[?25h<1B>[1m" }
  293. *Command: CmdBoldOff { *Cmd : "<1B>n<1B>[?25l<0E1B>[?25l<0F1B>[?25l" }