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.

551 lines
16 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "BRHL660.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *Include: "ttfsub.gpd"
  10. *ModelName: "Brother HL-660"
  11. *MasterUnits: PAIR(1200, 1200)
  12. *ResourceDLL: "pcl5eres.dll"
  13. *PrintRate: 6
  14. *PrintRatePPM: 6
  15. *PrintRateUnit: PPM
  16. *PrinterType: PAGE
  17. *MaxCopies: 32767
  18. *Feature: Orientation
  19. {
  20. *rcNameID: =ORIENTATION_DISPLAY
  21. *DefaultOption: PORTRAIT
  22. *Option: PORTRAIT
  23. {
  24. *rcNameID: =PORTRAIT_DISPLAY
  25. *Command: CmdSelect
  26. {
  27. *Order: DOC_SETUP.8
  28. *Cmd: "<1B>&l0O"
  29. }
  30. }
  31. *Option: LANDSCAPE_CC90
  32. {
  33. *rcNameID: =LANDSCAPE_DISPLAY
  34. *Command: CmdSelect
  35. {
  36. *Order: DOC_SETUP.8
  37. *Cmd: "<1B>&l1O"
  38. }
  39. }
  40. }
  41. *Feature: InputBin
  42. {
  43. *rcNameID: =PAPER_SOURCE_DISPLAY
  44. *DefaultOption: Option1
  45. *Option: Option1
  46. {
  47. *rcNameID: 271
  48. *Command: CmdSelect
  49. {
  50. *Order: DOC_SETUP.11
  51. *Cmd: "<1B>&l0H"
  52. }
  53. }
  54. *Option: UPPER
  55. {
  56. *rcNameID: =UPPER_TRAY_DISPLAY
  57. *Command: CmdSelect
  58. {
  59. *Order: DOC_SETUP.11
  60. *Cmd: "<1B>&l1H"
  61. }
  62. }
  63. *Option: MANUAL
  64. {
  65. *rcNameID: =MANUAL_FEED_DISPLAY
  66. *Command: CmdSelect
  67. {
  68. *Order: DOC_SETUP.11
  69. *Cmd: "<1B>&l2H"
  70. }
  71. }
  72. }
  73. *Feature: Resolution
  74. {
  75. *rcNameID: =RESOLUTION_DISPLAY
  76. *DefaultOption: Option1
  77. *Option: Option1
  78. {
  79. *Name: "600 x 600 " =DOTS_PER_INCH
  80. *DPI: PAIR(600, 600)
  81. *TextDPI: PAIR(600, 600)
  82. *MinStripBlankPixels: 32
  83. EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
  84. *SpotDiameter: 100
  85. *Command: CmdBeginRaster { *Cmd : "<1B>*r1A" }
  86. *Command: CmdEndRaster { *Cmd : "<1B>*rB" }
  87. *Command: CmdSendBlockData { *Cmd : "<1B>*b" %d{NumOfDataBytes}"W" }
  88. *Command: CmdSelect
  89. {
  90. *Order: DOC_SETUP.6
  91. *Cmd: "@PJL SET RESOLUTION=600<0A>@PJL ENTER LANGUAGE=PCL<0A0D1B>E<1B>*t600R"
  92. }
  93. }
  94. *Option: Option2
  95. {
  96. *Name: "300 x 300 " =DOTS_PER_INCH
  97. *DPI: PAIR(300, 300)
  98. *TextDPI: PAIR(300, 300)
  99. *MinStripBlankPixels: 32
  100. EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
  101. *SpotDiameter: 100
  102. *Command: CmdBeginRaster { *Cmd : "<1B>*r1A" }
  103. *Command: CmdEndRaster { *Cmd : "<1B>*rB" }
  104. *Command: CmdSendBlockData { *Cmd : "<1B>*b" %d{NumOfDataBytes}"W" }
  105. *Command: CmdSelect
  106. {
  107. *Order: DOC_SETUP.6
  108. *Cmd: "@PJL SET RESOLUTION=300<0A>@PJL ENTER LANGUAGE=PCL<0A0D1B>E<1B>*t300R"
  109. }
  110. }
  111. }
  112. *Feature: PaperSize
  113. {
  114. *rcNameID: =PAPER_SIZE_DISPLAY
  115. *DefaultOption: LETTER
  116. *Option: LETTER
  117. {
  118. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  119. *PageProtectMem: 4109
  120. *switch: Orientation
  121. {
  122. *case: PORTRAIT
  123. {
  124. *PrintableArea: PAIR(9600, 12720)
  125. *PrintableOrigin: PAIR(300, 220)
  126. *CursorOrigin: PAIR(300, 220)
  127. *Command: CmdSelect
  128. {
  129. *Order: DOC_SETUP.12
  130. *Cmd: "<1B>&l2a8c1E<1B>*p0x0Y<1B>*c0t5760x7656Y"
  131. }
  132. }
  133. *case: LANDSCAPE_CC90
  134. {
  135. *PrintableArea: PAIR(9520, 12720)
  136. *PrintableOrigin: PAIR(300, 180)
  137. *CursorOrigin: PAIR(300, 12900)
  138. *Command: CmdSelect
  139. {
  140. *Order: DOC_SETUP.12
  141. *Cmd: "<1B>&l2a8c1E<1B>*p0x0Y<1B>*c0t7652x5880Y"
  142. }
  143. }
  144. }
  145. }
  146. *Option: LEGAL
  147. {
  148. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  149. *PageProtectMem: 5230
  150. *switch: Orientation
  151. {
  152. *case: PORTRAIT
  153. {
  154. *PrintableArea: PAIR(9600, 16320)
  155. *PrintableOrigin: PAIR(300, 200)
  156. *CursorOrigin: PAIR(300, 180)
  157. *Command: CmdSelect
  158. {
  159. *Order: DOC_SETUP.12
  160. *Cmd: "<1B>&l3a8c1E<1B>*p0x0Y<1B>*c0t5760x9864Y"
  161. }
  162. }
  163. *case: LANDSCAPE_CC90
  164. {
  165. *PrintableArea: PAIR(9760, 16320)
  166. *PrintableOrigin: PAIR(200, 240)
  167. *CursorOrigin: PAIR(200, 16560)
  168. *Command: CmdSelect
  169. {
  170. *Order: DOC_SETUP.12
  171. *Cmd: "<1B>&l3a8c1E<1B>*p0x0Y<1B>*c0t9792x5880Y"
  172. }
  173. }
  174. }
  175. }
  176. *Option: EXECUTIVE
  177. {
  178. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  179. *PageProtectMem: 4109
  180. *switch: Orientation
  181. {
  182. *case: PORTRAIT
  183. {
  184. *PrintableArea: PAIR(8100, 12120)
  185. *PrintableOrigin: PAIR(248, 240)
  186. *CursorOrigin: PAIR(248, 240)
  187. *Command: CmdSelect
  188. {
  189. *Order: DOC_SETUP.12
  190. *Cmd: "<1B>&l1a8c1E<1B>*p0x0Y<1B>*c0t4922x7272Y"
  191. }
  192. }
  193. *case: LANDSCAPE_CC90
  194. {
  195. *PrintableArea: PAIR(8220, 12120)
  196. *PrintableOrigin: PAIR(240, 240)
  197. *CursorOrigin: PAIR(160, 12360)
  198. *Command: CmdSelect
  199. {
  200. *Order: DOC_SETUP.12
  201. *Cmd: "<1B>&l1a8c1E<1B>*p0x0Y<1B>*c0t7272x5028Y"
  202. }
  203. }
  204. }
  205. }
  206. *Option: A4
  207. {
  208. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  209. *PageProtectMem: 4249
  210. *switch: Orientation
  211. {
  212. *case: PORTRAIT
  213. {
  214. *PrintableArea: PAIR(9344, 13548)
  215. *PrintableOrigin: PAIR(248, 200)
  216. *CursorOrigin: PAIR(248, 200)
  217. *Command: CmdSelect
  218. {
  219. *Order: DOC_SETUP.12
  220. *Cmd: "<1B>&l26a8c1E<1B>*p0x0Y<1B>*c0t5657x8177Y"
  221. }
  222. }
  223. *case: LANDSCAPE_CC90
  224. {
  225. *PrintableArea: PAIR(9424, 13548)
  226. *PrintableOrigin: PAIR(240, 240)
  227. *CursorOrigin: PAIR(160, 13788)
  228. *Command: CmdSelect
  229. {
  230. *Order: DOC_SETUP.12
  231. *Cmd: "<1B>&l26a8c1E<1B>*p0x0Y<1B>*c0t8128x5762Y"
  232. }
  233. }
  234. }
  235. }
  236. *Option: ENV_10
  237. {
  238. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  239. *PageProtectMem: 4109
  240. *switch: Orientation
  241. {
  242. *case: PORTRAIT
  243. {
  244. *PrintableArea: PAIR(4336, 10800)
  245. *PrintableOrigin: PAIR(300, 300)
  246. *CursorOrigin: PAIR(300, 180)
  247. *Command: CmdSelect
  248. {
  249. *Order: DOC_SETUP.12
  250. *Cmd: "<1B>&l81a8c1E<1B>*p0x0Y<1B>*c0t2614x6624Y"
  251. }
  252. }
  253. *case: LANDSCAPE_CC90
  254. {
  255. *PrintableArea: PAIR(4356, 10800)
  256. *PrintableOrigin: PAIR(300, 300)
  257. *CursorOrigin: PAIR(200, 11100)
  258. *Command: CmdSelect
  259. {
  260. *Order: DOC_SETUP.12
  261. *Cmd: "<1B>&l81a8c1E<1B>*p0x0Y<1B>*c0t6480x2734Y"
  262. }
  263. }
  264. }
  265. }
  266. *Option: ENV_DL
  267. {
  268. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  269. *PageProtectMem: 4109
  270. *switch: Orientation
  271. {
  272. *case: PORTRAIT
  273. {
  274. *PrintableArea: PAIR(4576, 9792)
  275. *PrintableOrigin: PAIR(300, 300)
  276. *CursorOrigin: PAIR(300, 180)
  277. *Command: CmdSelect
  278. {
  279. *Order: DOC_SETUP.12
  280. *Cmd: "<1B>&l90a8c1E<1B>*p0x0Y<1B>*c0t2757x6019Y"
  281. }
  282. }
  283. *case: LANDSCAPE_CC90
  284. {
  285. *PrintableArea: PAIR(4596, 9792)
  286. *PrintableOrigin: PAIR(300, 300)
  287. *CursorOrigin: PAIR(200, 10092)
  288. *Command: CmdSelect
  289. {
  290. *Order: DOC_SETUP.12
  291. *Cmd: "<1B>&l90a8c1E<1B>*p0x0Y<1B>*c0t5875x2878Y"
  292. }
  293. }
  294. }
  295. }
  296. *Option: ENV_C5
  297. {
  298. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  299. *PageProtectMem: 4109
  300. *switch: Orientation
  301. {
  302. *case: PORTRAIT
  303. {
  304. *PrintableArea: PAIR(7036, 10224)
  305. *PrintableOrigin: PAIR(300, 300)
  306. *CursorOrigin: PAIR(300, 180)
  307. *Command: CmdSelect
  308. {
  309. *Order: DOC_SETUP.12
  310. *Cmd: "<1B>&l91a8c1E<1B>*p0x0Y<1B>*c0t4234x6278Y"
  311. }
  312. }
  313. *case: LANDSCAPE_CC90
  314. {
  315. *PrintableArea: PAIR(7056, 10224)
  316. *PrintableOrigin: PAIR(300, 300)
  317. *CursorOrigin: PAIR(200, 10524)
  318. *Command: CmdSelect
  319. {
  320. *Order: DOC_SETUP.12
  321. *Cmd: "<1B>&l91a8c1E<1B>*p0x0Y<1B>*c0t6134x4354Y"
  322. }
  323. }
  324. }
  325. }
  326. *Option: ENV_MONARCH
  327. {
  328. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  329. *PageProtectMem: 4109
  330. *switch: Orientation
  331. {
  332. *case: PORTRAIT
  333. {
  334. *PrintableArea: PAIR(4036, 8400)
  335. *PrintableOrigin: PAIR(300, 300)
  336. *CursorOrigin: PAIR(300, 180)
  337. *Command: CmdSelect
  338. {
  339. *Order: DOC_SETUP.12
  340. *Cmd: "<1B>&l80a8c1E<1B>*p0x0Y<1B>*c0t2434x5184Y"
  341. }
  342. }
  343. *case: LANDSCAPE_CC90
  344. {
  345. *PrintableArea: PAIR(4056, 8400)
  346. *PrintableOrigin: PAIR(300, 300)
  347. *CursorOrigin: PAIR(200, 8700)
  348. *Command: CmdSelect
  349. {
  350. *Order: DOC_SETUP.12
  351. *Cmd: "<1B>&l80a8c1E<1B>*p0x0Y<1B>*c0t5040x2557Y"
  352. }
  353. }
  354. }
  355. }
  356. *Option: ENV_B5
  357. {
  358. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  359. *PageProtectMem: 4109
  360. *switch: Orientation
  361. {
  362. *case: PORTRAIT
  363. {
  364. *PrintableArea: PAIR(7716, 11208)
  365. *PrintableOrigin: PAIR(300, 300)
  366. *CursorOrigin: PAIR(300, 180)
  367. *Command: CmdSelect
  368. {
  369. *Order: DOC_SETUP.12
  370. *Cmd: "<1B>&l100a8c1E<1B>*p0x0Y<1B>*c0t4630x6869Y"
  371. }
  372. }
  373. *case: LANDSCAPE_CC90
  374. {
  375. *PrintableArea: PAIR(7716, 11208)
  376. *PrintableOrigin: PAIR(300, 300)
  377. *CursorOrigin: PAIR(200, 11508)
  378. *Command: CmdSelect
  379. {
  380. *Order: DOC_SETUP.12
  381. *Cmd: "<1B>&l100a8c1E<1B>*p0x0Y<1B>*c0t6725x4750Y"
  382. }
  383. }
  384. }
  385. }
  386. *Option: Option12
  387. {
  388. *rcNameID: 261
  389. *PageDimensions: PAIR(6996, 9456)
  390. *PageProtectMem: 4109
  391. *switch: Orientation
  392. {
  393. *case: PORTRAIT
  394. {
  395. *PrintableArea: PAIR(6376, 8856)
  396. *PrintableOrigin: PAIR(300, 300)
  397. *CursorOrigin: PAIR(300, 180)
  398. *Command: CmdSelect
  399. {
  400. *Order: DOC_SETUP.12
  401. *Cmd: "<1B>&l72a8c1E<1B>*p0x0Y<1B>*c0t3838x5458Y"
  402. }
  403. }
  404. *case: LANDSCAPE_CC90
  405. {
  406. *PrintableArea: PAIR(6396, 8856)
  407. *PrintableOrigin: PAIR(300, 300)
  408. *CursorOrigin: PAIR(200, 9156)
  409. *Command: CmdSelect
  410. {
  411. *Order: DOC_SETUP.12
  412. *Cmd: "<1B>&l72a8c1E<1B>*p0x0Y<1B>*c0t5314x3958Y"
  413. }
  414. }
  415. }
  416. }
  417. }
  418. *Feature: Halftone
  419. {
  420. *rcNameID: =HALFTONING_DISPLAY
  421. *DefaultOption: HT_PATSIZE_AUTO
  422. *Option: HT_PATSIZE_AUTO
  423. {
  424. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  425. }
  426. *Option: HT_PATSIZE_6x6_M
  427. {
  428. *rcNameID: =HT_DITHER6X6_DISPLAY
  429. }
  430. *Option: HT_PATSIZE_8x8_M
  431. {
  432. *rcNameID: =HT_DITHER8X8_DISPLAY
  433. }
  434. }
  435. *Feature: Memory
  436. {
  437. *rcNameID: =PRINTER_MEMORY_DISPLAY
  438. *DefaultOption: 2048KB
  439. *MemConfigKB: PAIR(2048, 1931)
  440. *MemConfigKB: PAIR(3072, 2995)
  441. *MemConfigKB: PAIR(4096, 3979)
  442. *MemConfigKB: PAIR(6144, 6027)
  443. *MemConfigKB: PAIR(10240, 10123)
  444. }
  445. *Feature: PageProtect
  446. {
  447. *rcNameID: =PAGE_PROTECTION_DISPLAY
  448. *DefaultOption: OFF
  449. *Option: ON
  450. {
  451. *rcNameID: =ON_DISPLAY
  452. *Command: CmdSelect
  453. {
  454. *Order: DOC_SETUP.1
  455. *Cmd: "<1B>%%-12345X@PJL SET PAGEPROTECT=ON<0A>"
  456. }
  457. }
  458. *Option: OFF
  459. {
  460. *rcNameID: =OFF_DISPLAY
  461. *Command: CmdSelect
  462. {
  463. *Order: DOC_SETUP.1
  464. *Cmd: "<1B>%%-12345X@PJL SET PAGEPROTECT=AUTO<0A>"
  465. }
  466. }
  467. }
  468. *Command: CmdStartDoc
  469. {
  470. *Order: DOC_SETUP.7
  471. *Cmd: "<1B>&u600D<1B>*r0F"
  472. }
  473. *Command: CmdStartPage
  474. {
  475. *Order: PAGE_SETUP.1
  476. *Cmd: "<1B>*b0M<0D>"
  477. }
  478. *Command: CmdEndJob
  479. {
  480. *Order: JOB_FINISH.1
  481. *Cmd: "<1B>E<1B>%%-12345X"
  482. }
  483. *Command: CmdCopies
  484. {
  485. *Order: DOC_SETUP.13
  486. *Cmd: "<1B>&l" %d[1,32767]{NumOfCopies}"X"
  487. }
  488. *RotateRaster?: TRUE
  489. *RotateCoordinate?: TRUE
  490. *RotateFont?: TRUE
  491. *TextCaps: LIST(TC_CR_90,TC_UA_ABLE)
  492. *MemoryUsage: LIST(FONT, RASTER, VECTOR)
  493. *CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
  494. *BadCursorMoveInGrxMode: LIST(X_PORTRAIT,Y_LANDSCAPE)
  495. *XMoveThreshold: 0
  496. *YMoveThreshold: 0
  497. *XMoveUnit: 600
  498. *YMoveUnit: 600
  499. *Command: CmdXMoveAbsolute { *Cmd : "<1B>*p" %d{(DestX / 2) }"X" }
  500. *Command: CmdXMoveRelRight { *Cmd : "<1B>*p+" %d[0,9600]{max_repeat((DestXRel / 2) )}"X" }
  501. *Command: CmdXMoveRelLeft { *Cmd : "<1B>*p-" %d[0,9600]{max_repeat((DestXRel / 2) )}"X" }
  502. *Command: CmdYMoveAbsolute { *Cmd : "<1B>*p" %d{(DestY / 2) }"Y" }
  503. *Command: CmdYMoveRelDown { *Cmd : "<1B>*p+" %d{(DestYRel / 2) }"Y" }
  504. *Command: CmdYMoveRelUp { *Cmd : "<1B>*p-" %d{(DestYRel / 2) }"Y" }
  505. *Command: CmdCR { *Cmd : "<0D>" }
  506. *Command: CmdLF { *Cmd : "<0A>" }
  507. *Command: CmdFF { *Cmd : "<0C>" }
  508. *Command: CmdBackSpace { *Cmd : "<08>" }
  509. *Command: CmdUniDirectionOn { *Cmd : "<00>" }
  510. *Command: CmdUniDirectionOff { *Cmd : "<00>" }
  511. *Command: CmdPushCursor { *Cmd : "<1B>&f0S" }
  512. *Command: CmdPopCursor { *Cmd : "<1B>&f1S" }
  513. *Command: CmdSetSimpleRotation { *Cmd : "<1B>&a" %d{PrintDirInCCDegrees}"P" }
  514. *EjectPageWithFF?: TRUE
  515. *Command: CmdEnableTIFF4 { *Cmd : "<1B>*b2M" }
  516. *Command: CmdDisableCompression { *Cmd : "<1B>*b0M" }
  517. *Command: CmdEnableDRC { *Cmd : "<1B>*b3M" }
  518. *OutputDataFormat: H_BYTE
  519. *OptimizeLeftBound?: TRUE
  520. *CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
  521. *CursorYAfterSendBlockData: AUTO_INCREMENT
  522. *DefaultFont: 259
  523. *DefaultCTT: 0
  524. *CharPosition: BASELINE
  525. *TTFSEnabled?: TRUE
  526. *DeviceFonts: LIST(249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,
  527. + 265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,
  528. + 281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,
  529. + 297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,
  530. + 313,314,315,316,317,318)
  531. *MinFontID: 16534
  532. *MaxFontID: 32768
  533. *FontFormat: HPPCL_OUTLINE
  534. *Command: CmdSetFontID { *Cmd : "<1B>*c" %d{NextFontID}"D" }
  535. *Command: CmdSelectFontID { *Cmd : "<1B>(" %d{CurrentFontID}"X" }
  536. *Command: CmdSetCharCode { *Cmd : "<1B>*c" %d{NextGlyph}"E" }
  537. *Command: CmdUnderlineOn { *Cmd : "<1B>&dD" }
  538. *Command: CmdUnderlineOff { *Cmd : "<1B>&d@" }
  539. *Command: CmdSelectWhiteBrush { *Cmd : "<1B>*v1o1T" }
  540. *Command: CmdSelectBlackBrush { *Cmd : "<1B>*v0o0T" }
  541. *MinGrayFill: 1
  542. *MaxGrayFill: 100
  543. *Command: CmdSetRectWidth { *Cmd : "<1B>*c" %d{(RectXSize / 2) }"A" }
  544. *Command: CmdSetRectHeight { *Cmd : "<1B>*c" %d{(RectYSize / 2) }"B" }
  545. *Command: CmdRectGrayFill { *Cmd : "<1B>*c" %d{GrayPercentage }"g2P" }
  546. *Command: CmdRectWhiteFill { *Cmd : "<1B>*c1P" }