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.

1136 lines
34 KiB

  1. *%
  2. *% Copyright (c) 1997 - 2001 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *% This is based on HPLJ2100 model
  6. *% (this might has error message when you run syntax check,but you can ignore this message)
  7. *GPDSpecVersion: "1.0"
  8. *GPDFileName: "HPLJ2100.GPD"
  9. *GPDFileVersion: "1.0"
  10. *Include: "StdNames.gpd"
  11. *%Include: "ttfsub.gpd"
  12. *Include: "pjl.gpd"
  13. *%Include: "p6font.gpd"
  14. *Include: "p6disp.gpd"
  15. *Include: "pclxl.gpd"
  16. *ModelName: "HP LaserJet 2100"
  17. *MasterUnits: PAIR(1200, 1200)
  18. *ResourceDLL: "pclxl.dll"
  19. *PrintRate: 10
  20. *PrintRatePPM: 10
  21. *PrintRateUnit: PPM
  22. *PrinterType: PAGE
  23. *Personality: =PERSONALITY_PCLXL
  24. *MaxCopies: 32767
  25. *Macros: PCLXLCommand
  26. {
  27. *%%% ---------------------------------------------------------------------------
  28. *%%% PCL XL Stream Header
  29. *%%% ---------------------------------------------------------------------------
  30. PCLXL_StreamHeader: ") HP-PCL XL;2;0;"
  31. + "Comment Copyright(c) 1999 Microsoft Corporation<0A>"
  32. *%%% ---------------------------------------------------------------------------
  33. *%%% BeginSession
  34. *%%% Measure(ubyte) & UnitsPerMeasure(uint16_xy) & {ErrorReport(ubyte)}
  35. *%%% ---------------------------------------------------------------------------
  36. PCLXL_BeginSession1200: =uint16_xy "<b004b004>" =attr_ubyte =UnitsPerMeasure =ubyte
  37. + =eInch =attr_ubyte =Measure =ubyte =eBackChAndErrPage =attr_ubyte =ErrorReport =BeginSession
  38. PCLXL_BeginSession600: =uint16_xy "<58025802>" =attr_ubyte =UnitsPerMeasure =ubyte
  39. + =eInch =attr_ubyte =Measure =ubyte =eBackChAndErrPage =attr_ubyte =ErrorReport =BeginSession
  40. PCLXL_BeginSession300: =uint16_xy "<2c012c01>" =attr_ubyte =UnitsPerMeasure =ubyte
  41. + =eInch =attr_ubyte =Measure =ubyte =eBackChAndErrPage =attr_ubyte =ErrorReport =BeginSession
  42. PCLXL_OpenDataSource: =ubyte "<00>" =attr_ubyte =SourceType =ubyte "<01>" =attr_ubyte =DataOrg =OpenDataSource
  43. Width: %m{ RasterDataWidthInBytes }
  44. Height: %m{ RasterDataHeightInPixels }
  45. DataSize: %l{ NumOfDataBytes }
  46. FntHeight: %l{ FontHeight*600/TextYRes }
  47. FntNextGlyph: %l{ NextGlyph }
  48. *%%% ---------------------------------------------------------------------------
  49. *%%% BeginRaster
  50. *%%% ColorDepth(ubyte) & ColorMapping(ubyte) & SourceWidth(uint16) &
  51. *%%% SourceWidth(uint16) & SourceHeight(uint16)
  52. *%%% ---------------------------------------------------------------------------
  53. PCLXL_CmdBeginRaster: =ubyte =e1Bit =attr_ubyte =ColorDepth
  54. + =ubyte =eDirectPixel =attr_ubyte =ColorMapping
  55. + =uint16 =Width =attr_ubyte =SourceWidth
  56. + =uint16 =Height =attr_ubyte =SourceHeight
  57. + =uint16_xy =Width =Height =attr_ubyte =DestinationSize
  58. + =BeginImage
  59. + =ubyte =eNoCompression =attr_ubyte =CompressMode
  60. + =ubyte "<00>" =attr_ubyte =StartLine
  61. + =uint16 =Height =attr_ubyte =BlockHeight
  62. + =ReadImage
  63. PCLXL_CmdSendBlockData: =dataLength =DataSize "<0000>"
  64. DestinationX: %l{DestX}
  65. DestinationY: %l{DestY}
  66. DestinationXRel: %l{DestYRel}
  67. DestinationYRel: %l{DestXRel}
  68. NumOfCopy: %l{NumOfCopies}
  69. PrintDir: %l{PrintDirInCCDegrees}
  70. FntName: =ubyte_array =uint16 "<1000>" "MS PCLXLFont " %3d{CurrentFontID}
  71. }
  72. *Feature: Orientation
  73. {
  74. *rcNameID: =ORIENTATION_DISPLAY
  75. *DefaultOption: PORTRAIT
  76. *Option: PORTRAIT
  77. {
  78. *rcNameID: =PORTRAIT_DISPLAY
  79. }
  80. *Option: LANDSCAPE_CC90
  81. {
  82. *rcNameID: =LANDSCAPE_DISPLAY
  83. }
  84. }
  85. *Feature: InputBin
  86. {
  87. *rcNameID: =PAPER_SOURCE_DISPLAY
  88. *DefaultOption: Option1
  89. *Option: Option1
  90. {
  91. *rcNameID: =FIRST_AVAILABLE_TRAY_DISPLAY
  92. *Command: CmdSelect
  93. {
  94. *Order: PAGE_SETUP.1
  95. *Cmd: =ubyte =eAutoSelect =attr_ubyte =MediaSource
  96. }
  97. }
  98. *Option: TRAY1
  99. {
  100. *rcNameID: =TRAY1_DISPLAY
  101. *Command: CmdSelect
  102. {
  103. *Order: PAGE_SETUP.1
  104. *Cmd: =ubyte =eMultiPurposeTray =attr_ubyte =MediaSource
  105. }
  106. }
  107. *Option: MANUAL
  108. {
  109. *rcNameID: =MANUAL_FEED_DISPLAY
  110. *Command: CmdSelect
  111. {
  112. *Order: PAGE_SETUP.1
  113. *Cmd: =ubyte =eEnvelopeTray =attr_ubyte =MediaSource
  114. }
  115. }
  116. *Option: TRAY2
  117. {
  118. *rcNameID: =TRAY2_DISPLAY
  119. *Command: CmdSelect
  120. {
  121. *Order: PAGE_SETUP.1
  122. *Cmd: =ubyte =eUpperCassette =attr_ubyte =MediaSource
  123. }
  124. *Constraints: LIST(PaperSize.A5,PaperSize.ENV_10,PaperSize.ENV_DL,PaperSize.ENV_C5,
  125. + PaperSize.ENV_MONARCH,PaperSize.CUSTOMSIZE)
  126. }
  127. *Option: TRAY3
  128. {
  129. *rcNameID: =TRAY3_DISPLAY
  130. *Command: CmdSelect
  131. {
  132. *Order: PAGE_SETUP.1
  133. *Cmd: =ubyte =eLowerCassette =attr_ubyte =MediaSource
  134. }
  135. *Constraints: LIST(PaperSize.A5,PaperSize.ENV_10,PaperSize.ENV_DL,PaperSize.ENV_C5,
  136. + PaperSize.ENV_MONARCH,PaperSize.CUSTOMSIZE)
  137. }
  138. }
  139. *Feature: Resolution
  140. {
  141. *rcNameID: =RESOLUTION_DISPLAY
  142. *DefaultOption: Option1
  143. *Option: Option1
  144. {
  145. *Name: "1200 x 1200 " =DOTS_PER_INCH
  146. *DPI: PAIR(1200, 1200)
  147. *TextDPI: PAIR(1200, 1200)
  148. *MinStripBlankPixels: 32
  149. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING, ENCLOSED,TRAILING)
  150. *SpotDiameter: 120
  151. *Command: CmdBeginRaster
  152. {
  153. *Cmd : =PCLXL_CmdBeginRaster
  154. }
  155. *Command: CmdSendBlockData
  156. {
  157. *Cmd : =PCLXL_CmdBeginRaster =PCLXL_CmdSendBlockData
  158. }
  159. *Command: CmdEndBlockData { *Cmd : =EndImage}
  160. *Command: CmdSelect
  161. {
  162. *Order: JOB_SETUP.5
  163. *Cmd: =PJL_RESOLUTION_1200 =PJL_ENTER_PCLXL =PCLXL_StreamHeader =PCLXL_BeginSession1200 =PCLXL_OpenDataSource
  164. }
  165. }
  166. *Option: Option2
  167. {
  168. *Name: "600 x 600 " =DOTS_PER_INCH
  169. *DPI: PAIR(600, 600)
  170. *TextDPI: PAIR(600, 600)
  171. *MinStripBlankPixels: 32
  172. EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
  173. *SpotDiameter: 100
  174. *Command: CmdBeginRaster
  175. {
  176. *Cmd : =PCLXL_CmdBeginRaster
  177. }
  178. *Command: CmdEndRaster { *Cmd : =EndImage }
  179. *Command: CmdSendBlockData
  180. {
  181. *Cmd: =PCLXL_CmdSendBlockData
  182. }
  183. *Command: CmdSelect
  184. {
  185. *Order: JOB_SETUP.5
  186. *Cmd: =PJL_RESOLUTION_600 =PJL_ENTER_PCLXL =PCLXL_StreamHeader =PCLXL_BeginSession600 =PCLXL_OpenDataSource
  187. }
  188. }
  189. *Option: Option3
  190. {
  191. *Name: "300 x 300 " =DOTS_PER_INCH
  192. *DPI: PAIR(300, 300)
  193. *TextDPI: PAIR(300, 300)
  194. *MinStripBlankPixels: 32
  195. EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
  196. *SpotDiameter: 100
  197. *Command: CmdBeginRaster
  198. {
  199. *Cmd : =PCLXL_CmdBeginRaster
  200. }
  201. *Command: CmdEndRaster { *Cmd : =EndImage }
  202. *Command: CmdSendBlockData
  203. {
  204. *Cmd: =PCLXL_CmdSendBlockData
  205. }
  206. *Command: CmdSelect
  207. {
  208. *Order: JOB_SETUP.5
  209. *Cmd: =PJL_RESOLUTION_300 =PJL_ENTER_PCLXL =PCLXL_StreamHeader =PCLXL_BeginSession300 =PCLXL_OpenDataSource
  210. }
  211. }
  212. }
  213. *Feature: PaperSize
  214. {
  215. *rcNameID: =PAPER_SIZE_DISPLAY
  216. *DefaultOption: LETTER
  217. *Option: A5
  218. {
  219. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% rcid 1000
  220. *PageProtectMem: 2125
  221. *switch: Orientation
  222. {
  223. *case: PORTRAIT
  224. {
  225. *PrintableArea: PAIR(6396, 9372)
  226. *PrintableOrigin: PAIR(300, 300)
  227. *CursorOrigin: PAIR(300, 160)
  228. *Command: CmdSelect
  229. {
  230. *Order: PAGE_SETUP.3
  231. *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  232. + =ubyte_array =sA5Paper =attr_ubyte =MediaSize =BeginPage
  233. + =sint16_xy %l{((284*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  234. }
  235. }
  236. *case: LANDSCAPE_CC90
  237. {
  238. *PrintableArea: PAIR(6396, 9324)
  239. *PrintableOrigin: PAIR(300, 300)
  240. *CursorOrigin: PAIR(260, 9624)
  241. *Command: CmdSelect
  242. {
  243. *Order: PAGE_SETUP.3
  244. *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  245. + =ubyte_array =sA5Paper =attr_ubyte =MediaSize =BeginPage
  246. + =sint16_xy %l{((236*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  247. }
  248. }
  249. }
  250. }
  251. *Option: LETTER
  252. {
  253. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% rcid 1000
  254. *PageProtectMem: 4109
  255. *switch: Orientation
  256. {
  257. *case: PORTRAIT
  258. {
  259. *PrintableArea: PAIR(9600, 12600)
  260. *PrintableOrigin: PAIR(300, 300)
  261. *CursorOrigin: PAIR(300, 160)
  262. *Command: CmdSelect
  263. {
  264. *Order: PAGE_SETUP.3
  265. *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  266. + =ubyte_array =sLetterPaper =attr_ubyte =MediaSize =BeginPage
  267. + =sint16_xy %l{((300*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  268. }
  269. }
  270. *case: LANDSCAPE_CC90
  271. {
  272. *PrintableArea: PAIR(9760, 12600)
  273. *PrintableOrigin: PAIR(200, 300)
  274. *CursorOrigin: PAIR(200, 12900)
  275. *Command: CmdSelect
  276. {
  277. *Order: PAGE_SETUP.3
  278. *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  279. + =ubyte_array =sLetterPaper =attr_ubyte =MediaSize =BeginPage
  280. + =sint16_xy %l{((240*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  281. }
  282. }
  283. }
  284. }
  285. *Option: LEGAL
  286. {
  287. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  288. *PageProtectMem: 5230
  289. *switch: Orientation
  290. {
  291. *case: PORTRAIT
  292. {
  293. *PrintableArea: PAIR(9600, 16200)
  294. *PrintableOrigin: PAIR(300, 300)
  295. *CursorOrigin: PAIR(300, 160)
  296. *Command: CmdSelect
  297. {
  298. *Order: PAGE_SETUP.3
  299. *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  300. + =ubyte_array =sLegalPaper =attr_ubyte =MediaSize =BeginPage
  301. + =sint16_xy %l{((300*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  302. }
  303. }
  304. *case: LANDSCAPE_CC90
  305. {
  306. *PrintableArea: PAIR(9760, 16200)
  307. *PrintableOrigin: PAIR(200, 300)
  308. *CursorOrigin: PAIR(200, 16500)
  309. *Command: CmdSelect
  310. {
  311. *Order: PAGE_SETUP.3
  312. *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  313. + =ubyte_array =sLegalPaper =attr_ubyte =MediaSize =BeginPage
  314. + =sint16_xy %l{((240*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  315. }
  316. }
  317. }
  318. }
  319. *Option: EXECUTIVE
  320. {
  321. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  322. *PageProtectMem: 4109
  323. *switch: Orientation
  324. {
  325. *case: PORTRAIT
  326. {
  327. *PrintableArea: PAIR(8100, 12000)
  328. *PrintableOrigin: PAIR(300, 300)
  329. *CursorOrigin: PAIR(300, 160)
  330. *Command: CmdSelect
  331. {
  332. *Order: PAGE_SETUP.3
  333. *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  334. + =ubyte_array =sExecPaper =attr_ubyte =MediaSize =BeginPage
  335. + =sint16_xy %l{((300*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  336. }
  337. }
  338. *case: LANDSCAPE_CC90
  339. {
  340. *PrintableArea: PAIR(8180, 12000)
  341. *PrintableOrigin: PAIR(220, 300)
  342. *CursorOrigin: PAIR(200, 12300)
  343. *Command: CmdSelect
  344. {
  345. *Order: PAGE_SETUP.3
  346. *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  347. + =ubyte_array =sExecPaper =attr_ubyte =MediaSize =BeginPage
  348. + =sint16_xy %l{((240*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  349. }
  350. }
  351. }
  352. }
  353. *Option: A4
  354. {
  355. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% 1008
  356. *PageProtectMem: 4249
  357. *switch: Orientation
  358. {
  359. *case: PORTRAIT
  360. {
  361. *PrintableArea: PAIR(9352, 13400)
  362. *PrintableOrigin: PAIR(260, 300)
  363. *CursorOrigin: PAIR(260, 160)
  364. *Command: CmdSelect
  365. {
  366. *Order: PAGE_SETUP.3
  367. *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  368. + =ubyte_array =sA4Paper =attr_ubyte =MediaSize =BeginPage
  369. + =sint16_xy %l{((284*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  370. }
  371. }
  372. *case: LANDSCAPE_CC90
  373. {
  374. *PrintableArea: PAIR(9424, 13428)
  375. *PrintableOrigin: PAIR(200, 300)
  376. *CursorOrigin: PAIR(200, 13728)
  377. *Command: CmdSelect
  378. {
  379. *Order: PAGE_SETUP.3
  380. *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  381. + =ubyte_array =sA4Paper =attr_ubyte =MediaSize =BeginPage
  382. + =sint16_xy %l{((236*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  383. }
  384. }
  385. }
  386. }
  387. *Option: ENV_10
  388. {
  389. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% 1019
  390. *PageProtectMem: 4109
  391. *switch: Orientation
  392. {
  393. *case: PORTRAIT
  394. {
  395. *PrintableArea: PAIR(4346, 10800)
  396. *PrintableOrigin: PAIR(300, 300)
  397. *switch: Resolution
  398. {
  399. *case: Option2
  400. {
  401. *PrintableArea: PAIR(4344, 10800)
  402. }
  403. }
  404. *CursorOrigin: PAIR(300, 180)
  405. *Command: CmdSelect
  406. {
  407. *Order: PAGE_SETUP.3
  408. *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  409. + =ubyte_array =sCOM10Envelope =attr_ubyte =MediaSize =BeginPage
  410. + =sint16_xy %l{((300*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  411. }
  412. }
  413. *case: LANDSCAPE_CC90
  414. {
  415. *PrintableArea: PAIR(4476, 10800)
  416. *PrintableOrigin: PAIR(200, 300)
  417. *CursorOrigin: PAIR(200, 11100)
  418. *Command: CmdSelect
  419. {
  420. *Order: PAGE_SETUP.3
  421. *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  422. + =ubyte_array =sCOM10Envelope =attr_ubyte =MediaSize =BeginPage
  423. + =sint16_xy %l{((240*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  424. }
  425. }
  426. }
  427. }
  428. *Option: ENV_DL
  429. {
  430. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% 1026
  431. *PageProtectMem: 4109
  432. *switch: Orientation
  433. {
  434. *case: PORTRAIT
  435. {
  436. *PrintableArea: PAIR(4576, 9792)
  437. *PrintableOrigin: PAIR(300, 300)
  438. *CursorOrigin: PAIR(300, 180)
  439. *Command: CmdSelect
  440. {
  441. *Order: PAGE_SETUP.3
  442. *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  443. + =ubyte_array =sDLEnvelope =attr_ubyte =MediaSize =BeginPage
  444. + =sint16_xy %l{((284*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  445. }
  446. }
  447. *case: LANDSCAPE_CC90
  448. {
  449. *PrintableArea: PAIR(4796, 9792)
  450. *PrintableOrigin: PAIR(200, 300)
  451. *CursorOrigin: PAIR(200, 10092)
  452. *Command: CmdSelect
  453. {
  454. *Order: PAGE_SETUP.3
  455. *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  456. + =ubyte_array =sDLEnvelope =attr_ubyte =MediaSize =BeginPage
  457. + =sint16_xy %l{((236*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  458. }
  459. }
  460. }
  461. }
  462. *Option: ENV_C5
  463. {
  464. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% 1027
  465. *PageProtectMem: 4109
  466. *switch: Orientation
  467. {
  468. *case: PORTRAIT
  469. {
  470. *PrintableArea: PAIR(7036, 10214)
  471. *PrintableOrigin: PAIR(300, 300)
  472. *switch: Resolution
  473. {
  474. *case: Option3
  475. {
  476. *PrintableArea: PAIR(7036, 10212)
  477. }
  478. }
  479. *CursorOrigin: PAIR(300, 180)
  480. *Command: CmdSelect
  481. {
  482. *Order: PAGE_SETUP.3
  483. *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  484. + =ubyte_array =sC5Envelope =attr_ubyte =MediaSize =BeginPage
  485. + =sint16_xy %l{((284*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  486. }
  487. }
  488. *case: LANDSCAPE_CC90
  489. {
  490. *PrintableArea: PAIR(7056, 10224)
  491. *PrintableOrigin: PAIR(300, 300)
  492. *CursorOrigin: PAIR(200, 10524)
  493. *Command: CmdSelect
  494. {
  495. *Order: PAGE_SETUP.3
  496. *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  497. + =ubyte_array =sC5Envelope =attr_ubyte =MediaSize =BeginPage
  498. + =sint16_xy %l{((236*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  499. }
  500. }
  501. }
  502. }
  503. *Option: ENV_MONARCH
  504. {
  505. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% 1036
  506. *PageProtectMem: 4109
  507. *switch: Orientation
  508. {
  509. *case: PORTRAIT
  510. {
  511. *PrintableArea: PAIR(4046, 8400)
  512. *PrintableOrigin: PAIR(300, 300)
  513. *switch: Resolution
  514. {
  515. *case: Option3
  516. {
  517. *PrintableArea: PAIR(4044, 8400)
  518. }
  519. }
  520. *CursorOrigin: PAIR(300, 180)
  521. *Command: CmdSelect
  522. {
  523. *Order: PAGE_SETUP.3
  524. *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  525. + =ubyte_array =sMonarchEnvelope =attr_ubyte =MediaSize =BeginPage
  526. + =sint16_xy %l{((300*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  527. }
  528. }
  529. *case: LANDSCAPE_CC90
  530. {
  531. *PrintableArea: PAIR(4076, 8400)
  532. *PrintableOrigin: PAIR(300, 300)
  533. *CursorOrigin: PAIR(200, 8700)
  534. *Command: CmdSelect
  535. {
  536. *Order: PAGE_SETUP.3
  537. *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  538. + =ubyte_array =sMonarchEnvelope =attr_ubyte =MediaSize =BeginPage
  539. + =sint16_xy %l{((240*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  540. }
  541. }
  542. }
  543. }
  544. *Option: CUSTOMSIZE
  545. {
  546. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% 1255
  547. *MinSize: PAIR(3600, 6000)
  548. *MaxSize: PAIR(10200, 32767)
  549. *MaxPrintableWidth: 10200
  550. *MinLeftMargin: 100
  551. *CenterPrintable?: FALSE
  552. *PageProtectMem: 1692
  553. *switch: Orientation
  554. {
  555. *case: PORTRAIT
  556. {
  557. *CustCursorOriginX: %d{((PhysPaperWidth - 10200) / 2) + 300 }
  558. *CustCursorOriginY: %d{140 }
  559. *CustPrintableOriginX: %d{300 }
  560. *CustPrintableOriginY: %d{300}
  561. *CustPrintableSizeX: %d{ PhysPaperWidth - 600 }
  562. *CustPrintableSizeY: %d{ PhysPaperLength - 600 }
  563. *Command: CmdSelect
  564. {
  565. *Order: PAGE_SETUP.3
  566. *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  567. + =uint16_xy %l{(PhysPaperWidth / 1200)}%l{(PhysPaperLength / 1200)} =attr_ubyte =CustomMediaSize
  568. + =ubyte =eInch =attr_ubyte =CustomMediaSizeUnits =BeginPage
  569. + =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  570. }
  571. }
  572. *case: LANDSCAPE_CC90
  573. {
  574. *CustCursorOriginX: %d{((PhysPaperWidth - 10200) / 2) + 200 }
  575. *CustCursorOriginY: %d{16560 }
  576. *CustPrintableOriginX: %d{200 }
  577. *CustPrintableOriginY: %d{240}
  578. *CustPrintableSizeX: %d{ PhysPaperWidth - 400 }
  579. *CustPrintableSizeY: %d{ PhysPaperLength - 480 }
  580. *Command: CmdSelect
  581. {
  582. *Order: PAGE_SETUP.3
  583. *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  584. + =uint16_xy %l{(PhysPaperWidth / 1200)}%l{(PhysPaperLength / 1200)} =attr_ubyte =CustomMediaSize
  585. + =ubyte =eInch =attr_ubyte =CustomMediaSizeUnits =BeginPage
  586. + =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  587. }
  588. }
  589. }
  590. }
  591. }
  592. *Feature: Economode
  593. {
  594. *rcNameID: =ECONOMODE_DISPLAY
  595. *DefaultOption: Option1
  596. *Option: Option1
  597. {
  598. *rcNameID: =ECONOMODE_DEFAULT_DISPLAY
  599. }
  600. *Option: Option2
  601. {
  602. *rcNameID: =ECONOMODE_OFF_DISPLAY
  603. *Command: CmdSelect
  604. {
  605. *Order: JOB_SETUP.3
  606. *Cmd: =PJL_ECONOMODE_OFF
  607. }
  608. }
  609. *Option: Option3
  610. {
  611. *rcNameID: =ECONOMODE_ON_DISPLAY
  612. *Command: CmdSelect
  613. {
  614. *Order: JOB_SETUP.3
  615. *Cmd: =PJL_ECONOMODE_ON
  616. }
  617. }
  618. }
  619. *Feature: RET
  620. {
  621. *rcNameID: =PRINT_QUALITY
  622. *DefaultOption: Option1
  623. *Option: Option1
  624. {
  625. *rcNameID: =PRINT_QUALITY_DEFAULT
  626. }
  627. *Option: Option2
  628. {
  629. *rcNameID: =PRINT_QUALITY_LIGHT
  630. *Command: CmdSelect
  631. {
  632. *Order: JOB_SETUP.4
  633. *Cmd: =PJL_RET_LIGHT
  634. }
  635. }
  636. *Option: Option3
  637. {
  638. *rcNameID: =PRINT_QUALITY_MEDIUM
  639. *Command: CmdSelect
  640. {
  641. *Order: JOB_SETUP.4
  642. *Cmd: =PJL_RET_MEDIUM
  643. }
  644. }
  645. *Option: Option4
  646. {
  647. *rcNameID: =PRINT_QUALITY_DARK
  648. *Command: CmdSelect
  649. {
  650. *Order: JOB_SETUP.4
  651. *Cmd: =PJL_RET_DARK
  652. }
  653. }
  654. *Option: Option5
  655. {
  656. *rcNameID: =PRINT_QUALITY_OFF
  657. *Command: CmdSelect
  658. {
  659. *Order: JOB_SETUP.4
  660. *Cmd: =PJL_RET_OFF
  661. }
  662. }
  663. }
  664. *Feature: TRAY3
  665. {
  666. *rcNameID: =TRAY3_DISPLAY
  667. *FeatureType: PRINTER_PROPERTY
  668. *DefaultOption: FALSE
  669. *Option: FALSE
  670. {
  671. *rcNameID: =NOT_INSTALLED_DISPLAY
  672. *Constraints: LIST(InputBin.TRAY3)
  673. }
  674. *Option: TRUE
  675. {
  676. *rcNameID: =INSTALLED_DISPLAY
  677. }
  678. }
  679. *Feature: Dither
  680. {
  681. *rcNameID: =DITHER_QUALITY_DISPLAY
  682. *DefaultOption: HIQUALITY
  683. *Option: HIQUALITY
  684. {
  685. *rcNameID: =DITHER_QUALITY_HIGH_DISPLAY
  686. *Command: CmdSelect
  687. {
  688. *Order: PAGE_SETUP.5
  689. *Cmd:
  690. + =ubyte "<00>" =attr_ubyte =DitherMatrixDataType
  691. + =uint16_xy "<10001000>" =attr_ubyte =DitherMatrixSize
  692. + =ubyte "<02>" =attr_ubyte =DitherMatrixDepth
  693. + =SetHalftoneMethod
  694. + =dataLength "<00010000>"
  695. + "<42786A3C2B1B1E2E4175673A2A1A1D2D>"
  696. + "<88FDE8531703042484F8E35116030424>"
  697. + "<99FFD45E1302072195FFCE5B12010721>"
  698. + "<4ABFAB36280B0F3248BAA735270A0E31>"
  699. + "<28171B2B3D6C5F3729191C2C3F716439>"
  700. + "<130203227AEBD64B1502032380F3DE4E>"
  701. + "<0F01051F8AFFC2551101062090FFC958>"
  702. + "<2525080B2F43AE9B3226090D3046B5A234>"
  703. + "<4073653A29191D2D4276693B2A1A1E2E>"
  704. + "<82F5E1501502042386FAE65216030424>"
  705. + "<92FFCC5A1101062097FFD15D12020721>"
  706. + "<47B8A435260A0D3049BDA936270A0E31>"
  707. + "<29181C2C3E6F623828181C2B3D6E6138>"
  708. + "<140203237EF0DB4D140203227CEED94C>"
  709. + "<1001051F8EFFC7571001051F8CFFC456>"
  710. + "<26090C2F45B3A0342525080C2F44B09D33>"
  711. + =SetPageDefaultCTM
  712. }
  713. }
  714. *Option: LOQUALITY
  715. {
  716. *rcNameID: =DITHER_QUALITY_LOW_DISPLAY
  717. }
  718. }
  719. *Feature: Halftone
  720. {
  721. *rcNameID: =HALFTONING_DISPLAY
  722. *DefaultOption: HT_PATSIZE_AUTO
  723. *Option: HT_PATSIZE_AUTO
  724. {
  725. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  726. }
  727. *Option: HT_PATSIZE_6x6_M
  728. {
  729. *rcNameID: =HT_DITHER6X6_DISPLAY
  730. }
  731. *Option: HT_PATSIZE_8x8_M
  732. {
  733. *rcNameID: =HT_DITHER8X8_DISPLAY
  734. }
  735. }
  736. *Feature: Memory
  737. {
  738. *rcNameID: =PRINTER_MEMORY_DISPLAY
  739. *DefaultOption: 4096KB
  740. *Option: 2048KB
  741. {
  742. *Name: "2MB"
  743. *MemoryConfigKB: PAIR(2048, 1350)
  744. }
  745. *Option: 3072KB
  746. {
  747. *Name: "3MB"
  748. *MemoryConfigKB: PAIR(3072, 2250)
  749. }
  750. *Option: 4096KB
  751. {
  752. *Name: "4MB"
  753. *MemoryConfigKB: PAIR(4096, 3150)
  754. }
  755. *Option: 5120KB
  756. {
  757. *Name: "5MB"
  758. *MemoryConfigKB: PAIR(5120, 4050)
  759. }
  760. *Option: 6144KB
  761. {
  762. *Name: "6MB"
  763. *MemoryConfigKB: PAIR(6144, 4950)
  764. }
  765. *Option: 7168KB
  766. {
  767. *Name: "7MB"
  768. *MemoryConfigKB: PAIR(7168, 5850)
  769. }
  770. *Option: 8192KB
  771. {
  772. *Name: "8MB"
  773. *MemoryConfigKB: PAIR(8192, 6750)
  774. }
  775. *Option: 9216KB
  776. {
  777. *Name: "9MB"
  778. *MemoryConfigKB: PAIR(9216, 7650)
  779. }
  780. *Option: 10240KB
  781. {
  782. *Name: "10MB"
  783. *MemoryConfigKB: PAIR(10240, 8550)
  784. }
  785. *Option: 11264KB
  786. {
  787. *Name: "11MB"
  788. *MemoryConfigKB: PAIR(11264, 9450)
  789. }
  790. *Option: 12288KB
  791. {
  792. *Name: "12MB"
  793. *MemoryConfigKB: PAIR(12288, 10350)
  794. }
  795. *Option: 13312KB
  796. {
  797. *Name: "13MB"
  798. *MemoryConfigKB: PAIR(13312, 11250)
  799. }
  800. *Option: 14336KB
  801. {
  802. *Name: "14MB"
  803. *MemoryConfigKB: PAIR(14336, 12150)
  804. }
  805. *Option: 15360KB
  806. {
  807. *Name: "15MB"
  808. *MemoryConfigKB: PAIR(15360, 13050)
  809. }
  810. *Option: 16384KB
  811. {
  812. *Name: "16MB"
  813. *MemoryConfigKB: PAIR(16384, 13950)
  814. }
  815. *Option: 17408KB
  816. {
  817. *Name: "17MB"
  818. *MemoryConfigKB: PAIR(17408, 14850)
  819. }
  820. *Option: 18432KB
  821. {
  822. *Name: "18MB"
  823. *MemoryConfigKB: PAIR(18432, 15750)
  824. }
  825. *Option: 19456KB
  826. {
  827. *Name: "19MB"
  828. *MemoryConfigKB: PAIR(19456, 16650)
  829. }
  830. *Option: 20480KB
  831. {
  832. *Name: "20MB"
  833. *MemoryConfigKB: PAIR(20480, 17550)
  834. }
  835. *Option: 21504KB
  836. {
  837. *Name: "21MB"
  838. *MemoryConfigKB: PAIR(21504, 18450)
  839. }
  840. *Option: 22528KB
  841. {
  842. *Name: "22MB"
  843. *MemoryConfigKB: PAIR(22528, 19350)
  844. }
  845. *Option: 23552KB
  846. {
  847. *Name: "23MB"
  848. *MemoryConfigKB: PAIR(23552, 20250)
  849. }
  850. *Option: 24576KB
  851. {
  852. *Name: "24MB"
  853. *MemoryConfigKB: PAIR(24576, 21150)
  854. }
  855. *Option: 25600KB
  856. {
  857. *Name: "25MB"
  858. *MemoryConfigKB: PAIR(25600, 22050)
  859. }
  860. *Option: 26624KB
  861. {
  862. *Name: "26MB"
  863. *MemoryConfigKB: PAIR(26624, 22950)
  864. }
  865. *Option: 27648KB
  866. {
  867. *Name: "27MB"
  868. *MemoryConfigKB: PAIR(27648, 23850)
  869. }
  870. *Option: 28672KB
  871. {
  872. *Name: "28MB"
  873. *MemoryConfigKB: PAIR(28672, 24750)
  874. }
  875. *Option: 29696KB
  876. {
  877. *Name: "29MB"
  878. *MemoryConfigKB: PAIR(29696, 25650)
  879. }
  880. *Option: 30720KB
  881. {
  882. *Name: "30MB"
  883. *MemoryConfigKB: PAIR(30720, 26550)
  884. }
  885. *Option: 31744KB
  886. {
  887. *Name: "31MB"
  888. *MemoryConfigKB: PAIR(31744, 27450)
  889. }
  890. *Option: 32768KB
  891. {
  892. *Name: "32MB"
  893. *MemoryConfigKB: PAIR(32768, 28350)
  894. }
  895. *Option: 33792KB
  896. {
  897. *Name: "33MB"
  898. *MemoryConfigKB: PAIR(33792, 29250)
  899. }
  900. *Option: 34816KB
  901. {
  902. *Name: "34MB"
  903. *MemoryConfigKB: PAIR(34816, 30420)
  904. }
  905. *Option: 35840KB
  906. {
  907. *Name: "35MB"
  908. *MemoryConfigKB: PAIR(35840, 31050)
  909. }
  910. *Option: 36864KB
  911. {
  912. *Name: "36MB"
  913. *MemoryConfigKB: PAIR(36864, 31950)
  914. }
  915. *Option: 37888KB
  916. {
  917. *Name: "37MB"
  918. *MemoryConfigKB: PAIR(37888, 32850)
  919. }
  920. *Option: 38912KB
  921. {
  922. *Name: "38MB"
  923. *MemoryConfigKB: PAIR(38912, 33750)
  924. }
  925. *Option: 39936KB
  926. {
  927. *Name: "39MB"
  928. *MemoryConfigKB: PAIR(39936, 34650)
  929. }
  930. *Option: 40960KB
  931. {
  932. *Name: "40MB"
  933. *MemoryConfigKB: PAIR(40960, 35550)
  934. }
  935. *Option: 41984KB
  936. {
  937. *Name: "41MB"
  938. *MemoryConfigKB: PAIR(41984, 36450)
  939. }
  940. *Option: 43008KB
  941. {
  942. *Name: "42MB"
  943. *MemoryConfigKB: PAIR(43008, 37350)
  944. }
  945. *Option: 44032KB
  946. {
  947. *Name: "43MB"
  948. *MemoryConfigKB: PAIR(44032, 38250)
  949. }
  950. *Option: 45056KB
  951. {
  952. *Name: "44MB"
  953. *MemoryConfigKB: PAIR(45056, 39150)
  954. }
  955. *Option: 46080KB
  956. {
  957. *Name: "45MB"
  958. *MemoryConfigKB: PAIR(46080, 40050)
  959. }
  960. *Option: 47104KB
  961. {
  962. *Name: "46MB"
  963. *MemoryConfigKB: PAIR(47104, 40950)
  964. }
  965. *Option: 48128KB
  966. {
  967. *Name: "47MB"
  968. *MemoryConfigKB: PAIR(48128, 41850)
  969. }
  970. *Option: 49152KB
  971. {
  972. *Name: "48MB"
  973. *MemoryConfigKB: PAIR(49152, 42750)
  974. }
  975. *Option: 50176KB
  976. {
  977. *Name: "49MB"
  978. *MemoryConfigKB: PAIR(50176, 43650)
  979. }
  980. *Option: 51200KB
  981. {
  982. *Name: "50MB"
  983. *MemoryConfigKB: PAIR(51200, 44550)
  984. }
  985. }
  986. *Feature: PageProtect
  987. {
  988. *rcNameID: =PAGE_PROTECTION_DISPLAY
  989. *DefaultOption: OFF
  990. *Option: ON
  991. {
  992. *rcNameID: =ON_DISPLAY
  993. *Command: CmdSelect
  994. {
  995. *Order: JOB_SETUP.2
  996. *Cmd: =PJL_PAGEPROTECT_ON =PJL_TIMEOUT_90
  997. }
  998. }
  999. *Option: OFF
  1000. {
  1001. *rcNameID: =OFF_DISPLAY
  1002. *Command: CmdSelect
  1003. {
  1004. *Order: JOB_SETUP.2
  1005. *Cmd: =PJL_PAGEPROTECT_ON =PJL_TIMEOUT_90
  1006. }
  1007. }
  1008. }
  1009. *Command: CmdStartJob
  1010. {
  1011. *Order: JOB_SETUP.1
  1012. *Cmd: =PJL_STARTJOB =PJL_COMMENT
  1013. }
  1014. *Command: CmdStartPage
  1015. {
  1016. *Order: PAGE_SETUP.4
  1017. *Cmd: =sint16 "<0000>" =attr_ubyte =PageAngle =SetPageRotation
  1018. + =real32_xy "<0000803f><0000803f>" =attr_ubyte =PageScale =SetPageScale
  1019. + =SetClipToPage
  1020. + =ubyte "<01>" =attr_ubyte =ColorSpace =SetColorSpace
  1021. }
  1022. *Command: CmdEndPage
  1023. {
  1024. *Order: PAGE_FINISH.1
  1025. *Cmd: =uint16 =NumOfCopy =attr_ubyte =PageCopies =EndPage
  1026. }
  1027. *Command: CmdEndJob
  1028. {
  1029. *Order: JOB_FINISH.1
  1030. *Cmd: =CloseDataSource =EndSession =PJL_ENDJOB
  1031. }
  1032. *RotateCoordinate?: TRUE
  1033. *RotateRaster?: TRUE
  1034. *RotateFont?: TRUE
  1035. *TextCaps: LIST(TC_CR_ANY,TC_CR_90,TC_SF_X_YINDEP,TC_SA_CONTIN,TC_IA_ABLE,TC_UA_ABLE)
  1036. *MemoryUsage: LIST(FONT)
  1037. *CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
  1038. *BadCursorMoveInGrxMode: LIST(X_PORTRAIT,Y_LANDSCAPE)
  1039. *XMoveThreshold: 0
  1040. *YMoveThreshold: 0
  1041. *XMoveUnit: 1200
  1042. *YMoveUnit: 1200
  1043. *Command: CmdXMoveAbsolute
  1044. {
  1045. *Cmd: ""
  1046. }
  1047. *Command: CmdXMoveRelRight
  1048. {
  1049. *Cmd: ""
  1050. *Params: LIST(DestXRel, TextXRes)
  1051. }
  1052. *Command: CmdXMoveRelLeft
  1053. {
  1054. *Cmd: ""
  1055. *Params: LIST(DestXRel, TextXRes)
  1056. }
  1057. *Command: CmdYMoveAbsolute
  1058. {
  1059. *Cmd: ""
  1060. *Params: LIST(DestY, TextYRes)
  1061. }
  1062. *Command: CmdYMoveRelDown
  1063. {
  1064. *Cmd: ""
  1065. *Params: LIST(DestYRel, TextYRes)
  1066. }
  1067. *Command: CmdYMoveRelUp
  1068. {
  1069. *Cmd: ""
  1070. *Params: LIST(DestYRel, TextYRes)
  1071. }
  1072. *Command: CmdCR { *Cmd : =CR }
  1073. *Command: CmdLF { *Cmd : =LF }
  1074. *Command: CmdFF { *Cmd : =FF }
  1075. *Command: CmdSetAnyRotation
  1076. {
  1077. *Cmd: ""
  1078. *Params: LIST(PrintDirInCCDegrees)
  1079. }
  1080. *Command: CmdSetSimpleRotation
  1081. {
  1082. *Cmd: ""
  1083. *Params: LIST(PrintDirInCCDegrees)
  1084. }
  1085. *EjectPageWithFF?: FALSE
  1086. *CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
  1087. *CursorYAfterSendBlockData: AUTO_INCREMENT
  1088. *%DefaultFont: =RC_FONT_COURIERR
  1089. *DefaultCTT: 0
  1090. *CharPosition: BASELINE
  1091. *TTFSEnabled?: TRUE
  1092. *FontFormat: OEM_CALLBACK
  1093. *MinFontID: 1
  1094. *MaxFontID: 65535
  1095. *MinGlyphID: 1
  1096. *MaxGlyphID: 1000
  1097. *%DeviceFonts:
  1098. *Command: CmdSetFontID { *Cmd : "" }
  1099. *Command: CmdSelectFontID
  1100. {
  1101. *Cmd: ""
  1102. *Params: LIST(FontHeight, CurrentFontID, TextYRes)
  1103. }
  1104. *Command: CmdSetCharCode { *Cmd : "" }