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

Change-Id: I076ae20fb21accf8ff7e7fad096534e97ba7dab4
This commit is contained in:
Noel Grandin
2013-09-09 10:48:58 +02:00
parent fbffa4e79a
commit d178cb406b
7 changed files with 7 additions and 7 deletions

View File

@@ -234,7 +234,7 @@ sal_Int32 EditTextObject::GetParagraphCount() const
return mpImpl->GetParagraphCount();
}
String EditTextObject::GetText(sal_Int32 nPara) const
OUString EditTextObject::GetText(sal_Int32 nPara) const
{
return mpImpl->GetText(nPara);
}

View File

@@ -90,7 +90,7 @@ public:
sal_Int32 GetParagraphCount() const;
String GetText(sal_Int32 nPara) const;
OUString GetText(sal_Int32 nPara) const;
void ClearPortionInfo();

View File

@@ -400,7 +400,7 @@ sal_Bool ScAccessiblePageHeader::IsDefunc( const uno::Reference<XAccessibleState
void ScAccessiblePageHeader::AddChild(const EditTextObject* pArea, sal_uInt32 nIndex, SvxAdjust eAdjust)
{
if (pArea && (pArea->GetText(0).Len() || (pArea->GetParagraphCount() > 1)))
if (pArea && (!pArea->GetText(0).isEmpty() || (pArea->GetParagraphCount() > 1)))
{
if (maAreas[nIndex])
{

View File

@@ -3076,7 +3076,7 @@ sal_Int32 AnimationImporter::importTargetElementContainer( const Atom* pAtom, An
while( (nPara < nParaCount) && (begin > 0) )
{
sal_Int32 nParaLength = rEditTextObject.GetText( nPara ).Len() + 1;
sal_Int32 nParaLength = rEditTextObject.GetText( nPara ).getLength() + 1;
begin -= nParaLength;
end -= nParaLength;
nPara++;

View File

@@ -366,7 +366,7 @@ bool SdrTextObj::HasText() const
sal_Int32 nParaCount = rETO.GetParagraphCount();
if( nParaCount > 0 )
bHasText = (nParaCount > 1) || (rETO.GetText( 0 ).Len() != 0);
bHasText = (nParaCount > 1) || (!rETO.GetText( 0 ).isEmpty());
}
return bHasText;

View File

@@ -560,7 +560,7 @@ bool Cell::hasText() const
{
if( rTextObj.GetParagraphCount() == 1 )
{
if( rTextObj.GetText(0).Len() == 0 )
if( rTextObj.GetText(0).isEmpty() )
return false;
}
return true;

View File

@@ -235,7 +235,7 @@ void SwAnnotationWin::InitAnswer(OutlinerParaObject* pText)
// insert old, selected text or "..."
// TODO: iterate over all paragraphs, not only first one to find out if it is empty
if (pText->GetTextObject().GetText(0).Len())
if (!pText->GetTextObject().GetText(0).isEmpty())
GetOutlinerView()->GetEditView().InsertText(pText->GetTextObject());
else
GetOutlinerView()->InsertText(OUString("..."),false);