AccessibleCellBase.cxx (4d7c9de0) | AccessibleCellBase.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 --- 216 unchanged lines hidden (view full) --- 225 226 return sDescription; 227} 228 229::rtl::OUString SAL_CALL 230 ScAccessibleCellBase::createAccessibleName(void) 231 throw (uno::RuntimeException) 232{ | 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 --- 216 unchanged lines hidden (view full) --- 225 226 return sDescription; 227} 228 229::rtl::OUString SAL_CALL 230 ScAccessibleCellBase::createAccessibleName(void) 231 throw (uno::RuntimeException) 232{ |
233 //String sName( ScResId(STR_ACC_CELL_NAME) ); | |
234 String sAddress; 235 // Document not needed, because only the cell address, but not the tablename is needed 236 // always us OOO notation 237 maCellAddress.Format( sAddress, SCA_VALID, NULL ); 238 //sName.SearchAndReplaceAscii("%1", sAddress); 239 /* #i65103# ZoomText merges cell address and contents, e.g. if value 2 is 240 contained in cell A1, ZT reads "cell A twelve" instead of "cell A1 - 2". 241 Simple solution: Append a space character to the cell address. */ | 233 String sAddress; 234 // Document not needed, because only the cell address, but not the tablename is needed 235 // always us OOO notation 236 maCellAddress.Format( sAddress, SCA_VALID, NULL ); 237 //sName.SearchAndReplaceAscii("%1", sAddress); 238 /* #i65103# ZoomText merges cell address and contents, e.g. if value 2 is 239 contained in cell A1, ZT reads "cell A twelve" instead of "cell A1 - 2". 240 Simple solution: Append a space character to the cell address. */ |
242 //sName.Append( ' ' ); 243 //return rtl::OUString(sName); | |
244 return rtl::OUString(sAddress); 245} 246 247 //===== XAccessibleValue ================================================ 248 249uno::Any SAL_CALL 250 ScAccessibleCellBase::getCurrentValue( ) 251 throw (uno::RuntimeException) 252{ 253 ScUnoGuard aGuard; 254 IsObjectValid(); 255 uno::Any aAny; 256 if (mpDoc) | 241 return rtl::OUString(sAddress); 242} 243 244 //===== XAccessibleValue ================================================ 245 246uno::Any SAL_CALL 247 ScAccessibleCellBase::getCurrentValue( ) 248 throw (uno::RuntimeException) 249{ 250 ScUnoGuard aGuard; 251 IsObjectValid(); 252 uno::Any aAny; 253 if (mpDoc) |
257 //aAny <<= mpDoc->GetValue(maCellAddress); | |
258 { 259 String valStr; 260 mpDoc->GetString(maCellAddress.Col(),maCellAddress.Row(),maCellAddress.Tab(), valStr); 261 aAny <<= rtl::OUString(valStr); 262 } 263 return aAny; 264} 265 --- 385 unchanged lines hidden --- | 254 { 255 String valStr; 256 mpDoc->GetString(maCellAddress.Col(),maCellAddress.Row(),maCellAddress.Tab(), valStr); 257 aAny <<= rtl::OUString(valStr); 258 } 259 return aAny; 260} 261 --- 385 unchanged lines hidden --- |