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.

42 lines
1.3 KiB

  1. BEGIN {
  2. cps=ARGV[1]; ARGV[1]="";
  3. }
  4. /PrinterType/ {
  5. if (cps ~ /[0-9]/) {
  6. print
  7. print "*PrintRate: " cps
  8. print "*PrintRateUnit: CPS"
  9. next
  10. }
  11. }
  12. /Feature.*ColorMode/ { color=1 }
  13. /Color?.*FALSE/ {
  14. print
  15. print " *Command: CmdSelect"
  16. print " {"
  17. print " *Order: PAGE_SETUP.2"
  18. print " *CallbackID: 40"
  19. print " }"
  20. next
  21. }
  22. /ColorPlaneOrder/ {
  23. print " *ColorPlaneOrder: LIST(YELLOW, CYAN, MAGENTA, BLACK)"
  24. next
  25. }
  26. /CmdSelectBlackColor/ {
  27. print " *Command: CmdSelectBlackColor { *CallbackID: 40 }"
  28. print " *Command: CmdSelectBlueColor { *CallbackID: 41 }"
  29. print " *Command: CmdSelectCyanColor { *CallbackID: 42 }"
  30. print " *Command: CmdSelectGreenColor { *CallbackID: 43 }"
  31. print " *Command: CmdSelectMagentaColor { *CallbackID: 44 }"
  32. print " *Command: CmdSelectRedColor { *CallbackID: 45 }"
  33. print " *Command: CmdSelectWhiteColor { *CallbackID: 46 }"
  34. print " *Command: CmdSelectYellowColor { *CallbackID: 47 }"
  35. next
  36. }
  37. /CmdSelectYellowColor/ { next }
  38. /CmdSelectMagentaColor/ { next }
  39. /CmdSelectCyanColor/ { next }
  40. /CmdXMoveAbs/ { gsub(/\(DestX \/ 2\)[ ]/, "(DestX + 1) / 2") }
  41. { print }
  42. END { if (color) print "*UseExpColorSelectCmd?: TRUE" }