35 std::unique_ptr<SfxProgress> pProgress;
46 if ( pTmp->pDocShell == pDocShell )
55 if(
SW_MOD()->IsEmbeddedLoadSave() )
58 SwProgress *pProgress =
nullptr;
66 ++pProgress->nStartCount;
71 pProgress =
new SwProgress;
72 pProgress->pProgress.reset(
new SfxProgress( pDocShell,
74 nEndValue - nStartValue ) );
75 pProgress->nStartCount = 1;
76 pProgress->pDocShell = pDocShell;
79 pProgress->nStartValue = nStartValue;
88 pProgress->pProgress->SetState(nPosition - pProgress->nStartValue);
97 SwProgress *pProgress =
nullptr;
98 std::vector<SwProgress *>::size_type
i;
101 SwProgress *pTmp = (*pProgressContainer)[
i].get();
102 if ( pTmp->pDocShell == pDocShell )
109 if ( pProgress && 0 == --pProgress->nStartCount )
111 pProgress->pProgress->Stop();
void RescheduleProgress(SwDocShell const *pDocShell)
void StartProgress(TranslateId pMessResId, tools::Long nStartValue, tools::Long nEndValue, SwDocShell *pDocShell)
static std::vector< std::unique_ptr< SwProgress > > * pProgressContainer
void EndProgress(SwDocShell const *pDocShell)
static SwProgress * lcl_SwFindProgress(SwDocShell const *pDocShell)
void SetProgressState(tools::Long nPosition, SwDocShell const *pDocShell)
OUString SwResId(TranslateId aId)