summaryrefslogtreecommitdiff
path: root/starmath/source/cursor.cxx
diff options
context:
space:
mode:
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);