// // KMFastToolCollectionViewItem.swift // PDF Reader Pro // // Created by wanjun on 2022/10/20. // import Cocoa public enum DataNavigationViewButtonActionType : Int, CaseIterable { case Batch = 0 // 批量处理 case ConvertPDF // 转换PDF case ImageToPDF // 图片转PDF case MergePDF // 合并 case Compression // 压缩 case Security // 安全 case PDFToPPT // PDF转PPT case PDFToExcel // PDF转Excel case PDFToWord // PDF转Word case PDFToImage // PDF转图片 case Watermark // 水印 case Background // 背景 case HeaderAndFooter// 页眉页脚 case BatesCode // 贝茨码 case Print // 打印 case PrintMultipage // 多页 case PrintPoster // 海报 case PrintBooklet // 小册子 case BatchRemove // 批量移除 case Insert // 插入 case BreakUp // 拆分 case Extract // 提取 case MarkCipher // 标记密文 case PageEdit // 页面编辑 case OCR // 批量OCR case AutomaticFormRecognition //表单自动识别 case FileCompare // 文件对比 case ComparativeTable // 比较表 case equity // 权益弹窗 case AITools //AI Tools } class KMFastToolMode: NSObject { var toolImageName: String? //图片名称 var toolTitle: String? //主标题 var toolSubtitle: String? //副标题 class func toolModeData(type: DataNavigationViewButtonActionType) -> KMFastToolMode { let mode: KMFastToolMode = KMFastToolMode() switch type { case .Batch: mode.toolTitle = NSLocalizedString("Batch", comment: "") mode.toolSubtitle = NSLocalizedString("content content content content content content content content", comment: "") mode.toolImageName = "icon_pdftools_batch" break case .OCR: mode.toolTitle = NSLocalizedString("OCR", comment: "") mode.toolSubtitle = NSLocalizedString("Recognize text from image or scanned PDF with OCR", comment: "") mode.toolImageName = "icon_pdftools_ocr" break case .ConvertPDF: mode.toolTitle = NSLocalizedString("Convert PDF", comment: "") mode.toolSubtitle = NSLocalizedString("Convert PDFs to Word/HTML/TXT/JPEG/PNG files", comment: "") mode.toolImageName = "icon_pdftools_convert" break case .ImageToPDF: mode.toolTitle = NSLocalizedString("Image To PDF", comment: "") mode.toolSubtitle = NSLocalizedString("Convert JPEG/JPG/PNG/TIFF/BMP/PSD files to PDF", comment: "") mode.toolImageName = "icon_pdftools_image" break case .MergePDF: mode.toolTitle = NSLocalizedString("Merge", comment: "") mode.toolSubtitle = NSLocalizedString("Combine multiple documents into a new PDF file", comment: "") mode.toolImageName = "icon_pdftools_merge" break case .Compression: mode.toolTitle = NSLocalizedString("Compress", comment: "") mode.toolSubtitle = NSLocalizedString("Reduce files size to make sure you can easily send them by mail", comment: "") mode.toolImageName = "icon_pdftools_compress" break case .Security: mode.toolTitle = NSLocalizedString("Security", comment: "") mode.toolSubtitle = NSLocalizedString("Limit access to PDFs, restrict copying and printing permission with passwords", comment: "") mode.toolImageName = "icon_pdftools_security" break case .FileCompare: mode.toolTitle = NSLocalizedString("Compare", comment: "") mode.toolSubtitle = NSLocalizedString("content content content content content content content content", comment: "") mode.toolImageName = "icon_pdftools_compare" break case .PDFToPPT: mode.toolTitle = NSLocalizedString("PDF To PPT", comment: "") mode.toolSubtitle = NSLocalizedString("Turn your PDF into a formatted PPT file that you can edit", comment: "") mode.toolImageName = "icon_pdftools_pdfToPPT" break case .PDFToExcel: mode.toolTitle = NSLocalizedString("PDF To Excel", comment: "") mode.toolSubtitle = NSLocalizedString("Turn PDF table into a formatted Excel file", comment: "") mode.toolImageName = "icon_pdftools_pdfToExcel" break case .PDFToWord: mode.toolTitle = NSLocalizedString("PDF To Word", comment: "") mode.toolSubtitle = NSLocalizedString("Convert PDF to Word, fonts & formatting get converted", comment: "") mode.toolImageName = "icon_pdftools_pdfToWord" break case .PDFToImage: mode.toolTitle = NSLocalizedString("PDF To Image", comment: "") mode.toolSubtitle = NSLocalizedString("Convert PDF to image, such as JPEG, JPG, PNG, GIF, TIFF, TAG,BMP", comment: "") mode.toolImageName = "icon_pdftools_pdfToImage" break case .Watermark: mode.toolTitle = NSLocalizedString("Watermark", comment: "") mode.toolSubtitle = NSLocalizedString("Protect PDFs with image/text watermarks from plagiarism", comment: "") mode.toolImageName = "icon_pdftools_watermark" break case .Background: mode.toolTitle = NSLocalizedString("Background", comment: "") mode.toolSubtitle = NSLocalizedString("Customize PDFs background with colors or images", comment: "") mode.toolImageName = "icon_pdftools_background" break case .HeaderAndFooter: mode.toolTitle = NSLocalizedString("Header & Footer", comment: "") mode.toolSubtitle = NSLocalizedString("Customize PDFs header&footer or add page number", comment: "") mode.toolImageName = "icon_pdftools_headerfooter" break case .BatesCode: mode.toolTitle = NSLocalizedString("Bates Numbers", comment: "") mode.toolSubtitle = NSLocalizedString("Easily retrieval indexing legal document by Bates Numbers", comment: "") mode.toolImageName = "icon_pdftools_batesnumbers" break case .Print: mode.toolTitle = NSLocalizedString("Print", comment: "") mode.toolSubtitle = NSLocalizedString("Powerful PDF printer allows to print PDF from any computer without much hassle", comment: "") mode.toolImageName = "icon_pdftools_print" break case .BatchRemove: mode.toolTitle = NSLocalizedString("Batch Remove", comment: "") mode.toolSubtitle = NSLocalizedString("content content content content content content content content", comment: "") mode.toolImageName = "icon_pdftools_remove" break case .Insert: mode.toolTitle = NSLocalizedString("Insert", comment: "") mode.toolSubtitle = NSLocalizedString("Insert blank pages to PDF or insert a new file", comment: "") mode.toolImageName = "icon_pdftools_insert" break case .BreakUp: mode.toolTitle = NSLocalizedString("Split", comment: "") mode.toolSubtitle = NSLocalizedString("content content content content content content content content", comment: "") mode.toolImageName = "icon_pdftools_split" break case .Extract: mode.toolTitle = NSLocalizedString("Extract", comment: "") mode.toolSubtitle = NSLocalizedString("Extract selected pages to a new PDF", comment: "") mode.toolImageName = "icon_pdftools_extract" break case .MarkCipher: mode.toolTitle = NSLocalizedString("Redact", comment: "") mode.toolSubtitle = NSLocalizedString("content content content content content content content content", comment: "") mode.toolImageName = "icon_pdftools_reduct" break case .AutomaticFormRecognition: mode.toolTitle = NSLocalizedString("Form Filed Recognition", comment: "") mode.toolSubtitle = NSLocalizedString("content content content content content content content content", comment: "") mode.toolImageName = "icon_pdftools_formfiledrecognition" break case .PageEdit: mode.toolTitle = NSLocalizedString("Page Edit", comment: "") mode.toolSubtitle = NSLocalizedString("Delete/Rotate/Copy/Paste PDF pages", comment: "") mode.toolImageName = "icon_pdftools_pageEdit" break case .ComparativeTable: break case .equity: break case .PrintMultipage: break case .PrintPoster: break case .PrintBooklet: break case .AITools: break } return mode } } class KMFastToolCollectionViewItem: NSCollectionViewItem { }