cui/source/dialogs/colorpicker.cxx | 2 +- cui/source/inc/colorpicker.hxx | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-)
New commits: commit 6bdcc269420719891f27abeaf5f4b84b370cb591 Author: Michael Weghorn <[email protected]> AuthorDate: Thu Dec 4 19:02:52 2025 +0100 Commit: Michael Weghorn <[email protected]> CommitDate: Sat Dec 6 08:38:13 2025 +0100 tdf#169505 Let ColorPickerDialog only subclass weld::GenericDialogController Nothing specific to SfxDialogController is used. This is one step in preparation of moving the class to vcl. Change-Id: Iee0dca30fd1f30d6f313d9287928f6a5fc4d83b1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195091 Reviewed-by: Michael Weghorn <[email protected]> Tested-by: Jenkins diff --git a/cui/source/dialogs/colorpicker.cxx b/cui/source/dialogs/colorpicker.cxx index c150c5fc72f5..f527494c3989 100644 --- a/cui/source/dialogs/colorpicker.cxx +++ b/cui/source/dialogs/colorpicker.cxx @@ -579,7 +579,7 @@ void ColorSliderControl::SetValue(const Color& rColor, ColorMode eMode, double d } ColorPickerDialog::ColorPickerDialog(weld::Window* pParent, const Color& rColor, vcl::ColorPickerMode eDialogMode) - : SfxDialogController(pParent, u"cui/ui/colorpickerdialog.ui"_ustr, u"ColorPicker"_ustr) + : weld::GenericDialogController(pParent, u"cui/ui/colorpickerdialog.ui"_ustr, u"ColorPicker"_ustr) , m_xColorField(new weld::CustomWeld(*m_xBuilder, u"colorField"_ustr, m_aColorField)) , m_xColorSlider(new weld::CustomWeld(*m_xBuilder, u"colorSlider"_ustr, m_aColorSlider)) , m_xColorPreview(new weld::CustomWeld(*m_xBuilder, u"preview"_ustr, m_aColorPreview)) diff --git a/cui/source/inc/colorpicker.hxx b/cui/source/inc/colorpicker.hxx index 104bd1cbab79..e3a2b3c6d40d 100644 --- a/cui/source/inc/colorpicker.hxx +++ b/cui/source/inc/colorpicker.hxx @@ -23,7 +23,6 @@ #include <vcl/customweld.hxx> #include <vcl/virdev.hxx> #include <vcl/weld.hxx> -#include <sfx2/basedlgs.hxx> #include <svx/hexcolorcontrol.hxx> #include <o3tl/typed_flags_set.hxx> @@ -160,7 +159,7 @@ private: double mdValue; }; -class ColorPickerDialog : public SfxDialogController +class ColorPickerDialog : public weld::GenericDialogController { private: ColorFieldControl m_aColorField;
