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.

512 lines
13 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *%% *GPDFileName: "HPDJ400.GPD"
  7. *GPDFileName: "NCDJ400.GPD"
  8. *GPDFileVersion: "1.0"
  9. *Include: "StdNames.gpd"
  10. *%% *ModelName: "HP DeskJet 400"
  11. *ModelName: "NEC PICTY80L"
  12. *MasterUnits: PAIR(600, 600)
  13. *ResourceDLL: "hpdjres.dll"
  14. *PrinterType: SERIAL
  15. *OutputOrderReversed?: TRUE
  16. *Feature: Orientation
  17. {
  18. *rcNameID: =ORIENTATION_DISPLAY
  19. *DefaultOption: PORTRAIT
  20. *Option: PORTRAIT
  21. {
  22. *rcNameID: =PORTRAIT_DISPLAY
  23. }
  24. *Option: LANDSCAPE_CC270
  25. {
  26. *rcNameID: =LANDSCAPE_DISPLAY
  27. }
  28. }
  29. *Feature: InputBin
  30. {
  31. *rcNameID: =PAPER_SOURCE_DISPLAY
  32. *DefaultOption: AUTO
  33. *Option: AUTO
  34. {
  35. *rcNameID: =AUTO_DISPLAY
  36. *Command: CmdSelect
  37. {
  38. *Order: DOC_SETUP.4
  39. *Cmd: "<1B>&l1H"
  40. }
  41. }
  42. *Option: MANUAL
  43. {
  44. *rcNameID: =MANUAL_FEED_DISPLAY
  45. *Command: CmdSelect
  46. {
  47. *Order: DOC_SETUP.4
  48. *Cmd: "<1B>&l2H"
  49. }
  50. }
  51. }
  52. *Feature: Resolution
  53. {
  54. *rcNameID: =RESOLUTION_DISPLAY
  55. *DefaultOption: Option1
  56. *Option: Option1
  57. {
  58. *Name: "300 x 300 " =DOTS_PER_INCH
  59. *DPI: PAIR(300, 300)
  60. *TextDPI: PAIR(300, 300)
  61. EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
  62. *SpotDiameter: 160
  63. *Command: CmdBeginRaster { *Cmd : "<1B>*r1A" }
  64. *Command: CmdEndRaster { *Cmd : "<1B>*rC" }
  65. *Command: CmdSendBlockData { *Cmd : "<1B>*b" %d{NumOfDataBytes}"W" }
  66. *Command: CmdSelect
  67. {
  68. *Order: DOC_SETUP.6
  69. *Cmd: "<1B>*t300R"
  70. }
  71. }
  72. *Option: Option2
  73. {
  74. *Name: "150 x 150 " =DOTS_PER_INCH
  75. *DPI: PAIR(150, 150)
  76. *TextDPI: PAIR(150, 150)
  77. EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
  78. *SpotDiameter: 140
  79. *Command: CmdBeginRaster { *Cmd : "<1B>*r1A" }
  80. *Command: CmdEndRaster { *Cmd : "<1B>*rC" }
  81. *Command: CmdSendBlockData { *Cmd : "<1B>*b" %d{NumOfDataBytes}"W" }
  82. *Command: CmdSelect
  83. {
  84. *Order: DOC_SETUP.6
  85. *Cmd: "<1B>*t150R"
  86. }
  87. }
  88. }
  89. *Feature: PaperSize
  90. {
  91. *rcNameID: =PAPER_SIZE_DISPLAY
  92. *DefaultOption: LETTER
  93. *Option: LETTER
  94. {
  95. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% 1000
  96. *PrintableArea: PAIR(4800, 6050)
  97. *PrintableOrigin: PAIR(150, 150)
  98. *switch: Resolution
  99. {
  100. *case: Option2
  101. {
  102. *PrintableArea: PAIR(4796, 6048)
  103. *PrintableOrigin: PAIR(148, 152)
  104. }
  105. }
  106. *CursorOrigin: PAIR(150, 40)
  107. *Command: CmdSelect
  108. {
  109. *Order: DOC_SETUP.5
  110. *Cmd: "<1B>&l2A"
  111. }
  112. }
  113. *IgnoreBlock: {
  114. *Option: LEGAL
  115. {
  116. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% 1004
  117. *PrintableArea: PAIR(4800, 7850)
  118. *PrintableOrigin: PAIR(150, 150)
  119. *switch: Resolution
  120. {
  121. *case: Option2
  122. {
  123. *PrintableArea: PAIR(4796, 7848)
  124. *PrintableOrigin: PAIR(148, 152)
  125. }
  126. }
  127. *CursorOrigin: PAIR(150, 30)
  128. *Command: CmdSelect
  129. {
  130. *Order: DOC_SETUP.5
  131. *Cmd: "<1B>&l3A"
  132. }
  133. }
  134. }
  135. *Option: A4
  136. {
  137. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% 1008
  138. *PrintableArea: PAIR(4782, 6464)
  139. *PrintableOrigin: PAIR(76, 150)
  140. *switch: Resolution
  141. {
  142. *case: Option2
  143. {
  144. *PrintableArea: PAIR(4782, 6460)
  145. *PrintableOrigin: PAIR(76, 152)
  146. }
  147. }
  148. *CursorOrigin: PAIR(76, 50)
  149. *Command: CmdSelect
  150. {
  151. *Order: DOC_SETUP.5
  152. *Cmd: "<1B>&l26A"
  153. }
  154. }
  155. *IgnoreBlock: {
  156. *Option: EXECUTIVE
  157. {
  158. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% 1006
  159. *PrintableArea: PAIR(4030, 5750)
  160. *PrintableOrigin: PAIR(150, 150)
  161. *switch: Resolution
  162. {
  163. *case: Option2
  164. {
  165. *PrintableArea: PAIR(4028, 5748)
  166. *PrintableOrigin: PAIR(152, 152)
  167. }
  168. }
  169. *CursorOrigin: PAIR(126, 40)
  170. *Command: CmdSelect
  171. {
  172. *Order: DOC_SETUP.5
  173. *Cmd: "<1B>&l1A"
  174. }
  175. }
  176. }
  177. *Option: B5
  178. {
  179. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% 1012
  180. *PrintableArea: PAIR(4112, 5572)
  181. *PrintableOrigin: PAIR(70, 100)
  182. *switch: Resolution
  183. {
  184. *case: Option2
  185. {
  186. *PrintableArea: PAIR(4108, 5572)
  187. *PrintableOrigin: PAIR(72, 100)
  188. }
  189. }
  190. *CursorOrigin: PAIR(60, 0)
  191. *Command: CmdSelect
  192. {
  193. *Order: DOC_SETUP.5
  194. *Cmd: "<1B>&l45A"
  195. }
  196. }
  197. *IgnoreBlock: {
  198. *Option: Option6
  199. {
  200. *rcNameID: 264
  201. *PageDimensions: PAIR(2362, 3496)
  202. *PrintableArea: PAIR(2202, 2996)
  203. *PrintableOrigin: PAIR(70, 100)
  204. *switch: Resolution
  205. {
  206. *case: Option2
  207. {
  208. *PrintableArea: PAIR(2200, 2996)
  209. *PrintableOrigin: PAIR(72, 100)
  210. }
  211. }
  212. *CursorOrigin: PAIR(60, 0)
  213. *Command: CmdSelect
  214. {
  215. *Order: DOC_SETUP.5
  216. *Cmd: "<1B>&l-71A"
  217. }
  218. }
  219. *Option: ENV_10
  220. {
  221. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% 1019
  222. *PrintableArea: PAIR(2318, 5100)
  223. *PrintableOrigin: PAIR(70, 100)
  224. *switch: Resolution
  225. {
  226. *case: Option2
  227. {
  228. *PrintableArea: PAIR(2306, 5100)
  229. *PrintableOrigin: PAIR(58, 100)
  230. }
  231. }
  232. *CursorOrigin: PAIR(40, 0)
  233. *Command: CmdSelect
  234. {
  235. *Order: DOC_SETUP.5
  236. *Cmd: "<1B>&l-81A"
  237. }
  238. }
  239. *Option: ENV_DL
  240. {
  241. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% 1026
  242. *PrintableArea: PAIR(2438, 4606)
  243. *PrintableOrigin: PAIR(70, 90)
  244. *switch: Resolution
  245. {
  246. *case: Option2
  247. {
  248. *PrintableArea: PAIR(2436, 4604)
  249. *PrintableOrigin: PAIR(72, 92)
  250. }
  251. }
  252. *CursorOrigin: PAIR(30, 0)
  253. *Command: CmdSelect
  254. {
  255. *Order: DOC_SETUP.5
  256. *Cmd: "<1B>&l-90A"
  257. }
  258. }
  259. }
  260. *Option: JAPANESE_POSTCARD
  261. {
  262. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  263. *PrintableArea: PAIR(2056, 2944)
  264. *PrintableOrigin: PAIR(152, 152)
  265. *CursorOrigin: PAIR(76, 90)
  266. *Command: CmdSelect
  267. {
  268. *Order: DOC_SETUP.5
  269. *Cmd: "<1B>&l71A"
  270. }
  271. }
  272. }
  273. *Feature: MediaType
  274. {
  275. *rcNameID: =MEDIA_TYPE_DISPLAY
  276. *DefaultOption: STANDARD
  277. *Option: STANDARD
  278. {
  279. *rcNameID: =PLAIN_PAPER_DISPLAY
  280. *Command: CmdSelect
  281. {
  282. *Order: PAGE_SETUP.8
  283. *Cmd: "<1B>&b10T"
  284. }
  285. }
  286. *Option: PICTY_SPECIAL_PAPER
  287. {
  288. *rcNameID: 295
  289. *Command: CmdSelect
  290. {
  291. *Order: PAGE_SETUP.8
  292. *Cmd: "<1B>&b10T"
  293. }
  294. }
  295. *Option: TRANSPARENCY
  296. {
  297. *rcNameID: =TRANSPARENCY_DISPLAY
  298. *Command: CmdSelect
  299. {
  300. *Order: PAGE_SETUP.8
  301. *Cmd: "<1B>&k3W<1B>*o2Q"
  302. }
  303. }
  304. *IgnoreBlock: {
  305. *Option: Option3
  306. {
  307. *rcNameID: 265
  308. *Command: CmdSelect
  309. {
  310. *Order: PAGE_SETUP.8
  311. *Cmd: "<1B>&b240T<1B>&k3W<1B>*o2Q"
  312. }
  313. }
  314. }
  315. *Option: GLOSSY
  316. {
  317. *rcNameID: =GLOSSY_PAPER_DISPLAY
  318. *Command: CmdSelect
  319. {
  320. *Order: PAGE_SETUP.8
  321. *Cmd: "<1B>&k3W<1B>*o2Q"
  322. }
  323. }
  324. *IgnoreBlock: {
  325. *Option: Option5
  326. {
  327. *rcNameID: 266
  328. *Command: CmdSelect
  329. {
  330. *Order: PAGE_SETUP.8
  331. *Cmd: "<1B>&b240T<1B>&k3W<1B>*o2Q"
  332. }
  333. }
  334. *Option: Option6
  335. {
  336. *rcNameID: 267
  337. *Command: CmdSelect
  338. {
  339. *Order: PAGE_SETUP.8
  340. *Cmd: "<1B>&b10T"
  341. }
  342. }
  343. }
  344. *Option: PICTY_SPECIAL_POSTCARD
  345. {
  346. *rcNameID: 296
  347. *Command: CmdSelect
  348. {
  349. *Order: PAGE_SETUP.8
  350. *Cmd: "<1B>&b10T"
  351. }
  352. }
  353. }
  354. *Feature: TextQuality
  355. {
  356. *rcNameID: =TEXT_QUALITY_DISPLAY
  357. *DefaultOption: Option1
  358. *Option: Option1
  359. {
  360. *rcNameID: 272
  361. *Command: CmdSelect
  362. {
  363. *Order: DOC_SETUP.3
  364. *Cmd: "<1B>(s2Q<1B>*r2Q"
  365. }
  366. }
  367. *Option: Option2
  368. {
  369. *rcNameID: 273
  370. *Command: CmdSelect
  371. {
  372. *Order: DOC_SETUP.3
  373. *Cmd: "<1B>(s0Q<1B>*r0Q"
  374. }
  375. }
  376. *Option: Option3
  377. {
  378. *rcNameID: 274
  379. *Command: CmdSelect
  380. {
  381. *Order: DOC_SETUP.3
  382. *Cmd: "<1B>(s2Q<1B>*r2Q<1B>*o2Q"
  383. }
  384. }
  385. }
  386. *Feature: ColorMode
  387. {
  388. *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
  389. *DefaultOption: Color
  390. *Option: Mono
  391. {
  392. *rcNameID: =MONO_DISPLAY
  393. *DevNumOfPlanes: 1
  394. *DevBPP: 1
  395. *Color? : FALSE
  396. }
  397. *Option: Color
  398. {
  399. *rcNameID: =COLOR_DISPLAY
  400. *DevNumOfPlanes: 3
  401. *DevBPP: 1
  402. *DrvBPP: 4
  403. EXTERN_GLOBAL: *RasterSendAllData? : TRUE
  404. *ColorPlaneOrder: LIST(CYAN, MAGENTA, YELLOW)
  405. *Command: CmdSendCyanData { *Cmd : "<1B>*b" %d{NumOfDataBytes}"V" }
  406. *Command: CmdSendMagentaData { *Cmd : "<1B>*b" %d{NumOfDataBytes}"V" }
  407. *Command: CmdSendYellowData { *Cmd : "<1B>*b" %d{NumOfDataBytes }"W" }
  408. *Command: CmdSelectBlackColor { *Cmd : "<1B>*v7S" }
  409. *Command: CmdSelectRedColor { *Cmd : "<1B>*v6S" }
  410. *Command: CmdSelectGreenColor { *Cmd : "<1B>*v5S" }
  411. *Command: CmdSelectYellowColor { *Cmd : "<1B>*v4S" }
  412. *Command: CmdSelectBlueColor { *Cmd : "<1B>*v3S" }
  413. *Command: CmdSelectMagentaColor { *Cmd : "<1B>*v2S" }
  414. *Command: CmdSelectCyanColor { *Cmd : "<1B>*v1S" }
  415. *Command: CmdSelectWhiteColor { *Cmd : "<1B>*v0S" }
  416. *Command: CmdSelect
  417. {
  418. *Order: PAGE_SETUP.9
  419. *Cmd: "<1B>*r-3U"
  420. }
  421. }
  422. }
  423. *Feature: Halftone
  424. {
  425. *rcNameID: =HALFTONING_DISPLAY
  426. *DefaultOption: HT_PATSIZE_AUTO
  427. *Option: HT_PATSIZE_AUTO
  428. {
  429. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  430. }
  431. *Ifdef: WINNT_50
  432. *Option: HT_PATSIZE_SUPERCELL_M
  433. {
  434. *rcNameID: =HT_SUPERCELL_DISPLAY
  435. }
  436. *Endif:
  437. *Option: HT_PATSIZE_6x6_M
  438. {
  439. *rcNameID: =HT_DITHER6X6_DISPLAY
  440. }
  441. *Option: HT_PATSIZE_8x8_M
  442. {
  443. *rcNameID: =HT_DITHER8X8_DISPLAY
  444. }
  445. }
  446. *Command: CmdStartDoc
  447. {
  448. *Order: DOC_SETUP.1
  449. *Cmd: "<1B>E<1B>&l0O<1B>&l0L<1B>*r1U"
  450. }
  451. *Command: CmdStartPage
  452. {
  453. *Order: PAGE_SETUP.1
  454. *Cmd: "<0D>"
  455. }
  456. *Command: CmdEndJob
  457. {
  458. *Order: JOB_FINISH.1
  459. *Cmd: "<1B>E"
  460. }
  461. *Command: CmdEndPage
  462. {
  463. *Order: PAGE_FINISH.1
  464. *Cmd: "<0D>"
  465. }
  466. *RotateCoordinate?: FALSE
  467. *RotateRaster?: FALSE
  468. *RotateFont?: FALSE
  469. *switch: Orientation
  470. {
  471. *case: PORTRAIT
  472. {
  473. *TextCaps: LIST(TC_OP_CHARACTER,TC_OP_STROKE,TC_UA_ABLE)
  474. }
  475. *case: LANDSCAPE_CC270
  476. {
  477. *TextCaps: LIST()
  478. }
  479. }
  480. *CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
  481. *BadCursorMoveInGrxMode: LIST(X_PORTRAIT,X_LANDSCAPE,Y_PORTRAIT,Y_LANDSCAPE)
  482. *XMoveThreshold: 0
  483. *YMoveThreshold: *
  484. *XMoveUnit: 300
  485. *YMoveUnit: 300
  486. *Command: CmdXMoveAbsolute { *Cmd : "<1B>*p" %d{(DestX / 2) }"X" }
  487. *Command: CmdXMoveRelRight { *Cmd : "<1B>*p+" %d{(DestXRel / 2) }"X" }
  488. *Command: CmdXMoveRelLeft { *Cmd : "<1B>*p-" %d{(DestXRel / 2) }"X" }
  489. *Command: CmdYMoveAbsolute { *Cmd : "<1B>*p" %d{(DestY / 2) }"Y" }
  490. *Command: CmdYMoveRelDown { *Cmd : "<1B>*p+" %d{(DestYRel / 2) }"Y" }
  491. *Command: CmdYMoveRelUp { *Cmd : "<1B>*p-" %d{(DestYRel / 2) }"Y" }
  492. *Command: CmdCR { *Cmd : "<0D>" }
  493. *Command: CmdLF { *Cmd : "<0A>" }
  494. *Command: CmdFF { *Cmd : "<0C>" }
  495. *EjectPageWithFF?: TRUE
  496. *ChangeColorModeOnDoc?: FALSE
  497. *Command: CmdEnableTIFF4 { *Cmd : "<1B>*b2M" }
  498. *Command: CmdDisableCompression { *Cmd : "<1B>*b0M" }
  499. *OutputDataFormat: H_BYTE
  500. *OptimizeLeftBound?: FALSE
  501. *CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
  502. *CursorYAfterSendBlockData: AUTO_INCREMENT
  503. *LookAheadRegion: 240
  504. *DefaultFont: 1
  505. *DefaultCTT: 0
  506. *CharPosition: BASELINE
  507. *Command: CmdUnderlineOn { *Cmd : "<1B>&d3D" }
  508. *Command: CmdUnderlineOff { *Cmd : "<1B>&d@" }
  509. *Command: CmdBoldOn { *Cmd : "<1B>(s3B" }
  510. *Command: CmdBoldOff { *Cmd : "<1B>(s0B" }
  511. *Command: CmdItalicOn { *Cmd : "<1B>(s1S" }
  512. *Command: CmdItalicOff { *Cmd : "<1B>(s0S" }