summaryrefslogtreecommitdiff
path: root/toolkit/source
diff options
context:
space:
mode:
authorThomas Benisch <tbe@openoffice.org>2002-07-25 10:12:34 +0000
committerThomas Benisch <tbe@openoffice.org>2002-07-25 10:12:34 +0000
commiteb7d6919a88a7b08f523f60cafdd26d89b1ed816 (patch)
treee452ac047039c87688c1581f9a2d84cd8aa5c04c /toolkit/source
parent2d2de7d338389b2743a1e7ea1a5ed2e7665c190b (diff)
#100195# removed class VCLXMenuWindow
Diffstat (limited to 'toolkit/source')
-rw-r--r--toolkit/source/awt/vclxwindows.cxx104
1 files changed, 2 insertions, 102 deletions
diff --git a/toolkit/source/awt/vclxwindows.cxx b/toolkit/source/awt/vclxwindows.cxx
index 8f1617144af6..ab3e4a4cd05f 100644
--- a/toolkit/source/awt/vclxwindows.cxx
+++ b/toolkit/source/awt/vclxwindows.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: vclxwindows.cxx,v $
*
- * $Revision: 1.31 $
+ * $Revision: 1.32 $
*
- * last change: $Author: ssa $ $Date: 2002-07-19 11:39:30 $
+ * last change: $Author: tbe $ $Date: 2002-07-25 11:12:34 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -4369,106 +4369,6 @@ void VCLXPatternField::setProperty( const ::rtl::OUString& PropertyName, const :
}
// ----------------------------------------------------
-// class VCLXMenuWindow
-// ----------------------------------------------------
-
-VCLXMenuWindow::VCLXMenuWindow()
- :m_pMenu( 0 )
- ,m_nIndexInParent( -1 )
- ,m_xParent( 0 )
-{
-}
-
-VCLXMenuWindow::VCLXMenuWindow( Menu* pMenu, sal_Int32 nIndexInParent, const ::com::sun::star::uno::Reference< ::drafts::com::sun::star::accessibility::XAccessible >& rxParent )
- :m_pMenu( 0 )
- ,m_nIndexInParent( nIndexInParent )
- ,m_xParent( rxParent )
-{
- SetMenu( pMenu );
-}
-
-VCLXMenuWindow::~VCLXMenuWindow()
-{
- SetMenu( 0 );
-}
-
-void VCLXMenuWindow::SetMenu( Menu* pMenu )
-{
- if ( m_pMenu != pMenu )
- {
- if ( m_pMenu )
- {
- m_pMenu->RemoveEventListener( LINK( this, VCLXMenuWindow, MenuEventListener ) );
-
- ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent> xComponent( GetAccessibleContext().get(), ::com::sun::star::uno::UNO_QUERY );
- if ( xComponent.is() )
- xComponent->dispose();
- }
-
- m_pMenu = pMenu;
-
- if ( m_pMenu )
- m_pMenu->AddEventListener( LINK( this, VCLXMenuWindow, MenuEventListener ) );
- }
-}
-
-IMPL_LINK( VCLXMenuWindow, MenuEventListener, VclSimpleEvent*, pEvent )
-{
- DBG_ASSERT( pEvent && pEvent->ISA( VclMenuEvent ), "VCLXMenuWindow - Unknown MenuEvent!" );
- if ( pEvent && pEvent->ISA( VclMenuEvent ) )
- {
- DBG_ASSERT( ((VclMenuEvent*)pEvent)->GetMenu(), "VCLXMenuWindow - Menu?" );
- ProcessMenuEvent( *(VclMenuEvent*)pEvent );
- }
- return 0;
-}
-
-void VCLXMenuWindow::ProcessMenuEvent( const VclMenuEvent& rVclMenuEvent )
-{
- switch ( rVclMenuEvent.GetId() )
- {
- case VCLEVENT_OBJECT_DYING:
- {
- SetMenu( 0 );
- }
- break;
- default:
- {
- }
- break;
- }
-}
-
-void VCLXMenuWindow::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
-{
- switch ( rVclWindowEvent.GetId() )
- {
- case VCLEVENT_WINDOW_MENUBAR:
- {
- SetMenu( (Menu*)rVclWindowEvent.GetData() );
- }
- break;
- default:
- {
- VCLXWindow::ProcessWindowEvent( rVclWindowEvent );
- }
- break;
- }
-}
-
-
-::com::sun::star::uno::Reference< ::drafts::com::sun::star::accessibility::XAccessibleContext > VCLXMenuWindow::CreateAccessibleContext()
-{
- DBG_ASSERT( m_pMenu, "VCLXMenuWindow::CreateAccessibleContext: no menu!" );
-
- return (::drafts::com::sun::star::accessibility::XAccessibleContext*) new VCLXAccessibleMenu_old( this, m_pMenu, m_nIndexInParent, m_xParent );
-}
-
-// ::com::sun::star::lang::XUnoTunnel
-IMPL_XUNOTUNNEL2( VCLXMenuWindow, VCLXWindow )
-
-
-// ----------------------------------------------------
// class VCLXToolBox
// ----------------------------------------------------
VCLXToolBox::VCLXToolBox()