summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorAndreas Schlüns <as@openoffice.org>2002-07-22 06:05:53 +0000
committerAndreas Schlüns <as@openoffice.org>2002-07-22 06:05:53 +0000
commit8c4522f3859cc608a1b503ad93a99cbae5334c45 (patch)
treeb40129d40c31191d93b47999a785b413eed2190e /sfx2
parent745383d20d625f0f8750a595204e8fba7feff4e5 (diff)
#97487# use external set progress - don't create own one
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/bastyp/progress.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/sfx2/source/bastyp/progress.cxx b/sfx2/source/bastyp/progress.cxx
index 4898a4aa73d1..cfbf3093273a 100644
--- a/sfx2/source/bastyp/progress.cxx
+++ b/sfx2/source/bastyp/progress.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: progress.cxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: mba $ $Date: 2002-07-03 16:31:08 $
+ * last change: $Author: as $ $Date: 2002-07-22 07:05:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -565,11 +565,12 @@ BOOL SfxProgress::SetState
// recycling frame
pImp->pView = pFrame->GetCurrentViewFrame();
}
- else if ( pFrame )
+ else
{
- Reference < XStatusIndicatorFactory > xFact( pFrame->GetFrameInterface(), UNO_QUERY );
- if ( xFact.is() )
- pImp->xStatusInd = xFact->createStatusIndicator();
+ SFX_ITEMSET_ARG( pMedium->GetItemSet(), pIndicatorItem, SfxUnoAnyItem, SID_PROGRESS_STATUSBAR_CONTROL, FALSE );
+ Reference< XStatusIndicator > xInd;
+ if ( pIndicatorItem && (pIndicatorItem->GetValue()>>=xInd) )
+ pImp->xStatusInd = xInd;
}
}
}