1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
12 #include <sfx2/sidebar/SidebarModelUpdate.hxx>
13 #include <svx/sidebar/LinePropertyPanelBase.hxx>
15 #include "ChartSidebarModifyListener.hxx"
16 #include "ChartSidebarSelectionListener.hxx"
17 #include "ChartColorWrapper.hxx"
19 class XLineTransparenceItem
;
24 class ChartController
;
28 class ChartLinePanel
: public svx::sidebar::LinePropertyPanelBase
,
29 public sfx2::sidebar::SidebarModelUpdate
,
30 public ChartSidebarModifyListenerParent
,
31 public ChartSidebarSelectionListenerParent
34 static std::unique_ptr
<PanelLayout
> Create(
35 weld::Widget
* pParent
,
36 const css::uno::Reference
<css::frame::XFrame
>& rxFrame
,
37 ChartController
* pController
);
39 // constructor/destructor
41 weld::Widget
* pParent
,
42 const css::uno::Reference
<css::frame::XFrame
>& rxFrame
,
43 ChartController
* pController
);
45 virtual ~ChartLinePanel() override
;
47 virtual void updateData() override
;
48 virtual void modelInvalid() override
;
50 virtual void selectionChanged(bool bCorrectType
) override
;
52 virtual void updateModel(css::uno::Reference
<css::frame::XModel
> xModel
) override
;
54 virtual void setLineWidth(const XLineWidthItem
& rItem
) override
;
58 virtual void setLineTransparency(const XLineTransparenceItem
& rItem
) override
;
60 virtual void updateLineWidth(bool bDisabled
, bool bSetOrDefault
, const SfxPoolItem
* pItem
) override
;
64 rtl::Reference
<::chart::ChartModel
> mxModel
;
65 css::uno::Reference
<css::util::XModifyListener
> mxListener
;
66 rtl::Reference
<ChartSidebarSelectionListener
> mxSelectionListener
;
69 void doUpdateModel(const rtl::Reference
<::chart::ChartModel
>& xModel
);
73 ChartColorWrapper maLineColorWrapper
;
74 ChartLineStyleWrapper maLineStyleWrapper
;
77 } } // end of namespace svx::sidebar
79 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */