|
@@ -334,6 +334,7 @@ class KMPDFThumbViewBaseController: KMBaseViewController {
|
|
|
}
|
|
|
|
|
|
self._undo_replace(of: self.indexpathsToIndexs(indexpaths: targetIndexpaths), with: pages, at: index)
|
|
|
+ self.replaceAfter(of: self.indexpathsToIndexs(indexpaths: targetIndexpaths), with: pages, at: index)
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -906,6 +907,13 @@ extension KMPDFThumbViewBaseController {
|
|
|
}
|
|
|
return indexs
|
|
|
}
|
|
|
+ func indexsToIndexpaths(indexs: IndexSet) -> Set<IndexPath> {
|
|
|
+ var indexpaths = Set<IndexPath>()
|
|
|
+ for index in indexs {
|
|
|
+ indexpaths.insert(IndexPath(item: index, section: 0))
|
|
|
+ }
|
|
|
+ return indexpaths
|
|
|
+ }
|
|
|
|
|
|
@objc func deleteAfter(indexpaths: Set<IndexPath>) {}
|
|
|
@objc func leftRotateAfter(indexpaths: Set<IndexPath>) {}
|
|
@@ -913,6 +921,7 @@ extension KMPDFThumbViewBaseController {
|
|
|
@objc func cutAfter(indexpaths: Set<IndexPath>) {}
|
|
|
@objc func copyAfter(indexpaths: Set<IndexPath>) {}
|
|
|
@objc func pasteAfter(at index: Int) {}
|
|
|
+ @objc func replaceAfter(of targetIndexs: IndexSet, with pages: [CPDFPage], at index: Int) {}
|
|
|
|
|
|
func km_beginSheet(windowC: NSWindowController) {
|
|
|
guard let _window = windowC.window else {
|