KMPDFEditToolbar.swift 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. //
  2. // KMPDFEditToolbar.swift
  3. // PDF Reader Pro
  4. //
  5. // Created by tangchao on 2023/5/4.
  6. //
  7. import Cocoa
  8. enum KMPageEditType: Int {
  9. case none = 0
  10. case pageRange = 1
  11. case leftRotate
  12. case rightRotate
  13. case insert
  14. case extract
  15. case replace
  16. case split
  17. case reverse
  18. case copy
  19. case delete
  20. case zoomOut
  21. case zoomIn
  22. case paste = 100
  23. static var insert_files: Int {
  24. get {
  25. return self.insert.rawValue + 1000
  26. }
  27. }
  28. static var insert_blank_page: Int {
  29. get {
  30. return self.insert.rawValue + 1001
  31. }
  32. }
  33. static var insert_custom_page: Int {
  34. get {
  35. return self.insert.rawValue + 1002
  36. }
  37. }
  38. static var insert_fromImage: Int {
  39. get {
  40. return self.insert.rawValue + 1003
  41. }
  42. }
  43. static var insert_fromClipboard: Int {
  44. get {
  45. return self.insert.rawValue + 1004
  46. }
  47. }
  48. static var insert_fromScanner: Int {
  49. get {
  50. return self.insert.rawValue + 1005
  51. }
  52. }
  53. static var extract_selected_pages: Int {
  54. get {
  55. return self.extract.rawValue + 2000
  56. }
  57. }
  58. static var split_selected_pages: Int {
  59. get {
  60. return self.split.rawValue + 3000
  61. }
  62. }
  63. }