diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-04-30 17:01:32 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-05-02 13:18:57 +0200 |
commit | 34f7e618ddd3399d9e7f3998e25545256255d02d (patch) | |
tree | fd946f8f2ab8386db89f531d49fae1718a21e943 /starmath/source/cursor.cxx | |
parent | c881756fcfdc1fa63ff534bf4538d551b2139515 (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.cxx | 22 |
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); |