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.

668 lines
20 KiB

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