diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-03-24 11:54:58 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-03-25 22:50:50 -0400 |
commit | b7c3e851465638d4416ca8837937946353561088 (patch) | |
tree | 0932c03ddcfa8f9c7cbf96aaa1c657690b8410bc /chart2 | |
parent | 45c98588d0f67ee306b89e8666e53d05a9834e09 (diff) |
Turn this into a regular method.
Change-Id: Idb4dc17971cd37a4cdf99b2c02e61fca14cb3ce2
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/dialogs/tp_ChartType.cxx | 7 | ||||
-rw-r--r-- | chart2/source/controller/dialogs/tp_ChartType.hxx | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/chart2/source/controller/dialogs/tp_ChartType.cxx b/chart2/source/controller/dialogs/tp_ChartType.cxx index e4141a8ac855..0a10bae73da0 100644 --- a/chart2/source/controller/dialogs/tp_ChartType.cxx +++ b/chart2/source/controller/dialogs/tp_ChartType.cxx @@ -829,6 +829,12 @@ IMPL_LINK_NOARG(ChartTypeTabPage, SelectSubTypeHdl) IMPL_LINK_NOARG(ChartTypeTabPage, SelectMainTypeHdl) { + selectMainType(); + return 0; +} + +void ChartTypeTabPage::selectMainType() +{ ChartTypeParameter aParameter( this->getCurrentParamter() ); if( m_pCurrentMainType ) @@ -855,7 +861,6 @@ IMPL_LINK_NOARG(ChartTypeTabPage, SelectMainTypeHdl) uno::Reference< beans::XPropertySet > xTemplateProps( this->getCurrentTemplate(), uno::UNO_QUERY ); m_pCurrentMainType->fillExtraControls(aParameter,m_xChartModel,xTemplateProps); } - return 0; } void ChartTypeTabPage::showAllControls( ChartTypeDialogController& rTypeController ) diff --git a/chart2/source/controller/dialogs/tp_ChartType.hxx b/chart2/source/controller/dialogs/tp_ChartType.hxx index 21ea30881b5f..ea46e2bb429f 100644 --- a/chart2/source/controller/dialogs/tp_ChartType.hxx +++ b/chart2/source/controller/dialogs/tp_ChartType.hxx @@ -72,6 +72,7 @@ protected: virtual void stateChanged( ChangingResource* pResource ); void commitToModel( const ChartTypeParameter& rParameter ); + void selectMainType(); DECL_LINK( SelectMainTypeHdl, void* ); DECL_LINK( SelectSubTypeHdl, void* ); |