summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-05-28 14:13:59 +0000
committerOliver Bolte <obo@openoffice.org>2004-05-28 14:13:59 +0000
commit9e6352a20a5f3204e3cf191b4d823b455ec8aa2c (patch)
treee9e394609dd1f0fdfb412af1fe92ca6c767ca146 /sfx2
parent0951ac62f4bdd9c62498d0d37bbefbd82b6b34d8 (diff)
INTEGRATION: CWS tdocfixes1 (1.82.20); FILE MERGED
2004/05/07 14:03:28 kso 1.82.20.1: #i27380# : SfxViewFrame::ExecReload_Impl now sends SFX_EVENT_CLOSEDOC.
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/view/viewfrm.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index 1f7055278c8b..37badd44255d 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: viewfrm.cxx,v $
*
- * $Revision: 1.82 $
+ * $Revision: 1.83 $
*
- * last change: $Author: svesik $ $Date: 2004-04-21 12:21:00 $
+ * last change: $Author: obo $ $Date: 2004-05-28 15:13:59 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -886,6 +886,12 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq )
pView->GetDispatcher()->LockUI_Impl( sal_False );
}
+ if ( xNewObj.Is() )
+ {
+ // Propagate document closure.
+ SFX_APP()->NotifyEvent( SfxEventHint( SFX_EVENT_CLOSEDOC, xOldObj ) );
+ }
+
// als erledigt recorden
rReq.Done( sal_True );
rReq.SetReturnValue(SfxBoolItem(rReq.GetSlot(), sal_True));