summaryrefslogtreecommitdiff
path: root/include/sfx2
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2024-01-29 16:08:48 +0900
committerTomaž Vajngerl <quikee@gmail.com>2024-01-30 10:10:07 +0100
commit74ee046a04d6893db5b772f8f4219f7db413fbb8 (patch)
treef9b5b95befec1c6c076d4f740934a0d4c776b2c7 /include/sfx2
parentf1729753193f4f2c69f45b4377a557cceeb72070 (diff)
lok: introduce NotebookBarViewManager and NotebookBarViewData
NotebookBarViewManager is a singleton which is responsible to hold NotebookBar view specific data, which is kept in NotebookBarViewData class. The idea is to have one NotebookBarViewData class instance per one view (SfxViewShell instance). This also refactors the existing code and now moves the m_pWeldedWrapper, m_pNotebookBar and the m_pToolbarUnoDispatcher into NotebookBarViewData class. Change-Id: I32f5954fa9f1628acd9f5f9bd5760ac23ca687ae Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162706 Tested-by: Jenkins Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'include/sfx2')
-rw-r--r--include/sfx2/notebookbar/SfxNotebookBar.hxx9
1 files changed, 1 insertions, 8 deletions
diff --git a/include/sfx2/notebookbar/SfxNotebookBar.hxx b/include/sfx2/notebookbar/SfxNotebookBar.hxx
index cd94ddad7b1e..47bd9cc79901 100644
--- a/include/sfx2/notebookbar/SfxNotebookBar.hxx
+++ b/include/sfx2/notebookbar/SfxNotebookBar.hxx
@@ -16,7 +16,6 @@
#include <vcl/WeldedTabbedNotebookbar.hxx>
#include <vcl/EnumContext.hxx>
-#include <map>
#include <memory>
#include <string_view>
@@ -33,8 +32,7 @@ class SfxBindings;
class SfxViewFrame;
class SfxViewShell;
class SystemWindow;
-class ToolbarUnoDispatcher;
-class WeldedTabbedNotebookbar;
+class ViewInstanceManager;
namespace sfx2
{
@@ -75,11 +73,6 @@ public:
private:
static bool m_bLock;
static bool m_bHide;
- static std::unique_ptr<ToolbarUnoDispatcher> m_xCalcToolboxDispatcher;
-
- static std::map<const SfxViewShell*, std::shared_ptr<WeldedTabbedNotebookbar>>
- m_pNotebookBarWeldedWrapper;
- static std::map<const SfxViewShell*, VclPtr<NotebookBar>> m_pNotebookBarInstance;
static void ResetActiveToolbarModeToDefault(vcl::EnumContext::Application eApp);
static void RemoveCurrentLOKWrapper();