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.

438 lines
11 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileVersion: "1.0"
  7. *%% *GPDFileName: "hpdj340m.gpd"
  8. *GPDFileName: "ncdj340m.gpd"
  9. *Include: "StdNames.gpd"
  10. *%% *ModelName: "HP DeskJet 340 (Monochrome)"
  11. *ModelName: "NEC PICTY100L (Monochrome)"
  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.3
  38. *Cmd: "<1B>&l1H"
  39. }
  40. }
  41. *Option: MANUAL
  42. {
  43. *rcNameID: =MANUAL_FEED_DISPLAY
  44. *Command: CmdSelect
  45. {
  46. *Order: DOC_SETUP.3
  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: 100
  62. *Command: CmdBeginRaster { *Cmd : "<1B>*r1A" }
  63. *Command: CmdEndRaster { *Cmd : "<1B>*rB" }
  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(300, 300)
  76. EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
  77. *SpotDiameter: 100
  78. *Command: CmdBeginRaster { *Cmd : "<1B>*r1A" }
  79. *Command: CmdEndRaster { *Cmd : "<1B>*rB" }
  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(300, 300)
  92. EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
  93. *SpotDiameter: 100
  94. *Command: CmdBeginRaster { *Cmd : "<1B>*r1A" }
  95. *Command: CmdEndRaster { *Cmd : "<1B>*rB" }
  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, 6150)
  112. *PrintableOrigin: PAIR(150, 150)
  113. *switch: Resolution
  114. {
  115. *case: Option2
  116. {
  117. *PrintableArea: PAIR(4796, 6148)
  118. *PrintableOrigin: PAIR(152, 152)
  119. }
  120. *case: Option3
  121. {
  122. *PrintableArea: PAIR(4792, 6144)
  123. *PrintableOrigin: PAIR(152, 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, 7950)
  138. *PrintableOrigin: PAIR(150, 150)
  139. *switch: Resolution
  140. {
  141. *case: Option2
  142. {
  143. *PrintableArea: PAIR(4796, 7948)
  144. *PrintableOrigin: PAIR(152, 152)
  145. }
  146. *case: Option3
  147. {
  148. *PrintableArea: PAIR(4792, 7944)
  149. *PrintableOrigin: PAIR(152, 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, 6564)
  164. *PrintableOrigin: PAIR(76, 150)
  165. *switch: Resolution
  166. {
  167. *case: Option2
  168. {
  169. *PrintableArea: PAIR(4800, 6560)
  170. *PrintableOrigin: PAIR(76, 152)
  171. }
  172. *case: Option3
  173. {
  174. *PrintableArea: PAIR(4792, 6560)
  175. *PrintableOrigin: PAIR(80, 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, 5850)
  190. *PrintableOrigin: PAIR(150, 150)
  191. *switch: Resolution
  192. {
  193. *case: Option2
  194. {
  195. *PrintableArea: PAIR(4028, 5848)
  196. *PrintableOrigin: PAIR(152, 152)
  197. }
  198. *case: Option3
  199. {
  200. *PrintableArea: PAIR(4024, 5848)
  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: 267
  284. *Command: CmdSelect
  285. {
  286. *Order: PAGE_SETUP.8
  287. *Cmd: "<1B>&b10T"
  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. *Option: PICTY_SPECIAL_POSTCARD
  301. {
  302. *rcNameID: 296
  303. *Command: CmdSelect
  304. {
  305. *Order: PAGE_SETUP.8
  306. *Cmd: "<1B>&b10T"
  307. }
  308. }
  309. }
  310. *Feature: PrintQuality
  311. {
  312. *rcNameID: =TEXT_QUALITY_DISPLAY
  313. *DefaultOption: Option1
  314. *Option: Option1
  315. {
  316. *rcNameID: 272
  317. *Command: CmdSelect
  318. {
  319. *Order: DOC_SETUP.4
  320. *Cmd: "<1B>(s2Q<1B>*r2Q"
  321. }
  322. }
  323. *Option: Option2
  324. {
  325. *rcNameID: 273
  326. *Command: CmdSelect
  327. {
  328. *Order: DOC_SETUP.4
  329. *Cmd: "<1B>(s0Q<1B>*r0Q"
  330. }
  331. }
  332. *Option: Option3
  333. {
  334. *rcNameID: 274
  335. *Command: CmdSelect
  336. {
  337. *Order: DOC_SETUP.4
  338. *Cmd: "<1B>(s2Q<1B>*r2Q<1B>*o2Q"
  339. }
  340. }
  341. }
  342. *Feature: Halftone
  343. {
  344. *rcNameID: =HALFTONING_DISPLAY
  345. *DefaultOption: HT_PATSIZE_AUTO
  346. *Option: HT_PATSIZE_AUTO
  347. {
  348. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  349. }
  350. *Ifdef: WINNT_50
  351. *Option: HT_PATSIZE_SUPERCELL_M
  352. {
  353. *rcNameID: =HT_SUPERCELL_DISPLAY
  354. }
  355. *Endif:
  356. *Option: HT_PATSIZE_6x6_M
  357. {
  358. *rcNameID: =HT_DITHER6X6_DISPLAY
  359. }
  360. *Option: HT_PATSIZE_8x8_M
  361. {
  362. *rcNameID: =HT_DITHER8X8_DISPLAY
  363. }
  364. }
  365. *Command: CmdStartDoc
  366. {
  367. *Order: DOC_SETUP.1
  368. *Cmd: "<1B>E<1B>&l0O<1B>&l0L"
  369. }
  370. *Command: CmdStartPage
  371. {
  372. *Order: PAGE_SETUP.1
  373. *Cmd: "<0D>"
  374. }
  375. *Command: CmdEndJob
  376. {
  377. *Order: JOB_FINISH.1
  378. *Cmd: "<1B>E"
  379. }
  380. *Command: CmdEndPage
  381. {
  382. *Order: PAGE_FINISH.1
  383. *Cmd: "<0D>"
  384. }
  385. *RotateCoordinate?: FALSE
  386. *RotateRaster?: FALSE
  387. *RotateFont?: FALSE
  388. *switch: Orientation
  389. {
  390. *case: PORTRAIT
  391. {
  392. *TextCaps: LIST(TC_OP_CHARACTER,TC_OP_STROKE,TC_UA_ABLE)
  393. }
  394. *case: LANDSCAPE_CC270
  395. {
  396. *TextCaps: LIST()
  397. }
  398. }
  399. *CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
  400. *BadCursorMoveInGrxMode: LIST(X_PORTRAIT,X_LANDSCAPE,Y_PORTRAIT,Y_LANDSCAPE)
  401. *XMoveThreshold: 0
  402. *YMoveThreshold: *
  403. *XMoveUnit: 300
  404. *YMoveUnit: 300
  405. *Command: CmdXMoveAbsolute { *Cmd : "<1B>*p" %d{(DestX / 2) }"X" }
  406. *Command: CmdXMoveRelRight { *Cmd : "<1B>*p+" %d{(DestXRel / 2) }"X" }
  407. *Command: CmdXMoveRelLeft { *Cmd : "<1B>*p-" %d{(DestXRel / 2) }"X" }
  408. *Command: CmdYMoveAbsolute { *Cmd : "<1B>*p" %d{(DestY / 2) }"Y" }
  409. *Command: CmdYMoveRelDown { *Cmd : "<1B>*p+" %d{(DestYRel / 2) }"Y" }
  410. *Command: CmdYMoveRelUp { *Cmd : "<1B>*p-" %d{(DestYRel / 2) }"Y" }
  411. *Command: CmdCR { *Cmd : "<0D>" }
  412. *Command: CmdLF { *Cmd : "<0A>" }
  413. *Command: CmdFF { *Cmd : "<0C>" }
  414. *EjectPageWithFF?: TRUE
  415. *Command: CmdEnableTIFF4 { *Cmd : "<1B>*b2M" }
  416. *Command: CmdDisableCompression { *Cmd : "<1B>*b0M" }
  417. *OutputDataFormat: H_BYTE
  418. *OptimizeLeftBound?: FALSE
  419. *CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
  420. *CursorYAfterSendBlockData: AUTO_INCREMENT
  421. *LookAheadRegion: 240
  422. *DefaultFont: 1
  423. *DefaultCTT: 0
  424. *CharPosition: BASELINE
  425. *switch: Orientation
  426. {
  427. *case: PORTRAIT
  428. {
  429. *DeviceFonts: LIST(1,7,8,69,72,73,94,95,102,103,104,105,106,107,108,109,
  430. + 110,111,112,113,114,115,116,117,118,119)
  431. }
  432. *case: LANDSCAPE_CC270
  433. {
  434. *DeviceFonts: LIST()
  435. }
  436. }
  437. *Command: CmdUnderlineOn { *Cmd : "<1B>&d3D" }
  438. *Command: CmdUnderlineOff { *Cmd : "<1B>&d@" }