summaryrefslogtreecommitdiff
path: root/sfx2/source/bastyp/progress.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-03-25 11:23:34 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-03-25 16:17:07 +0100
commitdd3a00ffd5e67d74a4dbcdf9a2e8482eab19ce5d (patch)
treed5ef8b1dfae8a993a8ba9d4ca4c890aa23ee417b /sfx2/source/bastyp/progress.cxx
parentd940e3519717c71c80ba8d3915bbc48acb59cc93 (diff)
Adapt to sal/log.hxx
Change-Id: I9ec4c72d4779f7182478b8d40e1039baf3088449
Diffstat (limited to 'sfx2/source/bastyp/progress.cxx')
-rw-r--r--sfx2/source/bastyp/progress.cxx21
1 files changed, 13 insertions, 8 deletions
diff --git a/sfx2/source/bastyp/progress.cxx b/sfx2/source/bastyp/progress.cxx
index 0f5340f38b2c..2d0f768d6767 100644
--- a/sfx2/source/bastyp/progress.cxx
+++ b/sfx2/source/bastyp/progress.cxx
@@ -158,8 +158,10 @@ SfxProgress::SfxProgress
pImp->bWaitMode = bWait;
pImp->nCreate = Get10ThSec();
pImp->nNextReschedule = pImp->nCreate;
- DBG( DbgOutf( "SfxProgress: created for '%s' at %luds",
- rText.getStr(), pImp->nCreate ) );
+ SAL_INFO(
+ "sfx.bastyp",
+ "SfxProgress: created for '" << rText << "' at " << pImp->nCreate
+ << "ds");
pImp->bAllDocs = bAll;
pImp->pWorkWin = 0;
pImp->pView = 0;
@@ -209,7 +211,8 @@ void SfxProgress::Stop()
if ( !pImp->bRunning )
return;
pImp->bRunning = false;
- DBG( DbgOutf( "SfxProgress: destroyed at %luds", Get10ThSec() ) );
+ SAL_INFO(
+ "sfx.bastyp", "SfxProgress: destroyed at " << Get10ThSec() << "ds");
Suspend();
if ( pImp->xObjSh.Is() )
@@ -298,8 +301,10 @@ bool SfxProgress::SetState
// new Range?
if ( nNewRange && nNewRange != pImp->nMax )
{
- DBG( DbgOutf( "SfxProgress: range changed from %lu to %lu",
- pImp->nMax, nNewRange ) );
+ SAL_INFO(
+ "sfx.bastyp",
+ "SfxProgress: range changed from " << pImp->nMax << " to "
+ << nNewRange);
pImp->nMax = nNewRange;
}
@@ -371,7 +376,7 @@ void SfxProgress::Resume()
if( pImp->pActiveProgress ) return;
if ( bSuspended )
{
- DBG( DbgOutf( "SfxProgress: resumed" ) );
+ SAL_INFO("sfx.bastyp", "SfxProgress: resumed");
if ( pImp->xStatusInd.is() )
{
pImp->xStatusInd->start( pImp->aText, pImp->nMax );
@@ -417,7 +422,7 @@ void SfxProgress::Suspend()
if( pImp->pActiveProgress ) return;
if ( !bSuspended )
{
- DBG( DbgOutf( "SfxProgress: suspended" ) );
+ SAL_INFO("sfx.bastyp", "SfxProgress: suspended");
bSuspended = true;
if ( pImp->xStatusInd.is() )
@@ -450,7 +455,7 @@ void SfxProgress::UnLock()
if ( !pImp->bLocked )
return;
- DBG( DbgOutf( "SfxProgress: unlocked" ) );
+ SAL_INFO("sfx.bastyp", "SfxProgress: unlocked");
pImp->bLocked = false;
pImp->Enable_Impl(true);
}