LibreOffice Module chart2 (master) 1
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
14
17#include "ChartColorWrapper.hxx"
18
19class XLineCapItem;
20class XLineDashItem;
21class XLineEndItem;
22class XLineJointItem;
23class XLineStartItem;
24class XLineStyleItem;
26class XLineWidthItem;
27
28namespace chart {
29
30class ChartController;
31
32namespace sidebar {
33
35 public sfx2::sidebar::SidebarModelUpdate,
38{
39public:
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
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
62protected:
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
70private:
71
73 css::uno::Reference<css::util::XModifyListener> mxListener;
75
76 void Initialize();
78
83};
84
85} } // end of namespace svx::sidebar
86
87/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
static std::unique_ptr< PanelLayout > Create(weld::Widget *pParent, const css::uno::Reference< css::frame::XFrame > &rxFrame, ChartController *pController)
virtual void selectionChanged(bool bCorrectType) override
virtual void setLineCap(const XLineCapItem *pItem) override
virtual void setLineWidth(const XLineWidthItem &rItem) override
rtl::Reference< ChartSidebarSelectionListener > mxSelectionListener
css::uno::Reference< css::util::XModifyListener > mxListener
rtl::Reference<::chart::ChartModel > mxModel
virtual void updateLineWidth(bool bDisabled, bool bSetOrDefault, const SfxPoolItem *pItem) override
ChartLinePanel(weld::Widget *pParent, const css::uno::Reference< css::frame::XFrame > &rxFrame, ChartController *pController)
virtual void updateData() override
ChartLineStyleWrapper maLineStyleWrapper
virtual void modelInvalid() override
void doUpdateModel(rtl::Reference<::chart::ChartModel > xModel)
virtual ~ChartLinePanel() override
ChartColorWrapper maLineColorWrapper
virtual void setLineJoint(const XLineJointItem *pItem) override
virtual void setLineTransparency(const XLineTransparenceItem &rItem) override
virtual void updateModel(css::uno::Reference< css::frame::XModel > xModel) override
Reference< XModel > xModel