From 18fd4fef493ba46d53718306c79d136002938987 Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Fri, 10 Dec 2004 16:13:38 +0000 Subject: INTEGRATION: CWS vclbetabugs01 (1.14.10); FILE MERGED 2004/12/07 13:12:55 ssa 1.14.10.1: #i37884# query visibility state right after setting corresponding listener --- framework/source/layoutmanager/layoutmanager.cxx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/framework/source/layoutmanager/layoutmanager.cxx b/framework/source/layoutmanager/layoutmanager.cxx index b78d84e8b27d..bfcc9859524a 100644 --- a/framework/source/layoutmanager/layoutmanager.cxx +++ b/framework/source/layoutmanager/layoutmanager.cxx @@ -2,9 +2,9 @@ * * $RCSfile: layoutmanager.cxx,v $ * - * $Revision: 1.14 $ + * $Revision: 1.15 $ * - * last change: $Author: obo $ $Date: 2004-11-17 13:20:16 $ + * last change: $Author: rt $ $Date: 2004-12-10 17:13:38 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -3219,6 +3219,13 @@ throw ( RuntimeException ) m_xContainerWindow = m_xDockingAreaAcceptor->getContainerWindow(); m_xContainerWindow->addWindowListener( Reference< css::awt::XWindowListener >( static_cast< OWeakObject* >( this ), UNO_QUERY )); + // #i37884# set initial visibility state - in the plugin case the container window is already shown + // and we get no notification anymore + vos::OGuard aGuard( Application::GetSolarMutex() ); + Window* pContainerWindow = VCLUnoHelper::GetWindow( m_xContainerWindow ); + if( pContainerWindow ) + m_bParentWindowVisible = pContainerWindow->IsVisible(); + css::uno::Reference< css::awt::XWindowPeer > xParent( m_xContainerWindow, UNO_QUERY ); xTopDockWindow = Reference< css::awt::XWindow >( implts_createToolkitWindow( xParent ), UNO_QUERY ); xBottomDockWindow = Reference< css::awt::XWindow >( implts_createToolkitWindow( xParent ), UNO_QUERY ); -- cgit