Lines 530-547
Link Here
|
530 |
{ |
530 |
{ |
531 |
// get statusindicator |
531 |
// get statusindicator |
532 |
uno::Reference< task::XStatusIndicator > xStatusIndicator; |
532 |
uno::Reference< task::XStatusIndicator > xStatusIndicator; |
533 |
SfxViewFrame *pFrame = GetFrame(); |
533 |
uno::Reference < frame::XController > xCtrl( GetModel()->getCurrentController() ); |
534 |
if ( pFrame ) |
534 |
if ( xCtrl.is() ) |
535 |
{ |
535 |
{ |
536 |
uno::Reference< task::XStatusIndicatorFactory > xStatFactory( |
536 |
uno::Reference< task::XStatusIndicatorFactory > xStatFactory( xCtrl->getFrame(), uno::UNO_QUERY ); |
537 |
pFrame->GetFrame().GetFrameInterface(), |
|
|
538 |
uno::UNO_QUERY ); |
539 |
if( xStatFactory.is() ) |
537 |
if( xStatFactory.is() ) |
540 |
xStatusIndicator = xStatFactory->createStatusIndicator(); |
538 |
xStatusIndicator = xStatFactory->createStatusIndicator(); |
541 |
} |
539 |
} |
542 |
|
540 |
|
|
|
541 |
OSL_ENSURE( xStatusIndicator.is(), "Can not retrieve default status indicator!\n" ); |
543 |
|
542 |
|
544 |
OSL_ENSURE( xStatusIndicator.is(), "Can not retrieve default status indicator!\n" ); |
|
|
545 |
if ( xStatusIndicator.is() ) |
543 |
if ( xStatusIndicator.is() ) |
546 |
{ |
544 |
{ |
547 |
SfxUnoAnyItem aStatIndItem( SID_PROGRESS_STATUSBAR_CONTROL, uno::makeAny( xStatusIndicator ) ); |
545 |
SfxUnoAnyItem aStatIndItem( SID_PROGRESS_STATUSBAR_CONTROL, uno::makeAny( xStatusIndicator ) ); |