summaryrefslogtreecommitdiff
path: root/include/sfx2/notebookbar
diff options
context:
space:
mode:
authorSumit Chauhan <sumitcn25@gmail.com>2019-06-10 15:47:55 +0530
committerSzymon Kłos <szymon.klos@collabora.com>2019-06-16 22:14:10 +0200
commit6b888ac476fe6ac2ee96c7086cb8c24249f08473 (patch)
treef36fb8dd53a8f0ed4a6b1eae795e5468ecf6dc8b /include/sfx2/notebookbar
parentadcb7bacb452dccde70b20a902f5c1f23f37913f (diff)
Reload Notebookbar, when customization is being done.
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 <szymon.klos@collabora.com>
Diffstat (limited to 'include/sfx2/notebookbar')
-rw-r--r--include/sfx2/notebookbar/SfxNotebookBar.hxx8
1 files changed, 5 insertions, 3 deletions
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<css::frame::XFrame> & xFrame,
- const OUString& rUIFile);
+ const css::uno::Reference<css::frame::XFrame>& 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;