summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-17 16:57:44 +0000
committerKohei Yoshida <libreoffice@kohei.us>2014-02-21 00:56:41 +0000
commit47ff82608b065c3c0d98557583bb822b20fb4081 (patch)
tree61b2827db80ae326f30b0598bb7490bb86a5d046
parentfb4131ba8f3fb2a00dccf8cf24bf78caa91b680b (diff)
Resolves: fdo#74284 use AccessibleRole::PANEL for VclBoxes under windows
(cherry picked from commit 685ec1899435037205d98a102a32ca8b6a4836d0) Change-Id: Ic8c743c2646c8610b3d90425024413b40dfdab13 Reviewed-on: https://gerrit.libreoffice.org/8105 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Reviewed-by: Michael Stahl <mstahl@redhat.com> Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Tested-by: Kohei Yoshida <libreoffice@kohei.us>
-rw-r--r--vcl/source/window/layout.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx
index 35e76a468db0..8d8ab0d29369 100644
--- a/vcl/source/window/layout.cxx
+++ b/vcl/source/window/layout.cxx
@@ -322,7 +322,13 @@ bool VclBox::set_property(const OString &rKey, const OString &rValue)
sal_uInt16 VclBox::getDefaultAccessibleRole() const
{
+#if defined(WNT)
+ //fdo#74284 call Boxes Panels, keep then as "Filler" under
+ //at least Linux seeing as that's what Gtk does for GtkBoxes
+ return com::sun::star::accessibility::AccessibleRole::PANEL;
+#else
return com::sun::star::accessibility::AccessibleRole::FILLER;
+#endif
}
#define DEFAULT_CHILD_MIN_WIDTH 85