statusbarcontroller.cxx (0c02d14e) | statusbarcontroller.cxx (509df7cb) |
---|---|
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 --- 383 unchanged lines hidden (view full) --- 392 vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() ); 393 URLToDispatchMap::iterator pIter = m_aListenerMap.find( aCommandURL ); 394 395 // Already in the list of status listener. Do nothing. 396 if ( pIter != m_aListenerMap.end() ) 397 return; 398 399 // Check if we are already initialized. Implementation starts adding itself as status listener when | 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 --- 383 unchanged lines hidden (view full) --- 392 vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() ); 393 URLToDispatchMap::iterator pIter = m_aListenerMap.find( aCommandURL ); 394 395 // Already in the list of status listener. Do nothing. 396 if ( pIter != m_aListenerMap.end() ) 397 return; 398 399 // Check if we are already initialized. Implementation starts adding itself as status listener when |
400 // intialize is called. | 400 // initialize is called. |
401 if ( !m_bInitialized ) 402 { 403 // Put into the hash_map of status listener. Will be activated when initialized is called 404 m_aListenerMap.insert( URLToDispatchMap::value_type( aCommandURL, Reference< XDispatch >() )); 405 return; 406 } 407 else 408 { | 401 if ( !m_bInitialized ) 402 { 403 // Put into the hash_map of status listener. Will be activated when initialized is called 404 m_aListenerMap.insert( URLToDispatchMap::value_type( aCommandURL, Reference< XDispatch >() )); 405 return; 406 } 407 else 408 { |
409 // Add status listener directly as intialize has already been called. | 409 // Add status listener directly as initialize has already been called. |
410 Reference< XDispatchProvider > xDispatchProvider( m_xFrame, UNO_QUERY ); 411 if ( m_xServiceManager.is() && xDispatchProvider.is() ) 412 { 413 Reference< XURLTransformer > xURLTransformer = getURLTransformer(); 414 aTargetURL.Complete = aCommandURL; 415 xURLTransformer->parseStrict( aTargetURL ); 416 xDispatch = xDispatchProvider->queryDispatch( aTargetURL, ::rtl::OUString(), 0 ); 417 --- 349 unchanged lines hidden --- | 410 Reference< XDispatchProvider > xDispatchProvider( m_xFrame, UNO_QUERY ); 411 if ( m_xServiceManager.is() && xDispatchProvider.is() ) 412 { 413 Reference< XURLTransformer > xURLTransformer = getURLTransformer(); 414 aTargetURL.Complete = aCommandURL; 415 xURLTransformer->parseStrict( aTargetURL ); 416 xDispatch = xDispatchProvider->queryDispatch( aTargetURL, ::rtl::OUString(), 0 ); 417 --- 349 unchanged lines hidden --- |