Browse Source

【综合】注释列表补充表格注释类型

tangchao 10 months ago
parent
commit
8b9f69a2b1

+ 4 - 0
PDF Office/PDF Master/Class/PDFWindowController/PDFListView/CPDFKitExtensions/CPDFAnnotationExtensions/Table/KMTableAnnotation.m

@@ -284,6 +284,10 @@
     }
 }
 
+- (NSString *)type {
+    return @"table";
+}
+
 #pragma mark - creat
 
 - (void)createFormWithList:(NSString *)contents andPaths:(NSArray *)paths

+ 2 - 0
PDF Office/PDF Master/Class/PDFWindowController/Side/LeftSide/Annotation/View/KMNoteTypeImageView.swift

@@ -243,6 +243,8 @@ class KMNoteTypeImageView: NSImageView {
             image = NSImage(named: "KMImageNameUXIconSubtoolbarRedactPoint")?.copy() as? NSImage
         } else if type == SKNSignatureString {
             image = NSImage(named: "KMImageNameSidetabbarSignatureNor")?.copy() as? NSImage
+        } else if type == "Ink_Table" {
+            image = NSImage(named: KMImageNameUXIconSubtoolbarMytoolsTable)?.copy() as? NSImage
         }
         
         return image

+ 1 - 1
PDF Office/PDF Master/Class/PDFWindowController/Side/LeftSide/KMLeftSideViewController+Note.swift

@@ -774,7 +774,7 @@ extension KMLeftSideViewController {
                 var annos: [CPDFAnnotation] = []
                 // 处理过滤
                 if typeArr.count == 0 && colorArr.count == 0 && authorArr.count == 0 {
-                    let types = ["Highlight","Underline","Strikeout","Freehand","FreeText","Note","Square","Circle","Line","Stamp","Arrow","Image","Redact","Sign"]
+                    let types = ["Highlight","Underline","Strikeout","Freehand","FreeText","Note","Square","Circle","Line","Stamp","Arrow","Image","Redact","Sign", "table"]
                     annos = KMOCToolClass.filterAnnotation(annotations: page?.annotations ?? [],types: types) as? [CPDFAnnotation] ?? []
                 } else {
                     var filterAnnos: [CPDFAnnotation] = page?.annotations ?? []