diff options
author | Niklas Johansson <sleeping.pillow@gmail.com> | 2014-11-20 12:01:44 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-20 11:26:32 +0000 |
commit | a669de9c151692a8c24929641a7c12617b1bf458 (patch) | |
tree | 842baeef77798eb00e89621568878aadefef328c /vcl/osx | |
parent | e24bd9abb27801ea8e6d2d275aa23060ae798012 (diff) |
[Accessibility] Make the sidebar a bit accessible
The accessibility of the sidebar is heavily built on PANEL's.
Since A11y on mac ignored panels it did not pan out well.
Also the title was removed from AXGroupRole but is needed
to announce the different panels of the sidebar.
This might have some unwanted effects on other parts of
LibreOffice since a lot of things are built up from
AccessibleRole::PANEL.
Change-Id: I095d26b3c89e2c0403d3267baa53f3bec5e07662
Reviewed-on: https://gerrit.libreoffice.org/12985
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/osx')
-rw-r--r-- | vcl/osx/a11yrolehelper.mm | 2 | ||||
-rw-r--r-- | vcl/osx/a11ywrapper.mm | 2 | ||||
-rw-r--r-- | vcl/osx/a11ywrappergroup.mm | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/vcl/osx/a11yrolehelper.mm b/vcl/osx/a11yrolehelper.mm index 45423db73327..8d14fc77ab76 100644 --- a/vcl/osx/a11yrolehelper.mm +++ b/vcl/osx/a11yrolehelper.mm @@ -96,7 +96,7 @@ using namespace ::com::sun::star::uno; MAP( AccessibleRole::SEPARATOR, NSAccessibilitySplitterRole ); // FIXME MAP( AccessibleRole::SLIDER, NSAccessibilitySliderRole ); MAP( AccessibleRole::SPIN_BOX, NSAccessibilityUnknownRole ); // FIXME - MAP( AccessibleRole::SPLIT_PANE, NSAccessibilitySplitterRole ); + MAP( AccessibleRole::SPLIT_PANE, NSAccessibilitySplitGroupRole ); MAP( AccessibleRole::STATUS_BAR, NSAccessibilityGroupRole ); // FIXME MAP( AccessibleRole::TABLE, NSAccessibilityTableRole ); MAP( AccessibleRole::TABLE_CELL, NSAccessibilityTextFieldRole ); diff --git a/vcl/osx/a11ywrapper.mm b/vcl/osx/a11ywrapper.mm index 4e19e1d2cbce..aca05cb5d1a8 100644 --- a/vcl/osx/a11ywrapper.mm +++ b/vcl/osx/a11ywrapper.mm @@ -718,7 +718,7 @@ static std::ostream &operator<<(std::ostream &s, NSPoint point) { BOOL ignored = NO; sal_Int16 nRole = [ self accessibleContext ] -> getAccessibleRole(); switch ( nRole ) { - case AccessibleRole::PANEL: + //case AccessibleRole::PANEL: case AccessibleRole::FRAME: case AccessibleRole::ROOT_PANE: case AccessibleRole::SEPARATOR: diff --git a/vcl/osx/a11ywrappergroup.mm b/vcl/osx/a11ywrappergroup.mm index 3eb864fc7eb8..04c17a266f65 100644 --- a/vcl/osx/a11ywrappergroup.mm +++ b/vcl/osx/a11ywrappergroup.mm @@ -34,7 +34,7 @@ NSMutableArray * attributeNames = [ NSMutableArray arrayWithArray: [ super accessibilityAttributeNames ] ]; // Special Attributes and removing unwanted attributes depending on role [ attributeNames removeObjectsInArray: [ NSArray arrayWithObjects: - NSAccessibilityTitleAttribute, + // NSAccessibilityTitleAttribute, NSAccessibilityEnabledAttribute, NSAccessibilitySelectedChildrenAttribute, nil ] |