|
@@ -777,21 +777,6 @@ extension KMBrowserWindowController {
|
|
|
@IBAction func toggleAutoScale(_ sender: Any?) {
|
|
|
KMPrint("toggleAutoScale ...")
|
|
|
}
|
|
|
- @IBAction func rotateRight(_ sender: Any?) {
|
|
|
- KMPrint("rotateRight ...")
|
|
|
- }
|
|
|
- @IBAction func rotateLeft(_ sender: Any?) {
|
|
|
- KMPrint("rotateLeft ...")
|
|
|
- }
|
|
|
- @IBAction func rotateAllRight(_ sender: Any?) {
|
|
|
- KMPrint("rotateAllRight ...")
|
|
|
- }
|
|
|
- @IBAction func rotateAllLeft(_ sender: Any?) {
|
|
|
- KMPrint("rotateAllLeft ...")
|
|
|
- }
|
|
|
- @IBAction func autoSelectContent(_ sender: Any?) {
|
|
|
- KMPrint("autoSelectContent ...")
|
|
|
- }
|
|
|
@IBAction func getInfo(_ sender: Any?) {
|
|
|
KMPrint("getInfo ...")
|
|
|
}
|
|
@@ -897,9 +882,6 @@ extension KMBrowserWindowController {
|
|
|
@IBAction func link(_ sender: Any?) {
|
|
|
KMPrint("link ...")
|
|
|
}
|
|
|
- @IBAction func addWatermark(_ sender: Any?) {
|
|
|
- KMPrint("addWatermark ...")
|
|
|
- }
|
|
|
@IBAction func pageEdit(_ sender: Any?) {
|
|
|
KMPrint("pageEdit ...")
|
|
|
}
|
|
@@ -922,76 +904,6 @@ extension KMBrowserWindowController {
|
|
|
@IBAction func coverageComparison(_ sender: Any?) {
|
|
|
KMPrint("coverageComparison ...")
|
|
|
}
|
|
|
- @IBAction func addBackground(_ sender: Any?) {
|
|
|
- KMPrint("addBackground ...")
|
|
|
- }
|
|
|
- @IBAction func removeBackground(_ sender: Any?) {
|
|
|
- KMPrint("removeBackground ...")
|
|
|
- }
|
|
|
- @IBAction func addHeaderFooter(_ sender: Any?) {
|
|
|
- KMPrint("addHeaderFooter ...")
|
|
|
- }
|
|
|
- @IBAction func removeHeaderFooter(_ sender: Any?) {
|
|
|
- KMPrint("removeHeaderFooter ...")
|
|
|
- }
|
|
|
- @IBAction func addHeaderFooterBates(_ sender: Any?) {
|
|
|
- KMPrint("addHeaderFooterBates ...")
|
|
|
- }
|
|
|
- @IBAction func removeHeaderFooterBates(_ sender: Any?) {
|
|
|
- KMPrint("removeHeaderFooterBates ...")
|
|
|
- }
|
|
|
- @IBAction func editWatermark(_ sender: Any?) {
|
|
|
- KMPrint("editWatermark ...")
|
|
|
- }
|
|
|
- @IBAction func batchAddWatermark(_ sender: Any?) {
|
|
|
- KMPrint("batchAddWatermark ...")
|
|
|
- }
|
|
|
- @IBAction func batchRemoveWatermark(_ sender: Any?) {
|
|
|
- KMPrint("batchRemoveWatermark ...")
|
|
|
- }
|
|
|
- @IBAction func removeWatermark(_ sender: Any?) {
|
|
|
- KMPrint("removeWatermark ...")
|
|
|
- }
|
|
|
- @IBAction func templateWatermark(_ sender: Any?) {
|
|
|
- KMPrint("templateWatermark ...")
|
|
|
- }
|
|
|
- @IBAction func batchAddBackground(_ sender: Any?) {
|
|
|
- KMPrint("batchAddBackground ...")
|
|
|
- }
|
|
|
- @IBAction func batchRemoveBackground(_ sender: Any?) {
|
|
|
- KMPrint("batchRemoveBackground ...")
|
|
|
- }
|
|
|
- @IBAction func templateBackground(_ sender: Any?) {
|
|
|
- KMPrint("templateBackground ...")
|
|
|
- }
|
|
|
-
|
|
|
- @IBAction func batchAddHeaderFooter(_ sender: Any?) {
|
|
|
- KMPrint("batchAddHeaderFooter ...")
|
|
|
- }
|
|
|
- @IBAction func batchRemoveHeaderFooter(_ sender: Any?) {
|
|
|
- KMPrint("batchRemoveHeaderFooter ...")
|
|
|
- }
|
|
|
- @IBAction func templateHeaderFooter(_ sender: Any?) {
|
|
|
- KMPrint("templateHeaderFooter ...")
|
|
|
- }
|
|
|
- @IBAction func batchAddBates(_ sender: Any?) {
|
|
|
- KMPrint("batchAddBates ...")
|
|
|
- }
|
|
|
- @IBAction func batchRemoveBates(_ sender: Any?) {
|
|
|
- KMPrint("batchRemoveBates ...")
|
|
|
- }
|
|
|
- @IBAction func templateBates(_ sender: Any?) {
|
|
|
- KMPrint("templateBates ...")
|
|
|
- }
|
|
|
- @IBAction func togglePoster(_ sender: Any?) {
|
|
|
- KMPrint("togglePoster ...")
|
|
|
- }
|
|
|
- @IBAction func toggleMultiple(_ sender: Any?) {
|
|
|
- KMPrint("toggleMultiple ...")
|
|
|
- }
|
|
|
- @IBAction func toggleBooklet(_ sender: Any?) {
|
|
|
- KMPrint("toggleBooklet ...")
|
|
|
- }
|
|
|
@IBAction func readMode(_ sender: Any?) {
|
|
|
KMPrint("readMode ...")
|
|
|
}
|
|
@@ -1933,6 +1845,202 @@ extension KMBrowserWindowController: KMSystemToolMenuProtocol {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ @IBAction func addBackground(_ sender: Any?) {
|
|
|
+ KMPrint("addBackground ...")
|
|
|
+ }
|
|
|
+ @IBAction func removeBackground(_ sender: Any?) {
|
|
|
+ KMPrint("removeBackground ...")
|
|
|
+ }
|
|
|
+ @IBAction func addHeaderFooter(_ sender: Any?) {
|
|
|
+ KMPrint("addHeaderFooter ...")
|
|
|
+ }
|
|
|
+ @IBAction func removeHeaderFooter(_ sender: Any?) {
|
|
|
+ KMPrint("removeHeaderFooter ...")
|
|
|
+ }
|
|
|
+ @IBAction func addHeaderFooterBates(_ sender: Any?) {
|
|
|
+ KMPrint("addHeaderFooterBates ...")
|
|
|
+ }
|
|
|
+ @IBAction func removeHeaderFooterBates(_ sender: Any?) {
|
|
|
+ KMPrint("removeHeaderFooterBates ...")
|
|
|
+ }
|
|
|
+ @IBAction func addWatermark(_ sender: Any?) {
|
|
|
+ if (self.canResponseDocumentAction() == false) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if let document = self.browser.activeTabContents() as? KMMainDocument {
|
|
|
+ if (document.isHome) {
|
|
|
+ } else {
|
|
|
+ document.mainViewController?.addWatermark(sender)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ @IBAction func editWatermark(_ sender: Any?) {
|
|
|
+ KMPrint("editWatermark ...")
|
|
|
+ }
|
|
|
+ @IBAction func batchAddWatermark(_ sender: Any?) {
|
|
|
+ if (self.canResponseDocumentAction() == false) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if let document = self.browser.activeTabContents() as? KMMainDocument {
|
|
|
+ if (document.isHome) {
|
|
|
+ } else {
|
|
|
+ document.mainViewController?.batchAddWatermark(sender)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ @IBAction func batchRemoveWatermark(_ sender: Any?) {
|
|
|
+ if (self.canResponseDocumentAction() == false) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if let document = self.browser.activeTabContents() as? KMMainDocument {
|
|
|
+ if (document.isHome) {
|
|
|
+ } else {
|
|
|
+ document.mainViewController?.batchRemoveWatermark(sender)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ @IBAction func removeWatermark(_ sender: Any?) {
|
|
|
+ if (self.canResponseDocumentAction() == false) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if let document = self.browser.activeTabContents() as? KMMainDocument {
|
|
|
+ if (document.isHome) {
|
|
|
+ } else {
|
|
|
+ document.mainViewController?.removeWatermark(sender)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ @IBAction func templateWatermark(_ sender: Any?) {
|
|
|
+ if (self.canResponseDocumentAction() == false) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if let document = self.browser.activeTabContents() as? KMMainDocument {
|
|
|
+ if (document.isHome) {
|
|
|
+ } else {
|
|
|
+ document.mainViewController?.templateWatermark(sender)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ @IBAction func batchAddBackground(_ sender: Any?) {
|
|
|
+ KMPrint("batchAddBackground ...")
|
|
|
+ }
|
|
|
+ @IBAction func batchRemoveBackground(_ sender: Any?) {
|
|
|
+ KMPrint("batchRemoveBackground ...")
|
|
|
+ }
|
|
|
+ @IBAction func templateBackground(_ sender: Any?) {
|
|
|
+ KMPrint("templateBackground ...")
|
|
|
+ }
|
|
|
+
|
|
|
+ @IBAction func batchAddHeaderFooter(_ sender: Any?) {
|
|
|
+ KMPrint("batchAddHeaderFooter ...")
|
|
|
+ }
|
|
|
+ @IBAction func batchRemoveHeaderFooter(_ sender: Any?) {
|
|
|
+ KMPrint("batchRemoveHeaderFooter ...")
|
|
|
+ }
|
|
|
+ @IBAction func templateHeaderFooter(_ sender: Any?) {
|
|
|
+ KMPrint("templateHeaderFooter ...")
|
|
|
+ }
|
|
|
+ @IBAction func batchAddBates(_ sender: Any?) {
|
|
|
+ KMPrint("batchAddBates ...")
|
|
|
+ }
|
|
|
+ @IBAction func batchRemoveBates(_ sender: Any?) {
|
|
|
+ KMPrint("batchRemoveBates ...")
|
|
|
+ }
|
|
|
+ @IBAction func templateBates(_ sender: Any?) {
|
|
|
+ KMPrint("templateBates ...")
|
|
|
+ }
|
|
|
+
|
|
|
+ @IBAction func togglePoster(_ sender: Any?) {
|
|
|
+ if (self.canResponseDocumentAction() == false) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if let document = self.browser.activeTabContents() as? KMMainDocument {
|
|
|
+ if (document.isHome) {
|
|
|
+ } else {
|
|
|
+ document.mainViewController?.togglePoster(sender)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ @IBAction func toggleMultiple(_ sender: Any?) {
|
|
|
+ if (self.canResponseDocumentAction() == false) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if let document = self.browser.activeTabContents() as? KMMainDocument {
|
|
|
+ if (document.isHome) {
|
|
|
+ } else {
|
|
|
+ document.mainViewController?.toggleMultiple(sender)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ @IBAction func toggleBooklet(_ sender: Any?) {
|
|
|
+ if (self.canResponseDocumentAction() == false) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if let document = self.browser.activeTabContents() as? KMMainDocument {
|
|
|
+ if (document.isHome) {
|
|
|
+ } else {
|
|
|
+ document.mainViewController?.toggleBooklet(sender)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @IBAction func rotateRight(_ sender: Any?) {
|
|
|
+ if (self.canResponseDocumentAction() == false) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if let document = self.browser.activeTabContents() as? KMMainDocument {
|
|
|
+ if (document.isHome) {
|
|
|
+ } else {
|
|
|
+ document.mainViewController?.rotateRight(sender)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ @IBAction func rotateLeft(_ sender: Any?) {
|
|
|
+ if (self.canResponseDocumentAction() == false) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if let document = self.browser.activeTabContents() as? KMMainDocument {
|
|
|
+ if (document.isHome) {
|
|
|
+ } else {
|
|
|
+ document.mainViewController?.rotateLeft(sender)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ @IBAction func rotateAllRight(_ sender: Any?) {
|
|
|
+ if (self.canResponseDocumentAction() == false) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if let document = self.browser.activeTabContents() as? KMMainDocument {
|
|
|
+ if (document.isHome) {
|
|
|
+ } else {
|
|
|
+ document.mainViewController?.rotateAllRight(sender)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ @IBAction func rotateAllLeft(_ sender: Any?) {
|
|
|
+ if (self.canResponseDocumentAction() == false) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if let document = self.browser.activeTabContents() as? KMMainDocument {
|
|
|
+ if (document.isHome) {
|
|
|
+ } else {
|
|
|
+ document.mainViewController?.rotateAllLeft(sender)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @IBAction func autoSelectContent(_ sender: Any?) {
|
|
|
+ if (self.canResponseDocumentAction() == false) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if let document = self.browser.activeTabContents() as? KMMainDocument {
|
|
|
+ if (document.isHome) {
|
|
|
+ } else {
|
|
|
+ document.mainViewController?.autoSelectContent(sender)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// MARK: - KMSystemWindowMenuRrotocol
|