diff options
author | Andreas Bille <abi@openoffice.org> | 2003-03-31 12:50:04 +0000 |
---|---|---|
committer | Andreas Bille <abi@openoffice.org> | 2003-03-31 12:50:04 +0000 |
commit | fe1a3f51a4df02d56cab503eee57808c07a6bf99 (patch) | |
tree | 3f59b62dbb6e047f588a17421969beaf245961f6 /embedserv | |
parent | d2eec04f8b8a0df85863ed74db6acce5051034e1 (diff) |
#i2822# now poping up from minimzed window after double clicking in container
Diffstat (limited to 'embedserv')
-rw-r--r-- | embedserv/source/embed/docholder.cxx | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/embedserv/source/embed/docholder.cxx b/embedserv/source/embed/docholder.cxx index 5760987db7e8..dbfa9e3f814f 100644 --- a/embedserv/source/embed/docholder.cxx +++ b/embedserv/source/embed/docholder.cxx @@ -2,9 +2,9 @@ * * $RCSfile: docholder.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: abi $ $Date: 2003-03-27 16:18:27 $ + * last change: $Author: abi $ $Date: 2003-03-31 13:50:04 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -94,6 +94,9 @@ #ifndef _COM_SUN_STAR_FRAME_XDISPATCHPROVIDERINTERCEPTION_HPP_ #include <com/sun/star/frame/XDispatchProviderInterception.hpp> #endif +#ifndef _COM_SUN_STAR_AWT_XTOPWINDOW_HPP_ +#include <com/sun/star/awt/XTopWindow.hpp> +#endif #ifndef _OSL_DIAGNOSE_H_ #include <osl/diagnose.h> #endif @@ -252,8 +255,13 @@ uno::Reference< frame::XFrame > DocumentHolder::DocumentFrame() void DocumentHolder::show() { - if(m_xFrame.is()) + if(m_xFrame.is()) { m_xFrame->activate(); + uno::Reference<awt::XTopWindow> xTopWindow( + m_xFrame->getContainerWindow(),uno::UNO_QUERY); + if(xTopWindow.is()) + xTopWindow->toFront(); + } else { uno::Reference<frame::XComponentLoader> xComponentLoader( DocumentFrame(),uno::UNO_QUERY); |