Fixed WEEKNUMBER test sheet, ISERROR(a13รบ) did not seem right
[LibreOffice.git] / chart2 / source / controller / sidebar / ChartLinePanel.hxx
blob4449f3678fb605f66e2374bfe573d9b9ba3c858e
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
10 #pragma once
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;
20 class XLineWidthItem;
22 namespace chart {
24 class ChartController;
26 namespace sidebar {
28 class ChartLinePanel : public svx::sidebar::LinePropertyPanelBase,
29 public sfx2::sidebar::SidebarModelUpdate,
30 public ChartSidebarModifyListenerParent,
31 public ChartSidebarSelectionListenerParent
33 public:
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
40 ChartLinePanel(
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;
56 protected:
58 virtual void setLineTransparency(const XLineTransparenceItem& rItem) override;
60 virtual void updateLineWidth(bool bDisabled, bool bSetOrDefault, const SfxPoolItem* pItem) override;
62 private:
64 rtl::Reference<::chart::ChartModel> mxModel;
65 css::uno::Reference<css::util::XModifyListener> mxListener;
66 rtl::Reference<ChartSidebarSelectionListener> mxSelectionListener;
68 void Initialize();
69 void doUpdateModel(const rtl::Reference<::chart::ChartModel>& xModel);
71 bool mbUpdate;
72 bool mbModelValid;
73 ChartColorWrapper maLineColorWrapper;
74 ChartLineStyleWrapper maLineStyleWrapper;
77 } } // end of namespace svx::sidebar
79 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */