svtools/source/control/ctrlbox.cxx | 2 +- svx/source/tbxctrls/tbcontrl.cxx | 3 ++- vcl/jsdialog/enabled.cxx | 5 ++++- 3 files changed, 7 insertions(+), 3 deletions(-)
New commits: commit 8d3d55115da3cc2e693adf3acdd92dca5fc8fa31 Author: Szymon Kłos <[email protected]> AuthorDate: Tue Aug 8 06:48:10 2023 +0200 Commit: Szymon Kłos <[email protected]> CommitDate: Mon Aug 28 16:34:06 2023 +0200 jsdialog: enable font name & size combobox Font selector is with font rendering Change-Id: Id0c7bab8cd4bf74a82230a8dffdc2432c2a5c9ea Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155938 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Caolán McNamara <[email protected]> Reviewed-by: Szymon Kłos <[email protected]> diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx index 2973f326c221..fc151b0ca37d 100644 --- a/svtools/source/control/ctrlbox.cxx +++ b/svtools/source/control/ctrlbox.cxx @@ -510,7 +510,7 @@ static bool IsRunningUnitTest() { return getenv("LO_TESTNAME") != nullptr; } void FontNameBox::EnableWYSIWYG(bool bEnable) { - if (comphelper::LibreOfficeKit::isActive() || IsRunningUnitTest()) + if (IsRunningUnitTest()) return; if (mbWYSIWYG == bEnable) return; diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index 2eda9b2be745..835598d23c0e 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -42,6 +42,7 @@ #include <sfx2/tbxctrl.hxx> #include <sfx2/tplpitem.hxx> #include <sfx2/sfxstatuslistener.hxx> +#include <sfx2/viewsh.hxx> #include <toolkit/helper/vclunohelper.hxx> #include <sfx2/viewfrm.hxx> #include <vcl/svapp.hxx> @@ -1743,7 +1744,7 @@ SvxFontNameBox_Base::SvxFontNameBox_Base(std::unique_ptr<weld::ComboBox> xWidget SvxFontNameBox_Impl::SvxFontNameBox_Impl(vcl::Window* pParent, const Reference<XDispatchProvider>& rDispatchProvider, const Reference<XFrame>& rFrame, SvxFontNameToolBoxControl& rCtrl) - : InterimItemWindow(pParent, "svx/ui/fontnamebox.ui", "FontNameBox") + : InterimItemWindow(pParent, "svx/ui/fontnamebox.ui", "FontNameBox", true, reinterpret_cast<sal_uInt64>(SfxViewShell::Current())) , SvxFontNameBox_Base(m_xBuilder->weld_combo_box("fontnamecombobox"), rDispatchProvider, rFrame, rCtrl) { set_id("fontnamecombobox"); diff --git a/vcl/jsdialog/enabled.cxx b/vcl/jsdialog/enabled.cxx index 4db6b0da9113..50e90455c2e6 100644 --- a/vcl/jsdialog/enabled.cxx +++ b/vcl/jsdialog/enabled.cxx @@ -372,7 +372,10 @@ bool isBuilderEnabledForSidebar(std::u16string_view rUIFile) bool isInterimBuilderEnabledForNotebookbar(std::u16string_view rUIFile) { - if (rUIFile == u"modules/scalc/ui/numberbox.ui" || rUIFile == u"svx/ui/stylespreview.ui") + if (rUIFile == u"modules/scalc/ui/numberbox.ui" + || rUIFile == u"svx/ui/fontnamebox.ui" + || rUIFile == u"svx/ui/fontsizebox.ui" + || rUIFile == u"svx/ui/stylespreview.ui") { return true; }
