diff options
Diffstat (limited to 'chart2/source/controller/sidebar/ChartColorWrapper.hxx')
-rw-r--r-- | chart2/source/controller/sidebar/ChartColorWrapper.hxx | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/chart2/source/controller/sidebar/ChartColorWrapper.hxx b/chart2/source/controller/sidebar/ChartColorWrapper.hxx index 66c880ae3ca2..70b3ce8fa47c 100644 --- a/chart2/source/controller/sidebar/ChartColorWrapper.hxx +++ b/chart2/source/controller/sidebar/ChartColorWrapper.hxx @@ -9,11 +9,13 @@ #pragma once -#include <com/sun/star/uno/Reference.hxx> -#include <svx/Palette.hxx> +#include <ChartModel.hxx> -namespace com::sun::star::frame { class XModel; } +#include <sfx2/namedcolor.hxx> +#include <rtl/ref.hxx> +namespace com::sun::star::frame { class XModel; } +namespace chart { class ChartModel; } class SvxColorToolBoxControl; class SvxLineStyleToolBoxControl; @@ -22,20 +24,20 @@ namespace chart::sidebar { class ChartColorWrapper { public: - ChartColorWrapper(css::uno::Reference<css::frame::XModel> const & xModel, + ChartColorWrapper(rtl::Reference<::chart::ChartModel> xModel, SvxColorToolBoxControl* pControl, - const OUString& rPropertyName); + OUString rPropertyName); void operator()(const OUString& rCommand, const NamedColor& rColor); // ColorSelectFunction signature - void updateModel(const css::uno::Reference<css::frame::XModel>& xModel); + void updateModel(const rtl::Reference<::chart::ChartModel>& xModel); void updateData(); private: - css::uno::Reference<css::frame::XModel> mxModel; + rtl::Reference<::chart::ChartModel> mxModel; SvxColorToolBoxControl* mpControl; @@ -45,18 +47,18 @@ private: class ChartLineStyleWrapper { public: - ChartLineStyleWrapper(css::uno::Reference<css::frame::XModel> const & xModel, + ChartLineStyleWrapper(rtl::Reference<::chart::ChartModel> xModel, SvxLineStyleToolBoxControl* pControl); bool operator()(std::u16string_view rCommand, const css::uno::Any& rValue); - void updateModel(const css::uno::Reference<css::frame::XModel>& xModel); + void updateModel(const rtl::Reference<::chart::ChartModel>& xModel); void updateData(); private: - css::uno::Reference<css::frame::XModel> mxModel; + rtl::Reference<::chart::ChartModel> mxModel; SvxLineStyleToolBoxControl* mpControl; }; |