KMWatermarkTemplateModel.swift 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //
  2. // KMWatermarkTemplateModel.swift
  3. // PDF Master
  4. //
  5. // Created by tangchao on 2022/12/22.
  6. //
  7. import Cocoa
  8. class KMWatermarkTemplateModel: KMWatermarkModel {
  9. var isSelected: Bool = false
  10. func initModel(model: KMWatermarkModel) {
  11. self.text = model.text
  12. self.image = model.image
  13. self.imagePath = model.imagePath
  14. self.textColor = model.textColor
  15. self.textFont = model.textFont
  16. self.rotation = model.rotation
  17. self.opacity = model.opacity
  18. self.scale = model.scale
  19. self.verticalMode = model.verticalMode
  20. self.verticalSpace = model.verticalSpace
  21. self.horizontalMode = model.horizontalMode
  22. self.horizontalSpace = model.horizontalSpace
  23. self.tileHorizontalSpace = model.tileHorizontalSpace
  24. self.tileVerticalSpace = model.tileVerticalSpace
  25. self.pagesString = model.pagesString
  26. self.isFront = model.isFront
  27. self.isTilePage = model.isTilePage
  28. self.tag = model.tag
  29. self.pageRangeType = model.pageRangeType
  30. self.creatTemplateDate = model.creatTemplateDate
  31. self.watermark = model.watermark
  32. self.watermarkID = model.watermarkID
  33. self.isSelected = false
  34. }
  35. }