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.

635 lines
17 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "OLDM309.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "Olivetti DM 309"
  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. *Option: LOWER
  48. {
  49. *rcNameID: =LOWER_TRAY_DISPLAY
  50. *Command: CmdSelect
  51. {
  52. *Order: DOC_SETUP.7
  53. *Cmd: "<1B19>4<1B19>2"
  54. }
  55. }
  56. }
  57. *Feature: Resolution
  58. {
  59. *rcNameID: =RESOLUTION_DISPLAY
  60. *DefaultOption: Option1
  61. *Option: Option1
  62. {
  63. *Name: "120 x 144 " =DOTS_PER_INCH
  64. *DPI: PAIR(120, 144)
  65. *TextDPI: PAIR(120, 144)
  66. *PinsPerLogPass: 16
  67. *PinsPerPhysPass: 8
  68. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  69. *SpotDiameter: 140
  70. *Command: CmdSendBlockData { *Cmd : "<1B>L" %l{NumOfDataBytes} }
  71. }
  72. *Option: Option2
  73. {
  74. *Name: "240 x 144 " =DOTS_PER_INCH
  75. *DPI: PAIR(240, 144)
  76. *TextDPI: PAIR(240, 144)
  77. *PinsPerLogPass: 16
  78. *PinsPerPhysPass: 8
  79. *MinStripBlankPixels: 240
  80. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  81. *SpotDiameter: 170
  82. *Command: CmdSendBlockData { *Cmd : "<1B>Z" %l{NumOfDataBytes} }
  83. }
  84. *Option: Option3
  85. {
  86. *Name: "120 x 72 " =DOTS_PER_INCH
  87. *DPI: PAIR(120, 72)
  88. *TextDPI: PAIR(120, 72)
  89. *PinsPerLogPass: 8
  90. *PinsPerPhysPass: 8
  91. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  92. *SpotDiameter: 100
  93. *Command: CmdSendBlockData { *Cmd : "<1B>L" %l{NumOfDataBytes} }
  94. }
  95. }
  96. *Feature: PaperSize
  97. {
  98. *rcNameID: =PAPER_SIZE_DISPLAY
  99. *DefaultOption: LETTER
  100. *Option: LETTER
  101. {
  102. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  103. *Command: CmdSelect
  104. {
  105. *Order: DOC_SETUP.8
  106. *Cmd: "<1B>2<1B>CB"
  107. }
  108. *switch: InputBin
  109. {
  110. *case: UPPER
  111. {
  112. *PrintableArea: PAIR(5760, 4320)
  113. *PrintableOrigin: PAIR(180, 108)
  114. }
  115. *case: TRACTOR
  116. {
  117. *PrintableArea: PAIR(5760, 4752)
  118. *PrintableOrigin: PAIR(180, 0)
  119. }
  120. *case: MANUAL
  121. {
  122. *PrintableArea: PAIR(5760, 4320)
  123. *PrintableOrigin: PAIR(180, 108)
  124. }
  125. *case: LOWER
  126. {
  127. *PrintableArea: PAIR(5760, 4320)
  128. *PrintableOrigin: PAIR(180, 108)
  129. }
  130. }
  131. }
  132. *Option: LEGAL
  133. {
  134. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  135. *Command: CmdSelect
  136. {
  137. *Order: DOC_SETUP.8
  138. *Cmd: "<1B>2<1B>CT"
  139. }
  140. *switch: InputBin
  141. {
  142. *case: UPPER
  143. {
  144. *PrintableArea: PAIR(5760, 5616)
  145. *PrintableOrigin: PAIR(180, 108)
  146. }
  147. *case: TRACTOR
  148. {
  149. *PrintableArea: PAIR(5760, 6048)
  150. *PrintableOrigin: PAIR(180, 0)
  151. }
  152. *case: MANUAL
  153. {
  154. *PrintableArea: PAIR(5760, 5616)
  155. *PrintableOrigin: PAIR(180, 108)
  156. }
  157. *case: LOWER
  158. {
  159. *PrintableArea: PAIR(5760, 5616)
  160. *PrintableOrigin: PAIR(180, 108)
  161. }
  162. }
  163. }
  164. *Option: A4
  165. {
  166. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  167. *Command: CmdSelect
  168. {
  169. *Order: DOC_SETUP.8
  170. *Cmd: "<1B>2<1B>CF"
  171. }
  172. *switch: InputBin
  173. {
  174. *case: UPPER
  175. {
  176. *PrintableArea: PAIR(5760, 4618)
  177. *PrintableOrigin: PAIR(90, 108)
  178. *switch: Resolution
  179. {
  180. *case: Option1
  181. {
  182. *PrintableArea: PAIR(5760, 4617)
  183. }
  184. *case: Option2
  185. {
  186. *PrintableArea: PAIR(5760, 4617)
  187. }
  188. *case: Option3
  189. {
  190. *PrintableArea: PAIR(5760, 4614)
  191. }
  192. }
  193. }
  194. *case: TRACTOR
  195. {
  196. *PrintableArea: PAIR(5760, 5050)
  197. *PrintableOrigin: PAIR(90, 0)
  198. *switch: Resolution
  199. {
  200. *case: Option1
  201. {
  202. *PrintableArea: PAIR(5760, 5049)
  203. }
  204. *case: Option2
  205. {
  206. *PrintableArea: PAIR(5760, 5049)
  207. }
  208. *case: Option3
  209. {
  210. *PrintableArea: PAIR(5760, 5046)
  211. }
  212. }
  213. }
  214. *case: MANUAL
  215. {
  216. *PrintableArea: PAIR(5760, 4618)
  217. *PrintableOrigin: PAIR(90, 108)
  218. *switch: Resolution
  219. {
  220. *case: Option1
  221. {
  222. *PrintableArea: PAIR(5760, 4617)
  223. }
  224. *case: Option2
  225. {
  226. *PrintableArea: PAIR(5760, 4617)
  227. }
  228. *case: Option3
  229. {
  230. *PrintableArea: PAIR(5760, 4614)
  231. }
  232. }
  233. }
  234. *case: LOWER
  235. {
  236. *PrintableArea: PAIR(5760, 4618)
  237. *PrintableOrigin: PAIR(90, 108)
  238. *switch: Resolution
  239. {
  240. *case: Option1
  241. {
  242. *PrintableArea: PAIR(5760, 4617)
  243. }
  244. *case: Option2
  245. {
  246. *PrintableArea: PAIR(5760, 4617)
  247. }
  248. *case: Option3
  249. {
  250. *PrintableArea: PAIR(5760, 4614)
  251. }
  252. }
  253. }
  254. }
  255. }
  256. *Option: A5
  257. {
  258. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  259. *Command: CmdSelect
  260. {
  261. *Order: DOC_SETUP.8
  262. *Cmd: "<1B>2<1B>C2"
  263. }
  264. *switch: InputBin
  265. {
  266. *case: UPPER
  267. {
  268. *PrintableArea: PAIR(4018, 3141)
  269. *PrintableOrigin: PAIR(90, 108)
  270. *switch: Resolution
  271. {
  272. *case: Option1
  273. {
  274. *PrintableArea: PAIR(4014, 3141)
  275. }
  276. *case: Option2
  277. {
  278. *PrintableArea: PAIR(4017, 3141)
  279. }
  280. *case: Option3
  281. {
  282. *PrintableArea: PAIR(4014, 3138)
  283. }
  284. }
  285. }
  286. *case: TRACTOR
  287. {
  288. *PrintableArea: PAIR(4018, 3573)
  289. *PrintableOrigin: PAIR(90, 0)
  290. *switch: Resolution
  291. {
  292. *case: Option1
  293. {
  294. *PrintableArea: PAIR(4014, 3573)
  295. }
  296. *case: Option2
  297. {
  298. *PrintableArea: PAIR(4017, 3573)
  299. }
  300. *case: Option3
  301. {
  302. *PrintableArea: PAIR(4014, 3570)
  303. }
  304. }
  305. }
  306. *case: MANUAL
  307. {
  308. *PrintableArea: PAIR(4018, 3141)
  309. *PrintableOrigin: PAIR(90, 108)
  310. *switch: Resolution
  311. {
  312. *case: Option1
  313. {
  314. *PrintableArea: PAIR(4014, 3141)
  315. }
  316. *case: Option2
  317. {
  318. *PrintableArea: PAIR(4017, 3141)
  319. }
  320. *case: Option3
  321. {
  322. *PrintableArea: PAIR(4014, 3138)
  323. }
  324. }
  325. }
  326. *case: LOWER
  327. {
  328. *PrintableArea: PAIR(4018, 3141)
  329. *PrintableOrigin: PAIR(90, 108)
  330. *switch: Resolution
  331. {
  332. *case: Option1
  333. {
  334. *PrintableArea: PAIR(4014, 3141)
  335. }
  336. *case: Option2
  337. {
  338. *PrintableArea: PAIR(4017, 3141)
  339. }
  340. *case: Option3
  341. {
  342. *PrintableArea: PAIR(4014, 3138)
  343. }
  344. }
  345. }
  346. }
  347. }
  348. *Option: B5
  349. {
  350. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  351. *Command: CmdSelect
  352. {
  353. *Order: DOC_SETUP.8
  354. *Cmd: "<1B>2<1B>C="
  355. }
  356. *switch: InputBin
  357. {
  358. *case: UPPER
  359. {
  360. *PrintableArea: PAIR(4982, 3940)
  361. *PrintableOrigin: PAIR(90, 108)
  362. *switch: Resolution
  363. {
  364. *case: Option1
  365. {
  366. *PrintableArea: PAIR(4980, 3939)
  367. }
  368. *case: Option2
  369. {
  370. *PrintableArea: PAIR(4980, 3939)
  371. }
  372. *case: Option3
  373. {
  374. *PrintableArea: PAIR(4980, 3936)
  375. }
  376. }
  377. }
  378. *case: TRACTOR
  379. {
  380. *PrintableArea: PAIR(4982, 4372)
  381. *PrintableOrigin: PAIR(90, 0)
  382. *switch: Resolution
  383. {
  384. *case: Option1
  385. {
  386. *PrintableArea: PAIR(4980, 4371)
  387. }
  388. *case: Option2
  389. {
  390. *PrintableArea: PAIR(4980, 4371)
  391. }
  392. *case: Option3
  393. {
  394. *PrintableArea: PAIR(4980, 4368)
  395. }
  396. }
  397. }
  398. *case: MANUAL
  399. {
  400. *PrintableArea: PAIR(4982, 3940)
  401. *PrintableOrigin: PAIR(90, 108)
  402. *switch: Resolution
  403. {
  404. *case: Option1
  405. {
  406. *PrintableArea: PAIR(4980, 3939)
  407. }
  408. *case: Option2
  409. {
  410. *PrintableArea: PAIR(4980, 3939)
  411. }
  412. *case: Option3
  413. {
  414. *PrintableArea: PAIR(4980, 3936)
  415. }
  416. }
  417. }
  418. *case: LOWER
  419. {
  420. *PrintableArea: PAIR(4982, 3940)
  421. *PrintableOrigin: PAIR(90, 108)
  422. *switch: Resolution
  423. {
  424. *case: Option1
  425. {
  426. *PrintableArea: PAIR(4980, 3939)
  427. }
  428. *case: Option2
  429. {
  430. *PrintableArea: PAIR(4980, 3939)
  431. }
  432. *case: Option3
  433. {
  434. *PrintableArea: PAIR(4980, 3936)
  435. }
  436. }
  437. }
  438. }
  439. }
  440. *Option: Option6
  441. {
  442. *rcNameID: 258
  443. *PageDimensions: PAIR(6120, 5184)
  444. *Command: CmdSelect
  445. {
  446. *Order: DOC_SETUP.8
  447. *Cmd: "<1B>2<1B>CH"
  448. }
  449. *switch: InputBin
  450. {
  451. *case: UPPER
  452. {
  453. *PrintableArea: PAIR(5760, 4752)
  454. *PrintableOrigin: PAIR(90, 108)
  455. }
  456. *case: TRACTOR
  457. {
  458. *PrintableArea: PAIR(5760, 5184)
  459. *PrintableOrigin: PAIR(90, 0)
  460. }
  461. *case: MANUAL
  462. {
  463. *PrintableArea: PAIR(5760, 4752)
  464. *PrintableOrigin: PAIR(90, 108)
  465. }
  466. *case: LOWER
  467. {
  468. *PrintableArea: PAIR(5760, 4752)
  469. *PrintableOrigin: PAIR(90, 108)
  470. }
  471. }
  472. }
  473. *Option: CUSTOMSIZE
  474. {
  475. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  476. *MinSize: PAIR(720, 432)
  477. *MaxSize: PAIR(6120, 9504)
  478. *MaxPrintableWidth: 5760
  479. *MinLeftMargin: 90
  480. *CenterPrintable?: FALSE
  481. *switch: InputBin
  482. {
  483. *case: UPPER
  484. {
  485. *TopMargin: 108
  486. *BottomMargin: 324
  487. }
  488. *case: TRACTOR
  489. {
  490. *TopMargin: 0
  491. *BottomMargin: 0
  492. }
  493. *case: MANUAL
  494. {
  495. *TopMargin: 108
  496. *BottomMargin: 324
  497. }
  498. *case: LOWER
  499. {
  500. *TopMargin: 108
  501. *BottomMargin: 324
  502. }
  503. }
  504. *Command: CmdSelect
  505. {
  506. *Order: DOC_SETUP.8
  507. *Cmd: "<1B>2"
  508. }
  509. }
  510. }
  511. *Feature: PrintQuality
  512. {
  513. *rcNameID: =TEXT_QUALITY_DISPLAY
  514. *DefaultOption: LETTER_QUALITY
  515. *Option: LETTER_QUALITY
  516. {
  517. *rcNameID: =LETTER_QUALITY_DISPLAY
  518. *Command: CmdSelect
  519. {
  520. *Order: DOC_SETUP.6
  521. *Cmd: "<1B>x<01>"
  522. }
  523. }
  524. *Option: DRAFT_QUALITY
  525. {
  526. *rcNameID: =DRAFT_QUALITY_DISPLAY
  527. *Command: CmdSelect
  528. {
  529. *Order: DOC_SETUP.6
  530. *Cmd: "<1B>x<00>"
  531. }
  532. }
  533. }
  534. *Feature: Halftone
  535. {
  536. *rcNameID: =HALFTONING_DISPLAY
  537. *DefaultOption: HT_PATSIZE_AUTO
  538. *Option: HT_PATSIZE_AUTO
  539. {
  540. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  541. }
  542. *Ifdef: WINNT_50
  543. *Option: HT_PATSIZE_SUPERCELL_M
  544. {
  545. *rcNameID: =HT_SUPERCELL_DISPLAY
  546. }
  547. *Endif:
  548. *Option: HT_PATSIZE_6x6_M
  549. {
  550. *rcNameID: =HT_DITHER6X6_DISPLAY
  551. }
  552. *Option: HT_PATSIZE_8x8_M
  553. {
  554. *rcNameID: =HT_DITHER8X8_DISPLAY
  555. }
  556. }
  557. *Command: CmdStartDoc
  558. {
  559. *Order: DOC_SETUP.1
  560. *Cmd: "<1B>@<0D1B>t<011B>I<011B>6<1B>R<00>"
  561. }
  562. *Command: CmdStartPage
  563. {
  564. *Order: PAGE_SETUP.1
  565. *Cmd: "<0D>"
  566. }
  567. *RotateCoordinate?: FALSE
  568. *RotateRaster?: FALSE
  569. *RotateFont?: FALSE
  570. *switch: Orientation
  571. {
  572. *case: PORTRAIT
  573. {
  574. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  575. }
  576. *case: LANDSCAPE_CC270
  577. {
  578. *TextCaps: LIST(TC_RA_ABLE)
  579. }
  580. }
  581. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  582. *YMoveAttributes: LIST(SEND_CR_FIRST)
  583. *MaxLineSpacing: 255
  584. *XMoveThreshold: *
  585. *YMoveThreshold: *
  586. *XMoveUnit: 120
  587. *YMoveUnit: 216
  588. *Command: CmdXMoveRelRight { *Cmd : "<1B>\" %l{(DestXRel / 6) } }
  589. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 2) )} }
  590. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{(LinefeedSpacing / 2) } }
  591. *Command: CmdCR { *Cmd : "<0D>" }
  592. *Command: CmdLF { *Cmd : "<0A>" }
  593. *Command: CmdFF { *Cmd : "<0C>" }
  594. *Command: CmdBackSpace { *Cmd : "<08>" }
  595. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  596. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  597. *EjectPageWithFF?: TRUE
  598. *switch: PaperSize
  599. {
  600. *case: CUSTOMSIZE
  601. {
  602. *EjectPageWithFF?: TRUE
  603. *switch: InputBin
  604. {
  605. *case: TRACTOR
  606. {
  607. *EjectPageWithFF?: FALSE
  608. }
  609. }
  610. }
  611. }
  612. *OutputDataFormat: V_BYTE
  613. *OptimizeLeftBound?: FALSE
  614. *CursorXAfterSendBlockData: AT_GRXDATA_END
  615. *CursorYAfterSendBlockData: NO_MOVE
  616. *DefaultFont: 1
  617. *DefaultCTT: 1
  618. *switch: Orientation
  619. {
  620. *case: PORTRAIT
  621. {
  622. *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,
  623. + 17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32)
  624. }
  625. *case: LANDSCAPE_CC270
  626. {
  627. *DeviceFonts: LIST()
  628. }
  629. }
  630. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  631. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  632. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  633. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  634. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  635. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }