diff options
Diffstat (limited to 'chart2/source/controller/sidebar/ChartAxisPanel.hxx')
-rw-r--r-- | chart2/source/controller/sidebar/ChartAxisPanel.hxx | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/chart2/source/controller/sidebar/ChartAxisPanel.hxx b/chart2/source/controller/sidebar/ChartAxisPanel.hxx index b510ef8b564c..e5ed4b5ebcc6 100644 --- a/chart2/source/controller/sidebar/ChartAxisPanel.hxx +++ b/chart2/source/controller/sidebar/ChartAxisPanel.hxx @@ -8,24 +8,18 @@ * */ -#ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_SIDEBAR_CHARTAXISPANEL_HXX -#define INCLUDED_CHART2_SOURCE_CONTROLLER_SIDEBAR_CHARTAXISPANEL_HXX +#pragma once #include <sfx2/sidebar/ControllerItem.hxx> #include <sfx2/sidebar/IContextChangeReceiver.hxx> #include <sfx2/sidebar/SidebarModelUpdate.hxx> #include <sfx2/sidebar/PanelLayout.hxx> - #include "ChartSidebarModifyListener.hxx" #include "ChartSidebarSelectionListener.hxx" namespace com::sun::star::util { class XModifyListener; } namespace com::sun::star::view { class XSelectionChangeListener; } -class Edit; -class ListBox; -class MetricField; - namespace chart { class ChartController; @@ -40,9 +34,8 @@ class ChartAxisPanel : public PanelLayout, public ChartSidebarSelectionListenerParent { public: - static VclPtr<vcl::Window> Create( - vcl::Window* pParent, - const css::uno::Reference<css::frame::XFrame>& rxFrame, + static std::unique_ptr<PanelLayout> Create( + weld::Widget* pParent, ChartController* pController); virtual void DataChanged( @@ -62,11 +55,9 @@ public: // constructor/destructor ChartAxisPanel( - vcl::Window* pParent, - const css::uno::Reference<css::frame::XFrame>& rxFrame, + weld::Widget* pParent, ChartController* pController); virtual ~ChartAxisPanel() override; - virtual void dispose() override; virtual void updateData() override; virtual void modelInvalid() override; @@ -83,21 +74,20 @@ private: std::unique_ptr<weld::Widget> mxGridLabel; std::unique_ptr<weld::MetricSpinButton> mxNFRotation; - css::uno::Reference<css::frame::XModel> mxModel; + rtl::Reference<::chart::ChartModel> mxModel; css::uno::Reference<css::util::XModifyListener> mxModifyListener; css::uno::Reference<css::view::XSelectionChangeListener> mxSelectionListener; bool mbModelValid; void Initialize(); + void doUpdateModel(const rtl::Reference<::chart::ChartModel>& xModel); - DECL_LINK(CheckBoxHdl, weld::ToggleButton&, void); + DECL_LINK(CheckBoxHdl, weld::Toggleable&, void); DECL_LINK(ListBoxHdl, weld::ComboBox&, void); DECL_LINK(TextRotationHdl, weld::MetricSpinButton&, void); }; } } // end of namespace ::chart::sidebar -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |