main/framework/source/uielement/toolbarmanager.cxx
//for update toolbar controller via Support Visible by shizhoubo
for update toolbar controller via Support Visible by shizhoubo
for update toolbar controller via Support Visible by shizhoubo
void ToolBarManager::UpdateController( ::com::sun::star::uno::Reference< ::com::sun::star::frame::XToolbarController > xController)
{
	RTL_LOGFILE_CONTEXT( aLog, "framework (cd100003) ::ToolBarManager::UpdateControllers" );
	if ( !m_bUpdateControllers )
	{
		m_bUpdateControllers = sal_True;
		try
		{   if(xController.is())
			{
				Reference< XUpdatable > xUpdatable( xController, UNO_QUERY );
				if ( xUpdatable.is() )
					xUpdatable->update();
			}
		}
		catch ( Exception& )
		{
		}
	}
	m_bUpdateControllers = sal_False;
}
void ToolBarManager :: UpdateController ( :: com :: sun :: star :: uno :: Reference < :: com :: sun :: star :: frame :: XToolbarController > xController ) { RTL_LOGFILE_CONTEXT ( aLog , " " ) ; if ( ! m_bUpdateControllers ) { m_bUpdateControllers = sal_True ; try { if ( xController . is ( ) ) { Reference < XUpdatable > xUpdatable ( xController , UNO_QUERY ) ; if ( xUpdatable . is ( ) ) xUpdatable -> update ( ) ; } } catch ( Exception & ) { } } m_bUpdateControllers = sal_False ; }
for update toolbar controller via Support Visible by shizhoubo
for update toolbar controller via Support Visible by shizhoubo
/* m_bUpdateControllers = sal_True;
		ToolBarControllerMap::iterator pIter = m_aControllerMap.begin();

		while ( pIter != m_aControllerMap.end() )
		{
			try
			{
				Reference< XUpdatable > xUpdatable( pIter->second, UNO_QUERY );
				if ( xUpdatable.is() )
					xUpdatable->update();
			}
			catch ( Exception& )
			{
			}
			++pIter;
		}*/