AccessibleImageBullet.cxx (190118d0) AccessibleImageBullet.cxx (7a980842)
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

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

209 ::vos::OGuard aGuard( Application::GetSolarMutex() );
210
211 lang::Locale aLocale;
212
213 DBG_ASSERT(GetParagraphIndex() >= 0 && GetParagraphIndex() <= USHRT_MAX,
214 "AccessibleImageBullet::getLocale: paragraph index value overflow");
215
216 // return locale of first character in the paragraph
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

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

209 ::vos::OGuard aGuard( Application::GetSolarMutex() );
210
211 lang::Locale aLocale;
212
213 DBG_ASSERT(GetParagraphIndex() >= 0 && GetParagraphIndex() <= USHRT_MAX,
214 "AccessibleImageBullet::getLocale: paragraph index value overflow");
215
216 // return locale of first character in the paragraph
217 return SvxLanguageToLocale(aLocale, GetTextForwarder().GetLanguage( static_cast< sal_uInt16 >( GetParagraphIndex() ), 0 ));
217 return SvxLanguageToLocale(aLocale, GetTextForwarder().GetLanguage( GetParagraphIndex(), 0 ));
218 }
219
220 void SAL_CALL AccessibleImageBullet::addEventListener( const uno::Reference< XAccessibleEventListener >& xListener ) throw (uno::RuntimeException)
221 {
222 DBG_CHKTHIS( AccessibleImageBullet, NULL );
223
224 if( getNotifierClientId() != -1 )
225 ::comphelper::AccessibleEventNotifier::addEventListener( getNotifierClientId(), xListener );

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

262 DBG_CHKTHIS( AccessibleImageBullet, NULL );
263
264 ::vos::OGuard aGuard( Application::GetSolarMutex() );
265
266 DBG_ASSERT(GetParagraphIndex() >= 0 && GetParagraphIndex() <= USHRT_MAX,
267 "AccessibleEditableTextPara::getBounds: index value overflow");
268
269 SvxTextForwarder& rCacheTF = GetTextForwarder();
218 }
219
220 void SAL_CALL AccessibleImageBullet::addEventListener( const uno::Reference< XAccessibleEventListener >& xListener ) throw (uno::RuntimeException)
221 {
222 DBG_CHKTHIS( AccessibleImageBullet, NULL );
223
224 if( getNotifierClientId() != -1 )
225 ::comphelper::AccessibleEventNotifier::addEventListener( getNotifierClientId(), xListener );

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

262 DBG_CHKTHIS( AccessibleImageBullet, NULL );
263
264 ::vos::OGuard aGuard( Application::GetSolarMutex() );
265
266 DBG_ASSERT(GetParagraphIndex() >= 0 && GetParagraphIndex() <= USHRT_MAX,
267 "AccessibleEditableTextPara::getBounds: index value overflow");
268
269 SvxTextForwarder& rCacheTF = GetTextForwarder();
270 EBulletInfo aBulletInfo = rCacheTF.GetBulletInfo( static_cast< sal_uInt16 > (GetParagraphIndex()) );
271 Rectangle aParentRect = rCacheTF.GetParaBounds( static_cast< sal_uInt16 >( GetParagraphIndex() ) );
270 EBulletInfo aBulletInfo = rCacheTF.GetBulletInfo( GetParagraphIndex() );
271 Rectangle aParentRect = rCacheTF.GetParaBounds( GetParagraphIndex() );
272
273 if( aBulletInfo.nParagraph != EE_PARA_NOT_FOUND &&
274 aBulletInfo.bVisible &&
275 aBulletInfo.nType == SVX_NUM_BITMAP )
276 {
277 Rectangle aRect = aBulletInfo.aBounds;
278
279 // subtract paragraph position (bullet pos is absolute in EditEngine/Outliner)

--- 368 unchanged lines hidden ---
272
273 if( aBulletInfo.nParagraph != EE_PARA_NOT_FOUND &&
274 aBulletInfo.bVisible &&
275 aBulletInfo.nType == SVX_NUM_BITMAP )
276 {
277 Rectangle aRect = aBulletInfo.aBounds;
278
279 // subtract paragraph position (bullet pos is absolute in EditEngine/Outliner)

--- 368 unchanged lines hidden ---