Revision: 3814
http://skim-app.svn.sourceforge.net/skim-app/?rev=3814&view=rev
Author: hofman
Date: 2008-04-24 12:04:11 -0700 (Thu, 24 Apr 2008)
Log Message:
-----------
Implement Enabled attribute in annotation classes.
Modified Paths:
--------------
trunk/PDFAnnotation_SKExtensions.m
trunk/SKAccessibilityPDFAnnotationElement.m
trunk/SKPDFAnnotationFreeText.m
trunk/SKPDFAnnotationNote.m
Modified: trunk/PDFAnnotation_SKExtensions.m
===================================================================
--- trunk/PDFAnnotation_SKExtensions.m 2008-04-24 18:57:06 UTC (rev 3813)
+++ trunk/PDFAnnotation_SKExtensions.m 2008-04-24 19:04:11 UTC (rev 3814)
@@ -574,6 +574,10 @@
return [self contents];
}
+- (id)accessibilityEnabledAttribute {
+ return [NSNumber numberWithBool:NO];
+}
+
@end
#pragma mark -
@@ -627,4 +631,8 @@
return [[[self page] selectionForRect:NSInsetRect([self bounds], -3.0,
-3.0)] string];
}
+- (id)accessibilityEnabledAttribute {
+ return [NSNumber numberWithBool:YES];
+}
+
@end
Modified: trunk/SKAccessibilityPDFAnnotationElement.m
===================================================================
--- trunk/SKAccessibilityPDFAnnotationElement.m 2008-04-24 18:57:06 UTC (rev
3813)
+++ trunk/SKAccessibilityPDFAnnotationElement.m 2008-04-24 19:04:11 UTC (rev
3814)
@@ -98,8 +98,6 @@
return [NSAccessibilityUnignoredAncestor(parent)
accessibilityAttributeValue:NSAccessibilityTopLevelUIElementAttribute];
} else if ([attribute isEqualToString:NSAccessibilityFocusedAttribute]) {
return [NSNumber numberWithBool:[parent
isAnnotationFocused:annotation]];
- } else if ([attribute isEqualToString:NSAccessibilityEnabledAttribute]) {
- return [NSNumber numberWithBool:[annotation isEditable] || [annotation
isLink]];
} else if ([attribute isEqualToString:NSAccessibilityPositionAttribute]) {
return [NSValue valueWithPoint:[parent
screenRectForAnnotation:annotation].origin];
} else if ([attribute isEqualToString:NSAccessibilitySizeAttribute]) {
Modified: trunk/SKPDFAnnotationFreeText.m
===================================================================
--- trunk/SKPDFAnnotationFreeText.m 2008-04-24 18:57:06 UTC (rev 3813)
+++ trunk/SKPDFAnnotationFreeText.m 2008-04-24 19:04:11 UTC (rev 3814)
@@ -200,6 +200,10 @@
return [NSValue valueWithRange:NSMakeRange(0, [[self
accessibilityValueAttribute] length])];
}
+- (id)accessibilityEnabledAttribute {
+ return [NSNumber numberWithBool:YES];
+}
+
@end
#pragma mark -
Modified: trunk/SKPDFAnnotationNote.m
===================================================================
--- trunk/SKPDFAnnotationNote.m 2008-04-24 18:57:06 UTC (rev 3813)
+++ trunk/SKPDFAnnotationNote.m 2008-04-24 19:04:11 UTC (rev 3814)
@@ -322,6 +322,10 @@
return [[self type] typeName];
}
+- (id)accessibilityEnabledAttribute {
+ return [NSNumber numberWithBool:YES];
+}
+
@end
#pragma mark -
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit