diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2003-04-11 16:31:17 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2003-04-11 16:31:17 +0000 |
commit | 41f5d679730f935bd27e409c6b03ebec99bc337f (patch) | |
tree | d6d0b76439fe16b5eee651820d026c2516a67160 /vcl/source/window/wrkwin.cxx | |
parent | ca660713c1d5f735095dbe1ba382985a382959c6 (diff) |
INTEGRATION: CWS vcl07 (1.5.6.1.44); FILE MERGED
2003/03/28 11:58:39 pl 1.5.6.1.44.2: #108089# reregister DnD after exchanging system window
2003/03/24 14:34:12 pl 1.5.6.1.44.1: #108089# implement SetPluginParent
Diffstat (limited to 'vcl/source/window/wrkwin.cxx')
-rw-r--r-- | vcl/source/window/wrkwin.cxx | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/vcl/source/window/wrkwin.cxx b/vcl/source/window/wrkwin.cxx index fe39754cfe0d..2196ec668cd2 100644 --- a/vcl/source/window/wrkwin.cxx +++ b/vcl/source/window/wrkwin.cxx @@ -2,9 +2,9 @@ * * $RCSfile: wrkwin.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: hr $ $Date: 2003-03-27 17:58:24 $ + * last change: $Author: vg $ $Date: 2003-04-11 17:31:17 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -349,3 +349,22 @@ BOOL WorkWindow::IsMinimized() const mpFrame->GetWindowState(&aState); return (( aState.mnState & SAL_FRAMESTATE_MINIMIZED ) != 0); } + +// ----------------------------------------------------------------------- + +BOOL WorkWindow::SetPluginParent( SystemParentData* pParent ) +{ + DBG_ASSERT( ! mbPresentationMode && ! mbFullScreenMode, "SetPluginParent in fullscreen or presentation mode !" ); + + bool bWasDnd = Window::ImplStopDnd(); + + BOOL bShown = IsVisible(); + Show( FALSE ); + BOOL bRet = mpFrame->SetPluginParent( pParent ); + Show( bShown ); + + if( bWasDnd ) + Window::ImplStartDnd(); + + return bRet; +} |