Просмотр исходного кода

Merge branch 'develop' of git.kdan.cc:Mac_PDF/PDF_Office into develop

tangchao 1 год назад
Родитель
Сommit
118e7dccab

+ 8 - 0
PDF Office/PDF Office/Class/PDFWindowController/PDFListView/CPDFKitExtensions/CPDFAnnotationExtensions/CPDFAnnotationHeader.h

@@ -79,4 +79,12 @@ static NSString *CPDFListViewAnnotationKey = @"annotation";
 
 static NSString *CPDFAnnotationPropertiesObservationContext = @"CPDFAnnotationPropertiesObservationContext";
 
+static NSString *CPDFSelfSignTypeKey = @"annotationType";
+
+static NSString *CPDFSelfSignLineColorKey = @"lineColor";
+
+static NSString *CPDFSelfSignLineOpacityKey = @"lineOpacity";
+
+static NSString *CPDFSelfSignLineAnnotationWidthKey = @"lineAnnotationWidth";
+
 #endif /* CPDFAnnotationHeader_h */

+ 5 - 1
PDF Office/PDF Office/Class/PDFWindowController/PDFListView/CPDFKitExtensions/CPDFAnnotationExtensions/CPDFStampAnnotation+PDFListView.m

@@ -78,7 +78,11 @@
 - (NSSet *)keysForValuesToObserveForUndo {
     NSMutableSet *mutableKeys = [NSMutableSet set];
     if ([self isKindOfClass:[CSelfSignAnnotation class]]) {
-        [mutableKeys addObject:@"annotationType"];
+        [mutableKeys addObject:CPDFSelfSignTypeKey];
+        [mutableKeys addObject:CPDFSelfSignLineColorKey];
+        [mutableKeys addObject:CPDFSelfSignLineOpacityKey];
+        [mutableKeys addObject:CPDFSelfSignLineAnnotationWidthKey];
+        [mutableKeys addObject:CPDFAnnotationBoundsKey];
     } else {
         mutableKeys = [[super keysForValuesToObserveForUndo] mutableCopy];
     }