diff options
author | Mikhail Voytenko <mav@openoffice.org> | 2011-01-17 13:20:22 +0100 |
---|---|---|
committer | Mikhail Voytenko <mav@openoffice.org> | 2011-01-17 13:20:22 +0100 |
commit | cd42389ad67b403a07a0dda8e2a6e213def49251 (patch) | |
tree | 51e19c743788a549502b7c801c64e11142103310 /sc/inc/refreshtimer.hxx | |
parent | 3d6a5a98cda10e18dacd96028f2bf0ec0b478988 (diff) |
removetooltypes01: #i112600# remove tooltypes from sc
Diffstat (limited to 'sc/inc/refreshtimer.hxx')
-rw-r--r-- | sc/inc/refreshtimer.hxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sc/inc/refreshtimer.hxx b/sc/inc/refreshtimer.hxx index 2a8512848ef0..4ad28d354568 100644 --- a/sc/inc/refreshtimer.hxx +++ b/sc/inc/refreshtimer.hxx @@ -43,7 +43,7 @@ class ScRefreshTimerControl { private: ::vos::OMutex aMutex; - USHORT nBlockRefresh; + sal_uInt16 nBlockRefresh; public: #if SC_REFRESHTIMER_CONTROL_LIST @@ -52,14 +52,14 @@ public: ScRefreshTimerControl() : nBlockRefresh(0) {} - void SetAllowRefresh( BOOL b ) + void SetAllowRefresh( sal_Bool b ) { if ( b && nBlockRefresh ) --nBlockRefresh; - else if ( !b && nBlockRefresh < (USHORT)(~0) ) + else if ( !b && nBlockRefresh < (sal_uInt16)(~0) ) ++nBlockRefresh; } - BOOL IsRefreshAllowed() const { return !nBlockRefresh; } + sal_Bool IsRefreshAllowed() const { return !nBlockRefresh; } ::vos::OMutex& GetMutex() { return aMutex; } }; @@ -73,7 +73,7 @@ public: ~ScRefreshTimerProtector() { if ( ppControl && *ppControl ) - (*ppControl)->SetAllowRefresh( TRUE ); + (*ppControl)->SetAllowRefresh( sal_True ); } }; @@ -107,7 +107,7 @@ private: public: ScRefreshTimer() : ppControl(0) { SetTimeout( 0 ); } - ScRefreshTimer( ULONG nSeconds ) : ppControl(0) + ScRefreshTimer( sal_uLong nSeconds ) : ppControl(0) { SetTimeout( nSeconds * 1000 ); Start(); @@ -124,10 +124,10 @@ public: return *this; } - BOOL operator==( const ScRefreshTimer& r ) const + sal_Bool operator==( const ScRefreshTimer& r ) const { return GetTimeout() == r.GetTimeout(); } - BOOL operator!=( const ScRefreshTimer& r ) const + sal_Bool operator!=( const ScRefreshTimer& r ) const { return !ScRefreshTimer::operator==( r ); } void StartRefreshTimer() @@ -143,13 +143,13 @@ public: void SetRefreshHandler( const Link& rLink ) { SetTimeoutHdl( rLink ); } - ULONG GetRefreshDelay() const + sal_uLong GetRefreshDelay() const { return GetTimeout() / 1000; } void StopRefreshTimer() { Stop(); } - SC_DLLPUBLIC virtual void SetRefreshDelay( ULONG nSeconds ); + SC_DLLPUBLIC virtual void SetRefreshDelay( sal_uLong nSeconds ); SC_DLLPUBLIC virtual void Timeout(); }; |