accessiblewrapper.cxx (dde7d3fa) accessiblewrapper.cxx (4e167d9c)
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

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

134 Reference< XAccessible > xValue;
135
136 if( !_rxKey.is() )
137 {
138 // fprintf( stderr, "It was this path that was crashing stuff\n" );
139 return xValue;
140 }
141
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

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

134 Reference< XAccessible > xValue;
135
136 if( !_rxKey.is() )
137 {
138 // fprintf( stderr, "It was this path that was crashing stuff\n" );
139 return xValue;
140 }
141
142 // do we have this child in the cahce?
142 // do we have this child in the cache?
143 AccessibleMap::const_iterator aPos = m_aChildrenMap.find( _rxKey );
144 if ( m_aChildrenMap.end() != aPos )
145 {
146 xValue = aPos->second;
147 }
148 else if ( _bCreate )
149 { // not found in the cache, and allowed to create
150 // -> new wrapper

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

272 // this should come from one of the inner XAccessible's of our children
273 Reference< XAccessible > xSource( _rSource.Source, UNO_QUERY );
274 AccessibleMap::iterator aDisposedPos = m_aChildrenMap.find( xSource );
275#if OSL_DEBUG_LEVEL > 0
276 if ( m_aChildrenMap.end() == aDisposedPos )
277 {
278 OSL_ENSURE( sal_False,
279 "OWrappedAccessibleChildrenManager::disposing: where did this come from?" );
143 AccessibleMap::const_iterator aPos = m_aChildrenMap.find( _rxKey );
144 if ( m_aChildrenMap.end() != aPos )
145 {
146 xValue = aPos->second;
147 }
148 else if ( _bCreate )
149 { // not found in the cache, and allowed to create
150 // -> new wrapper

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

272 // this should come from one of the inner XAccessible's of our children
273 Reference< XAccessible > xSource( _rSource.Source, UNO_QUERY );
274 AccessibleMap::iterator aDisposedPos = m_aChildrenMap.find( xSource );
275#if OSL_DEBUG_LEVEL > 0
276 if ( m_aChildrenMap.end() == aDisposedPos )
277 {
278 OSL_ENSURE( sal_False,
279 "OWrappedAccessibleChildrenManager::disposing: where did this come from?" );
280 // helper for dignostics
280 // helper for diagnostics
281 Reference< XAccessible > xOwningAccessible( m_aOwningAccessible );
282 Reference< XAccessibleContext > xContext;
283 try
284 {
285 if ( xOwningAccessible.is() )
286 xContext = xOwningAccessible->getAccessibleContext();
287 if ( xContext.is() )
288 {

--- 391 unchanged lines hidden ---
281 Reference< XAccessible > xOwningAccessible( m_aOwningAccessible );
282 Reference< XAccessibleContext > xContext;
283 try
284 {
285 if ( xOwningAccessible.is() )
286 xContext = xOwningAccessible->getAccessibleContext();
287 if ( xContext.is() )
288 {

--- 391 unchanged lines hidden ---