KMPDFConfig.swift 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. //
  2. // KMPDFConfig.swift
  3. // PDF Reader Pro
  4. //
  5. // Created by Niehaoyu on 2024/10/21.
  6. //
  7. import Cocoa
  8. //工具类型
  9. @objc public enum KMPDFViewToolsType: Int, CaseIterable {
  10. case Select = 0
  11. case Scroll
  12. case Content_Selection
  13. case Magnify
  14. case AreaZoom
  15. }
  16. //一级工具栏模式
  17. /*
  18. 默认为View_Select,代表选择模式。
  19. */
  20. @objc public enum KMPDFToolsMode: Int, CaseIterable {
  21. case None = 0
  22. case Markup
  23. case Edit
  24. case Form
  25. case Fill
  26. case Convert
  27. case Protect
  28. case Tools
  29. }
  30. //二级工具栏
  31. @objc public enum KMPDFSubToolMode: Int, CaseIterable {
  32. case None = 0
  33. case Highlight
  34. case Underline
  35. case Waveline
  36. case Strikethrough
  37. case Text
  38. case Note
  39. case Pen
  40. case Eraser
  41. case Rectangle
  42. case Circle
  43. case Arrow
  44. case Line
  45. case Measure
  46. case Stamp
  47. case Sign
  48. case Edit_text
  49. case Edit_Image
  50. case Edit_Link
  51. case Edit_Crop
  52. case Form_text
  53. case Form_checkbox
  54. case Form_radio
  55. case Form_list
  56. case Form_dropdown
  57. case Form_OK
  58. case Form_digitalSign
  59. case Fill_tick
  60. case fill_fork
  61. case fill_rectangle
  62. case fill_line
  63. case fill_dot
  64. case fill_date
  65. case fill_sign
  66. }
  67. //侧边栏样式
  68. @objc public enum KMPDFSidebarType : Int {
  69. case none = 0
  70. case search
  71. case thumbnail
  72. case outline
  73. case bookmark
  74. case annotation
  75. }
  76. //编辑模块类型
  77. @objc public enum KMPDFEditModeType : Int {
  78. case none = 0
  79. case watermark
  80. case background
  81. case header_Footer
  82. case bates
  83. }
  84. @objc public enum KMPDFEditSubModeType : Int {
  85. case none = 0
  86. case template
  87. case add
  88. case edit
  89. }