summaryrefslogtreecommitdiff
path: root/starmath/source/cursor.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-04-30 17:01:32 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-05-02 13:18:57 +0200
commit34f7e618ddd3399d9e7f3998e25545256255d02d (patch)
treefd946f8f2ab8386db89f531d49fae1718a21e943 /starmath/source/cursor.cxx
parentc881756fcfdc1fa63ff534bf4538d551b2139515 (diff)
untranslated strings are just strings
removes starmaths InsertCommand in favour of InsertCommandText Change-Id: I5659adcaa28e5b5861d1a1cc5d2afa84009490f6 Reviewed-on: https://gerrit.libreoffice.org/37113 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath/source/cursor.cxx')
-rw-r--r--starmath/source/cursor.cxx22
1 files changed, 1 insertions, 21 deletions
diff --git a/starmath/source/cursor.cxx b/starmath/source/cursor.cxx
index c4c798452406..78bfb040e39d 100644
--- a/starmath/source/cursor.cxx
+++ b/starmath/source/cursor.cxx
@@ -12,6 +12,7 @@
#include "document.hxx"
#include "view.hxx"
#include "accessibility.hxx"
+#include "strings.hxx"
#include <comphelper/string.hxx>
#include <cassert>
@@ -1073,27 +1074,6 @@ void SmCursor::InsertSpecial(const OUString& _aString)
EndEdit();
}
-void SmCursor::InsertCommand(sal_uInt16 nCommand) {
- switch(nCommand){
- case RID_NEWLINE:
- InsertRow();
- break;
- case RID_FROMX:
- InsertLimit(CSUB);
- break;
- case RID_TOX:
- InsertLimit(CSUP);
- break;
- case RID_FROMXTOY:
- if(InsertLimit(CSUB))
- InsertLimit(CSUP);
- break;
- default:
- InsertCommandText(SM_RESSTR(nCommand));
- break;
- }
-}
-
void SmCursor::InsertCommandText(const OUString& aCommandText) {
//Parse the sub expression
SmNode* pSubExpr = SmParser().ParseExpression(aCommandText);