diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2005-09-23 14:45:24 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2005-09-23 14:45:24 +0000 |
commit | d679970d0db625f24963c26595431b5d168ee13f (patch) | |
tree | 12a2039dd6cf934d439e48a8689d984c6f890376 /embedserv/source/embed/docholder.cxx | |
parent | fd73fd45df20075685f36754b267941f2ba61cb5 (diff) |
INTEGRATION: CWS fwk20 (1.17.4); FILE MERGED
2005/08/24 14:05:51 cd 1.17.4.1: #i52713# Make layout manager visible/invisible in OLE activate/deactivate to notify status indicator that it shouldn't make window visible again
Diffstat (limited to 'embedserv/source/embed/docholder.cxx')
-rw-r--r-- | embedserv/source/embed/docholder.cxx | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/embedserv/source/embed/docholder.cxx b/embedserv/source/embed/docholder.cxx index f6ca76600bb1..ca6a6ca585a4 100644 --- a/embedserv/source/embed/docholder.cxx +++ b/embedserv/source/embed/docholder.cxx @@ -4,9 +4,9 @@ * * $RCSfile: docholder.cxx,v $ * - * $Revision: 1.18 $ + * $Revision: 1.19 $ * - * last change: $Author: rt $ $Date: 2005-09-08 18:51:15 $ + * last change: $Author: hr $ $Date: 2005-09-23 15:45:24 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -512,6 +512,13 @@ HRESULT DocumentHolder::InPlaceActivate( } } + // TODO/cd: Workaround for status indicator bug. It always makes the + // document window visible, when someone tries to use the status + // indicator. As we save our document when we get the deactivation + // from OLE this conflict to hide floating windows. + if(m_xLayoutManager.is()) + m_xLayoutManager->setVisible(true); + // get document border and resize rects according to border GetDocumentBorder( &m_aBorder ); SetObjectRects( &rcPos, &rcClip ); @@ -546,6 +553,13 @@ void DocumentHolder::InPlaceDeactivate(void) SetParent(m_hWndxWinCont,0); } + // TODO/cd: Workaround for status indicator bug. It always makes the + // document window visible, when someone tries to use the status + // indicator. As we save our document when we get the deactivation + // from OLE this conflict to hide floating windows. + if (m_xLayoutManager.is()) + m_xLayoutManager->setVisible(false); + if (NULL!=m_pIOleIPSite) m_pIOleIPSite->OnInPlaceDeactivate(); |