summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorBoris Dušek <me@dusek.me>2013-08-09 08:41:42 +0200
committerTor Lillqvist <tml@iki.fi>2013-08-20 13:22:49 +0000
commit788d11aee3b59bb8428beae231d85f0c7d0235ce (patch)
tree9089bae060efbe43603df8fee9209e1bb5df9dc7 /vcl
parent30d96626c51282b172a3c3f48f8b01ee137dfd08 (diff)
fdo#67680: Impossible to search for text attributes with VoiceOver
Change-Id: I02ae12233aa37830106eeffd16876670413f4627 Reviewed-on: https://gerrit.libreoffice.org/5334 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/5494 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/aqua/source/a11y/aqua11ytextwrapper.mm4
1 files changed, 2 insertions, 2 deletions
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 {