Lines Matching refs:pImp

173 :	pImp( new SfxProgress_Impl( rText ) ),  in SfxProgress()
177 pImp->bRunning = sal_True; in SfxProgress()
178 pImp->bAllowRescheduling = Application::IsInExecute();; in SfxProgress()
180 pImp->xObjSh = pObjSh; in SfxProgress()
181 pImp->aText = rText; in SfxProgress()
182 pImp->nMax = nRange; in SfxProgress()
183 pImp->bLocked = sal_False; in SfxProgress()
184 pImp->bWaitMode = bWait; in SfxProgress()
185 pImp->bIsStatusText = sal_False; in SfxProgress()
186 pImp->nCreate = Get10ThSec(); in SfxProgress()
187 pImp->nNextReschedule = pImp->nCreate; in SfxProgress()
189 rText.GetBuffer(), pImp->nCreate ) ); in SfxProgress()
190 pImp->bAllDocs = bAll; in SfxProgress()
191 pImp->pWorkWin = 0; in SfxProgress()
192 pImp->pView = 0; in SfxProgress()
194 pImp->pActiveProgress = GetActiveProgress( pObjSh ); in SfxProgress()
197 else if( !pImp->pActiveProgress ) in SfxProgress()
215 if ( pImp->xStatusInd.is() ) in ~SfxProgress()
216 pImp->xStatusInd->end(); in ~SfxProgress()
218 if( pImp->bIsStatusText == sal_True ) in ~SfxProgress()
220 delete pImp; in ~SfxProgress()
233 if( pImp->pActiveProgress ) in Stop()
235 if ( pImp->xObjSh.Is() && pImp->xObjSh->GetProgress() == this ) in Stop()
236 pImp->xObjSh->SetProgress_Impl(0); in Stop()
240 if ( !pImp->bRunning ) in Stop()
242 pImp->bRunning = sal_False; in Stop()
246 if ( pImp->xObjSh.Is() ) in Stop()
247 pImp->xObjSh->SetProgress_Impl(0); in Stop()
250 if ( pImp->bLocked ) in Stop()
251 pImp->Enable_Impl(sal_True); in Stop()
268 if( pImp->pActiveProgress ) return; in SetText()
269 if ( pImp->xStatusInd.is() ) in SetText()
271 pImp->xStatusInd->reset(); in SetText()
272 pImp->xStatusInd->start( pImp->aText, pImp->nMax ); in SetText()
280 return pImp->aStateText; in GetStateText_Impl()
332 pImp->aStateText = rNewVal; in SetStateText()
364 if( pImp->pActiveProgress ) return sal_True; in SetState()
371 if ( nNewRange && nNewRange != pImp->nMax ) in SetState()
374 pImp->nMax, nNewRange ) ); in SetState()
375 pImp->nMax = nNewRange; in SetState()
379 if ( !pImp->xStatusInd.is() ) in SetState()
383 SfxObjectShell* pObjSh = pImp->xObjSh; in SetState()
384 pImp->pView = SfxViewFrame::Current(); in SetState()
385 DBG_ASSERT( pImp->pView || pObjSh, "Can't make progress bar!"); in SetState()
386 if ( pObjSh && ( !pImp->pView || pObjSh != pImp->pView->GetObjectShell() ) ) in SetState()
391 pImp->pView = pDocView; in SetState()
411 pImp->xStatusInd = xInd; in SetState()
416 else if ( pImp->pView ) in SetState()
418 pImp->pWorkWin = SFX_APP()->GetWorkWindow_Impl( pImp->pView ); in SetState()
419 if ( pImp->pWorkWin ) in SetState()
420 pImp->xStatusInd = pImp->pWorkWin->GetStatusIndicator(); in SetState()
423 if ( pImp->xStatusInd.is() ) in SetState()
425 pImp->xStatusInd->start( pImp->aText, pImp->nMax ); in SetState()
426 pImp->pView = NULL; in SetState()
430 if ( pImp->xStatusInd.is() ) in SetState()
432 pImp->xStatusInd->setValue( nNewVal ); in SetState()
451 if( pImp->pActiveProgress ) return; in Resume()
455 if ( pImp->xStatusInd.is() ) in Resume()
457 pImp->xStatusInd->start( pImp->aText, pImp->nMax ); in Resume()
458 pImp->xStatusInd->setValue( nVal ); in Resume()
461 if ( pImp->bWaitMode ) in Resume()
463 if ( pImp->xObjSh.Is() && !pImp->bAllDocs ) in Resume()
465 for ( SfxViewFrame *pFrame = SfxViewFrame::GetFirst(pImp->xObjSh); in Resume()
467 pFrame = SfxViewFrame::GetNext( *pFrame, pImp->xObjSh ) ) in Resume()
472 if ( pImp->xObjSh ) in Resume()
474 SfxViewFrame *pFrame = SfxViewFrame::GetFirst(pImp->xObjSh); in Resume()
496 if( pImp->pActiveProgress ) return; in Suspend()
502 if ( pImp->xStatusInd.is() ) in Suspend()
504 pImp->xStatusInd->reset(); in Suspend()
507 if ( pImp->xObjSh.Is() && !pImp->bAllDocs ) in Suspend()
510 SfxViewFrame::GetFirst(pImp->xObjSh); in Suspend()
512 pFrame = SfxViewFrame::GetNext( *pFrame, pImp->xObjSh ) ) in Suspend()
515 if ( pImp->xObjSh.Is() ) in Suspend()
517 SfxViewFrame *pFrame = SfxViewFrame::GetFirst(pImp->xObjSh); in Suspend()
528 if( pImp->pActiveProgress ) return; in Lock()
531 if ( !pImp->xObjSh.Is() ) in Lock()
542 pImp->bAllowRescheduling = sal_False; in Lock()
548 SfxObjectCreateMode eMode = pImp->xObjSh->GetCreateMode(); in Lock()
553 pImp->bAllowRescheduling = sal_False; in Lock()
557 pImp->Enable_Impl( sal_False ); in Lock()
560 pImp->bLocked = sal_True; in Lock()
567 if( pImp->pActiveProgress ) return; in UnLock()
568 if ( !pImp->bLocked ) in UnLock()
572 pImp->bLocked = sal_False; in UnLock()
573 pImp->Enable_Impl(sal_True); in UnLock()
589 if( pImp->pActiveProgress ) return; in Reschedule()
591 if ( pImp->bLocked && 0 == pApp->Get_Impl()->nRescheduleLocks ) in Reschedule()
621 if( pImp->pActiveProgress ) return; in SetWaitMode()
622 if ( !bSuspended && pImp->bWaitMode != bWait ) in SetWaitMode()
626 if ( pImp->xObjSh.Is() && !pImp->bAllDocs ) in SetWaitMode()
629 SfxViewFrame::GetFirst(pImp->xObjSh); in SetWaitMode()
631 pFrame = SfxViewFrame::GetNext( *pFrame, pImp->xObjSh ) ) in SetWaitMode()
637 if ( pImp->xObjSh.Is() && !pImp->bAllDocs ) in SetWaitMode()
640 SfxViewFrame::GetFirst(pImp->xObjSh); in SetWaitMode()
642 pFrame = SfxViewFrame::GetNext( *pFrame, pImp->xObjSh ) ) in SetWaitMode()
648 pImp->bWaitMode = bWait; in SetWaitMode()
662 return pImp->bWaitMode; in GetWaitMode()
727 SfxAppData_Impl *pImp = SFX_APP()->Get_Impl(); in LeaveLock() local
728 DBG_ASSERT( 0 != pImp->nRescheduleLocks, "SFxProgress::LeaveLock but no locks" ); in LeaveLock()
729 pImp->nRescheduleLocks--; in LeaveLock()