incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mba...@apache.org
Subject svn commit: r1172358 - /incubator/ooo/trunk/main/sfx2/source/doc/objserv.cxx
Date Sun, 18 Sep 2011 21:15:37 GMT
Author: mbauer
Date: Sun Sep 18 21:15:37 2011
New Revision: 1172358

URL: http://svn.apache.org/viewvc?rev=1172358&view=rev
Log:
cws mba34issues01: #i117708#: status indicator for inactive documents

Modified:
    incubator/ooo/trunk/main/sfx2/source/doc/objserv.cxx

Modified: incubator/ooo/trunk/main/sfx2/source/doc/objserv.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sfx2/source/doc/objserv.cxx?rev=1172358&r1=1172357&r2=1172358&view=diff
==============================================================================
--- incubator/ooo/trunk/main/sfx2/source/doc/objserv.cxx (original)
+++ incubator/ooo/trunk/main/sfx2/source/doc/objserv.cxx Sun Sep 18 21:15:37 2011
@@ -530,18 +530,16 @@ void SfxObjectShell::ExecFile_Impl(SfxRe
 				{
 					// get statusindicator
 					uno::Reference< task::XStatusIndicator > xStatusIndicator;
-					SfxViewFrame *pFrame = GetFrame();
-					if ( pFrame )
+					uno::Reference < frame::XController > xCtrl( GetModel()->getCurrentController()
);
+					if ( xCtrl.is() )
 					{
-						uno::Reference< task::XStatusIndicatorFactory > xStatFactory(
-																	pFrame->GetFrame().GetFrameInterface(),
-																	uno::UNO_QUERY );
+						uno::Reference< task::XStatusIndicatorFactory > xStatFactory( xCtrl->getFrame(),
uno::UNO_QUERY );
 						if( xStatFactory.is() )
 							xStatusIndicator = xStatFactory->createStatusIndicator();
 					}
 
-
 					OSL_ENSURE( xStatusIndicator.is(), "Can not retrieve default status indicator!\n" );
+
 					if ( xStatusIndicator.is() )
 					{
 						SfxUnoAnyItem aStatIndItem( SID_PROGRESS_STATUSBAR_CONTROL, uno::makeAny( xStatusIndicator
) );



Mime
View raw message