LibreOffice Module sc (master) 1
|
#include <refreshtimer.hxx>
Public Member Functions | |
ScRefreshTimer () | |
ScRefreshTimer (sal_Int32 nSeconds) | |
ScRefreshTimer (const ScRefreshTimer &r) | |
virtual | ~ScRefreshTimer () override |
ScRefreshTimer & | operator= (const ScRefreshTimer &r) |
bool | operator== (const ScRefreshTimer &r) const |
bool | operator!= (const ScRefreshTimer &r) const |
void | SetRefreshControl (std::unique_ptr< ScRefreshTimerControl > const *pp) |
void | SetRefreshHandler (const Link< Timer *, void > &rLink) |
sal_Int32 | GetRefreshDelaySeconds () const |
void | StopRefreshTimer () |
void | SetRefreshDelay (sal_Int32 nSeconds) |
virtual SC_DLLPUBLIC void | Invoke () override |
Public Member Functions inherited from AutoTimer | |
AutoTimer (const char *pDebugName) | |
Public Member Functions inherited from Timer | |
Timer (const char *pDebugName) | |
Timer (const Timer &rTimer) | |
virtual | ~Timer () override |
Timer & | operator= (const Timer &rTimer) |
virtual void | Invoke () override |
void | Invoke (Timer *arg) |
void | SetInvokeHandler (const Link< Timer *, void > &rLink) |
void | ClearInvokeHandler () |
void | SetTimeout (sal_uInt64 nTimeoutMs) |
sal_uInt64 | GetTimeout () const |
virtual void | Start (bool bStartTimer=true) override |
Public Member Functions inherited from Task | |
Task (const char *pDebugName) | |
Task (const Task &rTask) | |
virtual | ~Task () COVERITY_NOEXCEPT_FALSE |
Task & | operator= (const Task &rTask) |
void | SetPriority (TaskPriority ePriority) |
TaskPriority | GetPriority () const |
const char * | GetDebugName () const |
virtual void | Invoke ()=0 |
virtual void | Start (bool bStartTimer=true) |
void | Stop () |
bool | IsActive () const |
void | SetStatic () |
bool | IsStatic () const |
Private Member Functions | |
void | Launch () |
Private Attributes | |
std::unique_ptr< ScRefreshTimerControl > const * | ppControl |
Additional Inherited Members | |
Protected Member Functions inherited from Timer | |
virtual void | SetDeletionFlags () override |
virtual sal_uInt64 | UpdateMinPeriod (sal_uInt64 nTimeNow) const override |
Timer (bool bAuto, const char *pDebugName) | |
Protected Member Functions inherited from Task | |
const ImplSchedulerData * | GetSchedulerData () const |
virtual void | SetDeletionFlags () |
virtual sal_uInt64 | UpdateMinPeriod (sal_uInt64 nTimeNow) const=0 |
Static Protected Member Functions inherited from Task | |
static void | StartTimer (sal_uInt64 nMS) |
Definition at line 41 of file refreshtimer.hxx.
ScRefreshTimer::ScRefreshTimer | ( | ) |
Definition at line 49 of file refreshtimer.cxx.
References Timer::SetTimeout().
ScRefreshTimer::ScRefreshTimer | ( | sal_Int32 | nSeconds | ) |
Definition at line 54 of file refreshtimer.cxx.
References Launch(), and Timer::SetTimeout().
ScRefreshTimer::ScRefreshTimer | ( | const ScRefreshTimer & | r | ) |
Definition at line 60 of file refreshtimer.cxx.
|
overridevirtual |
Definition at line 64 of file refreshtimer.cxx.
References Task::IsActive(), and Task::Stop().
sal_Int32 ScRefreshTimer::GetRefreshDelaySeconds | ( | ) | const |
Definition at line 100 of file refreshtimer.cxx.
References Timer::GetTimeout().
Referenced by ScAreaLink::Closed(), ScAreaLink::DataChanged(), ScTableLink::DataChanged(), ScAreaLink::Edit(), ScDocFunc::InsertAreaLink(), ScAreaLinkSaver::IsEqualSource(), ScAreaLink::Refresh(), and ScTableLink::Refresh().
|
overridevirtual |
Reimplemented from Timer.
Definition at line 120 of file refreshtimer.cxx.
References Timer::Invoke(), Task::IsActive(), Launch(), and ppControl.
|
private |
Definition at line 134 of file refreshtimer.cxx.
References Timer::GetTimeout(), and Timer::Start().
Referenced by Invoke(), ScRefreshTimer(), and SetRefreshDelay().
bool ScRefreshTimer::operator!= | ( | const ScRefreshTimer & | r | ) | const |
Definition at line 85 of file refreshtimer.cxx.
References operator==().
ScRefreshTimer & ScRefreshTimer::operator= | ( | const ScRefreshTimer & | r | ) |
Definition at line 70 of file refreshtimer.cxx.
References Timer::operator=(), and SetRefreshControl().
Referenced by ScDBData::operator=().
bool ScRefreshTimer::operator== | ( | const ScRefreshTimer & | r | ) | const |
Definition at line 80 of file refreshtimer.cxx.
References Timer::GetTimeout().
Referenced by operator!=().
void ScRefreshTimer::SetRefreshControl | ( | std::unique_ptr< ScRefreshTimerControl > const * | pp | ) |
Definition at line 90 of file refreshtimer.cxx.
References ppControl.
Referenced by operator=(), ScAreaLink::ScAreaLink(), ScTableLink::ScTableLink(), and ScDatabaseRangeObj::setPropertyValue().
void ScRefreshTimer::SetRefreshDelay | ( | sal_Int32 | nSeconds | ) |
Definition at line 110 of file refreshtimer.cxx.
References Task::IsActive(), Launch(), Timer::SetTimeout(), and Task::Stop().
Referenced by ScAreaLink::Refresh(), and ScDatabaseRangeObj::setPropertyValue().
Definition at line 95 of file refreshtimer.cxx.
References Timer::SetInvokeHandler().
Referenced by ScAreaLink::ScAreaLink(), ScTableLink::ScTableLink(), and ScDatabaseRangeObj::setPropertyValue().
void ScRefreshTimer::StopRefreshTimer | ( | ) |
Definition at line 105 of file refreshtimer.cxx.
References Task::Stop().
Referenced by ScAreaLink::~ScAreaLink(), ScDBData::~ScDBData(), and ScTableLink::~ScTableLink().
|
private |
Definition at line 43 of file refreshtimer.hxx.
Referenced by Invoke(), and SetRefreshControl().