From a001b5a8626789ec93ad5d05a32c8bd76250d083 Mon Sep 17 00:00:00 2001 From: Szymon Kłos Date: Tue, 16 Jun 2020 08:40:13 +0200 Subject: notebookbar: use JSInstanceBuilder for styles preview in online MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I826ca92aec5e324b935dfc7c52fc95c6ce5c5e05 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96915 Tested-by: Jenkins CollaboraOffice Reviewed-by: Szymon Kłos Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97732 Tested-by: Jenkins --- vcl/source/window/builder.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vcl') diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index 1d897a5d8f08..e1c00944fc8c 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -174,6 +174,11 @@ weld::Builder* Application::CreateBuilder(weld::Widget* pParent, const OUString weld::Builder* Application::CreateInterimBuilder(vcl::Window* pParent, const OUString &rUIFile) { + if (comphelper::LibreOfficeKit::isActive() && rUIFile == "svx/ui/stylespreview.ui") + { + return new JSInstanceBuilder(pParent, VclBuilderContainer::getUIRootDir(), rUIFile, css::uno::Reference()); + } + return ImplGetSVData()->mpDefInst->CreateInterimBuilder(pParent, VclBuilderContainer::getUIRootDir(), rUIFile); } -- cgit