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.

598 lines
16 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "PAKX1123.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "Panasonic KX-P1123"
  10. *MasterUnits: PAIR(720, 720)
  11. *ResourceDLL: "pa24res.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.3
  40. *Cmd: "<1B19>4"
  41. }
  42. }
  43. *Option: MANUAL
  44. {
  45. *rcNameID: =MANUAL_FEED_DISPLAY
  46. *Command: CmdSelect
  47. {
  48. *Order: DOC_SETUP.3
  49. *Cmd: "<1B19>0"
  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(ENCLOSED,TRAILING)
  66. *SpotDiameter: 120
  67. *Command: CmdSendBlockData { *Cmd : "<1B>*'" %l{NumOfDataBytes / 3} }
  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: 270
  77. EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
  78. *SpotDiameter: 170
  79. *Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{NumOfDataBytes / 3} }
  80. }
  81. *Option: Option3
  82. {
  83. *Name: "360 x 360 " =DOTS_PER_INCH
  84. *DPI: PAIR(360, 360)
  85. *TextDPI: PAIR(360, 360)
  86. *PinsPerLogPass: 48
  87. *PinsPerPhysPass: 24
  88. *MinStripBlankPixels: 270
  89. *RequireUniDir?: TRUE
  90. EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
  91. *SpotDiameter: 170
  92. *Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{NumOfDataBytes / 3} }
  93. }
  94. *Option: Option4
  95. {
  96. *Name: "120 x 180 " =DOTS_PER_INCH
  97. *DPI: PAIR(120, 180)
  98. *TextDPI: PAIR(120, 180)
  99. *PinsPerLogPass: 24
  100. *PinsPerPhysPass: 24
  101. *MinStripBlankPixels: 90
  102. EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
  103. *SpotDiameter: 100
  104. *Command: CmdSendBlockData { *Cmd : "<1B>*!" %l{NumOfDataBytes / 3} }
  105. }
  106. }
  107. *Feature: PaperSize
  108. {
  109. *rcNameID: =PAPER_SIZE_DISPLAY
  110. *DefaultOption: LETTER
  111. *Option: LETTER
  112. {
  113. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  114. *Command: CmdSelect
  115. {
  116. *Order: DOC_SETUP.4
  117. *Cmd: "<1B>C<000B>"
  118. }
  119. *switch: InputBin
  120. {
  121. *case: TRACTOR
  122. {
  123. *PrintableArea: PAIR(5760, 7920)
  124. *PrintableOrigin: PAIR(180, 0)
  125. }
  126. *case: AUTO
  127. {
  128. *PrintableArea: PAIR(5760, 7128)
  129. *PrintableOrigin: PAIR(180, 72)
  130. }
  131. *case: MANUAL
  132. {
  133. *PrintableArea: PAIR(5760, 7200)
  134. *PrintableOrigin: PAIR(180, 612)
  135. }
  136. }
  137. }
  138. *Option: LEGAL
  139. {
  140. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  141. *Command: CmdSelect
  142. {
  143. *Order: DOC_SETUP.4
  144. *Cmd: "<1B>C<000E>"
  145. }
  146. *switch: InputBin
  147. {
  148. *case: TRACTOR
  149. {
  150. *PrintableArea: PAIR(5760, 10080)
  151. *PrintableOrigin: PAIR(180, 0)
  152. }
  153. *case: AUTO
  154. {
  155. *PrintableArea: PAIR(5760, 9288)
  156. *PrintableOrigin: PAIR(180, 72)
  157. }
  158. *case: MANUAL
  159. {
  160. *PrintableArea: PAIR(5760, 9360)
  161. *PrintableOrigin: PAIR(180, 612)
  162. }
  163. }
  164. }
  165. *Option: Option3
  166. {
  167. *rcNameID: 258
  168. *PageDimensions: PAIR(6120, 8640)
  169. *Command: CmdSelect
  170. {
  171. *Order: DOC_SETUP.4
  172. *Cmd: "<1B>C<000C>"
  173. }
  174. *switch: InputBin
  175. {
  176. *case: TRACTOR
  177. {
  178. *PrintableArea: PAIR(5760, 8640)
  179. *PrintableOrigin: PAIR(180, 0)
  180. }
  181. *case: AUTO
  182. {
  183. *PrintableArea: PAIR(5760, 7848)
  184. *PrintableOrigin: PAIR(180, 72)
  185. }
  186. *case: MANUAL
  187. {
  188. *PrintableArea: PAIR(5760, 7920)
  189. *PrintableOrigin: PAIR(180, 612)
  190. }
  191. }
  192. }
  193. *Option: Option4
  194. {
  195. *rcNameID: 259
  196. *PageDimensions: PAIR(6120, 9360)
  197. *Command: CmdSelect
  198. {
  199. *Order: DOC_SETUP.4
  200. *Cmd: "<1B>C<000D>"
  201. }
  202. *switch: InputBin
  203. {
  204. *case: TRACTOR
  205. {
  206. *PrintableArea: PAIR(5760, 9360)
  207. *PrintableOrigin: PAIR(180, 0)
  208. }
  209. *case: AUTO
  210. {
  211. *PrintableArea: PAIR(5760, 8568)
  212. *PrintableOrigin: PAIR(180, 72)
  213. }
  214. *case: MANUAL
  215. {
  216. *PrintableArea: PAIR(5760, 8640)
  217. *PrintableOrigin: PAIR(180, 612)
  218. }
  219. }
  220. }
  221. *Option: A4
  222. {
  223. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  224. *Command: CmdSelect
  225. {
  226. *Order: DOC_SETUP.4
  227. *Cmd: "<1B>3<121B>Cu"
  228. }
  229. *switch: InputBin
  230. {
  231. *case: TRACTOR
  232. {
  233. *PrintableArea: PAIR(5760, 8417)
  234. *PrintableOrigin: PAIR(180, 0)
  235. *switch: Resolution
  236. {
  237. *case: Option1
  238. {
  239. *PrintableArea: PAIR(5760, 8416)
  240. }
  241. *case: Option2
  242. {
  243. *PrintableArea: PAIR(5760, 8416)
  244. }
  245. *case: Option3
  246. {
  247. *PrintableArea: PAIR(5760, 8416)
  248. }
  249. *case: Option4
  250. {
  251. *PrintableArea: PAIR(5760, 8416)
  252. }
  253. }
  254. }
  255. *case: AUTO
  256. {
  257. *PrintableArea: PAIR(5760, 7625)
  258. *PrintableOrigin: PAIR(180, 72)
  259. *switch: Resolution
  260. {
  261. *case: Option1
  262. {
  263. *PrintableArea: PAIR(5760, 7624)
  264. }
  265. *case: Option2
  266. {
  267. *PrintableArea: PAIR(5760, 7624)
  268. }
  269. *case: Option3
  270. {
  271. *PrintableArea: PAIR(5760, 7624)
  272. }
  273. *case: Option4
  274. {
  275. *PrintableArea: PAIR(5760, 7624)
  276. }
  277. }
  278. }
  279. *case: MANUAL
  280. {
  281. *PrintableArea: PAIR(5760, 7697)
  282. *PrintableOrigin: PAIR(180, 612)
  283. *switch: Resolution
  284. {
  285. *case: Option1
  286. {
  287. *PrintableArea: PAIR(5760, 7696)
  288. }
  289. *case: Option2
  290. {
  291. *PrintableArea: PAIR(5760, 7696)
  292. }
  293. *case: Option3
  294. {
  295. *PrintableArea: PAIR(5760, 7696)
  296. }
  297. *case: Option4
  298. {
  299. *PrintableArea: PAIR(5760, 7696)
  300. }
  301. }
  302. }
  303. }
  304. }
  305. *Option: B5
  306. {
  307. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  308. *Command: CmdSelect
  309. {
  310. *Order: DOC_SETUP.4
  311. *Cmd: "<1B>2<1B>C%<"
  312. }
  313. *switch: InputBin
  314. {
  315. *case: TRACTOR
  316. {
  317. *PrintableArea: PAIR(4982, 7286)
  318. *PrintableOrigin: PAIR(180, 0)
  319. *switch: Resolution
  320. {
  321. *case: Option1
  322. {
  323. *PrintableArea: PAIR(4980, 7284)
  324. }
  325. *case: Option2
  326. {
  327. *PrintableArea: PAIR(4982, 7284)
  328. }
  329. *case: Option4
  330. {
  331. *PrintableArea: PAIR(4980, 7284)
  332. }
  333. }
  334. }
  335. *case: AUTO
  336. {
  337. *PrintableArea: PAIR(4982, 6494)
  338. *PrintableOrigin: PAIR(180, 72)
  339. *switch: Resolution
  340. {
  341. *case: Option1
  342. {
  343. *PrintableArea: PAIR(4980, 6492)
  344. }
  345. *case: Option2
  346. {
  347. *PrintableArea: PAIR(4982, 6492)
  348. }
  349. *case: Option4
  350. {
  351. *PrintableArea: PAIR(4980, 6492)
  352. }
  353. }
  354. }
  355. *case: MANUAL
  356. {
  357. *PrintableArea: PAIR(4982, 6566)
  358. *PrintableOrigin: PAIR(180, 612)
  359. *switch: Resolution
  360. {
  361. *case: Option1
  362. {
  363. *PrintableArea: PAIR(4980, 6564)
  364. }
  365. *case: Option2
  366. {
  367. *PrintableArea: PAIR(4982, 6564)
  368. }
  369. *case: Option4
  370. {
  371. *PrintableArea: PAIR(4980, 6564)
  372. }
  373. }
  374. }
  375. }
  376. }
  377. *Option: ENV_10
  378. {
  379. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  380. *Command: CmdSelect
  381. {
  382. *Order: DOC_SETUP.4
  383. *Cmd: "<1B>2<1B>C9"
  384. }
  385. *switch: InputBin
  386. {
  387. *case: TRACTOR
  388. {
  389. *PrintableArea: PAIR(2794, 6840)
  390. *PrintableOrigin: PAIR(180, 0)
  391. *switch: Resolution
  392. {
  393. *case: Option1
  394. {
  395. *PrintableArea: PAIR(2792, 6840)
  396. }
  397. *case: Option4
  398. {
  399. *PrintableArea: PAIR(2790, 6840)
  400. }
  401. }
  402. }
  403. *case: AUTO
  404. {
  405. *PrintableArea: PAIR(2794, 6048)
  406. *PrintableOrigin: PAIR(180, 72)
  407. *switch: Resolution
  408. {
  409. *case: Option1
  410. {
  411. *PrintableArea: PAIR(2792, 6048)
  412. }
  413. *case: Option4
  414. {
  415. *PrintableArea: PAIR(2790, 6048)
  416. }
  417. }
  418. }
  419. *case: MANUAL
  420. {
  421. *PrintableArea: PAIR(2794, 6120)
  422. *PrintableOrigin: PAIR(180, 612)
  423. *switch: Resolution
  424. {
  425. *case: Option1
  426. {
  427. *PrintableArea: PAIR(2792, 6120)
  428. }
  429. *case: Option4
  430. {
  431. *PrintableArea: PAIR(2790, 6120)
  432. }
  433. }
  434. }
  435. }
  436. }
  437. *Option: CUSTOMSIZE
  438. {
  439. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  440. *MinSize: PAIR(360, 720)
  441. *MaxSize: PAIR(6120, 15840)
  442. *MaxPrintableWidth: 5760
  443. *MinLeftMargin: 180
  444. *CenterPrintable?: FALSE
  445. *switch: InputBin
  446. {
  447. *case: TRACTOR
  448. {
  449. *TopMargin: 0
  450. *BottomMargin: 0
  451. }
  452. *case: AUTO
  453. {
  454. *TopMargin: 72
  455. *BottomMargin: 720
  456. }
  457. *case: MANUAL
  458. {
  459. *TopMargin: 612
  460. *BottomMargin: 108
  461. }
  462. }
  463. *Command: CmdSelect
  464. {
  465. *Order: DOC_SETUP.4
  466. *Cmd: "<1B>2"
  467. }
  468. }
  469. }
  470. *Feature: PrintQuality
  471. {
  472. *rcNameID: =TEXT_QUALITY_DISPLAY
  473. *DefaultOption: LETTER_QUALITY
  474. *Option: LETTER_QUALITY
  475. {
  476. *rcNameID: =LETTER_QUALITY_DISPLAY
  477. *Command: CmdSelect
  478. {
  479. *Order: DOC_SETUP.2
  480. *Cmd: "<1B>x<01>"
  481. }
  482. }
  483. *Option: DRAFT_QUALITY
  484. {
  485. *rcNameID: =DRAFT_QUALITY_DISPLAY
  486. *Command: CmdSelect
  487. {
  488. *Order: DOC_SETUP.2
  489. *Cmd: "<1B>x<00>"
  490. }
  491. }
  492. }
  493. *Feature: Halftone
  494. {
  495. *rcNameID: =HALFTONING_DISPLAY
  496. *DefaultOption: HT_PATSIZE_AUTO
  497. *Option: HT_PATSIZE_AUTO
  498. {
  499. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  500. }
  501. *Ifdef: WINNT_50
  502. *Option: HT_PATSIZE_SUPERCELL_M
  503. {
  504. *rcNameID: =HT_SUPERCELL_DISPLAY
  505. }
  506. *Endif:
  507. *Option: HT_PATSIZE_6x6_M
  508. {
  509. *rcNameID: =HT_DITHER6X6_DISPLAY
  510. }
  511. *Option: HT_PATSIZE_8x8_M
  512. {
  513. *rcNameID: =HT_DITHER8X8_DISPLAY
  514. }
  515. }
  516. *Command: CmdStartDoc
  517. {
  518. *Order: DOC_SETUP.1
  519. *Cmd: "<1B>@<1B>t<011B>6"
  520. }
  521. *Command: CmdEndJob
  522. {
  523. *Order: JOB_FINISH.1
  524. *Cmd: "<1B>@"
  525. }
  526. *RotateCoordinate?: FALSE
  527. *RotateRaster?: FALSE
  528. *RotateFont?: FALSE
  529. *switch: Orientation
  530. {
  531. *case: PORTRAIT
  532. {
  533. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  534. }
  535. *case: LANDSCAPE_CC270
  536. {
  537. *TextCaps: LIST(TC_RA_ABLE)
  538. }
  539. }
  540. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  541. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  542. *MaxLineSpacing: 255
  543. *XMoveThreshold: 0
  544. *YMoveThreshold: *
  545. *XMoveUnit: 60
  546. *YMoveUnit: 180
  547. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l[0,1530]{max_repeat((DestX / 12) )} }
  548. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 4) )} }
  549. *Command: CmdSetLineSpacing { *Cmd : "<1B>+" %c[0,255]{(LinefeedSpacing / 2) } }
  550. *Command: CmdCR { *Cmd : "<0D>" }
  551. *Command: CmdLF { *Cmd : "<0A>" }
  552. *Command: CmdFF { *Cmd : "<0C>" }
  553. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  554. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  555. *EjectPageWithFF?: TRUE
  556. *switch: PaperSize
  557. {
  558. *case: CUSTOMSIZE
  559. {
  560. *EjectPageWithFF?: FALSE
  561. *switch: InputBin
  562. {
  563. *case: AUTO
  564. {
  565. *EjectPageWithFF?: TRUE
  566. }
  567. *case: MANUAL
  568. {
  569. *EjectPageWithFF?: TRUE
  570. }
  571. }
  572. }
  573. }
  574. *OutputDataFormat: V_BYTE
  575. *OptimizeLeftBound?: FALSE
  576. *CursorXAfterSendBlockData: AT_GRXDATA_END
  577. *CursorYAfterSendBlockData: NO_MOVE
  578. *DefaultFont: 1
  579. *DefaultCTT: 2
  580. *switch: Orientation
  581. {
  582. *case: PORTRAIT
  583. {
  584. *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,
  585. + 17,18,28,29,30,31,32,33,34,35,36,37,38,39,40,41,
  586. + 42,43)
  587. }
  588. *case: LANDSCAPE_CC270
  589. {
  590. *DeviceFonts: LIST()
  591. }
  592. }
  593. *Command: CmdBoldOn { *Cmd : "<1B>G" }
  594. *Command: CmdBoldOff { *Cmd : "<1B>H" }
  595. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  596. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  597. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  598. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }