FeatureCommandDispatchBase.cxx (cde9e8dc) | FeatureCommandDispatchBase.cxx (9ec58d04) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 49 unchanged lines hidden (view full) --- 58 return true; 59 } 60 return false; 61} 62 63void FeatureCommandDispatchBase::fireStatusEvent( const ::rtl::OUString& rURL, 64 const Reference< frame::XStatusListener >& xSingleListener /* = 0 */ ) 65{ | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 49 unchanged lines hidden (view full) --- 58 return true; 59 } 60 return false; 61} 62 63void FeatureCommandDispatchBase::fireStatusEvent( const ::rtl::OUString& rURL, 64 const Reference< frame::XStatusListener >& xSingleListener /* = 0 */ ) 65{ |
66 if ( rURL.getLength() == 0 ) | 66 if ( rURL.isEmpty() ) |
67 { 68 SupportedFeatures::const_iterator aEnd( m_aSupportedFeatures.end() ); 69 for ( SupportedFeatures::const_iterator aIter( m_aSupportedFeatures.begin() ); aIter != aEnd; ++aIter ) 70 { 71 FeatureState aFeatureState( getState( aIter->first ) ); 72 fireStatusEventForURL( aIter->first, aFeatureState.aState, aFeatureState.bEnabled, xSingleListener ); 73 } 74 } --- 36 unchanged lines hidden --- | 67 { 68 SupportedFeatures::const_iterator aEnd( m_aSupportedFeatures.end() ); 69 for ( SupportedFeatures::const_iterator aIter( m_aSupportedFeatures.begin() ); aIter != aEnd; ++aIter ) 70 { 71 FeatureState aFeatureState( getState( aIter->first ) ); 72 fireStatusEventForURL( aIter->first, aFeatureState.aState, aFeatureState.bEnabled, xSingleListener ); 73 } 74 } --- 36 unchanged lines hidden --- |