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.

686 lines
19 KiB

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