diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-07-15 13:01:40 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-07-16 08:15:17 +0200 |
commit | 1d0696a34938cc331a3235e25be66066251239c8 (patch) | |
tree | 99cfa6bb65d33e495f1fab0f97e1cbe65d171f22 /chart2/source/controller/sidebar/ChartElementsPanel.hxx | |
parent | faed29cac93f8176bb937e6a8b437d6450b7a884 (diff) |
we need access to the chart model in the chart sidebar
Change-Id: I607b5ada047f84cd7a229640772a332702f93f1e
Diffstat (limited to 'chart2/source/controller/sidebar/ChartElementsPanel.hxx')
-rw-r--r-- | chart2/source/controller/sidebar/ChartElementsPanel.hxx | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/chart2/source/controller/sidebar/ChartElementsPanel.hxx b/chart2/source/controller/sidebar/ChartElementsPanel.hxx index f23fa1a55dc7..be53c758201f 100644 --- a/chart2/source/controller/sidebar/ChartElementsPanel.hxx +++ b/chart2/source/controller/sidebar/ChartElementsPanel.hxx @@ -28,7 +28,11 @@ class FixedText; class ListBox; class NumericField; -namespace chart { namespace sidebar { +namespace chart { + +class ChartController; + +namespace sidebar { class ChartElementsPanel : public PanelLayout, public ::sfx2::sidebar::IContextChangeReceiver, @@ -38,7 +42,7 @@ public: static VclPtr<vcl::Window> Create( vcl::Window* pParent, const css::uno::Reference<css::frame::XFrame>& rxFrame, - SfxBindings* pBindings); + SfxBindings* pBindings, ChartController* pController); virtual void DataChanged( const DataChangedEvent& rEvent) SAL_OVERRIDE; @@ -58,7 +62,7 @@ public: ChartElementsPanel( vcl::Window* pParent, const css::uno::Reference<css::frame::XFrame>& rxFrame, - SfxBindings* pBindings); + SfxBindings* pBindings, ChartController* pController); virtual ~ChartElementsPanel(); virtual void dispose() SAL_OVERRIDE; private: @@ -88,6 +92,10 @@ private: css::uno::Reference<css::frame::XFrame> mxFrame; ::sfx2::sidebar::EnumContext maContext; SfxBindings* mpBindings; + + css::uno::Reference<css::frame::XModel> mxModel; + + void Initialize(); }; } } // end of namespace ::chart::sidebar |