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.

563 lines
16 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "IBPROPRN.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "IBM Proprinter"
  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(1920, 4752)
  99. *PrintableOrigin: PAIR(75, 0)
  100. *switch: Resolution
  101. {
  102. *case: Option2
  103. {
  104. *PrintableArea: PAIR(1918, 4752)
  105. *PrintableOrigin: PAIR(76, 0)
  106. }
  107. *case: Option3
  108. {
  109. *PrintableArea: PAIR(1918, 4752)
  110. *PrintableOrigin: PAIR(76, 0)
  111. }
  112. }
  113. }
  114. *case: MANUAL
  115. {
  116. *PrintableArea: PAIR(1920, 4536)
  117. *PrintableOrigin: PAIR(75, 0)
  118. *switch: Resolution
  119. {
  120. *case: Option2
  121. {
  122. *PrintableArea: PAIR(1918, 4536)
  123. *PrintableOrigin: PAIR(76, 0)
  124. }
  125. *case: Option3
  126. {
  127. *PrintableArea: PAIR(1918, 4536)
  128. *PrintableOrigin: PAIR(76, 0)
  129. }
  130. }
  131. }
  132. *case: UPPER
  133. {
  134. *PrintableArea: PAIR(1920, 4536)
  135. *PrintableOrigin: PAIR(75, 0)
  136. *switch: Resolution
  137. {
  138. *case: Option2
  139. {
  140. *PrintableArea: PAIR(1918, 4536)
  141. *PrintableOrigin: PAIR(76, 0)
  142. }
  143. *case: Option3
  144. {
  145. *PrintableArea: PAIR(1918, 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(1920, 5184)
  166. *PrintableOrigin: PAIR(75, 0)
  167. *switch: Resolution
  168. {
  169. *case: Option2
  170. {
  171. *PrintableArea: PAIR(1918, 5184)
  172. *PrintableOrigin: PAIR(76, 0)
  173. }
  174. *case: Option3
  175. {
  176. *PrintableArea: PAIR(1918, 5184)
  177. *PrintableOrigin: PAIR(76, 0)
  178. }
  179. }
  180. }
  181. *case: MANUAL
  182. {
  183. *PrintableArea: PAIR(1920, 4968)
  184. *PrintableOrigin: PAIR(75, 0)
  185. *switch: Resolution
  186. {
  187. *case: Option2
  188. {
  189. *PrintableArea: PAIR(1918, 4968)
  190. *PrintableOrigin: PAIR(76, 0)
  191. }
  192. *case: Option3
  193. {
  194. *PrintableArea: PAIR(1918, 4968)
  195. *PrintableOrigin: PAIR(76, 0)
  196. }
  197. }
  198. }
  199. *case: UPPER
  200. {
  201. *PrintableArea: PAIR(1920, 4968)
  202. *PrintableOrigin: PAIR(75, 0)
  203. *switch: Resolution
  204. {
  205. *case: Option2
  206. {
  207. *PrintableArea: PAIR(1918, 4968)
  208. *PrintableOrigin: PAIR(76, 0)
  209. }
  210. *case: Option3
  211. {
  212. *PrintableArea: PAIR(1918, 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(1920, 6048)
  232. *PrintableOrigin: PAIR(75, 0)
  233. *switch: Resolution
  234. {
  235. *case: Option2
  236. {
  237. *PrintableArea: PAIR(1918, 6048)
  238. *PrintableOrigin: PAIR(76, 0)
  239. }
  240. *case: Option3
  241. {
  242. *PrintableArea: PAIR(1918, 6048)
  243. *PrintableOrigin: PAIR(76, 0)
  244. }
  245. }
  246. }
  247. *case: MANUAL
  248. {
  249. *PrintableArea: PAIR(1920, 5832)
  250. *PrintableOrigin: PAIR(75, 0)
  251. *switch: Resolution
  252. {
  253. *case: Option2
  254. {
  255. *PrintableArea: PAIR(1918, 5832)
  256. *PrintableOrigin: PAIR(76, 0)
  257. }
  258. *case: Option3
  259. {
  260. *PrintableArea: PAIR(1918, 5832)
  261. *PrintableOrigin: PAIR(76, 0)
  262. }
  263. }
  264. }
  265. *case: UPPER
  266. {
  267. *PrintableArea: PAIR(1920, 5832)
  268. *PrintableOrigin: PAIR(75, 0)
  269. *switch: Resolution
  270. {
  271. *case: Option2
  272. {
  273. *PrintableArea: PAIR(1918, 5832)
  274. *PrintableOrigin: PAIR(76, 0)
  275. }
  276. *case: Option3
  277. {
  278. *PrintableArea: PAIR(1918, 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: CUSTOMSIZE
  442. {
  443. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  444. *MinSize: PAIR(240, 216)
  445. *MaxSize: PAIR(2640, 32767)
  446. *MaxPrintableWidth: 1920
  447. *MinLeftMargin: 75
  448. *CenterPrintable?: FALSE
  449. *switch: InputBin
  450. {
  451. *case: TRACTOR
  452. {
  453. *TopMargin: 0
  454. *BottomMargin: 0
  455. }
  456. *case: MANUAL
  457. {
  458. *TopMargin: 0
  459. *BottomMargin: 216
  460. }
  461. *case: UPPER
  462. {
  463. *TopMargin: 0
  464. *BottomMargin: 216
  465. }
  466. }
  467. }
  468. }
  469. *Feature: Halftone
  470. {
  471. *rcNameID: =HALFTONING_DISPLAY
  472. *DefaultOption: HT_PATSIZE_AUTO
  473. *Option: HT_PATSIZE_AUTO
  474. {
  475. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  476. }
  477. *Ifdef: WINNT_50
  478. *Option: HT_PATSIZE_SUPERCELL_M
  479. {
  480. *rcNameID: =HT_SUPERCELL_DISPLAY
  481. }
  482. *Endif:
  483. *Option: HT_PATSIZE_6x6_M
  484. {
  485. *rcNameID: =HT_DITHER6X6_DISPLAY
  486. }
  487. *Option: HT_PATSIZE_8x8_M
  488. {
  489. *rcNameID: =HT_DITHER8X8_DISPLAY
  490. }
  491. }
  492. *Command: CmdStartDoc
  493. {
  494. *Order: DOC_SETUP.1
  495. *Cmd: "<0D1B>6<1B>U<001B>2<1B>I<021B>W<001B>P<001B>[@<03000000011B>I2<121B>5<00>"
  496. }
  497. *Command: CmdStartPage
  498. {
  499. *Order: PAGE_SETUP.1
  500. *Cmd: "<0D>"
  501. }
  502. *Command: CmdEndJob
  503. {
  504. *Order: JOB_FINISH.1
  505. *Cmd: "<0D>"
  506. }
  507. *RotateCoordinate?: FALSE
  508. *RotateRaster?: FALSE
  509. *RotateFont?: FALSE
  510. *switch: Orientation
  511. {
  512. *case: PORTRAIT
  513. {
  514. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_UA_ABLE,TC_RA_ABLE)
  515. }
  516. *case: LANDSCAPE_CC270
  517. {
  518. *TextCaps: LIST(TC_RA_ABLE)
  519. }
  520. }
  521. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  522. *YMoveThreshold: *
  523. *YMoveUnit: 216
  524. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 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<00>" }
  530. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<01>" }
  531. *EjectPageWithFF?: FALSE
  532. *switch: InputBin
  533. {
  534. *case: MANUAL
  535. {
  536. *EjectPageWithFF?: TRUE
  537. }
  538. *case: UPPER
  539. {
  540. *EjectPageWithFF?: TRUE
  541. }
  542. }
  543. *OutputDataFormat: V_BYTE
  544. *OptimizeLeftBound?: FALSE
  545. *CursorXAfterSendBlockData: AT_GRXDATA_END
  546. *CursorYAfterSendBlockData: NO_MOVE
  547. *DefaultFont: 10
  548. *DefaultCTT: 1
  549. *switch: Orientation
  550. {
  551. *case: PORTRAIT
  552. {
  553. *DeviceFonts: LIST(1,2,4,6,7,8,9,10,11,12,13,14)
  554. }
  555. *case: LANDSCAPE_CC270
  556. {
  557. *DeviceFonts: LIST()
  558. }
  559. }
  560. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  561. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  562. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  563. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }