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.

702 lines
20 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "IBPROXL2.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "IBM Proprinter XL II"
  10. *MasterUnits: PAIR(240, 432)
  11. *ResourceDLL: "ibprores.dll"
  12. *PrinterType: SERIAL
  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: UPPER
  39. {
  40. *rcNameID: =UPPER_TRAY_DISPLAY
  41. }
  42. }
  43. *Feature: Resolution
  44. {
  45. *rcNameID: =RESOLUTION_DISPLAY
  46. *DefaultOption: Option1
  47. *Option: Option1
  48. {
  49. *Name: "240 x 144 " =DOTS_PER_INCH
  50. *DPI: PAIR(240, 144)
  51. *TextDPI: PAIR(240, 144)
  52. *PinsPerLogPass: 16
  53. *PinsPerPhysPass: 8
  54. *MinStripBlankPixels: 240
  55. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  56. *SpotDiameter: 170
  57. *Command: CmdSendBlockData { *Cmd : "<1B>Z" %l{NumOfDataBytes } }
  58. }
  59. *Option: Option2
  60. {
  61. *Name: "120 x 72 " =DOTS_PER_INCH
  62. *DPI: PAIR(120, 72)
  63. *TextDPI: PAIR(120, 72)
  64. *PinsPerLogPass: 8
  65. *PinsPerPhysPass: 8
  66. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  67. *SpotDiameter: 100
  68. *Command: CmdSendBlockData { *Cmd : "<1B>L" %l{NumOfDataBytes } }
  69. }
  70. *Option: Option3
  71. {
  72. *Name: "120 x 144 " =DOTS_PER_INCH
  73. *DPI: PAIR(120, 144)
  74. *TextDPI: PAIR(120, 144)
  75. *PinsPerLogPass: 16
  76. *PinsPerPhysPass: 8
  77. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  78. *SpotDiameter: 140
  79. *Command: CmdSendBlockData { *Cmd : "<1B>L" %l{NumOfDataBytes } }
  80. }
  81. }
  82. *Feature: PaperSize
  83. {
  84. *rcNameID: =PAPER_SIZE_DISPLAY
  85. *DefaultOption: LETTER
  86. *Option: LETTER
  87. {
  88. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  89. *Command: CmdSelect
  90. {
  91. *Order: DOC_SETUP.8
  92. *Cmd: "<1B>C<000B>"
  93. }
  94. *switch: InputBin
  95. {
  96. *case: TRACTOR
  97. {
  98. *PrintableArea: PAIR(1965, 4752)
  99. *PrintableOrigin: PAIR(75, 0)
  100. *switch: Resolution
  101. {
  102. *case: Option2
  103. {
  104. *PrintableArea: PAIR(1964, 4752)
  105. *PrintableOrigin: PAIR(76, 0)
  106. }
  107. *case: Option3
  108. {
  109. *PrintableArea: PAIR(1964, 4752)
  110. *PrintableOrigin: PAIR(76, 0)
  111. }
  112. }
  113. }
  114. *case: MANUAL
  115. {
  116. *PrintableArea: PAIR(1965, 4536)
  117. *PrintableOrigin: PAIR(75, 0)
  118. *switch: Resolution
  119. {
  120. *case: Option2
  121. {
  122. *PrintableArea: PAIR(1964, 4536)
  123. *PrintableOrigin: PAIR(76, 0)
  124. }
  125. *case: Option3
  126. {
  127. *PrintableArea: PAIR(1964, 4536)
  128. *PrintableOrigin: PAIR(76, 0)
  129. }
  130. }
  131. }
  132. *case: UPPER
  133. {
  134. *PrintableArea: PAIR(1965, 4536)
  135. *PrintableOrigin: PAIR(75, 0)
  136. *switch: Resolution
  137. {
  138. *case: Option2
  139. {
  140. *PrintableArea: PAIR(1964, 4536)
  141. *PrintableOrigin: PAIR(76, 0)
  142. }
  143. *case: Option3
  144. {
  145. *PrintableArea: PAIR(1964, 4536)
  146. *PrintableOrigin: PAIR(76, 0)
  147. }
  148. }
  149. }
  150. }
  151. }
  152. *Option: Option2
  153. {
  154. *rcNameID: 258
  155. *PageDimensions: PAIR(2040, 5184)
  156. *Command: CmdSelect
  157. {
  158. *Order: DOC_SETUP.8
  159. *Cmd: "<1B>C<000C>"
  160. }
  161. *switch: InputBin
  162. {
  163. *case: TRACTOR
  164. {
  165. *PrintableArea: PAIR(1965, 5184)
  166. *PrintableOrigin: PAIR(75, 0)
  167. *switch: Resolution
  168. {
  169. *case: Option2
  170. {
  171. *PrintableArea: PAIR(1964, 5184)
  172. *PrintableOrigin: PAIR(76, 0)
  173. }
  174. *case: Option3
  175. {
  176. *PrintableArea: PAIR(1964, 5184)
  177. *PrintableOrigin: PAIR(76, 0)
  178. }
  179. }
  180. }
  181. *case: MANUAL
  182. {
  183. *PrintableArea: PAIR(1965, 4968)
  184. *PrintableOrigin: PAIR(75, 0)
  185. *switch: Resolution
  186. {
  187. *case: Option2
  188. {
  189. *PrintableArea: PAIR(1964, 4968)
  190. *PrintableOrigin: PAIR(76, 0)
  191. }
  192. *case: Option3
  193. {
  194. *PrintableArea: PAIR(1964, 4968)
  195. *PrintableOrigin: PAIR(76, 0)
  196. }
  197. }
  198. }
  199. *case: UPPER
  200. {
  201. *PrintableArea: PAIR(1965, 4968)
  202. *PrintableOrigin: PAIR(75, 0)
  203. *switch: Resolution
  204. {
  205. *case: Option2
  206. {
  207. *PrintableArea: PAIR(1964, 4968)
  208. *PrintableOrigin: PAIR(76, 0)
  209. }
  210. *case: Option3
  211. {
  212. *PrintableArea: PAIR(1964, 4968)
  213. *PrintableOrigin: PAIR(76, 0)
  214. }
  215. }
  216. }
  217. }
  218. }
  219. *Option: LEGAL
  220. {
  221. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  222. *Command: CmdSelect
  223. {
  224. *Order: DOC_SETUP.8
  225. *Cmd: "<1B>C<000E>"
  226. }
  227. *switch: InputBin
  228. {
  229. *case: TRACTOR
  230. {
  231. *PrintableArea: PAIR(1965, 6048)
  232. *PrintableOrigin: PAIR(75, 0)
  233. *switch: Resolution
  234. {
  235. *case: Option2
  236. {
  237. *PrintableArea: PAIR(1964, 6048)
  238. *PrintableOrigin: PAIR(76, 0)
  239. }
  240. *case: Option3
  241. {
  242. *PrintableArea: PAIR(1964, 6048)
  243. *PrintableOrigin: PAIR(76, 0)
  244. }
  245. }
  246. }
  247. *case: MANUAL
  248. {
  249. *PrintableArea: PAIR(1965, 5832)
  250. *PrintableOrigin: PAIR(75, 0)
  251. *switch: Resolution
  252. {
  253. *case: Option2
  254. {
  255. *PrintableArea: PAIR(1964, 5832)
  256. *PrintableOrigin: PAIR(76, 0)
  257. }
  258. *case: Option3
  259. {
  260. *PrintableArea: PAIR(1964, 5832)
  261. *PrintableOrigin: PAIR(76, 0)
  262. }
  263. }
  264. }
  265. *case: UPPER
  266. {
  267. *PrintableArea: PAIR(1965, 5832)
  268. *PrintableOrigin: PAIR(75, 0)
  269. *switch: Resolution
  270. {
  271. *case: Option2
  272. {
  273. *PrintableArea: PAIR(1964, 5832)
  274. *PrintableOrigin: PAIR(76, 0)
  275. }
  276. *case: Option3
  277. {
  278. *PrintableArea: PAIR(1964, 5832)
  279. *PrintableOrigin: PAIR(76, 0)
  280. }
  281. }
  282. }
  283. }
  284. }
  285. *Option: A4
  286. {
  287. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  288. *Command: CmdSelect
  289. {
  290. *Order: DOC_SETUP.8
  291. *Cmd: "<1B>2<1B>CF"
  292. }
  293. *switch: InputBin
  294. {
  295. *case: TRACTOR
  296. {
  297. *PrintableArea: PAIR(1910, 5050)
  298. *PrintableOrigin: PAIR(75, 0)
  299. *switch: Resolution
  300. {
  301. *case: Option1
  302. {
  303. *PrintableArea: PAIR(1910, 5049)
  304. }
  305. *case: Option2
  306. {
  307. *PrintableArea: PAIR(1908, 5046)
  308. *PrintableOrigin: PAIR(76, 0)
  309. }
  310. *case: Option3
  311. {
  312. *PrintableArea: PAIR(1908, 5049)
  313. *PrintableOrigin: PAIR(76, 0)
  314. }
  315. }
  316. }
  317. *case: MANUAL
  318. {
  319. *PrintableArea: PAIR(1910, 4834)
  320. *PrintableOrigin: PAIR(75, 0)
  321. *switch: Resolution
  322. {
  323. *case: Option1
  324. {
  325. *PrintableArea: PAIR(1910, 4833)
  326. }
  327. *case: Option2
  328. {
  329. *PrintableArea: PAIR(1908, 4830)
  330. *PrintableOrigin: PAIR(76, 0)
  331. }
  332. *case: Option3
  333. {
  334. *PrintableArea: PAIR(1908, 4833)
  335. *PrintableOrigin: PAIR(76, 0)
  336. }
  337. }
  338. }
  339. *case: UPPER
  340. {
  341. *PrintableArea: PAIR(1910, 4834)
  342. *PrintableOrigin: PAIR(75, 0)
  343. *switch: Resolution
  344. {
  345. *case: Option1
  346. {
  347. *PrintableArea: PAIR(1910, 4833)
  348. }
  349. *case: Option2
  350. {
  351. *PrintableArea: PAIR(1908, 4830)
  352. *PrintableOrigin: PAIR(76, 0)
  353. }
  354. *case: Option3
  355. {
  356. *PrintableArea: PAIR(1908, 4833)
  357. *PrintableOrigin: PAIR(76, 0)
  358. }
  359. }
  360. }
  361. }
  362. }
  363. *Option: B5
  364. {
  365. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  366. *Command: CmdSelect
  367. {
  368. *Order: DOC_SETUP.8
  369. *Cmd: "<1B>2<1B>C%<"
  370. }
  371. *switch: InputBin
  372. {
  373. *case: TRACTOR
  374. {
  375. *PrintableArea: PAIR(1646, 4372)
  376. *PrintableOrigin: PAIR(75, 0)
  377. *switch: Resolution
  378. {
  379. *case: Option1
  380. {
  381. *PrintableArea: PAIR(1646, 4371)
  382. }
  383. *case: Option2
  384. {
  385. *PrintableArea: PAIR(1644, 4368)
  386. *PrintableOrigin: PAIR(76, 0)
  387. }
  388. *case: Option3
  389. {
  390. *PrintableArea: PAIR(1644, 4371)
  391. *PrintableOrigin: PAIR(76, 0)
  392. }
  393. }
  394. }
  395. *case: MANUAL
  396. {
  397. *PrintableArea: PAIR(1646, 4156)
  398. *PrintableOrigin: PAIR(75, 0)
  399. *switch: Resolution
  400. {
  401. *case: Option1
  402. {
  403. *PrintableArea: PAIR(1646, 4155)
  404. }
  405. *case: Option2
  406. {
  407. *PrintableArea: PAIR(1644, 4152)
  408. *PrintableOrigin: PAIR(76, 0)
  409. }
  410. *case: Option3
  411. {
  412. *PrintableArea: PAIR(1644, 4155)
  413. *PrintableOrigin: PAIR(76, 0)
  414. }
  415. }
  416. }
  417. *case: UPPER
  418. {
  419. *PrintableArea: PAIR(1646, 4156)
  420. *PrintableOrigin: PAIR(75, 0)
  421. *switch: Resolution
  422. {
  423. *case: Option1
  424. {
  425. *PrintableArea: PAIR(1646, 4155)
  426. }
  427. *case: Option2
  428. {
  429. *PrintableArea: PAIR(1644, 4152)
  430. *PrintableOrigin: PAIR(76, 0)
  431. }
  432. *case: Option3
  433. {
  434. *PrintableArea: PAIR(1644, 4155)
  435. *PrintableOrigin: PAIR(76, 0)
  436. }
  437. }
  438. }
  439. }
  440. }
  441. *Option: FANFOLD_US
  442. {
  443. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  444. *Command: CmdSelect
  445. {
  446. *Order: DOC_SETUP.8
  447. *Cmd: "<1B>C<000B>"
  448. }
  449. *switch: InputBin
  450. {
  451. *case: TRACTOR
  452. {
  453. *PrintableArea: PAIR(3264, 4752)
  454. *PrintableOrigin: PAIR(75, 0)
  455. *switch: Resolution
  456. {
  457. *case: Option2
  458. {
  459. *PrintableArea: PAIR(3262, 4752)
  460. *PrintableOrigin: PAIR(76, 0)
  461. }
  462. *case: Option3
  463. {
  464. *PrintableArea: PAIR(3262, 4752)
  465. *PrintableOrigin: PAIR(76, 0)
  466. }
  467. }
  468. }
  469. *case: MANUAL
  470. {
  471. *PrintableArea: PAIR(3264, 4536)
  472. *PrintableOrigin: PAIR(75, 0)
  473. *switch: Resolution
  474. {
  475. *case: Option2
  476. {
  477. *PrintableArea: PAIR(3262, 4536)
  478. *PrintableOrigin: PAIR(76, 0)
  479. }
  480. *case: Option3
  481. {
  482. *PrintableArea: PAIR(3262, 4536)
  483. *PrintableOrigin: PAIR(76, 0)
  484. }
  485. }
  486. }
  487. *case: UPPER
  488. {
  489. *PrintableArea: PAIR(3264, 4536)
  490. *PrintableOrigin: PAIR(75, 0)
  491. *switch: Resolution
  492. {
  493. *case: Option2
  494. {
  495. *PrintableArea: PAIR(3262, 4536)
  496. *PrintableOrigin: PAIR(76, 0)
  497. }
  498. *case: Option3
  499. {
  500. *PrintableArea: PAIR(3262, 4536)
  501. *PrintableOrigin: PAIR(76, 0)
  502. }
  503. }
  504. }
  505. }
  506. }
  507. *Option: A3
  508. {
  509. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  510. *switch: InputBin
  511. {
  512. *case: TRACTOR
  513. {
  514. *PrintableArea: PAIR(2731, 7145)
  515. *PrintableOrigin: PAIR(75, 0)
  516. *switch: Resolution
  517. {
  518. *case: Option1
  519. {
  520. *PrintableArea: PAIR(2731, 7143)
  521. }
  522. *case: Option2
  523. {
  524. *PrintableArea: PAIR(2730, 7140)
  525. *PrintableOrigin: PAIR(76, 0)
  526. }
  527. *case: Option3
  528. {
  529. *PrintableArea: PAIR(2730, 7143)
  530. *PrintableOrigin: PAIR(76, 0)
  531. }
  532. }
  533. }
  534. *case: MANUAL
  535. {
  536. *PrintableArea: PAIR(2731, 6929)
  537. *PrintableOrigin: PAIR(75, 0)
  538. *switch: Resolution
  539. {
  540. *case: Option1
  541. {
  542. *PrintableArea: PAIR(2731, 6927)
  543. }
  544. *case: Option2
  545. {
  546. *PrintableArea: PAIR(2730, 6924)
  547. *PrintableOrigin: PAIR(76, 0)
  548. }
  549. *case: Option3
  550. {
  551. *PrintableArea: PAIR(2730, 6927)
  552. *PrintableOrigin: PAIR(76, 0)
  553. }
  554. }
  555. }
  556. *case: UPPER
  557. {
  558. *PrintableArea: PAIR(2731, 6929)
  559. *PrintableOrigin: PAIR(75, 0)
  560. *switch: Resolution
  561. {
  562. *case: Option1
  563. {
  564. *PrintableArea: PAIR(2731, 6927)
  565. }
  566. *case: Option2
  567. {
  568. *PrintableArea: PAIR(2730, 6924)
  569. *PrintableOrigin: PAIR(76, 0)
  570. }
  571. *case: Option3
  572. {
  573. *PrintableArea: PAIR(2730, 6927)
  574. *PrintableOrigin: PAIR(76, 0)
  575. }
  576. }
  577. }
  578. }
  579. }
  580. *Option: CUSTOMSIZE
  581. {
  582. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  583. *MinSize: PAIR(240, 216)
  584. *MaxSize: PAIR(3960, 32767)
  585. *MaxPrintableWidth: 3264
  586. *MinLeftMargin: 75
  587. *CenterPrintable?: FALSE
  588. *switch: InputBin
  589. {
  590. *case: TRACTOR
  591. {
  592. *TopMargin: 0
  593. *BottomMargin: 0
  594. }
  595. *case: MANUAL
  596. {
  597. *TopMargin: 0
  598. *BottomMargin: 216
  599. }
  600. *case: UPPER
  601. {
  602. *TopMargin: 0
  603. *BottomMargin: 216
  604. }
  605. }
  606. }
  607. }
  608. *Feature: Halftone
  609. {
  610. *rcNameID: =HALFTONING_DISPLAY
  611. *DefaultOption: HT_PATSIZE_AUTO
  612. *Option: HT_PATSIZE_AUTO
  613. {
  614. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  615. }
  616. *Ifdef: WINNT_50
  617. *Option: HT_PATSIZE_SUPERCELL_M
  618. {
  619. *rcNameID: =HT_SUPERCELL_DISPLAY
  620. }
  621. *Endif:
  622. *Option: HT_PATSIZE_6x6_M
  623. {
  624. *rcNameID: =HT_DITHER6X6_DISPLAY
  625. }
  626. *Option: HT_PATSIZE_8x8_M
  627. {
  628. *rcNameID: =HT_DITHER8X8_DISPLAY
  629. }
  630. }
  631. *Command: CmdStartDoc
  632. {
  633. *Order: DOC_SETUP.1
  634. *Cmd: "<0D1B>6<1B>U<001B>2<1B>I<021B>W<001B>P<001B>[@<03000000011B>I2<121B>5<00>"
  635. }
  636. *Command: CmdStartPage
  637. {
  638. *Order: PAGE_SETUP.1
  639. *Cmd: "<0D>"
  640. }
  641. *Command: CmdEndJob
  642. {
  643. *Order: JOB_FINISH.1
  644. *Cmd: "<0D>"
  645. }
  646. *RotateCoordinate?: FALSE
  647. *RotateRaster?: FALSE
  648. *RotateFont?: FALSE
  649. *switch: Orientation
  650. {
  651. *case: PORTRAIT
  652. {
  653. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_UA_ABLE,TC_RA_ABLE)
  654. }
  655. *case: LANDSCAPE_CC270
  656. {
  657. *TextCaps: LIST(TC_RA_ABLE)
  658. }
  659. }
  660. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  661. *YMoveThreshold: *
  662. *YMoveUnit: 216
  663. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 2) )} }
  664. *Command: CmdCR { *Cmd : "<0D>" }
  665. *Command: CmdLF { *Cmd : "<0A>" }
  666. *Command: CmdFF { *Cmd : "<0C>" }
  667. *Command: CmdBackSpace { *Cmd : "<08>" }
  668. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<00>" }
  669. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<01>" }
  670. *EjectPageWithFF?: FALSE
  671. *switch: InputBin
  672. {
  673. *case: MANUAL
  674. {
  675. *EjectPageWithFF?: TRUE
  676. }
  677. *case: UPPER
  678. {
  679. *EjectPageWithFF?: TRUE
  680. }
  681. }
  682. *OutputDataFormat: V_BYTE
  683. *OptimizeLeftBound?: FALSE
  684. *CursorXAfterSendBlockData: AT_GRXDATA_END
  685. *CursorYAfterSendBlockData: NO_MOVE
  686. *DefaultFont: 10
  687. *DefaultCTT: 1
  688. *switch: Orientation
  689. {
  690. *case: PORTRAIT
  691. {
  692. *DeviceFonts: LIST(1,2,4,6,7,8,9,10,11,12,13,14)
  693. }
  694. *case: LANDSCAPE_CC270
  695. {
  696. *DeviceFonts: LIST()
  697. }
  698. }
  699. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  700. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  701. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  702. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }