ControllerCommandDispatch.cxx (cde9e8dc) ControllerCommandDispatch.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

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

700 return false;
701}
702
703void ControllerCommandDispatch::fireStatusEvent(
704 const OUString & rURL,
705 const Reference< frame::XStatusListener > & xSingleListener /* = 0 */ )
706{
707 bool bIsChartSelectorURL = rURL.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM(".uno:ChartElementSelector") );
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

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

700 return false;
701}
702
703void ControllerCommandDispatch::fireStatusEvent(
704 const OUString & rURL,
705 const Reference< frame::XStatusListener > & xSingleListener /* = 0 */ )
706{
707 bool bIsChartSelectorURL = rURL.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM(".uno:ChartElementSelector") );
708 if( rURL.getLength() == 0 || bIsChartSelectorURL )
708 if( rURL.isEmpty() || bIsChartSelectorURL )
709 {
710 uno::Any aArg;
711 aArg <<= m_xController;
712 fireStatusEventForURL( C2U(".uno:ChartElementSelector"), aArg, true, xSingleListener );
713 }
714
709 {
710 uno::Any aArg;
711 aArg <<= m_xController;
712 fireStatusEventForURL( C2U(".uno:ChartElementSelector"), aArg, true, xSingleListener );
713 }
714
715 if( rURL.getLength() == 0 )
715 if( rURL.isEmpty() )
716 for( ::std::map< OUString, bool >::const_iterator aIt( m_aCommandAvailability.begin());
717 aIt != m_aCommandAvailability.end(); ++aIt )
718 fireStatusEventForURLImpl( aIt->first, xSingleListener );
719 else if( !bIsChartSelectorURL )
720 fireStatusEventForURLImpl( rURL, xSingleListener );
721
722 // statusbar. Should be handled by base implementation
723 // @todo: remove if Issue 68864 is fixed
716 for( ::std::map< OUString, bool >::const_iterator aIt( m_aCommandAvailability.begin());
717 aIt != m_aCommandAvailability.end(); ++aIt )
718 fireStatusEventForURLImpl( aIt->first, xSingleListener );
719 else if( !bIsChartSelectorURL )
720 fireStatusEventForURLImpl( rURL, xSingleListener );
721
722 // statusbar. Should be handled by base implementation
723 // @todo: remove if Issue 68864 is fixed
724 if( rURL.getLength() == 0 ||
724 if( rURL.isEmpty() ||
725 rURL.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM(".uno:StatusBarVisible")))
726 {
727 bool bIsStatusBarVisible( lcl_isStatusBarVisible( m_xController ));
728 fireStatusEventForURL( C2U(".uno:StatusBarVisible"), uno::makeAny( bIsStatusBarVisible ), true, xSingleListener );
729 }
730}
731
732// ____ XDispatch ____

--- 69 unchanged lines hidden ---
725 rURL.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM(".uno:StatusBarVisible")))
726 {
727 bool bIsStatusBarVisible( lcl_isStatusBarVisible( m_xController ));
728 fireStatusEventForURL( C2U(".uno:StatusBarVisible"), uno::makeAny( bIsStatusBarVisible ), true, xSingleListener );
729 }
730}
731
732// ____ XDispatch ____

--- 69 unchanged lines hidden ---