convert include/editeng/editobj.hxx from String to OUString
Change-Id: I076ae20fb21accf8ff7e7fad096534e97ba7dab4
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
@@ -90,7 +90,7 @@ public:
|
||||
|
||||
sal_Int32 GetParagraphCount() const;
|
||||
|
||||
String GetText(sal_Int32 nPara) const;
|
||||
OUString GetText(sal_Int32 nPara) const;
|
||||
|
||||
void ClearPortionInfo();
|
||||
|
||||
|
@@ -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])
|
||||
{
|
||||
|
@@ -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++;
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user