summaryrefslogtreecommitdiff
path: root/sfx2/source/view
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@sun.com>2009-11-23 20:58:14 +0100
committerFrank Schoenheit [fs] <frank.schoenheit@sun.com>2009-11-23 20:58:14 +0100
commit56a09166696e29083638325b34c6b98167592ce0 (patch)
tree563602c9f4d482b4f3cf38e6eeea8a71b01c355a /sfx2/source/view
parent3a98b758e51d9dd66574ecbb7efe508a5f3ee253 (diff)
parent88cb329eca47476bee17baa4eff507697dd9d95a (diff)
merge
Diffstat (limited to 'sfx2/source/view')
-rw-r--r--sfx2/source/view/topfrm.cxx48
1 files changed, 0 insertions, 48 deletions
diff --git a/sfx2/source/view/topfrm.cxx b/sfx2/source/view/topfrm.cxx
index eaed659e6beb..0f434a115fd8 100644
--- a/sfx2/source/view/topfrm.cxx
+++ b/sfx2/source/view/topfrm.cxx
@@ -307,42 +307,6 @@ void SfxTopWindow_Impl::DoResize()
pFrame->Resize();
}
-class StopButtonTimer_Impl : public Timer
-{
- BOOL bState;
- SfxViewFrame* pFrame;
-protected:
- virtual void Timeout();
-public:
- StopButtonTimer_Impl( SfxViewFrame*);
- void SetButtonState( BOOL bStateP );
- BOOL GetButtonState() const { return bState; }
-};
-
-StopButtonTimer_Impl::StopButtonTimer_Impl( SfxViewFrame*p)
- : bState( FALSE )
- , pFrame( p )
-{
- SetTimeout( 200 );
-}
-
-void StopButtonTimer_Impl::SetButtonState( BOOL bStateP )
-{
- if( bStateP )
- {
- bState = TRUE;
- Stop();
- }
- else if( bState )
- Start();
-}
-
-void StopButtonTimer_Impl::Timeout()
-{
- bState = FALSE;
- pFrame->GetBindings().Invalidate( SID_BROWSE_STOP );
-}
-
class SfxTopViewWin_Impl : public Window
{
friend class SfxInternalFrame;
@@ -391,12 +355,10 @@ public:
sal_Bool bActive;
Window* pWindow;
String aFactoryName;
- StopButtonTimer_Impl* pStopButtonTimer;
SfxTopViewFrame_Impl()
: bActive( sal_False )
, pWindow( 0 )
- , pStopButtonTimer( 0 )
{}
};
@@ -1148,7 +1110,6 @@ SfxTopViewFrame::SfxTopViewFrame
pCloser = 0;
pImp = new SfxTopViewFrame_Impl;
- pImp->pStopButtonTimer = new StopButtonTimer_Impl(this);
//(mba)/task if ( !pFrame->GetTask() )
{
@@ -1230,7 +1191,6 @@ SfxTopViewFrame::~SfxTopViewFrame()
KillDispatcher_Impl();
delete pImp->pWindow;
- delete pImp->pStopButtonTimer;
delete pImp;
}
@@ -1475,10 +1435,6 @@ void SfxTopViewFrame::INetExecute_Impl( SfxRequest &rRequest )
*/
break;
}
- case SID_BROWSE_STOP:
- OSL_ENSURE( false, "SID_BROWSE_STOP is dead!" );
- break;
-
case SID_FOCUSURLBOX:
{
SfxStateCache *pCache = GetBindings().GetAnyStateCache_Impl( SID_OPENURL );
@@ -1509,10 +1465,6 @@ void SfxTopViewFrame::INetState_Impl( SfxItemSet &rItemSet )
sal_Bool bEmbedded = pDocSh && pDocSh->GetCreateMode() == SFX_CREATE_MODE_EMBEDDED;
if ( !pDocSh || bPseudo || bEmbedded || !pDocSh->HasName() )
rItemSet.DisableItem( SID_CREATELINK );
-
- pImp->pStopButtonTimer->SetButtonState( FALSE );
- if ( !pImp->pStopButtonTimer->GetButtonState() )
- rItemSet.DisableItem( SID_BROWSE_STOP );
}
void SfxTopViewFrame::SetZoomFactor( const Fraction &rZoomX, const Fraction &rZoomY )