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.

693 lines
20 KiB

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