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.

473 lines
12 KiB

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