|
@@ -15,6 +15,9 @@ import KMComponentLibrary
|
|
|
//OCR
|
|
|
@objc func kmRightSideControllerOCRShowTypeChange(_ controller: KMRightSideController, _ type: KMOCRShowType)
|
|
|
@objc func kmRightSideControllerOCRDoneAction(_ controller: KMRightSideController, _ model: KMOCRModel)
|
|
|
+
|
|
|
+ @objc func kmRightSideControllerRotateLeft(_ annotations: [CPDFStampAnnotation], withPDFView pdfView: CPDFListView?)
|
|
|
+ @objc func kmRightSideControllerRotateRight(_ annotations: [CPDFStampAnnotation], withPDFView pdfView: CPDFListView?)
|
|
|
}
|
|
|
|
|
|
class KMRightSideController: NSViewController {
|
|
@@ -460,7 +463,7 @@ class KMRightSideController: NSViewController {
|
|
|
stamp_Controller = KMStampController.init()
|
|
|
}
|
|
|
stamp_Controller?.pdfView = self.pdfView
|
|
|
-
|
|
|
+ stamp_Controller?.delegate = self
|
|
|
contentViewController = stamp_Controller
|
|
|
}
|
|
|
} else if subToolMode == .Stamp {
|
|
@@ -749,3 +752,15 @@ extension KMRightSideController: KMStampListControllerDelegate {
|
|
|
reloadTopRightButtonInfo()
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+extension KMRightSideController: KMStampControllerDelegate {
|
|
|
+ func kmStampControllerRotateLeft(_ annotations: [CPDFStampAnnotation], withPDFView pdfView: CPDFListView?) {
|
|
|
+ delegate?.kmRightSideControllerRotateLeft(annotations, withPDFView: pdfView)
|
|
|
+ }
|
|
|
+
|
|
|
+ func kmStampControllerRotateRight(_ annotations: [CPDFStampAnnotation], withPDFView pdfView: CPDFListView?) {
|
|
|
+ delegate?.kmRightSideControllerRotateRight(annotations, withPDFView: pdfView)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+
|