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.

658 lines
16 KiB

  1. *GPDSpecVersion: "1.0"
  2. *GPDFileVersion: "1.00"
  3. *GPDFileName: "CSCP350J.GPD"
  4. *Include: "STDNAMES.GPD"
  5. *CodePage: 1252
  6. *ModelName: "CASIO CP-3500"
  7. *MasterUnits: PAIR(1200, 1200)
  8. *ResourceDLL: "CAPPLRES.DLL"
  9. *PrinterType: PAGE
  10. *MaxCopies: 255
  11. *PrintRate: 16
  12. *PrintRateUnit: PPM
  13. *Macros: CAPPLCBID
  14. {
  15. RES_SELECTRES_240 : 14
  16. RES_SELECTRES_400 : 15
  17. CM_XM_ABS : 20
  18. CM_YM_ABS : 22
  19. AUTOFEED : 30
  20. PS_A3 : 40
  21. PS_B4 : 41
  22. PS_A4 : 42
  23. PS_B5 : 43
  24. PS_LETTER : 44
  25. PS_POSTCARD : 45
  26. PS_A5 : 47
  27. PS_FREE : 48
  28. CBID_PORT : 50
  29. CBID_LAND : 51
  30. PRN_3000 : 62
  31. OPT_NOSET : Option1
  32. OPT_A3 : Option2
  33. OPT_B4 : Option3
  34. OPT_A4 : Option4
  35. OPT_B5 : Option5
  36. OPT_LETTER : Option6
  37. OPT_POSTCARD : Option7
  38. OPT_A5 : Option8
  39. }
  40. *Command: CmdCopies
  41. {
  42. *Order: DOC_SETUP.60
  43. *Cmd: "<1B>[1<0004>D0" %m[1,255]{NumOfCopies}
  44. }
  45. *Feature: Orientation
  46. {
  47. *rcNameID: =ORIENTATION_DISPLAY
  48. *DefaultOption: PORTRAIT
  49. *Option: PORTRAIT
  50. {
  51. *rcNameID: =PORTRAIT_DISPLAY
  52. *Command: CmdSelect
  53. {
  54. *Order: DOC_SETUP.58
  55. *CallbackID: =CBID_PORT
  56. }
  57. }
  58. *Option: LANDSCAPE_CC90
  59. {
  60. *rcNameID: =LANDSCAPE_DISPLAY
  61. *Command: CmdSelect
  62. {
  63. *Order: DOC_SETUP.58
  64. *CallbackID: =CBID_LAND
  65. }
  66. }
  67. }
  68. *Feature: InputBin
  69. {
  70. *rcNameID: =PAPER_SOURCE_DISPLAY
  71. *DefaultOption: AUTO
  72. *Option: Option2
  73. {
  74. *rcNameID: 259
  75. *Command: CmdSelect
  76. {
  77. *Order: DOC_SETUP.55
  78. *Cmd: "<1B>@)0"
  79. }
  80. }
  81. *Option: Option3
  82. {
  83. *rcNameID: 261
  84. *Command: CmdSelect
  85. {
  86. *Order: DOC_SETUP.55
  87. *Cmd: "<1B>@)1"
  88. }
  89. }
  90. *Option: Option4
  91. {
  92. *rcNameID: 262
  93. *Command: CmdSelect
  94. {
  95. *Order: DOC_SETUP.55
  96. *Cmd: "<1B>@)="
  97. }
  98. }
  99. *Option: MANUAL
  100. {
  101. *rcNameID: 265
  102. *Command: CmdSelect
  103. {
  104. *Order: DOC_SETUP.55
  105. *Cmd: "<1B>@)7"
  106. }
  107. }
  108. *Option: AUTO
  109. {
  110. *rcNameID: 263
  111. *Command: CmdSelect
  112. {
  113. *Order: DOC_SETUP.55
  114. *CallbackID: =AUTOFEED
  115. }
  116. }
  117. }
  118. *Feature: Resolution
  119. {
  120. *rcNameID: =RESOLUTION_DISPLAY
  121. *DefaultOption: Option2
  122. *Option: Option1
  123. {
  124. *Name: "240 x 240 dots per inch"
  125. *DPI: PAIR(240, 240)
  126. *TextDPI: PAIR(240, 240)
  127. EXTERN_GLOBAL: *XMoveUnit: 240
  128. EXTERN_GLOBAL: *YMoveUnit: 240
  129. *MinStripBlankPixels: 128
  130. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  131. EXTERN_GLOBAL: *SendMultipleRows?: TRUE
  132. *SpotDiameter: 100
  133. *Command: CmdSelect
  134. {
  135. *Order: DOC_SETUP.30
  136. *CallbackID: =RES_SELECTRES_240
  137. }
  138. }
  139. *Option: Option2
  140. {
  141. *Name: "400 x 400 dots per inch"
  142. *DPI: PAIR(400, 400)
  143. *TextDPI: PAIR(400, 400)
  144. EXTERN_GLOBAL: *XMoveUnit: 400
  145. EXTERN_GLOBAL: *YMoveUnit: 400
  146. *MinStripBlankPixels: 64
  147. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  148. EXTERN_GLOBAL: *SendMultipleRows?: TRUE
  149. *SpotDiameter: 100
  150. *Command: CmdSelect
  151. {
  152. *Order: DOC_SETUP.30
  153. *CallbackID: =RES_SELECTRES_400
  154. }
  155. }
  156. }
  157. *Feature: PaperSize
  158. {
  159. *rcNameID: =PAPER_SIZE_DISPLAY
  160. *DefaultOption: A4
  161. *Option: LETTER
  162. {
  163. *rcNameID: =LETTER_DISPLAY
  164. *PrintableArea: PAIR(9720, 12720)
  165. *PrintableOrigin: PAIR(240, 240)
  166. *% 2001/03/01 ->
  167. *switch: Orientation
  168. {
  169. *case: PORTRAIT
  170. {
  171. *CursorOrigin: PAIR(240, 240)
  172. }
  173. *case: LANDSCAPE_CC90
  174. {
  175. *CursorOrigin: PAIR(240, 12960)
  176. }
  177. }
  178. *% 2001/03/01 <-
  179. *Command: CmdSelect
  180. {
  181. *Order: DOC_SETUP.50
  182. *CallbackID: =PS_LETTER
  183. }
  184. }
  185. *Option: A3
  186. {
  187. *rcNameID: =A3_DISPLAY
  188. *PrintableArea: PAIR(13550, 19360)
  189. *PrintableOrigin: PAIR(240, 240)
  190. *% 2001/03/01 ->
  191. *CursorOrigin: PAIR(240, 240)
  192. *% 2001/03/01 <-
  193. *switch: Resolution
  194. {
  195. *% 2001/03/01 ->
  196. *case: Option1
  197. {
  198. *switch: Orientation
  199. {
  200. *case: LANDSCAPE_CC90
  201. {
  202. *CursorOrigin: PAIR(240, 19600)
  203. }
  204. }
  205. }
  206. *% 2001/03/01 <-
  207. *case: Option2
  208. {
  209. *% Warning: the following printable width is adjusted (13550->13548) so it is divisible by the resolution X scale.
  210. *% Warning: the following printable length is adjusted (19360->19359) so it is divisible by the resolution Y scale.
  211. *PrintableArea: PAIR(13548, 19359)
  212. *% 2001/03/01 ->
  213. *switch: Orientation
  214. {
  215. *case: LANDSCAPE_CC90
  216. {
  217. *CursorOrigin: PAIR(240, 19599)
  218. }
  219. }
  220. *% 2001/03/01 <-
  221. }
  222. }
  223. *Command: CmdSelect
  224. {
  225. *Order: DOC_SETUP.50
  226. *CallbackID: =PS_A3
  227. }
  228. }
  229. *Option: A4
  230. {
  231. *rcNameID: =A4_DISPLAY
  232. *PrintableArea: PAIR(9440, 13550)
  233. *PrintableOrigin: PAIR(240, 240)
  234. *% 2001/03/01 ->
  235. *CursorOrigin: PAIR(240, 240)
  236. *% 2001/03/01 <-
  237. *switch: Resolution
  238. {
  239. *% 2001/03/01 ->
  240. *case: Option1
  241. {
  242. *switch: Orientation
  243. {
  244. *case: LANDSCAPE_CC90
  245. {
  246. *CursorOrigin: PAIR(240, 13790)
  247. }
  248. }
  249. }
  250. *% 2001/03/01 <-
  251. *case: Option2
  252. {
  253. *% Warning: the following printable width is adjusted (9440->9438) so it is divisible by the resolution X scale.
  254. *% Warning: the following printable length is adjusted (13550->13548) so it is divisible by the resolution Y scale.
  255. *PrintableArea: PAIR(9438, 13548)
  256. *% 2001/03/01 ->
  257. *switch: Orientation
  258. {
  259. *case: LANDSCAPE_CC90
  260. {
  261. *CursorOrigin: PAIR(240, 13788)
  262. }
  263. }
  264. *% 2001/03/01 <-
  265. }
  266. }
  267. *Command: CmdSelect
  268. {
  269. *Order: DOC_SETUP.50
  270. *CallbackID: =PS_A4
  271. }
  272. }
  273. *Option: B4
  274. {
  275. *rcNameID: =B4_DISPLAY
  276. *PrintableArea: PAIR(11660, 16715)
  277. *PrintableOrigin: PAIR(240, 240)
  278. *% 2001/03/01 ->
  279. *CursorOrigin: PAIR(240, 240)
  280. *% 2001/03/01 <-
  281. *switch: Resolution
  282. {
  283. *% 2001/03/01 ->
  284. *case: Option1
  285. {
  286. *switch: Orientation
  287. {
  288. *case: LANDSCAPE_CC90
  289. {
  290. *CursorOrigin: PAIR(240, 16955)
  291. }
  292. }
  293. }
  294. *% 2001/03/01 <-
  295. *case: Option2
  296. {
  297. *% Warning: the following printable width is adjusted (11660->11658) so it is divisible by the resolution X scale.
  298. *% Warning: the following printable length is adjusted (16715->16713) so it is divisible by the resolution Y scale.
  299. *PrintableArea: PAIR(11658, 16713)
  300. *% 2001/03/01 ->
  301. *switch: Orientation
  302. {
  303. *case: LANDSCAPE_CC90
  304. {
  305. *CursorOrigin: PAIR(240, 16953)
  306. }
  307. }
  308. *% 2001/03/01 <-
  309. }
  310. }
  311. *Command: CmdSelect
  312. {
  313. *Order: DOC_SETUP.50
  314. *CallbackID: =PS_B4
  315. }
  316. }
  317. *Option: B5
  318. {
  319. *rcNameID: =B5_DISPLAY
  320. *PrintableArea: PAIR(8115, 11660)
  321. *PrintableOrigin: PAIR(240, 240)
  322. *% 2001/03/01 ->
  323. *CursorOrigin: PAIR(240, 240)
  324. *% 2001/03/01 <-
  325. *switch: Resolution
  326. {
  327. *% 2001/03/01 ->
  328. *case: Option1
  329. {
  330. *switch: Orientation
  331. {
  332. *case: LANDSCAPE_CC90
  333. {
  334. *CursorOrigin: PAIR(240, 11900)
  335. }
  336. }
  337. }
  338. *% 2001/03/01 <-
  339. *case: Option2
  340. {
  341. *% Warning: the following printable length is adjusted (11660->11658) so it is divisible by the resolution Y scale.
  342. *PrintableArea: PAIR(8115, 11658)
  343. *% 2001/03/01 ->
  344. *switch: Orientation
  345. {
  346. *case: LANDSCAPE_CC90
  347. {
  348. *CursorOrigin: PAIR(240, 11898)
  349. }
  350. }
  351. *% 2001/03/01 <-
  352. }
  353. }
  354. *Command: CmdSelect
  355. {
  356. *Order: DOC_SETUP.50
  357. *CallbackID: =PS_B5
  358. }
  359. }
  360. *Option: A5
  361. {
  362. *rcNameID: =A5_DISPLAY
  363. *% 2001/03/01 ->
  364. *% *PrintableArea: PAIR(6555, 9440)
  365. *% *PrintableOrigin: PAIR(240, 240)
  366. *PrintableArea: PAIR(6510, 9440)
  367. *PrintableOrigin: PAIR(240, 240)
  368. *CursorOrigin: PAIR(240, 240)
  369. *% 2001/03/01 <-
  370. *switch: Resolution
  371. {
  372. *% 2001/03/01 ->
  373. *case: Option1
  374. {
  375. *switch: Orientation
  376. {
  377. *case: LANDSCAPE_CC90
  378. {
  379. *CursorOrigin: PAIR(240, 9680)
  380. }
  381. }
  382. }
  383. *% 2001/03/01 <-
  384. *case: Option2
  385. {
  386. *% Warning: the following printable length is adjusted (9440->9438) so it is divisible by the resolution Y scale.
  387. *% 2001/03/01 ->
  388. *% *PrintableArea: PAIR(6555, 9438)
  389. *PrintableArea: PAIR(6510, 9438)
  390. *switch: Orientation
  391. {
  392. *case: LANDSCAPE_CC90
  393. {
  394. *CursorOrigin: PAIR(240, 9678)
  395. }
  396. }
  397. *% 2001/03/01 <-
  398. }
  399. }
  400. *Command: CmdSelect
  401. {
  402. *Order: DOC_SETUP.50
  403. *CallbackID: =PS_A5
  404. }
  405. }
  406. *Option: JAPANESE_POSTCARD
  407. {
  408. *rcNameID: =JAPANESE_POSTCARD_DISPLAY
  409. *PrintableArea: PAIR(4240, 6510)
  410. *PrintableOrigin: PAIR(240, 240)
  411. *% 2001/03/01 ->
  412. *switch: Orientation
  413. {
  414. *case: PORTRAIT
  415. {
  416. *CursorOrigin: PAIR(240, 240)
  417. }
  418. *case: LANDSCAPE_CC90
  419. {
  420. *CursorOrigin: PAIR(240, 6750)
  421. }
  422. }
  423. *% 2001/03/01 <-
  424. *switch: Resolution
  425. {
  426. *case: Option2
  427. {
  428. *% Warning: the following printable width is adjusted (4240->4239) so it is divisible by the resolution X scale.
  429. *PrintableArea: PAIR(4239, 6510)
  430. }
  431. }
  432. *Command: CmdSelect
  433. {
  434. *Order: DOC_SETUP.50
  435. *CallbackID: =PS_POSTCARD
  436. }
  437. }
  438. *Option: CUSTOMSIZE
  439. {
  440. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  441. *switch: Resolution
  442. {
  443. *case: Option1
  444. {
  445. *MinSize: PAIR(4250, 4250)
  446. *MaxSize: PAIR(14035, 20365)
  447. *MaxPrintableWidth: 13555
  448. }
  449. *case: Option2
  450. {
  451. *MinSize: PAIR(4251, 4251)
  452. *MaxSize: PAIR(14034, 20364)
  453. *MaxPrintableWidth: 13554
  454. }
  455. }
  456. *MinLeftMargin: 240
  457. *CenterPrintable?: FALSE
  458. *CustCursorOriginX: %d{240}
  459. *% 2001/03/01 ->
  460. *% *CustCursorOriginY: %d{240}
  461. *switch: Orientation
  462. {
  463. *case: PORTRAIT
  464. {
  465. *CustCursorOriginY: %d{240}
  466. }
  467. *case: LANDSCAPE_CC90
  468. {
  469. *CustCursorOriginY: %d{PhysPaperLength - 240}
  470. }
  471. }
  472. *% 2001/03/01 <-
  473. *CustPrintableOriginX: %d{240}
  474. *CustPrintableOriginY: %d{240}
  475. *CustPrintableSizeX: %d{PhysPaperWidth - 480}
  476. *CustPrintableSizeY: %d{PhysPaperLength - 480}
  477. *Command: CmdSelect
  478. {
  479. *Order: DOC_SETUP.50
  480. *CallbackID: =PS_FREE
  481. *Params: LIST(PhysPaperWidth, PhysPaperLength)
  482. }
  483. }
  484. }
  485. *Feature: Halftone
  486. {
  487. *rcNameID: =HALFTONING_DISPLAY
  488. *DefaultOption: HT_PATSIZE_AUTO
  489. *Option: HT_PATSIZE_AUTO
  490. {
  491. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  492. }
  493. *Option: HT_PATSIZE_SUPERCELL_M
  494. {
  495. *rcNameID: =HT_SUPERCELL_DISPLAY
  496. }
  497. *Option: HT_PATSIZE_6x6_M
  498. {
  499. *rcNameID: =HT_DITHER6X6_DISPLAY
  500. }
  501. *Option: HT_PATSIZE_8x8_M
  502. {
  503. *rcNameID: =HT_DITHER8X8_DISPLAY
  504. }
  505. }
  506. *Feature: Memory
  507. {
  508. *rcNameID: =PRINTER_MEMORY_DISPLAY
  509. *DefaultOption: 4096KB
  510. *Option: 4096KB
  511. {
  512. *Name: "4MB"
  513. *MemoryConfigKB: PAIR(4096, 2560)
  514. }
  515. }
  516. *Feature: MPFSetting
  517. {
  518. *FeatureType: DOC_PROPERTY
  519. *rcNameID: 5500
  520. *DefaultOption: =OPT_NOSET
  521. *Option: =OPT_NOSET
  522. {
  523. *rcNameID: 5010
  524. }
  525. *Option: =OPT_A3
  526. {
  527. *rcNameID: =A3_DISPLAY
  528. *Constraints: InputBin.MANUAL
  529. *Constraints: InputBin.Option2
  530. *Constraints: InputBin.Option3
  531. *Constraints: InputBin.Option4
  532. }
  533. *Option: =OPT_B4
  534. {
  535. *rcNameID: =B4_DISPLAY
  536. *Constraints: InputBin.MANUAL
  537. *Constraints: InputBin.Option2
  538. *Constraints: InputBin.Option3
  539. *Constraints: InputBin.Option4
  540. }
  541. *Option: =OPT_A4
  542. {
  543. *rcNameID: =A4_DISPLAY
  544. *Constraints: InputBin.MANUAL
  545. *Constraints: InputBin.Option2
  546. *Constraints: InputBin.Option3
  547. *Constraints: InputBin.Option4
  548. }
  549. *Option: =OPT_B5
  550. {
  551. *rcNameID: =B5_DISPLAY
  552. *Constraints: InputBin.MANUAL
  553. *Constraints: InputBin.Option2
  554. *Constraints: InputBin.Option3
  555. *Constraints: InputBin.Option4
  556. }
  557. *Option: =OPT_A5
  558. {
  559. *rcNameID: =A5_DISPLAY
  560. *Constraints: InputBin.MANUAL
  561. *Constraints: InputBin.Option2
  562. *Constraints: InputBin.Option3
  563. *Constraints: InputBin.Option4
  564. }
  565. *Option: =OPT_LETTER
  566. {
  567. *rcNameID: =LETTER_DISPLAY
  568. *Constraints: InputBin.MANUAL
  569. *Constraints: InputBin.Option2
  570. *Constraints: InputBin.Option3
  571. *Constraints: InputBin.Option4
  572. }
  573. *Option: =OPT_POSTCARD
  574. {
  575. *rcNameID: =JAPANESE_POSTCARD_DISPLAY
  576. *Constraints: InputBin.MANUAL
  577. *Constraints: InputBin.Option2
  578. *Constraints: InputBin.Option3
  579. *Constraints: InputBin.Option4
  580. }
  581. }
  582. *% 2001/03/01 ->
  583. *% *RotateCoordinate?: FALSE
  584. *RotateCoordinate?: TRUE
  585. *% 2001/03/01 <-
  586. *RotateRaster?: TRUE
  587. *RotateFont?: FALSE
  588. *TextCaps: LIST(TC_RA_ABLE)
  589. *MemoryUsage: LIST(FONT)
  590. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  591. *XMoveThreshold: 0
  592. *YMoveThreshold: 0
  593. *EjectPageWithFF?: TRUE
  594. *OutputDataFormat: H_BYTE
  595. *OptimizeLeftBound?: TRUE
  596. *CursorXAfterSendBlockData: AT_GRXDATA_END
  597. *CursorYAfterSendBlockData: AUTO_INCREMENT
  598. *DefaultCTT: 0
  599. *Command: CmdStartJob
  600. {
  601. *Order: JOB_SETUP.10
  602. *CallbackID: =PRN_3000
  603. }
  604. *Command: CmdStartDoc
  605. {
  606. *Order: DOC_SETUP.10
  607. *Cmd: "<1B>c1"
  608. }
  609. *Command: CmdStartPage
  610. {
  611. *Order: PAGE_SETUP.10
  612. *Cmd: "<1B><5C>9<0000><0000>"
  613. }
  614. *Command: CmdEndJob
  615. {
  616. *Order: JOB_FINISH.10
  617. *Cmd: "<1B>c1<1B>iw="
  618. }
  619. *Command: CmdXMoveAbsolute
  620. {
  621. *CallbackID: =CM_XM_ABS
  622. *Params: LIST(DestX,DestY)
  623. }
  624. *Command: CmdYMoveAbsolute
  625. {
  626. *CallbackID: =CM_YM_ABS
  627. *Params: LIST(DestX,DestY)
  628. }
  629. *Command: CmdCR { *Cmd : "<0D>" }
  630. *Command: CmdLF { *Cmd : "<0A>" }
  631. *Command: CmdFF { *Cmd : "<0C>" }
  632. *Command: CmdSendBlockData
  633. {
  634. *Cmd: "<1B>w" %m[1,2047]{RasterDataWidthInBytes}
  635. + %m[1,16383]{RasterDataHeightInPixels}
  636. }