KMBatesModel.swift 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // KMHeaderFooterObject.swift
  3. // PDF Reader Pro
  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. required init?(coder: NSCoder) {
  17. fatalError("init(coder:) has not been implemented")
  18. }
  19. override func copy() -> Any {
  20. let model = KMBatesModel()
  21. model.name = self.name
  22. model.leftMargin = self.leftMargin
  23. model.rightMargin = self.rightMargin
  24. model.bottomMargin = self.bottomMargin
  25. model.topMargin = self.topMargin
  26. model.topLeftString = self.topLeftString
  27. model.topCenterString = self.topCenterString
  28. model.topRightString = self.topRightString
  29. model.bottomLeftString = self.bottomLeftString
  30. model.bottomCenterString = self.bottomCenterString
  31. model.bottomRightString = self.bottomRightString
  32. model.startString = self.startString
  33. model.prefixString = self.prefixString
  34. model.suffixString = self.suffixString
  35. model.digits = self.digits
  36. return model
  37. }
  38. }