[Libreoffice-commits] core.git: Branch 'libreoffice-5-1' - vcl/unx

pasqual milvaques pasqual.milvaques at gmail.com
Mon Jan 4 09:04:46 PST 2016


 vcl/unx/gtk/a11y/atkwrapper.cxx |   18 +++++++-----------
 1 file changed, 7 insertions(+), 11 deletions(-)

New commits:
commit fe2c3a01f55afd48149ff801b0f1acec7a7f6856
Author: pasqual milvaques <pasqual.milvaques at gmail.com>
Date:   Wed Dec 2 18:24:23 2015 +0100

    tdf#39944: Fix mapping additional a11y roles to ATK
    
    Fix more roles according to information found in https://bugzilla.gnome.org/show_bug.cgi?id=732702
    
    Change-Id: Ibe260784f12b1cf1f6baff490f400526d1c796d2
    Reviewed-on: https://gerrit.libreoffice.org/20369
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Jacobo Aragunde PĂ©rez <jaragunde at igalia.com>
    (cherry picked from commit 4c4f096a81e1643646f72cab17fb94610a346961)
    Reviewed-on: https://gerrit.libreoffice.org/20985
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>

diff --git a/vcl/unx/gtk/a11y/atkwrapper.cxx b/vcl/unx/gtk/a11y/atkwrapper.cxx
index 2c3e78b..6295240 100644
--- a/vcl/unx/gtk/a11y/atkwrapper.cxx
+++ b/vcl/unx/gtk/a11y/atkwrapper.cxx
@@ -214,7 +214,7 @@ static AtkRole mapToAtkRole( sal_Int16 nRole )
         ATK_ROLE_FILLER,
         ATK_ROLE_FONT_CHOOSER,
         ATK_ROLE_FOOTER,
-        ATK_ROLE_TEXT,            // FOOTNOTE - registered below
+        ATK_ROLE_UNKNOWN,         // FOOTNOTE - registered below
         ATK_ROLE_FRAME,
         ATK_ROLE_GLASS_PANE,
         ATK_ROLE_IMAGE,           // GRAPHIC
@@ -246,16 +246,16 @@ static AtkRole mapToAtkRole( sal_Int16 nRole )
         ATK_ROLE_ROOT_PANE,
         ATK_ROLE_SCROLL_BAR,
         ATK_ROLE_SCROLL_PANE,
-        ATK_ROLE_UNKNOWN,        // SHAPE - registered below
+        ATK_ROLE_PANEL,         // SHAPE
         ATK_ROLE_SEPARATOR,
         ATK_ROLE_SLIDER,
-        ATK_ROLE_SPIN_BUTTON,    // SPIN_BOX ?
+        ATK_ROLE_SPIN_BUTTON,   // SPIN_BOX ?
         ATK_ROLE_SPLIT_PANE,
         ATK_ROLE_STATUSBAR,
         ATK_ROLE_TABLE,
         ATK_ROLE_TABLE_CELL,
         ATK_ROLE_TEXT,
-        ATK_ROLE_INTERNAL_FRAME, // TEXT_FRAME - registered below
+        ATK_ROLE_PANEL,         // TEXT_FRAME
         ATK_ROLE_TOGGLE_BUTTON,
         ATK_ROLE_TOOL_BAR,
         ATK_ROLE_TOOL_TIP,
@@ -309,13 +309,9 @@ static AtkRole mapToAtkRole( sal_Int16 nRole )
         roleMap[accessibility::AccessibleRole::IMAGE_MAP] = registerRole("image map");
         roleMap[accessibility::AccessibleRole::TREE_ITEM] = registerRole("tree item");
         roleMap[accessibility::AccessibleRole::HYPER_LINK] = registerRole("link");
-
-        // these don't exist in ATK yet
-        roleMap[accessibility::AccessibleRole::END_NOTE] = registerRole("end note");
-        roleMap[accessibility::AccessibleRole::FOOTNOTE] = registerRole("foot note");
-        roleMap[accessibility::AccessibleRole::SHAPE] = registerRole("shape");
-        roleMap[accessibility::AccessibleRole::TEXT_FRAME] = registerRole("text frame");
-        roleMap[accessibility::AccessibleRole::NOTE] = registerRole("note");
+        roleMap[accessibility::AccessibleRole::END_NOTE] = registerRole("comment");
+        roleMap[accessibility::AccessibleRole::FOOTNOTE] = registerRole("comment");
+        roleMap[accessibility::AccessibleRole::NOTE] = registerRole("comment");
 
         initialized = true;
     }


More information about the Libreoffice-commits mailing list