convert include/editeng/editdata.hxx from String to OUString

Change-Id: I5bdb26880448ce0f71bf1b6639fcf2db3e472a50
This commit is contained in:
Noel Grandin
2013-09-09 12:59:28 +02:00
parent b929c66384
commit a2ea07f0b9
4 changed files with 8 additions and 8 deletions

View File

@@ -2050,7 +2050,7 @@ namespace accessibility
// Translate EE Index to accessible index
sal_uInt16 nStart = rT.CalcEditEngineIndex( nPara, nEEStart );
sal_uInt16 nEnd = nStart + aField.aCurrentText.Len();
sal_uInt16 nEnd = nStart + aField.aCurrentText.getLength();
xRef = new AccessibleHyperlink( rT, new SvxFieldItem( *aField.pFieldItem ), nPara, nEEStart, nStart, nEnd, aField.aCurrentText );
break;
}

View File

@@ -215,7 +215,7 @@ void SvxAccessibleTextIndex::SetEEIndex( sal_uInt16 nEEIndex, const SvxTextForwa
}
// #106010#
mnIndex += ::std::max(aFieldInfo.aCurrentText.Len()-1, 0);
mnIndex += ::std::max(aFieldInfo.aCurrentText.getLength()-1, 0);
}
}
@@ -269,14 +269,14 @@ void SvxAccessibleTextIndex::SetIndex( sal_Int32 nIndex, const SvxTextForwarder&
break;
// #106010#
mnEEIndex -= ::std::max(aFieldInfo.aCurrentText.Len()-1, 0);
mnEEIndex -= ::std::max(aFieldInfo.aCurrentText.getLength()-1, 0);
// we're within a field
if( aFieldInfo.aPosition.nIndex >= mnEEIndex )
{
AreInField();
SetFieldOffset( ::std::max(aFieldInfo.aCurrentText.Len()-1, 0) - (aFieldInfo.aPosition.nIndex - mnEEIndex),
aFieldInfo.aCurrentText.Len() );
SetFieldOffset( ::std::max(aFieldInfo.aCurrentText.getLength()-1, 0) - (aFieldInfo.aPosition.nIndex - mnEEIndex),
aFieldInfo.aCurrentText.getLength() );
mnEEIndex = aFieldInfo.aPosition.nIndex ;
break;
}

View File

@@ -211,7 +211,7 @@ inline void ESelection::Adjust()
struct EDITENG_DLLPUBLIC EFieldInfo
{
SvxFieldItem* pFieldItem;
String aCurrentText;
OUString aCurrentText;
EPosition aPosition;
EFieldInfo();
@@ -246,7 +246,7 @@ struct ImportInfo
int nToken;
short nTokenValue;
String aText;
OUString aText;
void* pAttrs; // RTF: SvxRTFItemStackType*, HTML: SfxItemSet*

View File

@@ -2428,7 +2428,7 @@ bool ScHTMLTable::IsEmptyCell() const
bool ScHTMLTable::IsSpaceCharInfo( const ImportInfo& rInfo )
{
return (rInfo.nToken == HTML_TEXTTOKEN) && (rInfo.aText.Len() == 1) && (rInfo.aText.GetChar( 0 ) == ' ');
return (rInfo.nToken == HTML_TEXTTOKEN) && (rInfo.aText.getLength() == 1) && (rInfo.aText[ 0 ] == ' ');
}
ScHTMLTable::ScHTMLEntryPtr ScHTMLTable::CreateEntry() const