LibreOffice Module sw (master)
1
|
An Idle, which is just ready to be scheduled for idle documents. More...
#include <SwDocIdle.hxx>
Public Member Functions | |
SwDocIdle (SwDoc &doc, const char *pDebugIdleName) | |
virtual | ~SwDocIdle () override |
![]() | |
Idle (const char *pDebugName) | |
virtual void | Start (bool bStartTimer=true) override |
![]() | |
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 |
![]() | |
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 |
void | Stop () |
bool | IsActive () const |
void | SetStatic () |
bool | IsStatic () const |
Private Member Functions | |
virtual sal_uInt64 | UpdateMinPeriod (sal_uInt64 nTimeNow) const override |
Private Attributes | |
SwDoc & | m_rDoc |
Additional Inherited Members | |
![]() | |
Idle (bool bAuto, const char *pDebugName) | |
![]() | |
virtual void | SetDeletionFlags () override |
Timer (bool bAuto, const char *pDebugName) | |
![]() | |
const ImplSchedulerData * | GetSchedulerData () const |
![]() | |
static void | StartTimer (sal_uInt64 nMS) |
An Idle, which is just ready to be scheduled for idle documents.
Currently it's missing the notification, when busy documents become idle again, so it relies on any task being triggered to recheck, which is quite probably not a problem, as busy documents have a high chance to have generated idle tasks.
Definition at line 36 of file SwDocIdle.hxx.
sw::SwDocIdle::SwDocIdle | ( | SwDoc & | doc, |
const char * | pDebugIdleName | ||
) |
Definition at line 51 of file SwDocIdle.cxx.
|
overridevirtual |
Definition at line 56 of file SwDocIdle.cxx.
|
overrideprivatevirtual |
Reimplemented from Idle.
Definition at line 33 of file SwDocIdle.cxx.
References SwDoc::GetDocShell(), SwDoc::getIDocumentTimerAccess(), SwDocShell::GetView(), SwViewShell::GetViewOptions(), SwView::GetWrtShell(), Scheduler::ImmediateTimeoutMs, Scheduler::InfiniteTimeoutMs, IDocumentTimerAccess::IsDocIdle(), SwViewOption::IsIdle(), and m_rDoc.
|
private |
Definition at line 39 of file SwDocIdle.hxx.
Referenced by UpdateMinPeriod().