LibreOffice Module sfx2 (master) 1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
SfxProgress Class Reference

#include <progress.hxx>

Public Member Functions

 SfxProgress (SfxObjectShell *pObjSh, const OUString &rText, sal_uInt32 nRange, bool bWait=true)
 
virtual ~SfxProgress ()
 
void SetState (sal_uInt32 nVal, sal_uInt32 nNewRange=0)
 
sal_uInt32 GetState () const
 
void Resume ()
 
void Suspend ()
 
bool IsSuspended () const
 
void Stop ()
 

Static Public Member Functions

static void Reschedule ()
 
static SfxProgressGetActiveProgress (SfxObjectShell const *pDocSh=nullptr)
 
static void EnterLock ()
 
static void LeaveLock ()
 

Private Attributes

std::unique_ptr< SfxProgress_ImplpImpl
 
sal_uInt32 nVal
 
bool bSuspended
 

Detailed Description

Definition at line 32 of file progress.hxx.

Constructor & Destructor Documentation

◆ SfxProgress()

SfxProgress::SfxProgress ( SfxObjectShell pObjSh,
const OUString &  rText,
sal_uInt32  nRange,
bool  bWait = true 
)

◆ ~SfxProgress()

SfxProgress::~SfxProgress ( )
virtual

Definition at line 125 of file progress.cxx.

References pImpl, and Stop().

Member Function Documentation

◆ EnterLock()

void SfxProgress::EnterLock ( )
static

◆ GetActiveProgress()

SfxProgress * SfxProgress::GetActiveProgress ( SfxObjectShell const *  pDocSh = nullptr)
static

◆ GetState()

sal_uInt32 SfxProgress::GetState ( ) const
inline

Definition at line 46 of file progress.hxx.

Referenced by SfxApplication::SetViewFrame_Impl().

◆ IsSuspended()

bool SfxProgress::IsSuspended ( ) const
inline

Definition at line 50 of file progress.hxx.

Referenced by SfxApplication::SetViewFrame_Impl().

◆ LeaveLock()

void SfxProgress::LeaveLock ( )
static

◆ Reschedule()

void SfxProgress::Reschedule ( )
static

Definition at line 328 of file progress.cxx.

References Reschedule(), and SFX_STACK.

Referenced by Reschedule().

◆ Resume()

void SfxProgress::Resume ( )

◆ SetState()

void SfxProgress::SetState ( sal_uInt32  nVal,
sal_uInt32  nNewRange = 0 
)

◆ Stop()

void SfxProgress::Stop ( )

Definition at line 140 of file progress.cxx.

References Get10ThSec(), pImpl, SAL_INFO, SfxApplication::SetProgress_Impl(), SfxGetpApp(), and Suspend().

Referenced by ~SfxProgress().

◆ Suspend()

void SfxProgress::Suspend ( )

Member Data Documentation

◆ bSuspended

bool SfxProgress::bSuspended
private

Definition at line 36 of file progress.hxx.

Referenced by Resume(), and Suspend().

◆ nVal

sal_uInt32 SfxProgress::nVal
private

Definition at line 35 of file progress.hxx.

Referenced by Resume(), and SetState().

◆ pImpl

std::unique_ptr< SfxProgress_Impl > SfxProgress::pImpl
private

Definition at line 34 of file progress.hxx.

Referenced by Resume(), SetState(), SfxProgress(), Stop(), Suspend(), and ~SfxProgress().


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