sw/source/uibase/shells/textsh.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit 1fa122efc36ae461228fec6a77b9b9e4820e8313 Author: Szymon Kłos <szymon.k...@collabora.com> AuthorDate: Tue May 13 08:45:08 2025 +0000 Commit: Szymon Kłos <szymon.k...@collabora.com> CommitDate: Wed May 28 13:27:50 2025 +0200 lok: open sidebar when formula is inserted to insert various math elements we need sidebar, in LOK case when it was closed it was hard for an user to discover it's features Change-Id: I1e378d932d42bee637f14842279b44edf33dacb1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185248 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Tomaž Vajngerl <qui...@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185953 Tested-by: Jenkins Reviewed-by: Szymon Kłos <szymon.k...@collabora.com> diff --git a/sw/source/uibase/shells/textsh.cxx b/sw/source/uibase/shells/textsh.cxx index 2a767188a62b..7bca281d072f 100644 --- a/sw/source/uibase/shells/textsh.cxx +++ b/sw/source/uibase/shells/textsh.cxx @@ -20,11 +20,13 @@ #include <config_features.h> #include <hintids.hxx> +#include <comphelper/lok.hxx> #include <comphelper/string.hxx> #include <svl/globalnameitem.hxx> #include <sfx2/bindings.hxx> #include <sfx2/frmdescr.hxx> #include <sfx2/objface.hxx> +#include <sfx2/sidebar/Sidebar.hxx> #include <sfx2/viewfrm.hxx> #include <i18nutil/transliteration.hxx> @@ -419,6 +421,10 @@ void SwTextShell::ExecInsert(SfxRequest &rReq) case FN_INSERT_SMA: { + // if sidebar is closed - open to show elements deck + if (comphelper::LibreOfficeKit::isActive()) + sfx2::sidebar::Sidebar::Setup(u""); + // #i34343# Inserting a math object into an autocompletion crashes // the suggestion has to be removed before GetView().GetEditWin().StopQuickHelp();