diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-01-22 10:20:15 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-01-22 16:29:40 +0000 |
commit | 9975c632c3bd142f295fc1d9b1fd6059c3a2dbcb (patch) | |
tree | 8497185c0c4564ecefb19fcba56e65d00d76da12 /vcl/source/window/layout.cxx | |
parent | 2a3a15fd73d119062228480c22056e9cc9e4d680 (diff) |
rework accessibility to be layout aware
Change-Id: I9f8ddfc5007dad6f090abae7e3e0a2d637da0b37
Diffstat (limited to 'vcl/source/window/layout.cxx')
-rw-r--r-- | vcl/source/window/layout.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx index ddf0a5bd27c6..5ebffdc884a7 100644 --- a/vcl/source/window/layout.cxx +++ b/vcl/source/window/layout.cxx @@ -7,6 +7,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include <com/sun/star/accessibility/AccessibleRole.hpp> #include <vcl/dialog.hxx> #include <vcl/layout.hxx> #include "window.h" @@ -21,6 +22,11 @@ VclContainer::VclContainer(Window *pParent, WinBits nStyle) SetBackground(); } +sal_uInt16 VclContainer::getDefaultAccessibleRole() const +{ + return com::sun::star::accessibility::AccessibleRole::PANEL; +} + Size VclContainer::GetOptimalSize() const { return calculateRequisition(); @@ -296,6 +302,11 @@ bool VclBox::set_property(const rtl::OString &rKey, const rtl::OString &rValue) return true; } +sal_uInt16 VclBox::getDefaultAccessibleRole() const +{ + return com::sun::star::accessibility::AccessibleRole::FILLER; +} + #define DEFAULT_CHILD_MIN_WIDTH 85 #define DEFAULT_CHILD_MIN_HEIGHT 27 |