Kaydet (Commit) 1cb1dca1 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Revert SwAccessibleCell::getCurrentValue to return a numeric value again

76c549eb "Integrate branch of IAccessible2" had
changed it to return a string, but that neither matched the documentation of
css.accessibility.XAccessibleValue nor did it satisfy JunitTest_sw_unoapi.  This
needs further clarification apparently.

Change-Id: Ib09f7549db7ba5155798d5917908c7ce50e7a592
üst e56105a1
...@@ -363,30 +363,7 @@ uno::Any SwAccessibleCell::getCurrentValue( ) ...@@ -363,30 +363,7 @@ uno::Any SwAccessibleCell::getCurrentValue( )
CHECK_FOR_DEFUNC( XAccessibleValue ); CHECK_FOR_DEFUNC( XAccessibleValue );
uno::Any aAny; uno::Any aAny;
aAny <<= GetTblBoxFormat()->GetTblBoxValue().GetValue();
const SwCellFrm* pCellFrm = static_cast<const SwCellFrm*>( GetFrm() );
const SwStartNode *pSttNd = pCellFrm->GetTabBox()->GetSttNd();
if( pSttNd )
{
OUString strRet;
SwNodeIndex aCntntIdx( *pSttNd, 0 );
SwCntntNode* pCNd=NULL;
for(int nIndex = 0 ;
0 != ( pCNd = pSttNd->GetNodes().GoNext( &aCntntIdx ) ) &&
aCntntIdx.GetIndex() < pSttNd->EndOfSectionIndex();
++nIndex )
{
if(pCNd && pCNd->IsTxtNode())
{
if (0 != nIndex)
{
strRet += " ";
}
strRet +=((SwTxtNode*)pCNd)->GetTxt();
}
}
aAny <<= strRet;
}
return aAny; return aAny;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment