|
@@ -1882,11 +1882,11 @@ struct KMNMWCFlags {
|
|
|
}
|
|
|
|
|
|
func batchAddWatermark() {
|
|
|
- self.showBatchWindow(type: .watermark, files: nil)
|
|
|
+ self.showBatchWindow(type: .watermark, files: [URL(fileURLWithPath: self.document?.documentURL.path ?? "")])
|
|
|
}
|
|
|
|
|
|
func batchRemoveWatermark() {
|
|
|
- self.showBatchWindow(type: .batchRemove, files: nil)
|
|
|
+ self.showBatchWindow(type: .batchRemove, files: [URL(fileURLWithPath: self.document?.documentURL.path ?? "")])
|
|
|
}
|
|
|
|
|
|
//MARK: - PopUI
|
|
@@ -2190,11 +2190,11 @@ struct KMNMWCFlags {
|
|
|
}
|
|
|
|
|
|
func batchAddBackground() {
|
|
|
- self.showBatchWindow(type: .background, files: nil)
|
|
|
+ self.showBatchWindow(type: .background, files: [URL(fileURLWithPath: self.document?.documentURL.path ?? "")])
|
|
|
}
|
|
|
|
|
|
func batchRemoveBackground() {
|
|
|
- self.showBatchWindow(type: .batchRemove, files: nil)
|
|
|
+ self.showBatchWindow(type: .batchRemove, files: [URL(fileURLWithPath: self.document?.documentURL.path ?? "")])
|
|
|
}
|
|
|
|
|
|
//MARK: - header&footer
|
|
@@ -2264,11 +2264,11 @@ struct KMNMWCFlags {
|
|
|
}
|
|
|
|
|
|
func batchAddHeaderFooter() {
|
|
|
- self.showBatchWindow(type: .headerAndFooter, files: nil)
|
|
|
+ self.showBatchWindow(type: .headerAndFooter, files: [URL(fileURLWithPath: self.document?.documentURL.path ?? "")])
|
|
|
}
|
|
|
|
|
|
func batchRemoveHeaderFooter() {
|
|
|
- self.showBatchWindow(type: .batchRemove, files: nil)
|
|
|
+ self.showBatchWindow(type: .batchRemove, files: [URL(fileURLWithPath: self.document?.documentURL.path ?? "")])
|
|
|
}
|
|
|
|
|
|
//MARK: - Bates
|
|
@@ -2339,11 +2339,11 @@ struct KMNMWCFlags {
|
|
|
}
|
|
|
|
|
|
func batchAddBates() {
|
|
|
- self.showBatchWindow(type: .batesNumber, files: nil)
|
|
|
+ self.showBatchWindow(type: .batesNumber, files: [URL(fileURLWithPath: self.document?.documentURL.path ?? "")])
|
|
|
}
|
|
|
|
|
|
func batchRemoveBates() {
|
|
|
- self.showBatchWindow(type: .batchRemove, files: nil)
|
|
|
+ self.showBatchWindow(type: .batchRemove, files: [URL(fileURLWithPath: self.document?.documentURL.path ?? "")])
|
|
|
}
|
|
|
|
|
|
//MARK: - Crop Action
|
|
@@ -4650,13 +4650,13 @@ extension KMMainViewController: KMEditToolbarViewDelegate {
|
|
|
|
|
|
func kmEditToolbarViewDidChooseBatch(_ view: KMEditToolbarView) {
|
|
|
if view.editType == .watermark {
|
|
|
- self.showBatchWindow(type: .watermark, files: nil)
|
|
|
+ self.showBatchWindow(type: .watermark, files: [URL(fileURLWithPath: self.document?.documentURL.path ?? "")])
|
|
|
} else if view.editType == .background {
|
|
|
- self.showBatchWindow(type: .background, files: nil)
|
|
|
+ self.showBatchWindow(type: .background, files: [URL(fileURLWithPath: self.document?.documentURL.path ?? "")])
|
|
|
} else if view.editType == .header_Footer {
|
|
|
- self.showBatchWindow(type: .headerAndFooter, files: nil)
|
|
|
+ self.showBatchWindow(type: .headerAndFooter, files: [URL(fileURLWithPath: self.document?.documentURL.path ?? "")])
|
|
|
} else if view.editType == .bates {
|
|
|
- self.showBatchWindow(type: .batesNumber, files: nil)
|
|
|
+ self.showBatchWindow(type: .batesNumber, files: [URL(fileURLWithPath: self.document?.documentURL.path ?? "")])
|
|
|
}
|
|
|
}
|
|
|
|