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.

641 lines
17 KiB

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