LibreOffice Module sfx2 (master) 1
|
#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 SfxProgress * | GetActiveProgress (SfxObjectShell const *pDocSh=nullptr) |
static void | EnterLock () |
static void | LeaveLock () |
Private Attributes | |
std::unique_ptr< SfxProgress_Impl > | pImpl |
sal_uInt32 | nVal |
bool | bSuspended |
Definition at line 32 of file progress.hxx.
SfxProgress::SfxProgress | ( | SfxObjectShell * | pObjSh, |
const OUString & | rText, | ||
sal_uInt32 | nRange, | ||
bool | bWait = true |
||
) |
Definition at line 74 of file progress.cxx.
References Get10ThSec(), GetActiveProgress(), pImpl, Resume(), SAL_INFO, SfxApplication::SetProgress_Impl(), SfxObjectShell::SetProgress_Impl(), and SfxGetpApp().
|
virtual |
Definition at line 125 of file progress.cxx.
|
static |
Definition at line 388 of file progress.cxx.
References SfxApplication::Get_Impl(), SfxAppData_Impl::nRescheduleLocks, and SfxGetpApp().
|
static |
Definition at line 340 of file progress.cxx.
References SfxApplication::Get(), SfxApplication::GetProgress(), SfxObjectShell::GetProgress(), and SfxGetpApp().
Referenced by SfxProgress().
|
inline |
Definition at line 46 of file progress.hxx.
Referenced by SfxApplication::SetViewFrame_Impl().
|
inline |
Definition at line 50 of file progress.hxx.
Referenced by SfxApplication::SetViewFrame_Impl().
|
static |
Definition at line 394 of file progress.cxx.
References DBG_ASSERT, SfxApplication::Get_Impl(), SfxAppData_Impl::nRescheduleLocks, and SfxGetpApp().
|
static |
Definition at line 328 of file progress.cxx.
References Reschedule(), and SFX_STACK.
Referenced by Reschedule().
void SfxProgress::Resume | ( | ) |
Definition at line 242 of file progress.cxx.
References bSuspended, SfxViewFrame::GetBindings(), SfxViewFrame::GetFirst(), SfxViewFrame::GetNext(), nVal, pImpl, and SAL_INFO.
Referenced by SfxApplication::SetViewFrame_Impl(), and SfxProgress().
void SfxProgress::SetState | ( | sal_uInt32 | nVal, |
sal_uInt32 | nNewRange = 0 |
||
) |
Definition at line 168 of file progress.cxx.
References SfxViewFrame::Current(), DBG_ASSERT, SfxViewFrame::GetFirst(), SfxItemSet::GetItem(), SfxMedium::GetItemSet(), SfxObjectShell::GetMedium(), SfxBoolItem::GetValue(), SfxUnoAnyItem::GetValue(), SfxApplication::GetWorkWindow_Impl(), nVal, pImpl, SAL_INFO, and SfxGetpApp().
Referenced by SfxApplication::SetViewFrame_Impl().
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().
void SfxProgress::Suspend | ( | ) |
Definition at line 287 of file progress.cxx.
References bSuspended, SfxViewFrame::GetBindings(), SfxViewFrame::GetFirst(), SfxViewFrame::GetNext(), pImpl, and SAL_INFO.
Referenced by SfxApplication::SetViewFrame_Impl(), and Stop().
|
private |
Definition at line 36 of file progress.hxx.
|
private |
Definition at line 35 of file progress.hxx.
Referenced by Resume(), and SetState().
|
private |
Definition at line 34 of file progress.hxx.
Referenced by Resume(), SetState(), SfxProgress(), Stop(), Suspend(), and ~SfxProgress().