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.

255 lines
6.5 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "CNBJ10SX.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "Canon Bubble-Jet BJ-10sx"
  10. *MasterUnits: PAIR(720, 720)
  11. *ResourceDLL: "cn330res.dll"
  12. *PrinterType: SERIAL
  13. *Feature: Orientation
  14. {
  15. *rcNameID: =ORIENTATION_DISPLAY
  16. *DefaultOption: PORTRAIT
  17. *Option: PORTRAIT
  18. {
  19. *rcNameID: =PORTRAIT_DISPLAY
  20. }
  21. *Option: LANDSCAPE_CC270
  22. {
  23. *rcNameID: =LANDSCAPE_DISPLAY
  24. }
  25. }
  26. *Feature: InputBin
  27. {
  28. *rcNameID: =PAPER_SOURCE_DISPLAY
  29. *DefaultOption: AUTO
  30. *Option: AUTO
  31. {
  32. *rcNameID: =AUTO_DISPLAY
  33. }
  34. *Option: MANUAL
  35. {
  36. *rcNameID: =MANUAL_FEED_DISPLAY
  37. }
  38. }
  39. *Feature: Resolution
  40. {
  41. *rcNameID: =RESOLUTION_DISPLAY
  42. *DefaultOption: Option1
  43. *Option: Option1
  44. {
  45. *Name: "360 x 360 " =DOTS_PER_INCH
  46. *DPI: PAIR(360, 360)
  47. *TextDPI: PAIR(360, 360)
  48. *PinsPerLogPass: 48
  49. *PinsPerPhysPass: 48
  50. *MinStripBlankPixels: 270
  51. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  52. *SpotDiameter: 100
  53. *Command: CmdSendBlockData { *Cmd : "<1B>[g" %l{((NumOfDataBytes * 6) / 6) + 1}"<10>" }
  54. }
  55. *Option: Option2
  56. {
  57. *Name: "180 x 180 " =DOTS_PER_INCH
  58. *DPI: PAIR(180, 180)
  59. *TextDPI: PAIR(180, 180)
  60. *PinsPerLogPass: 24
  61. *PinsPerPhysPass: 24
  62. *MinStripBlankPixels: 135
  63. EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
  64. *SpotDiameter: 100
  65. *Command: CmdSendBlockData { *Cmd : "<1B>[g" %l{((NumOfDataBytes * 3) / 3) + 1}"<0B>" }
  66. }
  67. *Option: Option3
  68. {
  69. *Name: "120 x 180 " =DOTS_PER_INCH
  70. *DPI: PAIR(120, 180)
  71. *TextDPI: PAIR(120, 180)
  72. *PinsPerLogPass: 24
  73. *PinsPerPhysPass: 24
  74. *MinStripBlankPixels: 90
  75. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  76. *SpotDiameter: 100
  77. *Command: CmdSendBlockData { *Cmd : "<1B>[g" %l{((NumOfDataBytes * 3) / 3) + 1}"<09>" }
  78. }
  79. }
  80. *Feature: PaperSize
  81. {
  82. *rcNameID: =PAPER_SIZE_DISPLAY
  83. *DefaultOption: LETTER
  84. *Option: LETTER
  85. {
  86. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  87. *PrintableArea: PAIR(5760, 7380)
  88. *PrintableOrigin: PAIR(180, 60)
  89. *Command: CmdSelect
  90. {
  91. *Order: DOC_SETUP.4
  92. *Cmd: "<1B>C<000B>"
  93. }
  94. }
  95. *Option: LEGAL
  96. {
  97. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  98. *PrintableArea: PAIR(5760, 9540)
  99. *PrintableOrigin: PAIR(180, 60)
  100. *Command: CmdSelect
  101. {
  102. *Order: DOC_SETUP.4
  103. *Cmd: "<1B>C<000E>"
  104. }
  105. }
  106. *Option: A4
  107. {
  108. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  109. *PrintableArea: PAIR(5740, 7877)
  110. *PrintableOrigin: PAIR(120, 60)
  111. *switch: Resolution
  112. {
  113. *case: Option1
  114. {
  115. *PrintableArea: PAIR(5740, 7876)
  116. }
  117. *case: Option2
  118. {
  119. *PrintableArea: PAIR(5740, 7876)
  120. }
  121. *case: Option3
  122. {
  123. *PrintableArea: PAIR(5736, 7876)
  124. }
  125. }
  126. *Command: CmdSelect
  127. {
  128. *Order: DOC_SETUP.4
  129. *Cmd: "<1B>0<1B>C^"
  130. }
  131. }
  132. *Option: Option4
  133. {
  134. *rcNameID: 260
  135. *PageDimensions: PAIR(6840, 2974)
  136. *PrintableArea: PAIR(5760, 1894)
  137. *PrintableOrigin: PAIR(180, 504)
  138. *switch: Resolution
  139. {
  140. *case: Option2
  141. {
  142. *PrintableArea: PAIR(5760, 1892)
  143. }
  144. *case: Option3
  145. {
  146. *PrintableArea: PAIR(5760, 1892)
  147. }
  148. }
  149. *Command: CmdSelect
  150. {
  151. *Order: DOC_SETUP.4
  152. *Cmd: "<1B>0<1B>CD"
  153. }
  154. }
  155. *Option: CUSTOMSIZE
  156. {
  157. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  158. *MinSize: PAIR(720, 720)
  159. *MaxSize: PAIR(6120, 11080)
  160. *MaxPrintableWidth: 5760
  161. *MinLeftMargin: 120
  162. *CenterPrintable?: FALSE
  163. *TopMargin: 60
  164. *BottomMargin: 480
  165. }
  166. }
  167. *Feature: Halftone
  168. {
  169. *rcNameID: =HALFTONING_DISPLAY
  170. *DefaultOption: HT_PATSIZE_AUTO
  171. *Option: HT_PATSIZE_AUTO
  172. {
  173. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  174. }
  175. *Ifdef: WINNT_50
  176. *Option: HT_PATSIZE_SUPERCELL_M
  177. {
  178. *rcNameID: =HT_SUPERCELL_DISPLAY
  179. }
  180. *Endif:
  181. *Option: HT_PATSIZE_6x6_M
  182. {
  183. *rcNameID: =HT_DITHER6X6_DISPLAY
  184. }
  185. *Option: HT_PATSIZE_8x8_M
  186. {
  187. *rcNameID: =HT_DITHER8X8_DISPLAY
  188. }
  189. }
  190. *Command: CmdStartDoc
  191. {
  192. *Order: DOC_SETUP.1
  193. *Cmd: "<1B>[\<0400B400B4001B>[T<0400000003>R<1B>6"
  194. }
  195. *Command: CmdStartPage
  196. {
  197. *Order: PAGE_SETUP.1
  198. *Cmd: "<1B>4<0D>"
  199. }
  200. *Command: CmdEndJob
  201. {
  202. *Order: JOB_FINISH.1
  203. *Cmd: "<1B>[K<010000>"
  204. }
  205. *RotateCoordinate?: FALSE
  206. *RotateRaster?: FALSE
  207. *RotateFont?: FALSE
  208. *switch: Orientation
  209. {
  210. *case: PORTRAIT
  211. {
  212. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_UA_ABLE,TC_RA_ABLE)
  213. }
  214. *case: LANDSCAPE_CC270
  215. {
  216. *TextCaps: LIST(TC_RA_ABLE)
  217. }
  218. }
  219. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  220. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  221. *MaxLineSpacing: 255
  222. *XMoveThreshold: *
  223. *XMoveUnit: 120
  224. *Command: CmdXMoveRelRight { *Cmd : "<1B>d" %l{(DestXRel / 6) } }
  225. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{(LinefeedSpacing / 4) } }
  226. *Command: CmdCR { *Cmd : "<0D>" }
  227. *Command: CmdLF { *Cmd : "<0A>" }
  228. *Command: CmdFF { *Cmd : "<0C>" }
  229. *Command: CmdBackSpace { *Cmd : "<08>" }
  230. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  231. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  232. *EjectPageWithFF?: TRUE
  233. *OutputDataFormat: V_BYTE
  234. *OptimizeLeftBound?: FALSE
  235. *CursorXAfterSendBlockData: AT_GRXDATA_END
  236. *CursorYAfterSendBlockData: NO_MOVE
  237. *DefaultFont: 69
  238. *DefaultCTT: -2
  239. *switch: Orientation
  240. {
  241. *case: PORTRAIT
  242. {
  243. *DeviceFonts: LIST(68,69,70,71,72,73,74,75)
  244. }
  245. *case: LANDSCAPE_CC270
  246. {
  247. *DeviceFonts: LIST()
  248. }
  249. }
  250. *Command: CmdBoldOn { *Cmd : "<1B>G" }
  251. *Command: CmdBoldOff { *Cmd : "<1B>H" }
  252. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  253. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }
  254. *Command: CmdSelectSingleByteMode { *Cmd : "<1B>p<01>" }
  255. *Command: CmdSelectDoubleByteMode { *Cmd : "<1B>p<00>" }