KMPDFConfig.swift 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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 Stamp
  46. case Sign
  47. case Edit_text
  48. case Edit_Image
  49. case Edit_Link
  50. case Edit_Crop
  51. case Form_text
  52. case Form_checkbox
  53. case Form_radio
  54. case Form_list
  55. case Form_dropdown
  56. case Form_OK
  57. case Form_digitalSign
  58. case Fill_tick
  59. case fill_fork
  60. case fill_rectangle
  61. case fill_line
  62. case fill_dot
  63. case fill_date
  64. case fill_sign
  65. }
  66. //侧边栏样式
  67. @objc public enum KMPDFSidebarType : Int {
  68. case none = 0
  69. case search
  70. case thumbnail
  71. case outline
  72. case bookmark
  73. case annotation
  74. }
  75. //编辑模块类型
  76. @objc public enum KMPDFEditModeType : Int {
  77. case none = 0
  78. case watermark
  79. case background
  80. case header_Footer
  81. case bates
  82. }
  83. @objc public enum KMPDFEditSubModeType : Int {
  84. case none = 0
  85. case template
  86. case add
  87. case edit
  88. }