diff options
author | Peter Burow <pb@openoffice.org> | 2002-09-13 11:35:49 +0000 |
---|---|---|
committer | Peter Burow <pb@openoffice.org> | 2002-09-13 11:35:49 +0000 |
commit | ff09c4551e6c7746fb48b6c7cfc30915e3d25a6c (patch) | |
tree | 34a4e3f64d4e8182e229d16833ea45e8cd4fc6da /svtools/source/control/headbar.cxx | |
parent | 8532bf1aaa5e1c9f04683c641313b4934fdf4a81 (diff) |
fix: #102696# accessibility added
Diffstat (limited to 'svtools/source/control/headbar.cxx')
-rw-r--r-- | svtools/source/control/headbar.cxx | 32 |
1 files changed, 28 insertions, 4 deletions
diff --git a/svtools/source/control/headbar.cxx b/svtools/source/control/headbar.cxx index de908bcd9e3f..85f65b9487f7 100644 --- a/svtools/source/control/headbar.cxx +++ b/svtools/source/control/headbar.cxx @@ -2,9 +2,9 @@ * * $RCSfile: headbar.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: mt $ $Date: 2001-04-20 07:37:03 $ + * last change: $Author: pb $ $Date: 2002-09-13 12:35:49 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -61,6 +61,10 @@ #define _SV_HEADBAR_CXX +#ifndef _HEADBAR_HXX +#include <headbar.hxx> +#endif + #ifndef _TOOLS_DEBUG_HXX #include <tools/debug.hxx> #endif @@ -78,8 +82,8 @@ #include <vcl/image.hxx> #endif -#ifndef _HEADBAR_HXX -#include <headbar.hxx> +#ifndef _DRAFTS_COM_SUN_STAR_ACCESSIBILITY_XACCESSIBLE_HPP_ +#include <drafts/com/sun/star/accessibility/XAccessible.hpp> #endif // ======================================================================= @@ -1671,3 +1675,23 @@ Size HeaderBar::CalcWindowSizePixel() const return aSize; } + +::com::sun::star::uno::Reference< ::drafts::com::sun::star::accessibility::XAccessible > HeaderBar::CreateAccessible() +{ + if ( !mxAccessible.is() ) + { + if ( maCreateAccessibleHdl.IsSet() ) + maCreateAccessibleHdl.Call( this ); + + if ( !mxAccessible.is() ) + mxAccessible = Window::CreateAccessible(); + } + + return mxAccessible; +} + +void HeaderBar::SetAccessible( ::com::sun::star::uno::Reference< ::drafts::com::sun::star::accessibility::XAccessible > _xAccessible ) +{ + mxAccessible = _xAccessible; +} + |