diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-12-10 16:13:38 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-12-10 16:13:38 +0000 |
commit | 18fd4fef493ba46d53718306c79d136002938987 (patch) | |
tree | 3c389a042d57935f24bd36b58f5ba60105d9b0d4 | |
parent | 7ad7a666532f92c878ff97b64b2036309d220879 (diff) |
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
-rw-r--r-- | framework/source/layoutmanager/layoutmanager.cxx | 11 |
1 files 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 ); |