From 9c8831244062202e9066b97be7082e72e1194866 Mon Sep 17 00:00:00 2001 From: Boris DuĊĦek Date: Fri, 9 Aug 2013 08:41:42 +0200 Subject: fdo#67680: Impossible to search for text attributes with VoiceOver Change-Id: I02ae12233aa37830106eeffd16876670413f4627 Reviewed-on: https://gerrit.libreoffice.org/5334 Reviewed-by: Norbert Thiebaud Tested-by: Norbert Thiebaud --- vcl/aqua/source/a11y/aqua11ytextwrapper.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vcl/aqua/source') diff --git a/vcl/aqua/source/a11y/aqua11ytextwrapper.mm b/vcl/aqua/source/a11y/aqua11ytextwrapper.mm index 4d4b75cfe45d..ab02eaf7ef3a 100644 --- a/vcl/aqua/source/a11y/aqua11ytextwrapper.mm +++ b/vcl/aqua/source/a11y/aqua11ytextwrapper.mm @@ -108,13 +108,13 @@ using namespace ::rtl; +(id)sharedTextUIElementsAttributeForElement:(AquaA11yWrapper *)wrapper { (void)wrapper; - return [ [ NSArray alloc ] init ]; // unsupported + return [NSArray arrayWithObject:wrapper]; } +(id)sharedCharacterRangeAttributeForElement:(AquaA11yWrapper *)wrapper { (void)wrapper; - return [ NSValue valueWithRange: NSMakeRange ( 0, 0 ) ]; // unsupported + return [ NSValue valueWithRange: NSMakeRange ( 0, [wrapper accessibleText]->getCharacterCount() ) ]; } +(void)addAttributeNamesTo:(NSMutableArray *)attributeNames { -- cgit