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.

513 lines
14 KiB

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