KMHeaderFooterModel.swift 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // KMHeaderFooterModel.swift
  3. // PDF Master
  4. //
  5. // Created by tangchao on 2022/12/27.
  6. //
  7. import Cocoa
  8. class KMHeaderFooterModel: KMHeaderFooterAdjectiveModel {
  9. var dateFormatString: String = KMWatermarkAdjectiveTools.getDateFormats().first!
  10. var pageFormatString: String = KMWatermarkAdjectiveTools.getPageFormats().first!
  11. override init() {
  12. super.init()
  13. self.name = ""
  14. }
  15. override func copy() -> Any {
  16. let model = KMHeaderFooterModel()
  17. model.name = self.name
  18. model.leftMargin = self.leftMargin
  19. model.rightMargin = self.rightMargin
  20. model.bottomMargin = self.bottomMargin
  21. model.topMargin = self.topMargin
  22. model.topLeftString = self.topLeftString
  23. model.topCenterString = self.topCenterString
  24. model.topRightString = self.topRightString
  25. model.bottomLeftString = self.bottomLeftString
  26. model.bottomCenterString = self.bottomCenterString
  27. model.bottomRightString = self.bottomRightString
  28. model.startString = self.startString
  29. model.dateFormatString = self.dateFormatString
  30. model.pageFormatString = self.pageFormatString
  31. return model
  32. }
  33. }