summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSumit Chauhan <sumitcn25@gmail.com>2019-06-10 15:47:55 +0530
committerCaolán McNamara <caolanm@redhat.com>2019-11-26 15:55:37 +0100
commitb497349fc04d1e3fe4eac265067feae2e5519dd9 (patch)
tree9d753372f8a8bd688b0ccd9598679b650bb37974 /include
parentnss: upgrade to release 3.47.1 (diff)
downloadcore-b497349fc04d1e3fe4eac265067feae2e5519dd9.tar.gz
core-b497349fc04d1e3fe4eac265067feae2e5519dd9.zip
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 . Reviewed-on: https://gerrit.libreoffice.org/73750 Tested-by: Jenkins Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> (cherry picked from commit 6b888ac476fe6ac2ee96c7086cb8c24249f08473) Change-Id: I3d6314e4b8220a8744331246639acadea941252f Reviewed-on: https://gerrit.libreoffice.org/82737 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/notebookbar/SfxNotebookBar.hxx8
-rw-r--r--include/vcl/syswin.hxx5
2 files changed, 9 insertions, 4 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;
diff --git a/include/vcl/syswin.hxx b/include/vcl/syswin.hxx
index c285abe2c024..22dd359e927b 100644
--- a/include/vcl/syswin.hxx
+++ b/include/vcl/syswin.hxx
@@ -215,7 +215,10 @@ public:
MenuBar* GetMenuBar() const { return mpMenuBar; }
void SetMenuBarMode( MenuBarMode nMode );
- void SetNotebookBar(const OUString& rUIXMLDescription, const css::uno::Reference<css::frame::XFrame>& rFrame);
+ void SetNotebookBar(const OUString& rUIXMLDescription,
+ const css::uno::Reference<css::frame::XFrame>& rFrame,
+ bool bReloadNotebookbar = false);
+
void CloseNotebookBar();
VclPtr<NotebookBar> const & GetNotebookBar() const;