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.

488 lines
12 KiB

  1. *GPDSpecVersion: "1.0"
  2. *CodePage: 1252
  3. *ModelName: "NEC PC-PR1000/2"
  4. *MasterUnits: PAIR(1200, 1200)
  5. *ResourceDLL: "nc62jres.dll"
  6. *PrinterType: PAGE
  7. *MaxCopies: 99
  8. *FontCartSlots: 1
  9. *PrintRateUnit: PPM
  10. *PrintRate: 6
  11. *GPDFileName: "NC62102J.GPD"
  12. *Include: "STDNAMES.GPD"
  13. *GPDFileVersion: "1.000"
  14. *%======== Macros ========
  15. *Macros: DeviceFontIDs
  16. {
  17. RC_FONT_MINCHO : 1
  18. RC_FONT_MINCHOV : 2
  19. RC_FONT_MINCHO_601 : 3
  20. RC_FONT_MINCHOV_601 : 4
  21. RC_FONT_MINCHO_602 : 5
  22. RC_FONT_MINCHOV_602 : 6
  23. RC_FONT_MINCHO_602R : 7
  24. RC_FONT_MINCHOV_602R : 8
  25. RC_FONT_MINCHO_OUT_SLT1 : 9
  26. RC_FONT_MINCHOV_OUT_SLT1 : 10
  27. RC_FONT_GOTHIC_ROM_SLT1 : 11
  28. RC_FONT_GOTHICV_ROM_SLT1 : 12
  29. RC_FONT_GOTHIC_OUT_SLT1 : 13
  30. RC_FONT_GOTHICV_OUT_SLT1 : 14
  31. RC_FONT_GOTHIC_602R : 15
  32. RC_FONT_GOTHICV_602R : 16
  33. RC_FONT_MINCHO_OUT_SLT2 : 17
  34. RC_FONT_MINCHOV_OUT_SLT2 : 18
  35. RC_FONT_GOTHIC_ROM_SLT2 : 19
  36. RC_FONT_GOTHICV_ROM_SLT2 : 20
  37. RC_FONT_GOTHIC_OUT_SLT2 : 21
  38. RC_FONT_GOTHICV_OUT_SLT2 : 22
  39. RC_FONT_COURIER : 23
  40. RC_FONT_SANSERIF : 24
  41. RC_FONT_ROMAN : 25
  42. }
  43. *Macros: OEMCallbackIDs
  44. {
  45. CMD_MOVE_X : 23
  46. CMD_MOVE_Y : 24
  47. CMD_BEGIN_RASTER : 26
  48. CMD_RES_240 : 29 *% for PR601,602,602R
  49. CMD_SEND_BLOCK_DATA : 30 *% for PR1000,1000/2,2000
  50. CMD_RES_240NEW : 31 *% for PR1000,1000/2,2000
  51. CMD_SEND_BLOCK_DATA2 : 32 *% for PR601,602,602R
  52. CMD_INIT_COORDINATE : 33
  53. CMD_PC_PRN_DIRECTION : 50
  54. CMD_CR : 51
  55. }
  56. *%-----ORIENTATION-----
  57. *Feature: Orientation
  58. {
  59. *rcNameID: =ORIENTATION_DISPLAY
  60. *DefaultOption: PORTRAIT
  61. *Option: PORTRAIT
  62. {
  63. *rcNameID: =PORTRAIT_DISPLAY
  64. }
  65. *Option: LANDSCAPE_CC270
  66. {
  67. *rcNameID: =LANDSCAPE_DISPLAY
  68. }
  69. }
  70. *%-----InputBin-----
  71. *Feature: InputBin
  72. {
  73. *rcNameID: =PAPER_SOURCE_DISPLAY
  74. *DefaultOption: Auto
  75. *Option: Auto
  76. {
  77. *rcNameID: 262
  78. }
  79. }
  80. *%-----RESOLUTION-----
  81. *Feature: Resolution
  82. {
  83. *rcNameID: =RESOLUTION_DISPLAY
  84. *DefaultOption: 240dpi
  85. *Option: 240dpi
  86. {
  87. *Name: "240 x 240 dots per inch"
  88. *DPI: PAIR(240, 240)
  89. *TextDPI: PAIR(240, 240)
  90. *MinStripBlankPixels: 32
  91. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  92. EXTERN_GLOBAL: *SendMultipleRows?: TRUE
  93. *SpotDiameter: 100
  94. *Command: CmdSelect
  95. {
  96. *Order: DOC_SETUP.5
  97. *CallbackID: =CMD_RES_240NEW
  98. }
  99. *Command: CmdBeginRaster
  100. {
  101. *CallbackID: =CMD_BEGIN_RASTER
  102. }
  103. *Command: CmdSendBlockData
  104. {
  105. *CallbackID: =CMD_SEND_BLOCK_DATA
  106. *Params: LIST(RasterDataWidthInBytes,
  107. + RasterDataHeightInPixels, NumOfDataBytes)
  108. }
  109. }
  110. }
  111. *%-----PaperSize-----
  112. *Feature: PaperSize
  113. {
  114. *rcNameID: =PAPER_SIZE_DISPLAY
  115. *DefaultOption: A4
  116. *Option: A4
  117. {
  118. *rcNameID: =A4_DISPLAY
  119. *PrintableArea: PAIR(9355, 13550)
  120. *PrintableOrigin: PAIR(380, 240)
  121. *switch: Orientation
  122. {
  123. *case: PORTRAIT
  124. {
  125. *Command: CmdSelect
  126. {
  127. *Order: DOC_SETUP.3
  128. *Cmd: "<1C>fPA4."
  129. }
  130. }
  131. *case: LANDSCAPE_CC270
  132. {
  133. *Command: CmdSelect
  134. {
  135. *Order: DOC_SETUP.3
  136. *Cmd: "<1C>fLA4."
  137. }
  138. }
  139. }
  140. }
  141. *Option: A5
  142. {
  143. *rcNameID: =A5_DISPLAY
  144. *PrintableArea: PAIR(6415, 9475)
  145. *PrintableOrigin: PAIR(380, 240)
  146. *switch: Orientation
  147. {
  148. *case: PORTRAIT
  149. {
  150. *Command: CmdSelect
  151. {
  152. *Order: DOC_SETUP.3
  153. *Cmd: "<1C>fPA5."
  154. }
  155. }
  156. *case: LANDSCAPE_CC270
  157. {
  158. *Command: CmdSelect
  159. {
  160. *Order: DOC_SETUP.3
  161. *Cmd: "<1C>fLA5."
  162. }
  163. }
  164. }
  165. }
  166. *Option: B5
  167. {
  168. *rcNameID: =B5_DISPLAY
  169. *PrintableArea: PAIR(8035, 11620)
  170. *PrintableOrigin: PAIR(380, 240)
  171. *switch: Orientation
  172. {
  173. *case: PORTRAIT
  174. {
  175. *Command: CmdSelect
  176. {
  177. *Order: DOC_SETUP.3
  178. *Cmd: "<1C>fPB5."
  179. }
  180. }
  181. *case: LANDSCAPE_CC270
  182. {
  183. *Command: CmdSelect
  184. {
  185. *Order: DOC_SETUP.3
  186. *Cmd: "<1C>fLB5."
  187. }
  188. }
  189. }
  190. }
  191. *Option: LETTER
  192. {
  193. *rcNameID: =LETTER_DISPLAY
  194. *PrintableArea: PAIR(9590, 12685)
  195. *PrintableOrigin: PAIR(380, 240)
  196. *switch: Orientation
  197. {
  198. *case: PORTRAIT
  199. {
  200. *Command: CmdSelect
  201. {
  202. *Order: DOC_SETUP.3
  203. *Cmd: "<1C>fPLT."
  204. }
  205. }
  206. *case: LANDSCAPE_CC270
  207. {
  208. *Command: CmdSelect
  209. {
  210. *Order: DOC_SETUP.3
  211. *Cmd: "<1C>fLLT."
  212. }
  213. }
  214. }
  215. }
  216. *Option: JAPANESE_POSTCARD
  217. {
  218. *rcNameID: =JAPANESE_POSTCARD_DISPLAY
  219. *switch: Orientation
  220. {
  221. *case: PORTRAIT
  222. {
  223. *PrintableArea: PAIR(4060, 6595)
  224. *PrintableOrigin: PAIR(380, 240)
  225. *Command: CmdSelect
  226. {
  227. *Order: DOC_SETUP.3
  228. *Cmd: "<1C>fPPC."
  229. }
  230. }
  231. *case: LANDSCAPE_CC270
  232. {
  233. *PrintableArea: PAIR(4060, 6470)
  234. *PrintableOrigin: PAIR(380, 240)
  235. *Command: CmdSelect
  236. {
  237. *Order: DOC_SETUP.3
  238. *Cmd: "<1C>fLPC."
  239. }
  240. }
  241. }
  242. }
  243. *Option: B4toA4
  244. {
  245. *rcNameID: 258
  246. *PageDimensions: PAIR(12144, 17196)
  247. *switch: Orientation
  248. {
  249. *case: PORTRAIT
  250. {
  251. *PrintableArea: PAIR(11385, 16675)
  252. *PrintableOrigin: PAIR(380, 240)
  253. *Command: CmdSelect
  254. {
  255. *Order: DOC_SETUP.3
  256. *Cmd: "<1C>fPB4A4."
  257. }
  258. }
  259. *case: LANDSCAPE_CC270
  260. {
  261. *PrintableArea: PAIR(11385, 16310)
  262. *PrintableOrigin: PAIR(380, 240)
  263. *Command: CmdSelect
  264. {
  265. *Order: DOC_SETUP.3
  266. *Cmd: "<1C>fLB4A4."
  267. }
  268. }
  269. }
  270. }
  271. *Option: A4x2toA4
  272. {
  273. *rcNameID: 259
  274. *PageDimensions: PAIR(9924, 14028)
  275. *PrintableArea: PAIR(9355, 13550)
  276. *PrintableOrigin: PAIR(380, 240)
  277. *switch: Orientation
  278. {
  279. *case: PORTRAIT
  280. {
  281. *Command: CmdSelect
  282. {
  283. *Order: DOC_SETUP.3
  284. *Cmd: "<1C>fPUPA4."
  285. }
  286. }
  287. *case: LANDSCAPE_CC270
  288. {
  289. *Command: CmdSelect
  290. {
  291. *Order: DOC_SETUP.3
  292. *Cmd: "<1C>fLUPA4."
  293. }
  294. }
  295. }
  296. }
  297. *Option: LPtoA4
  298. {
  299. *rcNameID: 260
  300. *PageDimensions: PAIR(13200, 18000)
  301. *Constraints: Orientation.PORTRAIT
  302. *PrintableArea: PAIR(13200, 16320)
  303. *PrintableOrigin: PAIR(0, 840)
  304. *Command: CmdSelect
  305. {
  306. *Order: DOC_SETUP.3
  307. *Cmd: "<1C>fLLPA4."
  308. }
  309. }
  310. }
  311. *%-----HALFTONE-----
  312. *Feature: Halftone
  313. {
  314. *rcNameID: =HALFTONING_DISPLAY
  315. *DefaultOption: HT_PATSIZE_AUTO
  316. *Option: HT_PATSIZE_AUTO
  317. {
  318. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  319. }
  320. *Option: HT_PATSIZE_SUPERCELL_M
  321. {
  322. *rcNameID: =HT_SUPERCELL_DISPLAY
  323. }
  324. *Option: HT_PATSIZE_6x6_M
  325. {
  326. *rcNameID: =HT_DITHER6X6_DISPLAY
  327. }
  328. *Option: HT_PATSIZE_8x8_M
  329. {
  330. *rcNameID: =HT_DITHER8X8_DISPLAY
  331. }
  332. }
  333. *%======== TextHalftoneThreshold ========
  334. *Feature: TextHalftoneThreshold
  335. {
  336. *rcNameID: =TEXTHALFTONE_DISPLAY
  337. *DefaultOption: 240
  338. *Option: NONE
  339. {
  340. *rcNameID: =NONE_DISPLAY
  341. }
  342. *Option: 240
  343. {
  344. *Name: "240"
  345. EXTERN_GLOBAL: *TextHalftoneThreshold: 240
  346. }
  347. }
  348. *%-----START DOC-----
  349. *Command: CmdStartDoc
  350. {
  351. *Order: DOC_SETUP.1
  352. *Cmd: "<1B>c1<1C>d240.<1B>K"
  353. }
  354. *%-----COPIES-----
  355. *Command: CmdCopies
  356. {
  357. *Order: DOC_SETUP.4
  358. *Cmd: "<1C>x" %d[1,99]{NumOfCopies}"."
  359. }
  360. *%-----START PAGE-----
  361. *Command: CmdStartPage
  362. {
  363. *Order: PAGE_SETUP.1
  364. *CallbackID: =CMD_INIT_COORDINATE
  365. }
  366. *%-----END JOB-----
  367. *Command: CmdEndJob
  368. {
  369. *Order: JOB_FINISH.1
  370. *Cmd: "<1B>c1"
  371. }
  372. *%-----END PAGE-----
  373. *Command: CmdEndPage
  374. {
  375. *Order: PAGE_FINISH.1
  376. *Cmd: "<1C>R<1C>x" %d[1,99]{NumOfCopies}"."
  377. }
  378. *%-----CAPABILITIES-----
  379. *RotateCoordinate?: FALSE
  380. *RotateRaster?: TRUE
  381. *RotateFont?: TRUE
  382. *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)
  383. *%-----CURSOR MOVE-----
  384. *CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
  385. *XMoveUnit: 240
  386. *YMoveUnit: 240
  387. *Command: CmdXMoveAbsolute
  388. {
  389. *CallbackID: =CMD_MOVE_X
  390. *Params: LIST(DestX,DestY,TextXRes,TextYRes)
  391. }
  392. *Command: CmdYMoveAbsolute
  393. {
  394. *CallbackID: =CMD_MOVE_Y
  395. *Params: LIST(DestX,DestY,TextXRes,TextYRes)
  396. }
  397. *Command: CmdCR { *CallbackID: =CMD_CR }
  398. *Command: CmdLF { *Cmd : "<0A>" }
  399. *Command: CmdFF { *Cmd : "<1C>R<0D0C>" }
  400. *Command: CmdSetSimpleRotation
  401. {
  402. *CallbackID: =CMD_PC_PRN_DIRECTION
  403. *Params: LIST(PrintDirInCCDegrees)
  404. }
  405. *%-----RASTER DATA-----
  406. *EjectPageWithFF?: TRUE
  407. *OutputDataFormat: H_BYTE
  408. *OptimizeLeftBound?: TRUE
  409. *CursorXAfterSendBlockData: AT_CURSOR_X_ORIGIN
  410. *CursorYAfterSendBlockData: NO_MOVE
  411. *%-----DEVICE FONT-----
  412. *DefaultFont: =RC_FONT_MINCHO
  413. *DefaultCTT: 1
  414. *CharPosition: BASELINE
  415. *DeviceFonts: LIST(=RC_FONT_MINCHO,=RC_FONT_MINCHOV,
  416. + =RC_FONT_COURIER,=RC_FONT_SANSERIF,=RC_FONT_ROMAN)
  417. *FontCartridge: FC1 *%Gothic Outline
  418. {
  419. *rcCartridgeNameID: 268
  420. *Fonts: LIST(=RC_FONT_GOTHIC_OUT_SLT1,=RC_FONT_GOTHICV_OUT_SLT1)
  421. }
  422. *FontCartridge: FC2 *%Gothic ROM
  423. {
  424. *rcCartridgeNameID: 271
  425. *Fonts: LIST(=RC_FONT_GOTHIC_OUT_SLT1,=RC_FONT_GOTHICV_OUT_SLT1)
  426. }
  427. *%-----FONT SIMULATION-----
  428. *Command: CmdBoldOn { *Cmd : "<1C>c,,1,7." }
  429. *Command: CmdItalicOn { *Cmd : "<1C>c,,2,7." }
  430. *Command: CmdClearAllFontAttribs { *Cmd : "<1C>c,,0,7." }
  431. *%========== RectFill ==========
  432. *% *MinGrayFill: 1
  433. *% *MaxGrayFill: 100
  434. *% *Command: CmdSetRectWidth
  435. *% {
  436. *% *CallbackID: 60
  437. *% *Params: LIST(RectXSize)
  438. *% }
  439. *% *Command: CmdSetRectHeight
  440. *% {
  441. *% *CallbackID: 61
  442. *% *Params: LIST(RectYSize)
  443. *% }
  444. *% *Command: CmdRectBlackFill { *CallbackID: 63 }