diff options
author | Khaled Hosny <khaled@libreoffice.org> | 2023-09-05 20:24:13 +0300 |
---|---|---|
committer | خالد حسني <khaled@libreoffice.org> | 2023-09-05 20:28:34 +0200 |
commit | ee187f6ed7873f3ebc1f845a4384a84713be1e9c (patch) | |
tree | 263663df8a2debf9ebeb71aacfac58569154465d /starmath/inc | |
parent | 15e0dfe709636b517bc1876caa3853606d9b499c (diff) |
starmath: Always insert using SmCursor when inline editing is enabled
Choosing which code path based on which widget has focus is not a very
good idea, and leads to unreliable UI tests as each code path inserts
the text slightly differently (one code path inserts plain text then
parses the whole equation again, while the other parses the new text
then inserts the parsed node directly).
Change-Id: Ib2ca942c537e466f6ff100be7f95adaead99f1d5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156578
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@libreoffice.org>
Diffstat (limited to 'starmath/inc')
-rw-r--r-- | starmath/inc/view.hxx | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/starmath/inc/view.hxx b/starmath/inc/view.hxx index dc42dde2fdc9..4a79b94e4f02 100644 --- a/starmath/inc/view.hxx +++ b/starmath/inc/view.hxx @@ -249,11 +249,6 @@ class SmViewShell final : public SfxViewShell SmGraphicController maGraphicController; OUString maStatusText; bool mbPasteState; - /** Used to determine whether insertions using SID_INSERTSPECIAL and SID_INSERTCOMMANDTEXT - * should be inserted into SmEditWindow or directly into the SmDocShell as done if the - * visual editor was last to have focus. - */ - bool mbInsertIntoEditWindow; DECL_LINK( DialogClosedHdl, sfx2::FileDialogHelper*, void ); virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override; @@ -337,15 +332,6 @@ public: void Impl_Print( OutputDevice &rOutDev, const SmPrintUIOptions &rPrintUIOptions, tools::Rectangle aOutRect ); - /** Set bInsertIntoEditWindow so we know where to insert - * - * This method is called whenever SmGraphicWidget or SmEditWindow gets focus, - * so that when text is inserted from catalog or elsewhere we know whether to - * insert for the visual editor, or the text editor. - */ - void SetInsertIntoEditWindow(bool bEditWindowHadFocusLast){ - mbInsertIntoEditWindow = bEditWindowHadFocusLast; - } static bool IsInlineEditEnabled(); // Opens the main help page for the Math module |