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.

544 lines
14 KiB

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