summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2022-02-22 13:03:24 +0100
committerSzymon Kłos <szymon.klos@collabora.com>2022-04-25 11:31:54 +0200
commited94d44c5130373c721a8345492a8ee47fd651a3 (patch)
treefd9e3f9d550539dea9e6fd5fd25a7904823d2cf5 /include
parent7741b21f98e22a654962a5fdae165508cc90a7df (diff)
lok: reset ui mode state when switch to notebookbar cancelled
We have to keep state in the register in sync with the view. When we cancelled notebookbar usage we need to revert Default state so next time we will be able to activate notebookbar. Change-Id: Ie5f7d0160c9c22c6621aca73b2cdd7197f86ff78 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130341 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/notebookbar/SfxNotebookBar.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sfx2/notebookbar/SfxNotebookBar.hxx b/include/sfx2/notebookbar/SfxNotebookBar.hxx
index acc5a9c50250..0bf6aee29ba7 100644
--- a/include/sfx2/notebookbar/SfxNotebookBar.hxx
+++ b/include/sfx2/notebookbar/SfxNotebookBar.hxx
@@ -12,6 +12,7 @@
#include <sfx2/dllapi.h>
#include <rtl/ustring.hxx>
+#include <vcl/EnumContext.hxx>
#include <map>
namespace com::sun::star::frame
@@ -72,6 +73,8 @@ private:
static std::map<const SfxViewShell*, std::shared_ptr<WeldedTabbedNotebookbar>>
m_pNotebookBarWeldedWrapper;
+ static void ResetActiveToolbarModeToDefault(vcl::EnumContext::Application eApp);
+
DECL_STATIC_LINK(SfxNotebookBar, VclDisposeHdl, const SfxViewShell*, void);
};