KMBatesModel.swift 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // KMBatesModel.swift
  3. // PDF Master
  4. //
  5. // Created by tangchao on 2022/12/28.
  6. //
  7. import Cocoa
  8. @objcMembers class KMBatesModel: KMHeaderFooterAdjectiveModel {
  9. var prefixString: String = ""
  10. var suffixString: String = ""
  11. var digits: Int = 1
  12. override init() {
  13. super.init()
  14. self.name = "Bates Number"
  15. }
  16. override func copy() -> Any {
  17. let model = KMBatesModel()
  18. model.name = self.name
  19. model.leftMargin = self.leftMargin
  20. model.rightMargin = self.rightMargin
  21. model.bottomMargin = self.bottomMargin
  22. model.topMargin = self.topMargin
  23. model.topLeftString = self.topLeftString
  24. model.topCenterString = self.topCenterString
  25. model.topRightString = self.topRightString
  26. model.bottomLeftString = self.bottomLeftString
  27. model.bottomCenterString = self.bottomCenterString
  28. model.bottomRightString = self.bottomRightString
  29. model.startString = self.startString
  30. model.prefixString = self.prefixString
  31. model.suffixString = self.suffixString
  32. model.digits = self.digits
  33. return model
  34. }
  35. }