KMNOutlineModel.swift 607 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // KMNOutlineModel.swift
  3. // PDF Reader Pro
  4. //
  5. // Created by User-Tangchao on 2024/11/26.
  6. //
  7. import Cocoa
  8. struct KMNSearchKey {
  9. struct wholeWords {}
  10. struct caseSensitive {}
  11. }
  12. extension KMNSearchKey.wholeWords {
  13. static let annotation = "AnnotationSearchWholeWordsKey"
  14. }
  15. extension KMNSearchKey.caseSensitive {
  16. static let annotation = "AnnotationSearchCaseSensitiveKey"
  17. }
  18. class KMNSearchModel: NSObject {
  19. // 完整单词
  20. var wholeWords = false
  21. // 区分大小写
  22. var caseSensitive = false
  23. }
  24. class KMNOutlineModel: NSObject {
  25. var searchModel = KMNSearchModel()
  26. }