Kaydet (Commit) a669de9c authored tarafından Niklas Johansson's avatar Niklas Johansson Kaydeden (comit) Caolán McNamara

[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/12985Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst e24bd9ab
......@@ -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 );
......
......@@ -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:
......
......@@ -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 ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment