objserv.cxx (cdf0e10c) objserv.cxx (266fe926)
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *

--- 516 unchanged lines hidden (view full) ---

525 // TODO/LATER: do the following GUI related actions in standalown method
526 // ========================================================================================================
527 // Introduce a status indicator for GUI operation
528 SFX_REQUEST_ARG( rReq, pStatusIndicatorItem, SfxUnoAnyItem, SID_PROGRESS_STATUSBAR_CONTROL, sal_False );
529 if ( !pStatusIndicatorItem )
530 {
531 // get statusindicator
532 uno::Reference< task::XStatusIndicator > xStatusIndicator;
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *

--- 516 unchanged lines hidden (view full) ---

525 // TODO/LATER: do the following GUI related actions in standalown method
526 // ========================================================================================================
527 // Introduce a status indicator for GUI operation
528 SFX_REQUEST_ARG( rReq, pStatusIndicatorItem, SfxUnoAnyItem, SID_PROGRESS_STATUSBAR_CONTROL, sal_False );
529 if ( !pStatusIndicatorItem )
530 {
531 // get statusindicator
532 uno::Reference< task::XStatusIndicator > xStatusIndicator;
533 SfxViewFrame *pFrame = GetFrame();
534 if ( pFrame )
533 uno::Reference < frame::XController > xCtrl( GetModel()->getCurrentController() );
534 if ( xCtrl.is() )
535 {
535 {
536 uno::Reference< task::XStatusIndicatorFactory > xStatFactory(
537 pFrame->GetFrame().GetFrameInterface(),
538 uno::UNO_QUERY );
536 uno::Reference< task::XStatusIndicatorFactory > xStatFactory( xCtrl->getFrame(), uno::UNO_QUERY );
539 if( xStatFactory.is() )
540 xStatusIndicator = xStatFactory->createStatusIndicator();
541 }
542
537 if( xStatFactory.is() )
538 xStatusIndicator = xStatFactory->createStatusIndicator();
539 }
540
543
544 OSL_ENSURE( xStatusIndicator.is(), "Can not retrieve default status indicator!\n" );
541 OSL_ENSURE( xStatusIndicator.is(), "Can not retrieve default status indicator!\n" );
542
545 if ( xStatusIndicator.is() )
546 {
547 SfxUnoAnyItem aStatIndItem( SID_PROGRESS_STATUSBAR_CONTROL, uno::makeAny( xStatusIndicator ) );
548
549 if ( nId == SID_SAVEDOC )
550 {
551 // in case of saving it is not possible to transport the parameters from here
552 // but it is not clear here whether the saving will be done or saveAs operation

--- 956 unchanged lines hidden ---
543 if ( xStatusIndicator.is() )
544 {
545 SfxUnoAnyItem aStatIndItem( SID_PROGRESS_STATUSBAR_CONTROL, uno::makeAny( xStatusIndicator ) );
546
547 if ( nId == SID_SAVEDOC )
548 {
549 // in case of saving it is not possible to transport the parameters from here
550 // but it is not clear here whether the saving will be done or saveAs operation

--- 956 unchanged lines hidden ---