AccessibleGraphicShape.cxx (4d7c9de0) | AccessibleGraphicShape.cxx (3ea0c3d5) |
---|---|
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 --- 195 unchanged lines hidden (view full) --- 204 205 206 207::rtl::OUString 208 AccessibleGraphicShape::CreateAccessibleDescription (void) 209 throw (::com::sun::star::uno::RuntimeException) 210{ 211 //Solution: Don't use the same information for accessible name and accessible description. | 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 --- 195 unchanged lines hidden (view full) --- 204 205 206 207::rtl::OUString 208 AccessibleGraphicShape::CreateAccessibleDescription (void) 209 throw (::com::sun::star::uno::RuntimeException) 210{ 211 //Solution: Don't use the same information for accessible name and accessible description. |
212 //return CreateAccessibleName (); | |
213 ::rtl::OUString sDesc; 214 if(m_pShape) 215 sDesc = m_pShape->GetTitle(); 216 if(sDesc.getLength() > 0) 217 return sDesc; 218 return CreateAccessibleBaseName(); 219} 220// Return this object's role. 221sal_Int16 SAL_CALL AccessibleGraphicShape::getAccessibleRole (void) 222 throw (::com::sun::star::uno::RuntimeException) 223{ 224 sal_Int16 nAccessibleRole = AccessibleRole::SHAPE; 225 if( m_pShape->GetModel()->GetImageMapForObject(m_pShape) != NULL ) 226 return AccessibleRole::IMAGE_MAP; 227 else | 212 ::rtl::OUString sDesc; 213 if(m_pShape) 214 sDesc = m_pShape->GetTitle(); 215 if(sDesc.getLength() > 0) 216 return sDesc; 217 return CreateAccessibleBaseName(); 218} 219// Return this object's role. 220sal_Int16 SAL_CALL AccessibleGraphicShape::getAccessibleRole (void) 221 throw (::com::sun::star::uno::RuntimeException) 222{ 223 sal_Int16 nAccessibleRole = AccessibleRole::SHAPE; 224 if( m_pShape->GetModel()->GetImageMapForObject(m_pShape) != NULL ) 225 return AccessibleRole::IMAGE_MAP; 226 else |
228 //return AccessibleRole::SHAPE; | |
229 return AccessibleShape::getAccessibleRole(); 230 return nAccessibleRole; 231} 232 233 | 227 return AccessibleShape::getAccessibleRole(); 228 return nAccessibleRole; 229} 230 231 |