summaryrefslogtreecommitdiff
path: root/starmath/source/edit.cxx
diff options
context:
space:
mode:
authorChr. Rossmanith <ChrRossmanith@gmx.de>2013-01-21 14:32:09 +0100
committerMichael Stahl <mstahl@redhat.com>2013-01-21 20:48:35 +0000
commite3f11c10d8cc759d01afa4b8fd8bd98c81a03119 (patch)
tree36191c6d90da559009161a1199d1176cf6a2bbba /starmath/source/edit.cxx
parent87f9d7da00857c649784a7d9eca046bf6e71ae3c (diff)
Changed SetText() / GetText() to take/return OUString
replaced lots of Len() with isEmpty() Change-Id: I6b82d48245ee2a0782e05a326f7934e9357227d0 Reviewed-on: https://gerrit.libreoffice.org/1795 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'starmath/source/edit.cxx')
-rw-r--r--starmath/source/edit.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx
index b6d83e0f6e9f..4e4172349e13 100644
--- a/starmath/source/edit.cxx
+++ b/starmath/source/edit.cxx
@@ -598,7 +598,7 @@ void SmEditWindow::InitScrollBars()
}
-String SmEditWindow::GetText() const
+OUString SmEditWindow::GetText() const
{
String aText;
EditEngine *pEditEngine = const_cast< SmEditWindow* >(this)->GetEditEngine();
@@ -609,7 +609,7 @@ String SmEditWindow::GetText() const
}
-void SmEditWindow::SetText(const XubString& rText)
+void SmEditWindow::SetText(const OUString& rText)
{
EditEngine *pEditEngine = GetEditEngine();
OSL_ENSURE( pEditEngine, "EditEngine missing" );
@@ -686,7 +686,7 @@ bool SmEditWindow::IsAllSelected() const
sal_Int32 nParaCnt = pEditEngine->GetParagraphCount();
if (!(nParaCnt - 1))
{
- sal_uInt16 nTextLen = pEditEngine->GetText( LINEEND_LF ).Len();
+ sal_Int32 nTextLen = pEditEngine->GetText( LINEEND_LF ).getLength();
bRes = !eSelection.nStartPos && (eSelection.nEndPos == nTextLen - 1);
}
else