LibreOffice Module chart2 (master) 1
ChartColorWrapper.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10#pragma once
11
12#include <ChartModel.hxx>
13
14#include <svx/Palette.hxx>
15#include <rtl/ref.hxx>
16
17namespace com::sun::star::frame { class XModel; }
18namespace chart { class ChartModel; }
21
22namespace chart::sidebar {
23
25{
26public:
28 SvxColorToolBoxControl* pControl,
29 OUString rPropertyName);
30
31 void operator()(const OUString& rCommand, const NamedColor& rColor);
32 // ColorSelectFunction signature
33
35
36 void updateData();
37
38private:
39
41
43
45};
46
48{
49public:
52
53 bool operator()(std::u16string_view rCommand, const css::uno::Any& rValue);
54
56
57 void updateData();
58
59private:
60
62
64};
65
66}
67
68/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ChartColorWrapper(rtl::Reference<::chart::ChartModel > xModel, SvxColorToolBoxControl *pControl, OUString rPropertyName)
void operator()(const OUString &rCommand, const NamedColor &rColor)
rtl::Reference<::chart::ChartModel > mxModel
SvxColorToolBoxControl * mpControl
void updateModel(const rtl::Reference<::chart::ChartModel > &xModel)
ChartLineStyleWrapper(rtl::Reference<::chart::ChartModel > xModel, SvxLineStyleToolBoxControl *pControl)
void updateModel(const rtl::Reference<::chart::ChartModel > &xModel)
bool operator()(std::u16string_view rCommand, const css::uno::Any &rValue)
rtl::Reference<::chart::ChartModel > mxModel
SvxLineStyleToolBoxControl * mpControl
Reference< XModel > xModel