|
@@ -895,6 +895,46 @@ extension KMMainViewController: KMSystemToolMenuProtocol {
|
|
|
self.toolbarController.toolbarViewController(self.toolbarController.childToolBarView!, menuItemDidClick: item!, index: 5, info: nil)
|
|
|
}
|
|
|
|
|
|
+ func addHeaderFooterBates(_ sender: Any?) {
|
|
|
+ var item = self.toolbarController.findItem(KMToolbarToolBatesItemIdentifier)
|
|
|
+ if item == nil {
|
|
|
+ item = KMToolbarItemView(itemIdentifier: KMToolbarToolBatesItemIdentifier)
|
|
|
+ }
|
|
|
+ self.toolbarController.toolbarViewController(self.toolbarController.childToolBarView!, menuItemDidClick: item!, index: 1, info: nil)
|
|
|
+ }
|
|
|
+
|
|
|
+ func removeHeaderFooterBates(_ sender: Any?) {
|
|
|
+ var item = self.toolbarController.findItem(KMToolbarToolBatesItemIdentifier)
|
|
|
+ if item == nil {
|
|
|
+ item = KMToolbarItemView(itemIdentifier: KMToolbarToolBatesItemIdentifier)
|
|
|
+ }
|
|
|
+ self.toolbarController.toolbarViewController(self.toolbarController.childToolBarView!, menuItemDidClick: item!, index: 2, info: nil)
|
|
|
+ }
|
|
|
+
|
|
|
+ func batchAddBates(_ sender: Any?) {
|
|
|
+ var item = self.toolbarController.findItem(KMToolbarToolBatesItemIdentifier)
|
|
|
+ if item == nil {
|
|
|
+ item = KMToolbarItemView(itemIdentifier: KMToolbarToolBatesItemIdentifier)
|
|
|
+ }
|
|
|
+ self.toolbarController.toolbarViewController(self.toolbarController.childToolBarView!, menuItemDidClick: item!, index: 3, info: nil)
|
|
|
+ }
|
|
|
+
|
|
|
+ func batchRemoveBates(_ sender: Any?) {
|
|
|
+ var item = self.toolbarController.findItem(KMToolbarToolBatesItemIdentifier)
|
|
|
+ if item == nil {
|
|
|
+ item = KMToolbarItemView(itemIdentifier: KMToolbarToolBatesItemIdentifier)
|
|
|
+ }
|
|
|
+ self.toolbarController.toolbarViewController(self.toolbarController.childToolBarView!, menuItemDidClick: item!, index: 4, info: nil)
|
|
|
+ }
|
|
|
+
|
|
|
+ func templateBates(_ sender: Any?) {
|
|
|
+ var item = self.toolbarController.findItem(KMToolbarToolBatesItemIdentifier)
|
|
|
+ if item == nil {
|
|
|
+ item = KMToolbarItemView(itemIdentifier: KMToolbarToolBatesItemIdentifier)
|
|
|
+ }
|
|
|
+ self.toolbarController.toolbarViewController(self.toolbarController.childToolBarView!, menuItemDidClick: item!, index: 5, info: nil)
|
|
|
+ }
|
|
|
+
|
|
|
func togglePoster(_ sender: Any?) {
|
|
|
KMPrintWindowController.showNewPrintWindowControll(inputData: self.listView.document?.documentURL, inputDocument: nil, inputPageRange: KMPrintPageRange(), printType: .poster)
|
|
|
}
|