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.

484 lines
12 KiB

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