LibreOffice Module vcl (master)  1
Public Member Functions | Private Attributes | List of all members
IdleFormatter Class Reference

#include <textdat2.hxx>

Inheritance diagram for IdleFormatter:
[legend]
Collaboration diagram for IdleFormatter:
[legend]

Public Member Functions

 IdleFormatter ()
 
virtual ~IdleFormatter () override
 
void DoIdleFormat (TextView *pV, sal_uInt16 nMaxRestarts)
 
void ForceTimeout ()
 
TextViewGetView ()
 
- Public Member Functions inherited from Idle
 Idle (const sal_Char *pDebugName=nullptr)
 
virtual void Start () override
 Activates the timer task. More...
 
- Public Member Functions inherited from Timer
 Timer (const sal_Char *pDebugName=nullptr)
 
 Timer (const Timer &rTimer)
 
virtual ~Timer () override
 
Timeroperator= (const Timer &rTimer)
 
virtual void Invoke () override
 Calls the maInvokeHandler with the parameter this. More...
 
void Invoke (Timer *arg)
 Calls the maInvokeHandler with the parameter. More...
 
void SetInvokeHandler (const Link< Timer *, void > &rLink)
 
void ClearInvokeHandler ()
 
void SetTimeout (sal_uInt64 nTimeoutMs)
 
sal_uInt64 GetTimeout () const
 
- Public Member Functions inherited from Task
 Task (const sal_Char *pDebugName)
 
 Task (const Task &rTask)
 
virtual ~Task () COVERITY_NOEXCEPT_FALSE
 
Taskoperator= (const Task &rTask)
 
void SetPriority (TaskPriority ePriority)
 
TaskPriority GetPriority () const
 
void SetDebugName (const sal_Char *pDebugName)
 
const char * GetDebugName () const
 
void Stop ()
 
bool IsActive () const
 
void SetStatic ()
 This function must be called for static tasks, so the Task destructor ignores the SchedulerMutex, as it may not be available anymore. More...
 
bool IsStatic () const
 

Private Attributes

TextViewmpView
 
sal_uInt16 mnRestarts
 

Additional Inherited Members

- Protected Member Functions inherited from Idle
virtual sal_uInt64 UpdateMinPeriod (sal_uInt64 nMinPeriod, sal_uInt64 nTimeNow) const override
 How long (in MS) until the Task is ready to be dispatched? More...
 
 Idle (bool bAuto, const sal_Char *pDebugName)
 
- Protected Member Functions inherited from Timer
virtual void SetDeletionFlags () override
 
 Timer (bool bAuto, const sal_Char *pDebugName)
 
- Protected Member Functions inherited from Task
const ImplSchedulerDataGetSchedulerData () const
 
- Static Protected Member Functions inherited from Task
static void StartTimer (sal_uInt64 nMS)
 

Detailed Description

Definition at line 248 of file textdat2.hxx.

Constructor & Destructor Documentation

IdleFormatter::IdleFormatter ( )

Definition at line 270 of file textdata.cxx.

References HIGH_IDLE, mpView, and Task::SetPriority().

IdleFormatter::~IdleFormatter ( )
overridevirtual

Definition at line 277 of file textdata.cxx.

References mpView.

Member Function Documentation

void IdleFormatter::DoIdleFormat ( TextView pV,
sal_uInt16  nMaxRestarts 
)

Definition at line 282 of file textdata.cxx.

References Timer::Invoke(), Task::IsActive(), mnRestarts, mpView, and Idle::Start().

void IdleFormatter::ForceTimeout ( )

Definition at line 300 of file textdata.cxx.

References Timer::Invoke(), Task::IsActive(), mnRestarts, and Task::Stop().

TextView* IdleFormatter::GetView ( )
inline

Definition at line 260 of file textdat2.hxx.

References mpView.

Member Data Documentation

sal_uInt16 IdleFormatter::mnRestarts
private

Definition at line 252 of file textdat2.hxx.

Referenced by DoIdleFormat(), and ForceTimeout().

TextView* IdleFormatter::mpView
private

Definition at line 251 of file textdat2.hxx.

Referenced by DoIdleFormat(), GetView(), and ~IdleFormatter().


The documentation for this class was generated from the following files: