|
@@ -874,12 +874,20 @@ extension KMHomeViewController {
|
|
|
|
|
|
func fastTool_Batch() { // Batch
|
|
|
// KMBatchWindowController.openFile(nil, .Batch)
|
|
|
+ if !IAPProductsManager.default().isAvailableAllFunction(){
|
|
|
+ KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
|
|
|
+ return
|
|
|
+ }
|
|
|
let batchWindowController = KMBatchOperateWindowController.sharedWindowController
|
|
|
batchWindowController.window?.makeKeyAndOrderFront("")
|
|
|
}
|
|
|
|
|
|
func fastTool_OCR() { // OCR
|
|
|
// KMOCRWindowController.openFiles(window: self.view.window!)
|
|
|
+ if !IAPProductsManager.default().isAvailableAllFunction(){
|
|
|
+ KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
|
|
|
+ return
|
|
|
+ }
|
|
|
let openPanel = NSOpenPanel()
|
|
|
|
|
|
var arr = KMImageToPDFMethod.supportedImageTypes()
|
|
@@ -1208,6 +1216,10 @@ extension KMHomeViewController {
|
|
|
}
|
|
|
|
|
|
func fastTool_FileCompare() { // 文件对比
|
|
|
+ if !IAPProductsManager.default().isAvailableAllFunction(){
|
|
|
+ KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
|
|
|
+ return
|
|
|
+ }
|
|
|
let openPanel = NSOpenPanel()
|
|
|
openPanel.allowsMultipleSelection = false
|
|
|
openPanel.allowedFileTypes = ["pdf"]
|
|
@@ -1308,6 +1320,11 @@ extension KMHomeViewController {
|
|
|
|
|
|
func fastTool_Watermark() { // 水印
|
|
|
// KMBatchWindowController.openFile(nil, .Watermark)
|
|
|
+ if !IAPProductsManager.default().isAvailableAllFunction(){
|
|
|
+ KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
let openPanel = NSOpenPanel()
|
|
|
openPanel.allowedFileTypes = ["pdf","PDF"]
|
|
|
//MARK: 允许多选还是单选,如果是付费用户允许多选
|
|
@@ -1349,6 +1366,11 @@ extension KMHomeViewController {
|
|
|
|
|
|
func fastTool_Background() { // 背景
|
|
|
// KMBatchWindowController.openFile(nil, .Background)
|
|
|
+ if !IAPProductsManager.default().isAvailableAllFunction(){
|
|
|
+ KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
let openPanel = NSOpenPanel()
|
|
|
openPanel.allowedFileTypes = ["pdf","PDF"]
|
|
|
//MARK: 允许多选还是单选,如果是付费用户允许多选
|
|
@@ -1390,6 +1412,11 @@ extension KMHomeViewController {
|
|
|
|
|
|
func fastTool_HeaderAndFooter() { // 页眉页脚
|
|
|
// KMBatchWindowController.openFile(nil, .HeaderAndFooter)
|
|
|
+ if !IAPProductsManager.default().isAvailableAllFunction(){
|
|
|
+ KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
let openPanel = NSOpenPanel()
|
|
|
openPanel.allowedFileTypes = ["pdf","PDF"]
|
|
|
//MARK: 允许多选还是单选,如果是付费用户允许多选
|
|
@@ -1432,6 +1459,11 @@ extension KMHomeViewController {
|
|
|
|
|
|
func fastTool_BatesCode() { // 贝茨码
|
|
|
// KMBatchWindowController.openFile(nil, .BatesCode)
|
|
|
+ if !IAPProductsManager.default().isAvailableAllFunction(){
|
|
|
+ KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
let openPanel = NSOpenPanel()
|
|
|
openPanel.allowedFileTypes = ["pdf","PDF"]
|
|
|
//MARK: 允许多选还是单选,如果是付费用户允许多选
|
|
@@ -1480,6 +1512,11 @@ extension KMHomeViewController {
|
|
|
}
|
|
|
|
|
|
func fastTool_Insert() { // 插入
|
|
|
+ if !IAPProductsManager.default().isAvailableAllFunction(){
|
|
|
+ KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
let openPanel = NSOpenPanel()
|
|
|
openPanel.prompt = NSLocalizedString("Insert", comment: "")
|
|
|
openPanel.allowsMultipleSelection = false
|
|
@@ -1562,6 +1599,11 @@ extension KMHomeViewController {
|
|
|
// return;
|
|
|
// }
|
|
|
// self.isDragEntered = YES;
|
|
|
+ if !IAPProductsManager.default().isAvailableAllFunction(){
|
|
|
+ KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
let openPanel = NSOpenPanel()
|
|
|
openPanel.allowedFileTypes = ["pdf"]
|
|
|
openPanel.allowsMultipleSelection = false
|
|
@@ -1667,6 +1709,11 @@ extension KMHomeViewController {
|
|
|
}
|
|
|
|
|
|
func fastTool_printBooklet() {
|
|
|
+ if !IAPProductsManager.default().isAvailableAllFunction(){
|
|
|
+ KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
let openPanel = NSOpenPanel()
|
|
|
openPanel.allowsMultipleSelection = false
|
|
|
openPanel.allowedFileTypes = ["pdf"]
|
|
@@ -1700,6 +1747,11 @@ extension KMHomeViewController {
|
|
|
}
|
|
|
|
|
|
func fastTool_printPoster() {
|
|
|
+ if !IAPProductsManager.default().isAvailableAllFunction(){
|
|
|
+ KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
let openPanel = NSOpenPanel()
|
|
|
openPanel.allowsMultipleSelection = false
|
|
|
openPanel.allowedFileTypes = ["pdf"]
|
|
@@ -1733,6 +1785,11 @@ extension KMHomeViewController {
|
|
|
}
|
|
|
|
|
|
func fastTool_printMultple() {
|
|
|
+ if !IAPProductsManager.default().isAvailableAllFunction(){
|
|
|
+ KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
let openPanel = NSOpenPanel()
|
|
|
openPanel.allowsMultipleSelection = false
|
|
|
openPanel.allowedFileTypes = ["pdf"]
|