summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2007-06-27 14:16:54 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2007-06-27 14:16:54 +0000
commit05cb89cdd8db720aadedb45f3e8dae87a224fca6 (patch)
tree1f9825e98cea35721031684ce41d4ea1913cf99f /toolkit
parent65ece6afbffd5ced594a9f429f63bd4a08abc184 (diff)
INTEGRATION: CWS a11ysep (1.23.26); FILE MERGED
2006/10/05 11:30:13 fs 1.23.26.4: #i10000# 2006/09/21 21:32:18 fs 1.23.26.3: RESYNC: (1.24-1.29); FILE MERGED 2005/09/27 06:33:57 fs 1.23.26.2: RESYNC: (1.23-1.24); FILE MERGED 2005/03/07 08:04:24 fs 1.23.26.1: #i44293# A11Y implementations now provided by a factory (implemented in accessibility module)
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/helper/unowrapper.cxx33
1 files changed, 7 insertions, 26 deletions
diff --git a/toolkit/source/helper/unowrapper.cxx b/toolkit/source/helper/unowrapper.cxx
index 0e8cf01617d6..a97d27810368 100644
--- a/toolkit/source/helper/unowrapper.cxx
+++ b/toolkit/source/helper/unowrapper.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: unowrapper.cxx,v $
*
- * $Revision: 1.30 $
+ * $Revision: 1.31 $
*
- * last change: $Author: hr $ $Date: 2007-06-27 12:23:54 $
+ * last change: $Author: hr $ $Date: 2007-06-27 15:16:54 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -53,12 +53,6 @@
#include <toolkit/awt/vclxtopwindow.hxx>
#include <toolkit/awt/vclxgraphics.hxx>
-#ifndef _TOOLKIT_AWT_VCLXACCESSIBLEMENUBAR_HXX_
-#include <toolkit/awt/vclxaccessiblemenubar.hxx>
-#endif
-#ifndef _TOOLKIT_AWT_VCLXACCESSIBLEPOPUPMENU_HXX_
-#include <toolkit/awt/vclxaccessiblepopupmenu.hxx>
-#endif
#include "toolkit/dllapi.h"
#ifndef _SV_SVAPP_HXX
@@ -167,13 +161,13 @@ UnoWrapper::UnoWrapper( const ::com::sun::star::uno::Reference< ::com::sun::star
mxToolkit = rxToolkit;
}
-UnoWrapper::~UnoWrapper()
+void UnoWrapper::Destroy()
{
+ delete this;
}
-void UnoWrapper::Destroy()
+UnoWrapper::~UnoWrapper()
{
- delete this;
}
::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit> UnoWrapper::GetVCLToolkit()
@@ -348,21 +342,8 @@ void UnoWrapper::WindowDestroyed( Window* pWindow )
}
}
+// ----------------------------------------------------------------------------
::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > UnoWrapper::CreateAccessible( Menu* pMenu, sal_Bool bIsMenuBar )
{
- ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > xAcc;
-
- DBG_ASSERT( pMenu, "UnoWrapper::CreateAccessible: no menu!" );
- if ( pMenu )
- {
- OAccessibleMenuBaseComponent* pComp;
- if ( bIsMenuBar )
- pComp = new VCLXAccessibleMenuBar( pMenu );
- else
- pComp = new VCLXAccessiblePopupMenu( pMenu );
- pComp->SetStates();
- xAcc = pComp;
- }
-
- return xAcc;
+ return maAccessibleFactoryAccess.getFactory().createAccessible( pMenu, bIsMenuBar );
}