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.

567 lines
15 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "STNL10.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "Star NL-10"
  10. *MasterUnits: PAIR(720, 432)
  11. *ResourceDLL: "star9res.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: MANUAL
  30. *Option: TRACTOR
  31. {
  32. *rcNameID: =TRACTOR_DISPLAY
  33. }
  34. *Option: Option2
  35. {
  36. *rcNameID: 263
  37. *Command: CmdSelect
  38. {
  39. *Order: DOC_SETUP.4
  40. *Cmd: "<1B1904>"
  41. }
  42. }
  43. *Option: MANUAL
  44. {
  45. *rcNameID: =MANUAL_FEED_DISPLAY
  46. *Command: CmdSelect
  47. {
  48. *Order: DOC_SETUP.4
  49. *Cmd: "<1B1900>"
  50. }
  51. }
  52. }
  53. *Feature: Resolution
  54. {
  55. *rcNameID: =RESOLUTION_DISPLAY
  56. *DefaultOption: Option1
  57. *Option: Option1
  58. {
  59. *Name: "240 x 144 " =DOTS_PER_INCH
  60. *DPI: PAIR(240, 144)
  61. *TextDPI: PAIR(240, 144)
  62. *PinsPerLogPass: 16
  63. *PinsPerPhysPass: 8
  64. *MinStripBlankPixels: 240
  65. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  66. *SpotDiameter: 100
  67. *Command: CmdSendBlockData { *Cmd : "<1B>Z" %l{NumOfDataBytes} }
  68. }
  69. *Option: Option2
  70. {
  71. *Name: "120 x 144 " =DOTS_PER_INCH
  72. *DPI: PAIR(120, 144)
  73. *TextDPI: PAIR(120, 144)
  74. *PinsPerLogPass: 16
  75. *PinsPerPhysPass: 8
  76. *MinStripBlankPixels: 120
  77. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  78. *SpotDiameter: 140
  79. *Command: CmdSendBlockData { *Cmd : "<1B>L" %l{NumOfDataBytes} }
  80. }
  81. *Option: Option3
  82. {
  83. *Name: "120 x 72 " =DOTS_PER_INCH
  84. *DPI: PAIR(120, 72)
  85. *TextDPI: PAIR(120, 72)
  86. *PinsPerLogPass: 8
  87. *PinsPerPhysPass: 8
  88. *MinStripBlankPixels: 120
  89. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  90. *SpotDiameter: 100
  91. *Command: CmdSendBlockData { *Cmd : "<1B>L" %l{NumOfDataBytes} }
  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.5
  104. *Cmd: "<1B>2<1B>CB"
  105. }
  106. *switch: InputBin
  107. {
  108. *case: TRACTOR
  109. {
  110. *PrintableArea: PAIR(5760, 4752)
  111. *PrintableOrigin: PAIR(0, 0)
  112. }
  113. *case: Option2
  114. {
  115. *PrintableArea: PAIR(5760, 3880)
  116. *PrintableOrigin: PAIR(0, 432)
  117. *switch: Resolution
  118. {
  119. *case: Option1
  120. {
  121. *PrintableArea: PAIR(5760, 3879)
  122. }
  123. *case: Option2
  124. {
  125. *PrintableArea: PAIR(5760, 3879)
  126. }
  127. *case: Option3
  128. {
  129. *PrintableArea: PAIR(5760, 3876)
  130. }
  131. }
  132. }
  133. *case: MANUAL
  134. {
  135. *PrintableArea: PAIR(5760, 3880)
  136. *PrintableOrigin: PAIR(0, 432)
  137. *switch: Resolution
  138. {
  139. *case: Option1
  140. {
  141. *PrintableArea: PAIR(5760, 3879)
  142. }
  143. *case: Option2
  144. {
  145. *PrintableArea: PAIR(5760, 3879)
  146. }
  147. *case: Option3
  148. {
  149. *PrintableArea: PAIR(5760, 3876)
  150. }
  151. }
  152. }
  153. }
  154. }
  155. *Option: LEGAL
  156. {
  157. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  158. *Command: CmdSelect
  159. {
  160. *Order: DOC_SETUP.5
  161. *Cmd: "<1B>2<1B>CT"
  162. }
  163. *switch: InputBin
  164. {
  165. *case: TRACTOR
  166. {
  167. *PrintableArea: PAIR(5760, 6048)
  168. *PrintableOrigin: PAIR(0, 0)
  169. }
  170. *case: Option2
  171. {
  172. *PrintableArea: PAIR(5760, 5176)
  173. *PrintableOrigin: PAIR(0, 432)
  174. *switch: Resolution
  175. {
  176. *case: Option1
  177. {
  178. *PrintableArea: PAIR(5760, 5175)
  179. }
  180. *case: Option2
  181. {
  182. *PrintableArea: PAIR(5760, 5175)
  183. }
  184. *case: Option3
  185. {
  186. *PrintableArea: PAIR(5760, 5172)
  187. }
  188. }
  189. }
  190. *case: MANUAL
  191. {
  192. *PrintableArea: PAIR(5760, 5176)
  193. *PrintableOrigin: PAIR(0, 432)
  194. *switch: Resolution
  195. {
  196. *case: Option1
  197. {
  198. *PrintableArea: PAIR(5760, 5175)
  199. }
  200. *case: Option2
  201. {
  202. *PrintableArea: PAIR(5760, 5175)
  203. }
  204. *case: Option3
  205. {
  206. *PrintableArea: PAIR(5760, 5172)
  207. }
  208. }
  209. }
  210. }
  211. }
  212. *Option: A4
  213. {
  214. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  215. *Command: CmdSelect
  216. {
  217. *Order: DOC_SETUP.5
  218. *Cmd: "<1B>2<1B>CF"
  219. }
  220. *switch: InputBin
  221. {
  222. *case: TRACTOR
  223. {
  224. *PrintableArea: PAIR(5760, 5050)
  225. *PrintableOrigin: PAIR(0, 0)
  226. *switch: Resolution
  227. {
  228. *case: Option1
  229. {
  230. *PrintableArea: PAIR(5760, 5049)
  231. }
  232. *case: Option2
  233. {
  234. *PrintableArea: PAIR(5760, 5049)
  235. }
  236. *case: Option3
  237. {
  238. *PrintableArea: PAIR(5760, 5046)
  239. }
  240. }
  241. }
  242. *case: Option2
  243. {
  244. *PrintableArea: PAIR(5760, 4178)
  245. *PrintableOrigin: PAIR(0, 432)
  246. *switch: Resolution
  247. {
  248. *case: Option1
  249. {
  250. *PrintableArea: PAIR(5760, 4176)
  251. }
  252. *case: Option2
  253. {
  254. *PrintableArea: PAIR(5760, 4176)
  255. }
  256. *case: Option3
  257. {
  258. *PrintableArea: PAIR(5760, 4176)
  259. }
  260. }
  261. }
  262. *case: MANUAL
  263. {
  264. *PrintableArea: PAIR(5760, 4178)
  265. *PrintableOrigin: PAIR(0, 432)
  266. *switch: Resolution
  267. {
  268. *case: Option1
  269. {
  270. *PrintableArea: PAIR(5760, 4176)
  271. }
  272. *case: Option2
  273. {
  274. *PrintableArea: PAIR(5760, 4176)
  275. }
  276. *case: Option3
  277. {
  278. *PrintableArea: PAIR(5760, 4176)
  279. }
  280. }
  281. }
  282. }
  283. }
  284. *Option: B5
  285. {
  286. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  287. *Command: CmdSelect
  288. {
  289. *Order: DOC_SETUP.5
  290. *Cmd: "<1B>2<1B>C="
  291. }
  292. *switch: InputBin
  293. {
  294. *case: TRACTOR
  295. {
  296. *PrintableArea: PAIR(5162, 4372)
  297. *PrintableOrigin: PAIR(0, 0)
  298. *switch: Resolution
  299. {
  300. *case: Option1
  301. {
  302. *PrintableArea: PAIR(5160, 4371)
  303. }
  304. *case: Option2
  305. {
  306. *PrintableArea: PAIR(5160, 4371)
  307. }
  308. *case: Option3
  309. {
  310. *PrintableArea: PAIR(5160, 4368)
  311. }
  312. }
  313. }
  314. *case: Option2
  315. {
  316. *PrintableArea: PAIR(5162, 3500)
  317. *PrintableOrigin: PAIR(0, 432)
  318. *switch: Resolution
  319. {
  320. *case: Option1
  321. {
  322. *PrintableArea: PAIR(5160, 3498)
  323. }
  324. *case: Option2
  325. {
  326. *PrintableArea: PAIR(5160, 3498)
  327. }
  328. *case: Option3
  329. {
  330. *PrintableArea: PAIR(5160, 3498)
  331. }
  332. }
  333. }
  334. *case: MANUAL
  335. {
  336. *PrintableArea: PAIR(5162, 3500)
  337. *PrintableOrigin: PAIR(0, 432)
  338. *switch: Resolution
  339. {
  340. *case: Option1
  341. {
  342. *PrintableArea: PAIR(5160, 3498)
  343. }
  344. *case: Option2
  345. {
  346. *PrintableArea: PAIR(5160, 3498)
  347. }
  348. *case: Option3
  349. {
  350. *PrintableArea: PAIR(5160, 3498)
  351. }
  352. }
  353. }
  354. }
  355. }
  356. *Option: Option5
  357. {
  358. *rcNameID: 259
  359. *PageDimensions: PAIR(6120, 5184)
  360. *Command: CmdSelect
  361. {
  362. *Order: DOC_SETUP.5
  363. *Cmd: "<1B>2<1B>CH"
  364. }
  365. *switch: InputBin
  366. {
  367. *case: TRACTOR
  368. {
  369. *PrintableArea: PAIR(5760, 5184)
  370. *PrintableOrigin: PAIR(0, 0)
  371. }
  372. *case: Option2
  373. {
  374. *PrintableArea: PAIR(5760, 4312)
  375. *PrintableOrigin: PAIR(0, 432)
  376. *switch: Resolution
  377. {
  378. *case: Option1
  379. {
  380. *PrintableArea: PAIR(5760, 4311)
  381. }
  382. *case: Option2
  383. {
  384. *PrintableArea: PAIR(5760, 4311)
  385. }
  386. *case: Option3
  387. {
  388. *PrintableArea: PAIR(5760, 4308)
  389. }
  390. }
  391. }
  392. *case: MANUAL
  393. {
  394. *PrintableArea: PAIR(5760, 4312)
  395. *PrintableOrigin: PAIR(0, 432)
  396. *switch: Resolution
  397. {
  398. *case: Option1
  399. {
  400. *PrintableArea: PAIR(5760, 4311)
  401. }
  402. *case: Option2
  403. {
  404. *PrintableArea: PAIR(5760, 4311)
  405. }
  406. *case: Option3
  407. {
  408. *PrintableArea: PAIR(5760, 4308)
  409. }
  410. }
  411. }
  412. }
  413. }
  414. *Option: CUSTOMSIZE
  415. {
  416. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  417. *MinSize: PAIR(720, 432)
  418. *MaxSize: PAIR(8424, 9504)
  419. *MaxPrintableWidth: 5760
  420. *MinLeftMargin: 0
  421. *CenterPrintable?: FALSE
  422. *switch: InputBin
  423. {
  424. *case: TRACTOR
  425. {
  426. *TopMargin: 0
  427. *BottomMargin: 0
  428. }
  429. *case: Option2
  430. {
  431. *TopMargin: 432
  432. *BottomMargin: 440
  433. }
  434. *case: MANUAL
  435. {
  436. *TopMargin: 432
  437. *BottomMargin: 440
  438. }
  439. }
  440. *Command: CmdSelect
  441. {
  442. *Order: DOC_SETUP.5
  443. *Cmd: "<1B>2"
  444. }
  445. }
  446. }
  447. *Feature: PrintQuality
  448. {
  449. *rcNameID: =TEXT_QUALITY_DISPLAY
  450. *DefaultOption: NEAR_LETTER_QUALITY
  451. *Option: NEAR_LETTER_QUALITY
  452. {
  453. *rcNameID: =NEAR_LETTER_QUALITY_DISPLAY
  454. *Command: CmdSelect
  455. {
  456. *Order: DOC_SETUP.3
  457. *Cmd: "<1B>x<01>"
  458. }
  459. }
  460. *Option: DRAFT_QUALITY
  461. {
  462. *rcNameID: =DRAFT_QUALITY_DISPLAY
  463. *Command: CmdSelect
  464. {
  465. *Order: DOC_SETUP.3
  466. *Cmd: "<1B>x<00>"
  467. }
  468. }
  469. }
  470. *Feature: Halftone
  471. {
  472. *rcNameID: =HALFTONING_DISPLAY
  473. *DefaultOption: HT_PATSIZE_AUTO
  474. *Option: HT_PATSIZE_AUTO
  475. {
  476. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  477. }
  478. *Ifdef: WINNT_50
  479. *Option: HT_PATSIZE_SUPERCELL_M
  480. {
  481. *rcNameID: =HT_SUPERCELL_DISPLAY
  482. }
  483. *Endif:
  484. *Option: HT_PATSIZE_6x6_M
  485. {
  486. *rcNameID: =HT_DITHER6X6_DISPLAY
  487. }
  488. *Option: HT_PATSIZE_8x8_M
  489. {
  490. *rcNameID: =HT_DITHER8X8_DISPLAY
  491. }
  492. }
  493. *Command: CmdStartDoc
  494. {
  495. *Order: DOC_SETUP.1
  496. *Cmd: "<1B>@<1B19>T<011B>6<1B>x<001B>!<00>"
  497. }
  498. *Command: CmdStartPage
  499. {
  500. *Order: PAGE_SETUP.1
  501. *Cmd: "<0D>"
  502. }
  503. *RotateCoordinate?: FALSE
  504. *RotateRaster?: FALSE
  505. *RotateFont?: FALSE
  506. *switch: Orientation
  507. {
  508. *case: PORTRAIT
  509. {
  510. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_RA_ABLE)
  511. }
  512. *case: LANDSCAPE_CC270
  513. {
  514. *TextCaps: LIST(TC_RA_ABLE)
  515. }
  516. }
  517. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  518. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  519. *MaxLineSpacing: 255
  520. *YMoveThreshold: *
  521. *YMoveUnit: 216
  522. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[1,255]{max_repeat((DestYRel / 2) )} }
  523. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[2,255]{(LinefeedSpacing / 2) } }
  524. *Command: CmdCR { *Cmd : "<0D>" }
  525. *Command: CmdLF { *Cmd : "<0A>" }
  526. *Command: CmdFF { *Cmd : "<0C>" }
  527. *Command: CmdBackSpace { *Cmd : "<08>" }
  528. *Command: CmdUniDirectionOn { *Cmd : "<1B>U1" }
  529. *Command: CmdUniDirectionOff { *Cmd : "<1B>U0" }
  530. *EjectPageWithFF?: TRUE
  531. *switch: PaperSize
  532. {
  533. *case: CUSTOMSIZE
  534. {
  535. *EjectPageWithFF?: FALSE
  536. *switch: InputBin
  537. {
  538. *case: Option2
  539. {
  540. *EjectPageWithFF?: TRUE
  541. }
  542. *case: MANUAL
  543. {
  544. *EjectPageWithFF?: TRUE
  545. }
  546. }
  547. }
  548. }
  549. *OutputDataFormat: V_BYTE
  550. *OptimizeLeftBound?: TRUE
  551. *CursorXAfterSendBlockData: AT_GRXDATA_END
  552. *CursorYAfterSendBlockData: NO_MOVE
  553. *DefaultFont: 105
  554. *DefaultCTT: 2
  555. *switch: Orientation
  556. {
  557. *case: PORTRAIT
  558. {
  559. *DeviceFonts: LIST(105,106,107,108,109,110)
  560. }
  561. *case: LANDSCAPE_CC270
  562. {
  563. *DeviceFonts: LIST()
  564. }
  565. }
  566. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  567. *Command: CmdBoldOff { *Cmd : "<1B>F" }