LibreOffice Module chart2 (master)
1
chart2
source
controller
sidebar
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
17
namespace
com::sun::star::frame
{
class
XModel; }
18
namespace
chart
{
class
ChartModel; }
19
class
SvxColorToolBoxControl
;
20
class
SvxLineStyleToolBoxControl
;
21
22
namespace
chart::sidebar
{
23
24
class
ChartColorWrapper
25
{
26
public
:
27
ChartColorWrapper
(
rtl::Reference<::chart::ChartModel>
xModel
,
28
SvxColorToolBoxControl
* pControl,
29
OUString rPropertyName);
30
31
void
operator()
(
const
OUString& rCommand,
const
NamedColor
& rColor);
32
// ColorSelectFunction signature
33
34
void
updateModel
(
const
rtl::Reference<::chart::ChartModel>
&
xModel
);
35
36
void
updateData
();
37
38
private
:
39
40
rtl::Reference<::chart::ChartModel>
mxModel
;
41
42
SvxColorToolBoxControl
*
mpControl
;
43
44
OUString
maPropertyName
;
45
};
46
47
class
ChartLineStyleWrapper
48
{
49
public
:
50
ChartLineStyleWrapper
(
rtl::Reference<::chart::ChartModel>
xModel
,
51
SvxLineStyleToolBoxControl
* pControl);
52
53
bool
operator()
(std::u16string_view rCommand,
const
css::uno::Any& rValue);
54
55
void
updateModel
(
const
rtl::Reference<::chart::ChartModel>
&
xModel
);
56
57
void
updateData
();
58
59
private
:
60
61
rtl::Reference<::chart::ChartModel>
mxModel
;
62
63
SvxLineStyleToolBoxControl
*
mpControl
;
64
};
65
66
}
67
68
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ChartModel.hxx
Palette.hxx
SvxColorToolBoxControl
SvxLineStyleToolBoxControl
chart::sidebar::ChartColorWrapper
Definition:
ChartColorWrapper.hxx:25
chart::sidebar::ChartColorWrapper::ChartColorWrapper
ChartColorWrapper(rtl::Reference<::chart::ChartModel > xModel, SvxColorToolBoxControl *pControl, OUString rPropertyName)
Definition:
ChartColorWrapper.cxx:83
chart::sidebar::ChartColorWrapper::operator()
void operator()(const OUString &rCommand, const NamedColor &rColor)
Definition:
ChartColorWrapper.cxx:93
chart::sidebar::ChartColorWrapper::mxModel
rtl::Reference<::chart::ChartModel > mxModel
Definition:
ChartColorWrapper.hxx:40
chart::sidebar::ChartColorWrapper::mpControl
SvxColorToolBoxControl * mpControl
Definition:
ChartColorWrapper.hxx:42
chart::sidebar::ChartColorWrapper::updateModel
void updateModel(const rtl::Reference<::chart::ChartModel > &xModel)
Definition:
ChartColorWrapper.cxx:106
chart::sidebar::ChartColorWrapper::maPropertyName
OUString maPropertyName
Definition:
ChartColorWrapper.hxx:44
chart::sidebar::ChartColorWrapper::updateData
void updateData()
Definition:
ChartColorWrapper.cxx:111
chart::sidebar::ChartLineStyleWrapper
Definition:
ChartColorWrapper.hxx:48
chart::sidebar::ChartLineStyleWrapper::ChartLineStyleWrapper
ChartLineStyleWrapper(rtl::Reference<::chart::ChartModel > xModel, SvxLineStyleToolBoxControl *pControl)
Definition:
ChartColorWrapper.cxx:140
chart::sidebar::ChartLineStyleWrapper::updateData
void updateData()
Definition:
ChartColorWrapper.cxx:174
chart::sidebar::ChartLineStyleWrapper::updateModel
void updateModel(const rtl::Reference<::chart::ChartModel > &xModel)
Definition:
ChartColorWrapper.cxx:148
chart::sidebar::ChartLineStyleWrapper::operator()
bool operator()(std::u16string_view rCommand, const css::uno::Any &rValue)
Definition:
ChartColorWrapper.cxx:204
chart::sidebar::ChartLineStyleWrapper::mxModel
rtl::Reference<::chart::ChartModel > mxModel
Definition:
ChartColorWrapper.hxx:61
chart::sidebar::ChartLineStyleWrapper::mpControl
SvxLineStyleToolBoxControl * mpControl
Definition:
ChartColorWrapper.hxx:63
rtl::Reference<::chart::ChartModel >
chart::sidebar
Definition:
Chart2PanelFactory.cxx:40
chart
Definition:
AccessibleBase.cxx:63
com::sun::star::frame
NamedColor
xModel
Reference< XModel > xModel
Generated on Sun Jul 30 2023 04:39:31 for LibreOffice Module chart2 (master) by
1.9.3