1 Index: sfx2/source/control/bindings.cxx
2 ===================================================================
3 RCS file: /cvs/framework/sfx2/source/control/bindings.cxx,v
4 retrieving revision 1.25
5 diff -u -p -u -r1.25 bindings.cxx
6 --- sfx2/source/control/bindings.cxx 28 May 2003 13:25:06 -0000 1.25
7 +++ sfx2/source/control/bindings.cxx 28 Aug 2003 13:04:31 -0000
8 @@ -2624,11 +2624,17 @@ SfxItemState SfxBindings::QueryState( sa
9 pDisp = (SfxOfficeDispatch*)(nImplementation);
12 - if ( !pDisp || pDisp->IsInterceptDispatch() )
13 + if ( !pDisp || pDisp->IsInterceptDispatch() && pCache)
15 SfxItemState eState = SFX_ITEM_SET;
16 SfxPoolItem *pItem=NULL;
17 - BindDispatch_Impl *pBind = new BindDispatch_Impl( xDisp, aURL, NULL );
18 + SfxStateCache *pTmpCache = NULL;
20 + pTmpCache = new SfxStateCache( nSlot );
24 + BindDispatch_Impl *pBind = new BindDispatch_Impl( xDisp, aURL, pCache );
26 xDisp->addStatusListener( pBind, aURL );
27 if ( !pBind->GetStatus().IsEnabled )
28 @@ -2668,6 +2674,8 @@ SfxItemState SfxBindings::QueryState( sa