summaryrefslogtreecommitdiff
path: root/vcl
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 /vcl
parent3991156ab286a88fd9d340f4979d2027ddce4ecc (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 . 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 'vcl')
-rw-r--r--vcl/source/window/syswin.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/vcl/source/window/syswin.cxx b/vcl/source/window/syswin.cxx
index 27e0c87cf41f..59d3b2e97189 100644
--- a/vcl/source/window/syswin.cxx
+++ b/vcl/source/window/syswin.cxx
@@ -966,9 +966,11 @@ void SystemWindow::SetMenuBar(MenuBar* pMenuBar)
}
}
-void SystemWindow::SetNotebookBar(const OUString& rUIXMLDescription, const css::uno::Reference<css::frame::XFrame>& rFrame)
+void SystemWindow::SetNotebookBar(const OUString& rUIXMLDescription,
+ const css::uno::Reference<css::frame::XFrame>& rFrame,
+ bool bReloadNotebookbar)
{
- if (rUIXMLDescription != maNotebookBarUIFile)
+ if (rUIXMLDescription != maNotebookBarUIFile || bReloadNotebookbar)
{
static_cast<ImplBorderWindow*>(mpWindowImpl->mpBorderWindow.get())->SetNotebookBar(rUIXMLDescription, rFrame);
maNotebookBarUIFile = rUIXMLDescription;