LibreOffice Module chart2 (master)
1
chart2
source
controller
sidebar
ChartLinePanel.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 <
sfx2/sidebar/SidebarModelUpdate.hxx
>
13
#include <
svx/sidebar/LinePropertyPanelBase.hxx
>
14
15
#include "
ChartSidebarModifyListener.hxx
"
16
#include "
ChartSidebarSelectionListener.hxx
"
17
#include "
ChartColorWrapper.hxx
"
18
19
class
XLineCapItem
;
20
class
XLineDashItem
;
21
class
XLineEndItem
;
22
class
XLineJointItem
;
23
class
XLineStartItem
;
24
class
XLineStyleItem
;
25
class
XLineTransparenceItem
;
26
class
XLineWidthItem
;
27
28
namespace
chart
{
29
30
class
ChartController;
31
32
namespace
sidebar {
33
34
class
ChartLinePanel
:
public
svx::sidebar::LinePropertyPanelBase
,
35
public
sfx2::sidebar::SidebarModelUpdate,
36
public
ChartSidebarModifyListenerParent
,
37
public
ChartSidebarSelectionListenerParent
38
{
39
public
:
40
static
std::unique_ptr<PanelLayout>
Create
(
41
weld::Widget
* pParent,
42
const
css::uno::Reference<css::frame::XFrame>& rxFrame,
43
ChartController
* pController);
44
45
// constructor/destructor
46
ChartLinePanel
(
47
weld::Widget
* pParent,
48
const
css::uno::Reference<css::frame::XFrame>& rxFrame,
49
ChartController
* pController);
50
51
virtual
~ChartLinePanel
()
override
;
52
53
virtual
void
updateData
()
override
;
54
virtual
void
modelInvalid
()
override
;
55
56
virtual
void
selectionChanged
(
bool
bCorrectType)
override
;
57
58
virtual
void
updateModel
(css::uno::Reference<css::frame::XModel>
xModel
)
override
;
59
60
virtual
void
setLineWidth
(
const
XLineWidthItem
& rItem)
override
;
61
62
protected
:
63
64
virtual
void
setLineTransparency
(
const
XLineTransparenceItem
& rItem)
override
;
65
virtual
void
setLineJoint
(
const
XLineJointItem
* pItem)
override
;
66
virtual
void
setLineCap
(
const
XLineCapItem
* pItem)
override
;
67
68
virtual
void
updateLineWidth
(
bool
bDisabled,
bool
bSetOrDefault,
const
SfxPoolItem
* pItem)
override
;
69
70
private
:
71
72
rtl::Reference<::chart::ChartModel>
mxModel
;
73
css::uno::Reference<css::util::XModifyListener>
mxListener
;
74
rtl::Reference<ChartSidebarSelectionListener>
mxSelectionListener
;
75
76
void
Initialize
();
77
void
doUpdateModel
(
rtl::Reference<::chart::ChartModel>
xModel);
78
79
bool
mbUpdate
;
80
bool
mbModelValid
;
81
ChartColorWrapper
maLineColorWrapper
;
82
ChartLineStyleWrapper
maLineStyleWrapper
;
83
};
84
85
} }
// end of namespace svx::sidebar
86
87
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ChartColorWrapper.hxx
ChartSidebarModifyListener.hxx
ChartSidebarSelectionListener.hxx
LinePropertyPanelBase.hxx
SidebarModelUpdate.hxx
SfxPoolItem
XLineCapItem
XLineDashItem
XLineEndItem
XLineJointItem
XLineStartItem
XLineStyleItem
XLineTransparenceItem
XLineWidthItem
chart::ChartController
Definition:
ChartController.hxx:111
chart::sidebar::ChartColorWrapper
Definition:
ChartColorWrapper.hxx:25
chart::sidebar::ChartLinePanel
Definition:
ChartLinePanel.hxx:38
chart::sidebar::ChartLinePanel::Create
static std::unique_ptr< PanelLayout > Create(weld::Widget *pParent, const css::uno::Reference< css::frame::XFrame > &rxFrame, ChartController *pController)
Definition:
ChartLinePanel.cxx:107
chart::sidebar::ChartLinePanel::selectionChanged
virtual void selectionChanged(bool bCorrectType) override
Definition:
ChartLinePanel.cxx:193
chart::sidebar::ChartLinePanel::setLineCap
virtual void setLineCap(const XLineCapItem *pItem) override
Definition:
ChartLinePanel.cxx:248
chart::sidebar::ChartLinePanel::setLineWidth
virtual void setLineWidth(const XLineWidthItem &rItem) override
Definition:
ChartLinePanel.cxx:264
chart::sidebar::ChartLinePanel::Initialize
void Initialize()
Definition:
ChartLinePanel.cxx:146
chart::sidebar::ChartLinePanel::mxSelectionListener
rtl::Reference< ChartSidebarSelectionListener > mxSelectionListener
Definition:
ChartLinePanel.hxx:74
chart::sidebar::ChartLinePanel::mxListener
css::uno::Reference< css::util::XModifyListener > mxListener
Definition:
ChartLinePanel.hxx:73
chart::sidebar::ChartLinePanel::mxModel
rtl::Reference<::chart::ChartModel > mxModel
Definition:
ChartLinePanel.hxx:72
chart::sidebar::ChartLinePanel::updateLineWidth
virtual void updateLineWidth(bool bDisabled, bool bSetOrDefault, const SfxPoolItem *pItem) override
Definition:
ChartLinePanel.cxx:276
chart::sidebar::ChartLinePanel::ChartLinePanel
ChartLinePanel(weld::Widget *pParent, const css::uno::Reference< css::frame::XFrame > &rxFrame, ChartController *pController)
Definition:
ChartLinePanel.cxx:120
chart::sidebar::ChartLinePanel::updateData
virtual void updateData() override
Definition:
ChartLinePanel.cxx:164
chart::sidebar::ChartLinePanel::maLineStyleWrapper
ChartLineStyleWrapper maLineStyleWrapper
Definition:
ChartLinePanel.hxx:82
chart::sidebar::ChartLinePanel::modelInvalid
virtual void modelInvalid() override
Definition:
ChartLinePanel.cxx:188
chart::sidebar::ChartLinePanel::mbModelValid
bool mbModelValid
Definition:
ChartLinePanel.hxx:80
chart::sidebar::ChartLinePanel::doUpdateModel
void doUpdateModel(rtl::Reference<::chart::ChartModel > xModel)
Definition:
ChartLinePanel.cxx:199
chart::sidebar::ChartLinePanel::~ChartLinePanel
virtual ~ChartLinePanel() override
Definition:
ChartLinePanel.cxx:141
chart::sidebar::ChartLinePanel::maLineColorWrapper
ChartColorWrapper maLineColorWrapper
Definition:
ChartLinePanel.hxx:81
chart::sidebar::ChartLinePanel::mbUpdate
bool mbUpdate
Definition:
ChartLinePanel.hxx:79
chart::sidebar::ChartLinePanel::setLineJoint
virtual void setLineJoint(const XLineJointItem *pItem) override
Definition:
ChartLinePanel.cxx:235
chart::sidebar::ChartLinePanel::setLineTransparency
virtual void setLineTransparency(const XLineTransparenceItem &rItem) override
Definition:
ChartLinePanel.cxx:252
chart::sidebar::ChartLinePanel::updateModel
virtual void updateModel(css::uno::Reference< css::frame::XModel > xModel) override
Definition:
ChartLinePanel.cxx:228
chart::sidebar::ChartLineStyleWrapper
Definition:
ChartColorWrapper.hxx:48
chart::sidebar::ChartSidebarModifyListenerParent
Definition:
ChartSidebarModifyListener.hxx:18
chart::sidebar::ChartSidebarSelectionListenerParent
Definition:
ChartSidebarSelectionListener.hxx:22
rtl::Reference<::chart::ChartModel >
svx::sidebar::LinePropertyPanelBase
weld::Widget
chart
Definition:
AccessibleBase.cxx:63
xModel
Reference< XModel > xModel
Generated on Sun Jul 30 2023 04:39:31 for LibreOffice Module chart2 (master) by
1.9.3