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.

548 lines
13 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "IB4226.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "IBM 4226 Model 302"
  10. *MasterUnits: PAIR(720, 432)
  11. *ResourceDLL: "ib238res.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. }
  35. *Feature: Resolution
  36. {
  37. *rcNameID: =RESOLUTION_DISPLAY
  38. *DefaultOption: Option1
  39. *Option: Option1
  40. {
  41. *Name: "240 x 144 " =DOTS_PER_INCH
  42. *DPI: PAIR(240, 144)
  43. *TextDPI: PAIR(240, 144)
  44. *PinsPerLogPass: 16
  45. *PinsPerPhysPass: 8
  46. *MinStripBlankPixels: 240
  47. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  48. *SpotDiameter: 170
  49. *Command: CmdSendBlockData { *Cmd : "<1B>Z" %l{NumOfDataBytes} }
  50. }
  51. *Option: Option2
  52. {
  53. *Name: "120 x 144 " =DOTS_PER_INCH
  54. *DPI: PAIR(120, 144)
  55. *TextDPI: PAIR(120, 144)
  56. *PinsPerLogPass: 16
  57. *PinsPerPhysPass: 8
  58. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  59. *SpotDiameter: 140
  60. *Command: CmdSendBlockData { *Cmd : "<1B>L" %l{NumOfDataBytes} }
  61. }
  62. *Option: Option3
  63. {
  64. *Name: "120 x 72 " =DOTS_PER_INCH
  65. *DPI: PAIR(120, 72)
  66. *TextDPI: PAIR(120, 72)
  67. *PinsPerLogPass: 8
  68. *PinsPerPhysPass: 8
  69. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  70. *SpotDiameter: 100
  71. *Command: CmdSendBlockData { *Cmd : "<1B>L" %l{NumOfDataBytes} }
  72. }
  73. }
  74. *Feature: PaperSize
  75. {
  76. *rcNameID: =PAPER_SIZE_DISPLAY
  77. *DefaultOption: LETTER
  78. *Option: LETTER
  79. {
  80. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  81. *PrintableArea: PAIR(6120, 4752)
  82. *PrintableOrigin: PAIR(0, 0)
  83. *Command: CmdSelect
  84. {
  85. *Order: DOC_SETUP.8
  86. *Cmd: "<1B>C<000B>"
  87. }
  88. }
  89. *Option: LEGAL
  90. {
  91. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  92. *PrintableArea: PAIR(6120, 6048)
  93. *PrintableOrigin: PAIR(0, 0)
  94. *Command: CmdSelect
  95. {
  96. *Order: DOC_SETUP.8
  97. *Cmd: "<1B>C<000E>"
  98. }
  99. }
  100. *Option: A4
  101. {
  102. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  103. *PrintableArea: PAIR(5954, 5050)
  104. *PrintableOrigin: PAIR(0, 0)
  105. *switch: Resolution
  106. {
  107. *case: Option1
  108. {
  109. *PrintableArea: PAIR(5952, 5049)
  110. }
  111. *case: Option2
  112. {
  113. *PrintableArea: PAIR(5952, 5049)
  114. }
  115. *case: Option3
  116. {
  117. *PrintableArea: PAIR(5952, 5046)
  118. }
  119. }
  120. *Command: CmdSelect
  121. {
  122. *Order: DOC_SETUP.8
  123. *Cmd: "<1B>2<1B>CF"
  124. }
  125. }
  126. *Option: FANFOLD_STD_GERMAN
  127. {
  128. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  129. *PrintableArea: PAIR(6120, 5184)
  130. *PrintableOrigin: PAIR(0, 0)
  131. *Command: CmdSelect
  132. {
  133. *Order: DOC_SETUP.8
  134. *Cmd: "<1B>C<000C>"
  135. }
  136. }
  137. *Option: A3
  138. {
  139. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  140. *PrintableArea: PAIR(8417, 7145)
  141. *PrintableOrigin: PAIR(0, 0)
  142. *switch: Resolution
  143. {
  144. *case: Option1
  145. {
  146. *PrintableArea: PAIR(8415, 7143)
  147. }
  148. *case: Option2
  149. {
  150. *PrintableArea: PAIR(8412, 7143)
  151. }
  152. *case: Option3
  153. {
  154. *PrintableArea: PAIR(8412, 7140)
  155. }
  156. }
  157. *Command: CmdSelect
  158. {
  159. *Order: DOC_SETUP.8
  160. *Cmd: "<1B>2<1B>Cc"
  161. }
  162. }
  163. *Option: B5
  164. {
  165. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  166. *PrintableArea: PAIR(5162, 4372)
  167. *PrintableOrigin: PAIR(0, 0)
  168. *switch: Resolution
  169. {
  170. *case: Option1
  171. {
  172. *PrintableArea: PAIR(5160, 4371)
  173. }
  174. *case: Option2
  175. {
  176. *PrintableArea: PAIR(5160, 4371)
  177. }
  178. *case: Option3
  179. {
  180. *PrintableArea: PAIR(5160, 4368)
  181. }
  182. }
  183. *Command: CmdSelect
  184. {
  185. *Order: DOC_SETUP.8
  186. *Cmd: "<1B>2<1B>C%<"
  187. }
  188. }
  189. *Option: FANFOLD_US
  190. {
  191. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  192. *PrintableArea: PAIR(9792, 4752)
  193. *PrintableOrigin: PAIR(0, 0)
  194. *Command: CmdSelect
  195. {
  196. *Order: DOC_SETUP.8
  197. *Cmd: "<1B>C<000B>"
  198. }
  199. }
  200. *Option: Option8
  201. {
  202. *rcNameID: 259
  203. *PageDimensions: PAIR(2614, 2808)
  204. *PrintableArea: PAIR(2464, 2583)
  205. *PrintableOrigin: PAIR(0, 0)
  206. *switch: Resolution
  207. {
  208. *case: Option1
  209. {
  210. *PrintableArea: PAIR(2463, 2583)
  211. }
  212. *case: Option2
  213. {
  214. *PrintableArea: PAIR(2460, 2583)
  215. }
  216. *case: Option3
  217. {
  218. *PrintableArea: PAIR(2460, 2580)
  219. }
  220. }
  221. *Command: CmdSelect
  222. {
  223. *Order: DOC_SETUP.8
  224. *Cmd: "<1B>C<0006>"
  225. }
  226. }
  227. *Option: ENV_PERSONAL
  228. {
  229. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  230. *PrintableArea: PAIR(2464, 2583)
  231. *PrintableOrigin: PAIR(0, 0)
  232. *switch: Resolution
  233. {
  234. *case: Option1
  235. {
  236. *PrintableArea: PAIR(2463, 2583)
  237. }
  238. *case: Option2
  239. {
  240. *PrintableArea: PAIR(2460, 2583)
  241. }
  242. *case: Option3
  243. {
  244. *PrintableArea: PAIR(2460, 2580)
  245. }
  246. }
  247. *Command: CmdSelect
  248. {
  249. *Order: DOC_SETUP.8
  250. *Cmd: "<1B>2<1B>C'"
  251. }
  252. }
  253. *Option: ENV_MONARCH
  254. {
  255. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  256. *PrintableArea: PAIR(2644, 3090)
  257. *PrintableOrigin: PAIR(0, 0)
  258. *switch: Resolution
  259. {
  260. *case: Option1
  261. {
  262. *PrintableArea: PAIR(2643, 3090)
  263. }
  264. *case: Option2
  265. {
  266. *PrintableArea: PAIR(2640, 3090)
  267. }
  268. *case: Option3
  269. {
  270. *PrintableArea: PAIR(2640, 3090)
  271. }
  272. }
  273. *Command: CmdSelect
  274. {
  275. *Order: DOC_SETUP.8
  276. *Cmd: "<1B>2<1B>C-"
  277. }
  278. }
  279. *Option: ENV_9
  280. {
  281. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  282. *PrintableArea: PAIR(2794, 3836)
  283. *PrintableOrigin: PAIR(0, 0)
  284. *switch: Resolution
  285. {
  286. *case: Option1
  287. {
  288. *PrintableArea: PAIR(2793, 3834)
  289. }
  290. *case: Option2
  291. {
  292. *PrintableArea: PAIR(2790, 3834)
  293. }
  294. *case: Option3
  295. {
  296. *PrintableArea: PAIR(2790, 3834)
  297. }
  298. }
  299. *Command: CmdSelect
  300. {
  301. *Order: DOC_SETUP.8
  302. *Cmd: "<1B>2<1B>C5"
  303. }
  304. }
  305. *Option: ENV_10
  306. {
  307. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  308. *PrintableArea: PAIR(2974, 4104)
  309. *PrintableOrigin: PAIR(0, 0)
  310. *switch: Resolution
  311. {
  312. *case: Option1
  313. {
  314. *PrintableArea: PAIR(2973, 4104)
  315. }
  316. *case: Option2
  317. {
  318. *PrintableArea: PAIR(2970, 4104)
  319. }
  320. *case: Option3
  321. {
  322. *PrintableArea: PAIR(2970, 4104)
  323. }
  324. }
  325. *Command: CmdSelect
  326. {
  327. *Order: DOC_SETUP.8
  328. *Cmd: "<1B>2<1B>C9"
  329. }
  330. }
  331. *Option: ENV_DL
  332. {
  333. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  334. *PrintableArea: PAIR(2968, 3591)
  335. *PrintableOrigin: PAIR(0, 0)
  336. *switch: Resolution
  337. {
  338. *case: Option1
  339. {
  340. *PrintableArea: PAIR(2967, 3591)
  341. }
  342. *case: Option2
  343. {
  344. *PrintableArea: PAIR(2964, 3591)
  345. }
  346. *case: Option3
  347. {
  348. *PrintableArea: PAIR(2964, 3588)
  349. }
  350. }
  351. *Command: CmdSelect
  352. {
  353. *Order: DOC_SETUP.8
  354. *Cmd: "<1B>2<1B>C4"
  355. }
  356. }
  357. *Option: ENV_C6
  358. {
  359. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  360. *PrintableArea: PAIR(3083, 2581)
  361. *PrintableOrigin: PAIR(0, 0)
  362. *switch: Resolution
  363. {
  364. *case: Option1
  365. {
  366. *PrintableArea: PAIR(3081, 2580)
  367. }
  368. *case: Option2
  369. {
  370. *PrintableArea: PAIR(3078, 2580)
  371. }
  372. *case: Option3
  373. {
  374. *PrintableArea: PAIR(3078, 2580)
  375. }
  376. }
  377. *Command: CmdSelect
  378. {
  379. *Order: DOC_SETUP.8
  380. *Cmd: "<1B>2<1B>C&"
  381. }
  382. }
  383. *Option: CUSTOMSIZE
  384. {
  385. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  386. *MinSize: PAIR(2160, 1296)
  387. *MaxSize: PAIR(9792, 6048)
  388. *MaxPrintableWidth: 9792
  389. *MinLeftMargin: 0
  390. *CenterPrintable?: FALSE
  391. }
  392. }
  393. *InvalidCombination: LIST(InputBin.TRACTOR, PaperSize.Option8)
  394. *InvalidCombination: LIST(InputBin.TRACTOR, PaperSize.ENV_PERSONAL)
  395. *InvalidCombination: LIST(InputBin.TRACTOR, PaperSize.ENV_MONARCH)
  396. *InvalidCombination: LIST(InputBin.TRACTOR, PaperSize.ENV_9)
  397. *InvalidCombination: LIST(InputBin.TRACTOR, PaperSize.ENV_10)
  398. *InvalidCombination: LIST(InputBin.TRACTOR, PaperSize.ENV_DL)
  399. *InvalidCombination: LIST(InputBin.TRACTOR, PaperSize.ENV_C6)
  400. *Feature: PrintQuality
  401. {
  402. *rcNameID: =TEXT_QUALITY_DISPLAY
  403. *DefaultOption: NEAR_LETTER_QUALITY
  404. *Option: NEAR_LETTER_QUALITY
  405. {
  406. *rcNameID: =NEAR_LETTER_QUALITY_DISPLAY
  407. *Command: CmdSelect
  408. {
  409. *Order: DOC_SETUP.6
  410. *Cmd: "<1B>[d<010080>"
  411. }
  412. }
  413. *Option: DRAFT_QUALITY
  414. {
  415. *rcNameID: =DRAFT_QUALITY_DISPLAY
  416. *Command: CmdSelect
  417. {
  418. *Order: DOC_SETUP.6
  419. *Cmd: "<1B>[d<0100>@"
  420. }
  421. }
  422. *Option: Option3
  423. {
  424. *rcNameID: 260
  425. *Command: CmdSelect
  426. {
  427. *Order: DOC_SETUP.6
  428. *Cmd: "<1B>[d<010001>"
  429. }
  430. }
  431. }
  432. *Feature: Halftone
  433. {
  434. *rcNameID: =HALFTONING_DISPLAY
  435. *DefaultOption: HT_PATSIZE_AUTO
  436. *Option: HT_PATSIZE_AUTO
  437. {
  438. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  439. }
  440. *Ifdef: WINNT_50
  441. *Option: HT_PATSIZE_SUPERCELL_M
  442. {
  443. *rcNameID: =HT_SUPERCELL_DISPLAY
  444. }
  445. *Endif:
  446. *Option: HT_PATSIZE_6x6_M
  447. {
  448. *rcNameID: =HT_DITHER6X6_DISPLAY
  449. }
  450. *Option: HT_PATSIZE_8x8_M
  451. {
  452. *rcNameID: =HT_DITHER8X8_DISPLAY
  453. }
  454. }
  455. *Command: CmdStartDoc
  456. {
  457. *Order: DOC_SETUP.1
  458. *Cmd: "<1B>[K<030000B6011B>6<1B>[T<0400000003>R"
  459. }
  460. *Command: CmdStartPage
  461. {
  462. *Order: PAGE_SETUP.1
  463. *Cmd: "<0D>"
  464. }
  465. *Command: CmdEndJob
  466. {
  467. *Order: JOB_FINISH.1
  468. *Cmd: "<181B>[K<030000B600>"
  469. }
  470. *RotateCoordinate?: FALSE
  471. *RotateRaster?: FALSE
  472. *RotateFont?: FALSE
  473. *switch: Orientation
  474. {
  475. *case: PORTRAIT
  476. {
  477. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  478. }
  479. *case: LANDSCAPE_CC270
  480. {
  481. *TextCaps: LIST(TC_RA_ABLE)
  482. }
  483. }
  484. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  485. *YMoveThreshold: *
  486. *YMoveUnit: 216
  487. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 2) )} }
  488. *Command: CmdCR { *Cmd : "<0D>" }
  489. *Command: CmdLF { *Cmd : "<0A>" }
  490. *Command: CmdFF { *Cmd : "<0C>" }
  491. *Command: CmdBackSpace { *Cmd : "<08>" }
  492. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  493. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  494. *EjectPageWithFF?: FALSE
  495. *switch: PaperSize
  496. {
  497. *case: Option8
  498. {
  499. *EjectPageWithFF?: TRUE
  500. }
  501. *case: ENV_PERSONAL
  502. {
  503. *EjectPageWithFF?: TRUE
  504. }
  505. *case: ENV_MONARCH
  506. {
  507. *EjectPageWithFF?: TRUE
  508. }
  509. *case: ENV_9
  510. {
  511. *EjectPageWithFF?: TRUE
  512. }
  513. *case: ENV_10
  514. {
  515. *EjectPageWithFF?: TRUE
  516. }
  517. *case: ENV_DL
  518. {
  519. *EjectPageWithFF?: TRUE
  520. }
  521. *case: ENV_C6
  522. {
  523. *EjectPageWithFF?: TRUE
  524. }
  525. }
  526. *OutputDataFormat: V_BYTE
  527. *OptimizeLeftBound?: TRUE
  528. *CursorXAfterSendBlockData: AT_GRXDATA_END
  529. *CursorYAfterSendBlockData: NO_MOVE
  530. *DefaultFont: 6
  531. *DefaultCTT: -2
  532. *switch: Orientation
  533. {
  534. *case: PORTRAIT
  535. {
  536. *DeviceFonts: LIST(1,6,8,18,20,24)
  537. }
  538. *case: LANDSCAPE_CC270
  539. {
  540. *DeviceFonts: LIST()
  541. }
  542. }
  543. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  544. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  545. *Command: CmdItalicOn { *Cmd : "<1B>[@<040001000000>" }
  546. *Command: CmdItalicOff { *Cmd : "<1B>[@<040002000000>" }
  547. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  548. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }