diff options
-rw-r--r-- | chart2/source/chartcore.component | 3 | ||||
-rw-r--r-- | chart2/source/view/main/ChartView.cxx | 8 |
2 files changed, 10 insertions, 1 deletions
diff --git a/chart2/source/chartcore.component b/chart2/source/chartcore.component index 5928fb19109c..f7a1783eda68 100644 --- a/chart2/source/chartcore.component +++ b/chart2/source/chartcore.component @@ -256,7 +256,8 @@ <service name="com.sun.star.document.ExportFilter"/> <service name="com.sun.star.document.ImportFilter"/> </implementation> - <implementation name="com.sun.star.comp.chart2.ChartView"> + <implementation name="com.sun.star.comp.chart2.ChartView" + constructor="com_sun_star_comp_chart2_ChartView_get_implementation"> <service name="com.sun.star.chart2.ChartView"/> </implementation> </component> diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx index ebec017e2ef3..7ae6465b1307 100644 --- a/chart2/source/view/main/ChartView.cxx +++ b/chart2/source/view/main/ChartView.cxx @@ -3435,4 +3435,12 @@ void ChartView::updateOpenGLWindow() } //namespace chart +extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL +com_sun_star_comp_chart2_ChartView_get_implementation(css::uno::XComponentContext *context, + css::uno::Sequence<css::uno::Any> const &) +{ + ::chart::ChartModel *pChartModel = new ::chart::ChartModel(context); + return cppu::acquire(new ::chart::ChartView(context, *pChartModel)); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |