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.

353 lines
8.0 KiB

  1. *GPDSpecVersion: "1.0"
  2. *CodePage: 1252
  3. *ModelName: "NEC PC-PR601"
  4. *MasterUnits: PAIR(1200, 1200)
  5. *ResourceDLL: "nc62jres.dll"
  6. *PrinterType: PAGE
  7. *MaxCopies: 99
  8. *PrintRateUnit: PPM
  9. *PrintRate: 8
  10. *GPDFileName: "NC6261J.GPD"
  11. *Include: "STDNAMES.GPD"
  12. *GPDFileVersion: "1.000"
  13. *%======== Macros ========
  14. *Macros: DeviceFontIDs
  15. {
  16. RC_FONT_MINCHO : 1
  17. RC_FONT_MINCHOV : 2
  18. RC_FONT_MINCHO_601 : 3
  19. RC_FONT_MINCHOV_601 : 4
  20. RC_FONT_MINCHO_602 : 5
  21. RC_FONT_MINCHOV_602 : 6
  22. RC_FONT_MINCHO_602R : 7
  23. RC_FONT_MINCHOV_602R : 8
  24. RC_FONT_MINCHO_OUT_SLT1 : 9
  25. RC_FONT_MINCHOV_OUT_SLT1 : 10
  26. RC_FONT_GOTHIC_ROM_SLT1 : 11
  27. RC_FONT_GOTHICV_ROM_SLT1 : 12
  28. RC_FONT_GOTHIC_OUT_SLT1 : 13
  29. RC_FONT_GOTHICV_OUT_SLT1 : 14
  30. RC_FONT_GOTHIC_602R : 15
  31. RC_FONT_GOTHICV_602R : 16
  32. RC_FONT_MINCHO_OUT_SLT2 : 17
  33. RC_FONT_MINCHOV_OUT_SLT2 : 18
  34. RC_FONT_GOTHIC_ROM_SLT2 : 19
  35. RC_FONT_GOTHICV_ROM_SLT2 : 20
  36. RC_FONT_GOTHIC_OUT_SLT2 : 21
  37. RC_FONT_GOTHICV_OUT_SLT2 : 22
  38. RC_FONT_COURIER : 23
  39. RC_FONT_SANSERIF : 24
  40. RC_FONT_ROMAN : 25
  41. }
  42. *Macros: OEMCallbackIDs
  43. {
  44. CMD_MOVE_X : 23
  45. CMD_MOVE_Y : 24
  46. CMD_BEGIN_RASTER : 26
  47. CMD_RES_240 : 29 *% for PR601,602,602R
  48. CMD_SEND_BLOCK_DATA : 30 *% for PR1000,1000/2,2000
  49. CMD_RES_240NEW : 31 *% for PR1000,1000/2,2000
  50. CMD_SEND_BLOCK_DATA2 : 32 *% for PR601,602,602R
  51. CMD_INIT_COORDINATE : 33
  52. CMD_PC_PRN_DIRECTION : 50
  53. CMD_CR : 51
  54. }
  55. *%-----ORIENTATION-----
  56. *Feature: Orientation
  57. {
  58. *rcNameID: =ORIENTATION_DISPLAY
  59. *DefaultOption: PORTRAIT
  60. *Option: PORTRAIT
  61. {
  62. *rcNameID: =PORTRAIT_DISPLAY
  63. }
  64. *Option: LANDSCAPE_CC270
  65. {
  66. *rcNameID: =LANDSCAPE_DISPLAY
  67. }
  68. }
  69. *%-----InputBin-----
  70. *Feature: InputBin
  71. {
  72. *rcNameID: =PAPER_SOURCE_DISPLAY
  73. *DefaultOption: Auto
  74. *Option: Auto
  75. {
  76. *rcNameID: 262
  77. }
  78. }
  79. *%-----RESOLUTION-----
  80. *Feature: Resolution
  81. {
  82. *rcNameID: =RESOLUTION_DISPLAY
  83. *DefaultOption: 240dpi
  84. *Option: 240dpi
  85. {
  86. *Name: "240 x 240 dots per inch"
  87. *DPI: PAIR(240, 240)
  88. *TextDPI: PAIR(240, 240)
  89. *MinStripBlankPixels: 32
  90. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  91. EXTERN_GLOBAL: *SendMultipleRows?: TRUE
  92. *SpotDiameter: 100
  93. *Command: CmdSelect
  94. {
  95. *Order: DOC_SETUP.5
  96. *CallbackID: =CMD_RES_240
  97. }
  98. *Command: CmdBeginRaster
  99. {
  100. *CallbackID: =CMD_BEGIN_RASTER
  101. }
  102. *Command: CmdSendBlockData
  103. {
  104. *CallbackID: =CMD_SEND_BLOCK_DATA2
  105. *Params: LIST(RasterDataWidthInBytes,
  106. + RasterDataHeightInPixels, NumOfDataBytes)
  107. }
  108. }
  109. }
  110. *%-----PaperSize-----
  111. *Feature: PaperSize
  112. {
  113. *rcNameID: =PAPER_SIZE_DISPLAY
  114. *DefaultOption: A4
  115. *Option: A4
  116. {
  117. *rcNameID: =A4_DISPLAY
  118. *PrintableArea: PAIR(9305, 13550)
  119. *PrintableOrigin: PAIR(380, 240)
  120. *switch: Orientation
  121. {
  122. *case: PORTRAIT
  123. {
  124. *Command: CmdSelect
  125. {
  126. *Order: DOC_SETUP.3
  127. *Cmd: "<1C>fPC0."
  128. }
  129. }
  130. *case: LANDSCAPE_CC270
  131. {
  132. *Command: CmdSelect
  133. {
  134. *Order: DOC_SETUP.3
  135. *Cmd: "<1C>fLC0."
  136. }
  137. }
  138. }
  139. }
  140. *Option: B5
  141. {
  142. *rcNameID: =B5_DISPLAY
  143. *PrintableArea: PAIR(7985, 11620)
  144. *PrintableOrigin: PAIR(380, 240)
  145. *switch: Orientation
  146. {
  147. *case: PORTRAIT
  148. {
  149. *Command: CmdSelect
  150. {
  151. *Order: DOC_SETUP.3
  152. *Cmd: "<1C>fPC0."
  153. }
  154. }
  155. *case: LANDSCAPE_CC270
  156. {
  157. *Command: CmdSelect
  158. {
  159. *Order: DOC_SETUP.3
  160. *Cmd: "<1C>fLC0."
  161. }
  162. }
  163. }
  164. }
  165. *Option: JAPANESE_POSTCARD
  166. {
  167. *rcNameID: =JAPANESE_POSTCARD_DISPLAY
  168. *PrintableArea: PAIR(3970, 6235)
  169. *PrintableOrigin: PAIR(380, 380)
  170. *switch: Orientation
  171. {
  172. *case: PORTRAIT
  173. {
  174. *Command: CmdSelect
  175. {
  176. *Order: DOC_SETUP.3
  177. *Cmd: "<1C>fPC0."
  178. }
  179. }
  180. *case: LANDSCAPE_CC270
  181. {
  182. *Command: CmdSelect
  183. {
  184. *Order: DOC_SETUP.3
  185. *Cmd: "<1C>fLC0."
  186. }
  187. }
  188. }
  189. }
  190. }
  191. *%-----HALFTONE-----
  192. *Feature: Halftone
  193. {
  194. *rcNameID: =HALFTONING_DISPLAY
  195. *DefaultOption: HT_PATSIZE_AUTO
  196. *Option: HT_PATSIZE_AUTO
  197. {
  198. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  199. }
  200. *Option: HT_PATSIZE_SUPERCELL_M
  201. {
  202. *rcNameID: =HT_SUPERCELL_DISPLAY
  203. }
  204. *Option: HT_PATSIZE_6x6_M
  205. {
  206. *rcNameID: =HT_DITHER6X6_DISPLAY
  207. }
  208. *Option: HT_PATSIZE_8x8_M
  209. {
  210. *rcNameID: =HT_DITHER8X8_DISPLAY
  211. }
  212. }
  213. *%======== TextHalftoneThreshold ========
  214. *Feature: TextHalftoneThreshold
  215. {
  216. *rcNameID: =TEXTHALFTONE_DISPLAY
  217. *DefaultOption: 240
  218. *Option: NONE
  219. {
  220. *rcNameID: =NONE_DISPLAY
  221. }
  222. *Option: 240
  223. {
  224. *Name: "240"
  225. EXTERN_GLOBAL: *TextHalftoneThreshold: 240
  226. }
  227. }
  228. *%-----START DOC-----
  229. *Command: CmdStartDoc
  230. {
  231. *Order: DOC_SETUP.1
  232. *Cmd: "<1B>c1<1C>d240.<1B>K"
  233. }
  234. *%-----COPIES-----
  235. *Command: CmdCopies
  236. {
  237. *Order: DOC_SETUP.4
  238. *Cmd: "<1C>x" %d[1,99]{NumOfCopies}"."
  239. }
  240. *%-----START PAGE-----
  241. *Command: CmdStartPage
  242. {
  243. *Order: PAGE_SETUP.1
  244. *CallbackID: =CMD_INIT_COORDINATE
  245. }
  246. *%-----END JOB-----
  247. *Command: CmdEndJob
  248. {
  249. *Order: JOB_FINISH.1
  250. *Cmd: "<1B>c1"
  251. }
  252. *%-----END PAGE-----
  253. *Command: CmdEndPage
  254. {
  255. *Order: PAGE_FINISH.1
  256. *Cmd: "<1C>R<1C>x" %d[1,99]{NumOfCopies}"."
  257. }
  258. *%-----CAPABILITIES-----
  259. *RotateCoordinate?: FALSE
  260. *RotateRaster?: TRUE
  261. *RotateFont?: TRUE
  262. *TextCaps: LIST(TC_OP_CHARACTER,TC_CR_90,TC_SF_X_YINDEP,TC_SA_DOUBLE,TC_SA_INTEGER,TC_SA_CONTIN,TC_EA_DOUBLE,TC_IA_ABLE)
  263. *%-----CURSOR MOVE-----
  264. *CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
  265. *XMoveUnit: 240
  266. *YMoveUnit: 240
  267. *Command: CmdXMoveAbsolute
  268. {
  269. *CallbackID: =CMD_MOVE_X
  270. *Params: LIST(DestX,DestY,TextXRes,TextYRes)
  271. }
  272. *Command: CmdYMoveAbsolute
  273. {
  274. *CallbackID: =CMD_MOVE_Y
  275. *Params: LIST(DestX,DestY,TextXRes,TextYRes)
  276. }
  277. *EjectPageWithFF?: TRUE
  278. *Command: CmdCR { *CallbackID: =CMD_CR }
  279. *Command: CmdLF { *Cmd : "<0A>" }
  280. *Command: CmdFF { *Cmd : "<1C>R<0D0C>" }
  281. *Command: CmdSetSimpleRotation
  282. {
  283. *CallbackID: =CMD_PC_PRN_DIRECTION
  284. *Params: LIST(PrintDirInCCDegrees)
  285. }
  286. *%-----RASTER DATA-----
  287. *OutputDataFormat: H_BYTE
  288. *OptimizeLeftBound?: TRUE
  289. *CursorXAfterSendBlockData: AT_CURSOR_X_ORIGIN
  290. *CursorYAfterSendBlockData: NO_MOVE
  291. *%-----DEVICE FONT-----
  292. *DefaultFont: =RC_FONT_MINCHO_601
  293. *DefaultCTT: 1
  294. *CharPosition: BASELINE
  295. *DeviceFonts: LIST(=RC_FONT_MINCHO_601,=RC_FONT_MINCHOV_601)
  296. *%-----FONT SIMULATION-----
  297. *Command: CmdBoldOn { *Cmd : "<1B><21>" }
  298. *Command: CmdBoldOff { *Cmd : "<1B><22>" }
  299. *%========== RectFill ==========
  300. *% *MinGrayFill: 1
  301. *% *MaxGrayFill: 100
  302. *% *Command: CmdSetRectWidth
  303. *% {
  304. *% *CallbackID: 60
  305. *% *Params: LIST(RectXSize)
  306. *% }
  307. *% *Command: CmdSetRectHeight
  308. *% {
  309. *% *CallbackID: 61
  310. *% *Params: LIST(RectYSize)
  311. *% }
  312. *% *Command: CmdRectBlackFill { *CallbackID: 63 }