summaryrefslogtreecommitdiff
path: root/svx/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-04-13 12:19:13 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-04-19 16:54:14 +0200
commit20e8e09a40f5b82992655c565207f0537fc11d24 (patch)
tree30e7e569a77f9f6c99bd813c93c8f099dbd968c0 /svx/source
parentcbf98d15ebfdeb61d5b797b21442761c76cb5f02 (diff)
weld SmEditTextWindow
reuse the WeldEditAccessible a11y impl and remove the then unused starmath equivalent. Change-Id: I2dc1e0436ffcd0b295e204c21bfcd365dae08bff Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114044 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source')
-rw-r--r--svx/source/dialog/weldeditview.cxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/svx/source/dialog/weldeditview.cxx b/svx/source/dialog/weldeditview.cxx
index f08abb3b740e..b558d9f3040e 100644
--- a/svx/source/dialog/weldeditview.cxx
+++ b/svx/source/dialog/weldeditview.cxx
@@ -67,6 +67,12 @@ bool WeldEditView::HasSelection() const
return pEditView && pEditView->HasSelection();
}
+void WeldEditView::Delete()
+{
+ if (EditView* pEditView = GetEditView())
+ pEditView->DeleteSelected();
+}
+
void WeldEditView::Cut()
{
if (EditView* pEditView = GetEditView())
@@ -85,7 +91,10 @@ void WeldEditView::Paste()
pEditView->Paste();
}
-WeldEditView::WeldEditView() {}
+WeldEditView::WeldEditView()
+ : m_bAcceptsTab(false)
+{
+}
// tdf#127033 want to use UI font so override makeEditEngine to enable that
void WeldEditView::makeEditEngine()
@@ -203,7 +212,7 @@ bool WeldEditView::KeyInput(const KeyEvent& rKEvt)
sal_uInt16 nKey = rKEvt.GetKeyCode().GetCode();
- if (nKey == KEY_TAB)
+ if (nKey == KEY_TAB && !GetAcceptsTab())
{
return false;
}