convert include/editeng/editdata.hxx from String to OUString
Change-Id: I5bdb26880448ce0f71bf1b6639fcf2db3e472a50
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -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*
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user