summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/appdata.cxx
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2001-01-17 15:14:14 +0000
committerMathias Bauer <mba@openoffice.org>2001-01-17 15:14:14 +0000
commit6906af87d79e2863e05811337540cfe7a4c8cd0c (patch)
tree1063d91d674a42a68f5ffc4a61465c95cb5f340a /sfx2/source/appl/appdata.cxx
parent72374de679201d9a617b837fb4ed040c9527a7ac (diff)
#81454#: Notify for CancellableHints, because SfxProgress uses global CancelManaqer
Diffstat (limited to 'sfx2/source/appl/appdata.cxx')
-rw-r--r--sfx2/source/appl/appdata.cxx23
1 files changed, 15 insertions, 8 deletions
diff --git a/sfx2/source/appl/appdata.cxx b/sfx2/source/appl/appdata.cxx
index 5b8fcd98e34d..4904d243c413 100644
--- a/sfx2/source/appl/appdata.cxx
+++ b/sfx2/source/appl/appdata.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: appdata.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: sb $ $Date: 2000-11-09 12:59:19 $
+ * last change: $Author: mba $ $Date: 2001-01-17 16:14:14 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -215,13 +215,20 @@ SfxDocumentTemplates* SfxAppData_Impl::GetDocumentTemplates()
void SfxAppData_Impl::Notify( SfxBroadcaster &rBC, const SfxHint &rHint )
{
-#if SUPD<613//MUSTINI
- const SfxIniManagerHint* pIniManHint = PTR_CAST(SfxIniManagerHint, &rHint);
- if ( pIniManHint && pIniManHint->GetIniKey() == SFX_KEY_DONTHIDE_DISABLEDENTRIES )
+ SfxSimpleHint* pHint = PTR_CAST( SfxSimpleHint, &rHint );
+ if( pHint && pHint->GetId() == SFX_HINT_CANCELLABLE )
{
- sal_Bool bDontHide = (sal_Bool)(sal_uInt16)pIniManHint->GetNewValue().ToInt32();
- UpdateApplicationSettings( bDontHide );
+ // vom Cancel-Manager
+ for ( SfxViewFrame *pFrame = SfxViewFrame::GetFirst();
+ pFrame;
+ pFrame = SfxViewFrame::GetNext(*pFrame) )
+ {
+ SfxBindings &rBind = pFrame->GetBindings();
+ rBind.Invalidate( SID_BROWSE_STOP );
+ if ( !rBind.IsInRegistrations() )
+ rBind.Update( SID_BROWSE_STOP );
+ rBind.Invalidate( SID_BROWSE_STOP );
+ }
}
-#endif
}