|
@@ -3586,27 +3586,7 @@ static inline CPDFAreaOfInterest CAreaOfInterestForResizeHandle(CRectEdges mask,
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
case CAnnotationTypeTextField:{
|
|
case CAnnotationTypeTextField:{
|
|
- KMPDFAnnotationTextWidgetSub *textWidget = [[KMPDFAnnotationTextWidgetSub alloc] initWithDocument:self.document];
|
|
|
|
- textWidget.stringValue = NSLocalizedString(@"", nil);
|
|
|
|
- CPDFBorder *border = [[CPDFBorder alloc] initWithStyle:CPDFBorderStyleSolid lineWidth:0 dashPattern:nil];
|
|
|
|
- textWidget.border = border;
|
|
|
|
- NSColor* backgroundColor = [sud colorForKey:@"SKAnnotationTextWidgetBackgroundColorKey"];
|
|
|
|
- if (backgroundColor) {
|
|
|
|
- [(CPDFWidgetAnnotation *)textWidget setBackgroundColor:backgroundColor];
|
|
|
|
- } else {
|
|
|
|
- [(CPDFWidgetAnnotation *)textWidget setBackgroundColor:[NSColor grayColor]];
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- NSColor* fontColor = [sud colorForKey:@"SKAnnotationTextWidgetFontColorKey"];
|
|
|
|
- if (fontColor) {
|
|
|
|
- [(CPDFWidgetAnnotation *)textWidget setFontColor:fontColor];
|
|
|
|
- }
|
|
|
|
- textWidget.alignment = [sud integerForKey:@"SKAnnotationTextWidgetAlignmenKey"];
|
|
|
|
- NSFont *font = [sud fontForNameKey:@"SKAnnotationTextWidgetFontNameKey" sizeKey:@"SKAnnotationTextWidgetFontSizeKey"];
|
|
|
|
- if (font) {
|
|
|
|
- [(CPDFWidgetAnnotation *)textWidget setFont:font];
|
|
|
|
- }
|
|
|
|
- textWidget.isMultiline = [sud boolForKey:@"SKAnnotationTextMultilineKey"];
|
|
|
|
|
|
+ CPDFTextWidgetAnnotation *textWidget = [[CPDFTextWidgetAnnotation alloc] initWithKMNoteBounds:bounds document:self.document];
|
|
newAnnotation = textWidget;
|
|
newAnnotation = textWidget;
|
|
}
|
|
}
|
|
break;
|
|
break;
|