From 6b888ac476fe6ac2ee96c7086cb8c24249f08473 Mon Sep 17 00:00:00 2001 From: Sumit Chauhan Date: Mon, 10 Jun 2019 15:47:55 +0530 Subject: Reload Notebookbar, when customization is being done. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch is related to notebookbar customization tab. When one clicks the widget checkbox , to preview the real-time changes one need to call this ReloadNotebookBar() method . Change-Id: I3d6314e4b8220a8744331246639acadea941252f Reviewed-on: https://gerrit.libreoffice.org/73750 Tested-by: Jenkins Reviewed-by: Szymon Kłos --- include/sfx2/notebookbar/SfxNotebookBar.hxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'include/sfx2') diff --git a/include/sfx2/notebookbar/SfxNotebookBar.hxx b/include/sfx2/notebookbar/SfxNotebookBar.hxx index 9eb76e9c3ba5..2a30a126beaf 100644 --- a/include/sfx2/notebookbar/SfxNotebookBar.hxx +++ b/include/sfx2/notebookbar/SfxNotebookBar.hxx @@ -36,10 +36,11 @@ public: static void ExecMethod(SfxBindings& rBindings, const OUString& rUIName); /// Function to be called from the sdi's StateMethod. - static bool StateMethod(SfxBindings& rBindings, const OUString& rUIFile); + static bool StateMethod(SfxBindings& rBindings, const OUString& rUIFile, + bool bReloadNotebookbar = false); static bool StateMethod(SystemWindow* pSysWindow, - const css::uno::Reference & xFrame, - const OUString& rUIFile); + const css::uno::Reference& xFrame, + const OUString& rUIFile, bool bReloadNotebookbar = false); /// Method temporarily blocks showing of the NotebookBar static void LockNotebookBar(); @@ -53,6 +54,7 @@ public: /** Show menu bar only in current frame */ static void ShowMenubar(SfxViewFrame const * pViewFrame, bool bShow); static void ToggleMenubar(); + static void ReloadNotebookBar(OUString& sUIPath); private: static bool m_bLock; -- cgit