AccessibleParaManager.cxx (190118d0) AccessibleParaManager.cxx (9b8096d0)
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

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

351
352 void AccessibleParaManager::FireEvent( sal_uInt32 nStartPara,
353 sal_uInt32 nEndPara,
354 const sal_Int16 nEventId,
355 const uno::Any& rNewValue,
356 const uno::Any& rOldValue ) const
357 {
358 DBG_ASSERT( maChildren.size() > nStartPara &&
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

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

351
352 void AccessibleParaManager::FireEvent( sal_uInt32 nStartPara,
353 sal_uInt32 nEndPara,
354 const sal_Int16 nEventId,
355 const uno::Any& rNewValue,
356 const uno::Any& rOldValue ) const
357 {
358 DBG_ASSERT( maChildren.size() > nStartPara &&
359 maChildren.size() >= nEndPara , "AccessibleParaManager::FireEvent: invalid index" );
359 maChildren.size() >= nEndPara &&
360 nEndPara >= nStartPara , "AccessibleParaManager::FireEvent: invalid index" );
360
361
361 if( maChildren.size() > nStartPara &&
362 maChildren.size() >= nEndPara )
362 if( maChildren.size() > nStartPara && maChildren.size() >= nEndPara && nEndPara >= nStartPara)
363 {
364 VectorOfChildren::const_iterator front = maChildren.begin();
365 VectorOfChildren::const_iterator back = front;
366
367 ::std::advance( front, nStartPara );
368 ::std::advance( back, nEndPara );
369
370 StateChangeEvent aFunctor( nEventId, rNewValue, rOldValue );

--- 46 unchanged lines hidden ---
363 {
364 VectorOfChildren::const_iterator front = maChildren.begin();
365 VectorOfChildren::const_iterator back = front;
366
367 ::std::advance( front, nStartPara );
368 ::std::advance( back, nEndPara );
369
370 StateChangeEvent aFunctor( nEventId, rNewValue, rOldValue );

--- 46 unchanged lines hidden ---