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.

587 lines
16 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *PrintRate: 290
  6. *PrintRateUnit: CPS
  7. *Include: "StdNames.gpd"
  8. *MasterUnits: PAIR(720, 432)
  9. *ResourceDLL: "okml9res.dll"
  10. *PrinterType: SERIAL
  11. *rcInstalledOptionNameID: 262
  12. *rcNotInstalledOptionNameID: 263
  13. *Feature: Orientation
  14. {
  15. *rcNameID: =ORIENTATION_DISPLAY
  16. *DefaultOption: PORTRAIT
  17. *Option: PORTRAIT
  18. {
  19. *rcNameID: =PORTRAIT_DISPLAY
  20. }
  21. *Option: LANDSCAPE_CC270
  22. {
  23. *rcNameID: =LANDSCAPE_DISPLAY
  24. }
  25. }
  26. *Feature: InputBin
  27. {
  28. *rcNameID: =PAPER_SOURCE_DISPLAY
  29. *DefaultOption: TRACTOR
  30. *Option: TRACTOR
  31. {
  32. *rcNameID: =TRACTOR_DISPLAY
  33. }
  34. *Option: MANUAL
  35. {
  36. *rcNameID: =MANUAL_FEED_DISPLAY
  37. }
  38. *Option: Option3
  39. {
  40. *Installable?:TRUE
  41. *rcInstallableFeatureNameID: 259
  42. *rcNameID: 259
  43. *OptionID: 259
  44. *Command: CmdSelect
  45. {
  46. *Order: DOC_SETUP.3
  47. *Cmd: "<1B19>1"
  48. }
  49. }
  50. }
  51. *Feature: Resolution
  52. {
  53. *rcNameID: =RESOLUTION_DISPLAY
  54. *DefaultOption: Option1
  55. *Option: Option1
  56. {
  57. *Name: "240 x 144 " =DOTS_PER_INCH
  58. *DPI: PAIR(240, 144)
  59. *TextDPI: PAIR(240, 144)
  60. *PinsPerLogPass: 16
  61. *PinsPerPhysPass: 8
  62. *MinStripBlankPixels: 240
  63. *RequireUniDir?: TRUE
  64. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  65. *SpotDiameter: 170
  66. *Command: CmdSendBlockData { *Cmd : "<1B>Z" %l{NumOfDataBytes} }
  67. }
  68. *Option: Option2
  69. {
  70. *Name: "120 x 144 " =DOTS_PER_INCH
  71. *DPI: PAIR(120, 144)
  72. *TextDPI: PAIR(120, 144)
  73. *PinsPerLogPass: 16
  74. *PinsPerPhysPass: 8
  75. *MinStripBlankPixels: 120
  76. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  77. *SpotDiameter: 140
  78. *Command: CmdSendBlockData { *Cmd : "<1B>Y" %l{NumOfDataBytes} }
  79. }
  80. *Option: Option3
  81. {
  82. *Name: "120 x 72 " =DOTS_PER_INCH
  83. *DPI: PAIR(120, 72)
  84. *TextDPI: PAIR(120, 72)
  85. *PinsPerLogPass: 8
  86. *PinsPerPhysPass: 8
  87. *MinStripBlankPixels: 120
  88. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  89. *SpotDiameter: 100
  90. *Command: CmdSendBlockData { *Cmd : "<1B>L" %l{NumOfDataBytes} }
  91. }
  92. }
  93. *Feature: PaperSize
  94. {
  95. *rcNameID: =PAPER_SIZE_DISPLAY
  96. *DefaultOption: A4
  97. *Option: LETTER
  98. {
  99. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  100. *Command: CmdSelect
  101. {
  102. *Order: DOC_SETUP.4
  103. *Cmd: "<1B>CB"
  104. }
  105. *switch: InputBin
  106. {
  107. *case: TRACTOR
  108. {
  109. *PrintableArea: PAIR(6120, 4752)
  110. *PrintableOrigin: PAIR(0, 0)
  111. }
  112. *case: MANUAL
  113. {
  114. *PrintableArea: PAIR(6120, 4401)
  115. *PrintableOrigin: PAIR(0, 135)
  116. *switch: Resolution
  117. {
  118. *case: Option3
  119. {
  120. *PrintableArea: PAIR(6120, 4398)
  121. *PrintableOrigin: PAIR(0, 138)
  122. }
  123. }
  124. }
  125. *case: Option3
  126. {
  127. *PrintableArea: PAIR(6120, 4401)
  128. *PrintableOrigin: PAIR(0, 135)
  129. *switch: Resolution
  130. {
  131. *case: Option3
  132. {
  133. *PrintableArea: PAIR(6120, 4398)
  134. *PrintableOrigin: PAIR(0, 138)
  135. }
  136. }
  137. }
  138. }
  139. }
  140. *Option: LEGAL
  141. {
  142. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  143. *Command: CmdSelect
  144. {
  145. *Order: DOC_SETUP.4
  146. *Cmd: "<1B>CT"
  147. }
  148. *switch: InputBin
  149. {
  150. *case: TRACTOR
  151. {
  152. *PrintableArea: PAIR(6120, 6048)
  153. *PrintableOrigin: PAIR(0, 0)
  154. }
  155. *case: MANUAL
  156. {
  157. *PrintableArea: PAIR(6120, 5697)
  158. *PrintableOrigin: PAIR(0, 135)
  159. *switch: Resolution
  160. {
  161. *case: Option3
  162. {
  163. *PrintableArea: PAIR(6120, 5694)
  164. *PrintableOrigin: PAIR(0, 138)
  165. }
  166. }
  167. }
  168. *case: Option3
  169. {
  170. *PrintableArea: PAIR(6120, 5697)
  171. *PrintableOrigin: PAIR(0, 135)
  172. *switch: Resolution
  173. {
  174. *case: Option3
  175. {
  176. *PrintableArea: PAIR(6120, 5694)
  177. *PrintableOrigin: PAIR(0, 138)
  178. }
  179. }
  180. }
  181. }
  182. }
  183. *Option: A4
  184. {
  185. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  186. *Command: CmdSelect
  187. {
  188. *Order: DOC_SETUP.4
  189. *Cmd: "<1B>CF"
  190. }
  191. *switch: InputBin
  192. {
  193. *case: TRACTOR
  194. {
  195. *PrintableArea: PAIR(5954, 5050)
  196. *PrintableOrigin: PAIR(0, 0)
  197. *switch: Resolution
  198. {
  199. *case: Option1
  200. {
  201. *PrintableArea: PAIR(5952, 5049)
  202. }
  203. *case: Option2
  204. {
  205. *PrintableArea: PAIR(5952, 5049)
  206. }
  207. *case: Option3
  208. {
  209. *PrintableArea: PAIR(5952, 5046)
  210. }
  211. }
  212. }
  213. *case: MANUAL
  214. {
  215. *PrintableArea: PAIR(5954, 4699)
  216. *PrintableOrigin: PAIR(0, 135)
  217. *switch: Resolution
  218. {
  219. *case: Option1
  220. {
  221. *PrintableArea: PAIR(5952, 4698)
  222. }
  223. *case: Option2
  224. {
  225. *PrintableArea: PAIR(5952, 4698)
  226. }
  227. *case: Option3
  228. {
  229. *PrintableArea: PAIR(5952, 4692)
  230. *PrintableOrigin: PAIR(0, 138)
  231. }
  232. }
  233. }
  234. *case: Option3
  235. {
  236. *PrintableArea: PAIR(5954, 4699)
  237. *PrintableOrigin: PAIR(0, 135)
  238. *switch: Resolution
  239. {
  240. *case: Option1
  241. {
  242. *PrintableArea: PAIR(5952, 4698)
  243. }
  244. *case: Option2
  245. {
  246. *PrintableArea: PAIR(5952, 4698)
  247. }
  248. *case: Option3
  249. {
  250. *PrintableArea: PAIR(5952, 4692)
  251. *PrintableOrigin: PAIR(0, 138)
  252. }
  253. }
  254. }
  255. }
  256. }
  257. *Option: A5
  258. {
  259. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  260. *Command: CmdSelect
  261. {
  262. *Order: DOC_SETUP.4
  263. *Cmd: "<1B>C0"
  264. }
  265. *switch: InputBin
  266. {
  267. *case: TRACTOR
  268. {
  269. *PrintableArea: PAIR(4198, 3573)
  270. *PrintableOrigin: PAIR(0, 0)
  271. *switch: Resolution
  272. {
  273. *case: Option1
  274. {
  275. *PrintableArea: PAIR(4197, 3573)
  276. }
  277. *case: Option2
  278. {
  279. *PrintableArea: PAIR(4194, 3573)
  280. }
  281. *case: Option3
  282. {
  283. *PrintableArea: PAIR(4194, 3570)
  284. }
  285. }
  286. }
  287. *case: MANUAL
  288. {
  289. *PrintableArea: PAIR(4198, 3222)
  290. *PrintableOrigin: PAIR(0, 135)
  291. *switch: Resolution
  292. {
  293. *case: Option1
  294. {
  295. *PrintableArea: PAIR(4197, 3222)
  296. }
  297. *case: Option2
  298. {
  299. *PrintableArea: PAIR(4194, 3222)
  300. }
  301. *case: Option3
  302. {
  303. *PrintableArea: PAIR(4194, 3216)
  304. *PrintableOrigin: PAIR(0, 138)
  305. }
  306. }
  307. }
  308. *case: Option3
  309. {
  310. *PrintableArea: PAIR(4198, 3222)
  311. *PrintableOrigin: PAIR(0, 135)
  312. *switch: Resolution
  313. {
  314. *case: Option1
  315. {
  316. *PrintableArea: PAIR(4197, 3222)
  317. }
  318. *case: Option2
  319. {
  320. *PrintableArea: PAIR(4194, 3222)
  321. }
  322. *case: Option3
  323. {
  324. *PrintableArea: PAIR(4194, 3216)
  325. *PrintableOrigin: PAIR(0, 138)
  326. }
  327. }
  328. }
  329. }
  330. }
  331. *Option: B5
  332. {
  333. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  334. *Command: CmdSelect
  335. {
  336. *Order: DOC_SETUP.4
  337. *Cmd: "<1B>C="
  338. }
  339. *switch: InputBin
  340. {
  341. *case: TRACTOR
  342. {
  343. *PrintableArea: PAIR(5162, 4372)
  344. *PrintableOrigin: PAIR(0, 0)
  345. *switch: Resolution
  346. {
  347. *case: Option1
  348. {
  349. *PrintableArea: PAIR(5160, 4371)
  350. }
  351. *case: Option2
  352. {
  353. *PrintableArea: PAIR(5160, 4371)
  354. }
  355. *case: Option3
  356. {
  357. *PrintableArea: PAIR(5160, 4368)
  358. }
  359. }
  360. }
  361. *case: MANUAL
  362. {
  363. *PrintableArea: PAIR(5162, 4021)
  364. *PrintableOrigin: PAIR(0, 135)
  365. *switch: Resolution
  366. {
  367. *case: Option1
  368. {
  369. *PrintableArea: PAIR(5160, 4020)
  370. }
  371. *case: Option2
  372. {
  373. *PrintableArea: PAIR(5160, 4020)
  374. }
  375. *case: Option3
  376. {
  377. *PrintableArea: PAIR(5160, 4014)
  378. *PrintableOrigin: PAIR(0, 138)
  379. }
  380. }
  381. }
  382. *case: Option3
  383. {
  384. *PrintableArea: PAIR(5162, 4021)
  385. *PrintableOrigin: PAIR(0, 135)
  386. *switch: Resolution
  387. {
  388. *case: Option1
  389. {
  390. *PrintableArea: PAIR(5160, 4020)
  391. }
  392. *case: Option2
  393. {
  394. *PrintableArea: PAIR(5160, 4020)
  395. }
  396. *case: Option3
  397. {
  398. *PrintableArea: PAIR(5160, 4014)
  399. *PrintableOrigin: PAIR(0, 138)
  400. }
  401. }
  402. }
  403. }
  404. }
  405. *Option: CUSTOMSIZE
  406. {
  407. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  408. *MinSize: PAIR(360, 216)
  409. *MaxSize: PAIR(6120, 7344)
  410. *MaxPrintableWidth: 6120
  411. *MinLeftMargin: 0
  412. *CenterPrintable?: FALSE
  413. *switch: InputBin
  414. {
  415. *case: TRACTOR
  416. {
  417. *TopMargin: 0
  418. *BottomMargin: 0
  419. }
  420. *case: MANUAL
  421. {
  422. *TopMargin: 135
  423. *BottomMargin: 216
  424. }
  425. *case: Option3
  426. {
  427. *TopMargin: 135
  428. *BottomMargin: 216
  429. }
  430. }
  431. *Command: CmdSelect
  432. {
  433. *Order: DOC_SETUP.4
  434. *Cmd: "<1B>2"
  435. }
  436. }
  437. }
  438. *Feature: PrintQuality
  439. {
  440. *rcNameID: =TEXT_QUALITY_DISPLAY
  441. *DefaultOption: NEAR_LETTER_QUALITY
  442. *Option: NEAR_LETTER_QUALITY
  443. {
  444. *rcNameID: =NEAR_LETTER_QUALITY_DISPLAY
  445. *Command: CmdSelect
  446. {
  447. *Order: DOC_SETUP.2
  448. *Cmd: "<1B>x<01>"
  449. }
  450. }
  451. *Option: Option2
  452. {
  453. *rcNameID: 260
  454. *Command: CmdSelect
  455. {
  456. *Order: DOC_SETUP.2
  457. *Cmd: "<1B>(<00>"
  458. }
  459. }
  460. *Option: Option3
  461. {
  462. *rcNameID: 261
  463. *Command: CmdSelect
  464. {
  465. *Order: DOC_SETUP.2
  466. *Cmd: "<1B>!<011B>(<00>"
  467. }
  468. }
  469. }
  470. *Feature: Halftone
  471. {
  472. *rcNameID: =HALFTONING_DISPLAY
  473. *DefaultOption: HT_PATSIZE_AUTO
  474. *Option: HT_PATSIZE_AUTO
  475. {
  476. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  477. }
  478. *Ifdef: WINNT_50
  479. *Option: HT_PATSIZE_SUPERCELL_M
  480. {
  481. *rcNameID: =HT_SUPERCELL_DISPLAY
  482. }
  483. *Endif:
  484. *Option: HT_PATSIZE_6x6_M
  485. {
  486. *rcNameID: =HT_DITHER6X6_DISPLAY
  487. }
  488. *Option: HT_PATSIZE_8x8_M
  489. {
  490. *rcNameID: =HT_DITHER8X8_DISPLAY
  491. }
  492. }
  493. *Command: CmdStartDoc
  494. {
  495. *Order: DOC_SETUP.1
  496. *Cmd: "<1B>{A<1B>@<0D1B>t<011B>I<011B>6<1B>R<00>"
  497. }
  498. *Command: CmdStartPage
  499. {
  500. *Order: PAGE_SETUP.1
  501. *Cmd: "<0D>"
  502. }
  503. *Command: CmdEndJob
  504. {
  505. *Order: JOB_FINISH.1
  506. *Cmd: "<0D>"
  507. }
  508. *RotateCoordinate?: FALSE
  509. *RotateRaster?: FALSE
  510. *RotateFont?: FALSE
  511. *switch: Orientation
  512. {
  513. *case: PORTRAIT
  514. {
  515. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  516. }
  517. *case: LANDSCAPE_CC270
  518. {
  519. *TextCaps: LIST(TC_RA_ABLE)
  520. }
  521. }
  522. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  523. *YMoveAttributes: LIST(SEND_CR_FIRST)
  524. *MaxLineSpacing: 255
  525. *XMoveThreshold: 0
  526. *YMoveThreshold: *
  527. *XMoveUnit: 60
  528. *YMoveUnit: 216
  529. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l{(DestX / 12) } }
  530. *Command: CmdXMoveRelRight { *Cmd : "<1B>\" %l{(DestXRel / 12) } }
  531. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 2) )} }
  532. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{(LinefeedSpacing / 2) } }
  533. *Command: CmdCR { *Cmd : "<0D>" }
  534. *Command: CmdLF { *Cmd : "<0A>" }
  535. *Command: CmdFF { *Cmd : "<0C>" }
  536. *Command: CmdBackSpace { *Cmd : "<08>" }
  537. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  538. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  539. *EjectPageWithFF?: TRUE
  540. *switch: PaperSize
  541. {
  542. *case: CUSTOMSIZE
  543. {
  544. *EjectPageWithFF?: FALSE
  545. *switch: InputBin
  546. {
  547. *case: MANUAL
  548. {
  549. *EjectPageWithFF?: TRUE
  550. }
  551. *case: Option3
  552. {
  553. *EjectPageWithFF?: TRUE
  554. }
  555. }
  556. }
  557. }
  558. *OutputDataFormat: V_BYTE
  559. *OptimizeLeftBound?: FALSE
  560. *CursorXAfterSendBlockData: AT_GRXDATA_END
  561. *CursorYAfterSendBlockData: NO_MOVE
  562. *DefaultFont: 5
  563. *DefaultCTT: 1
  564. *switch: Orientation
  565. {
  566. *case: PORTRAIT
  567. {
  568. *DeviceFonts: LIST(1,2,4,5,6,9,10,11,12,13,16,17,21,23,24,25,
  569. + 26,28,29,30,32,33,34,35,36,37,40,41,45,46,47,48,
  570. + 49,50,52,53,54,56,57,58,59,60,61,64,65,69,70,71,
  571. + 72,77,78,80,81,92,93,94,95,96,97,98,99,100,101,102,
  572. + 103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,
  573. + 119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,
  574. + 135,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,
  575. + 170,171,172,173,174,175,176,177,178)
  576. }
  577. *case: LANDSCAPE_CC270
  578. {
  579. *DeviceFonts: LIST()
  580. }
  581. }
  582. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  583. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  584. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  585. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  586. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  587. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }