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.

577 lines
16 KiB

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