18#include <ThemeColorChanger.hxx>
24#include <com/sun/star/lang/IllegalArgumentException.hpp>
31 if (pParent ==
nullptr)
32 throw css::lang::IllegalArgumentException(
"no parent Window given to PagePropertyPanel::Create",
nullptr, 0);
34 return std::make_unique<ThemePanel>(pParent);
38 :
PanelLayout(pParent,
"ThemePanel",
"modules/swriter/ui/sidebartheme.ui")
39 , mxValueSetColors(new
svx::ThemeColorValueSet)
40 , mxValueSetColorsWin(new
weld::CustomWeld(*m_xBuilder,
"valueset_colors", *mxValueSetColors))
41 , mxApplyButton(m_xBuilder->weld_button(
"apply"))
58 if (!rColorSets.getColorSetVector().empty())
94 sal_uInt32
nIndex = nItemId - 1;
100 aChanger.
apply(std::make_shared<model::ColorSet>(rColorSet));
static const AllSettings & GetSettings()
static SAL_WARN_UNUSED_RESULT SfxObjectShell * Current()
void apply(std::shared_ptr< model::ColorSet > const &pColorSet) override
#define LINK(Instance, Class, Member)