summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-02-19 11:04:39 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-02-19 11:07:50 +0100
commit61ed1cb9305cf9675535e52817cfbd84b47f7344 (patch)
treee6be8a74f7275a94a84966415a0df9b7ead17d64 /chart2
parent71dca358e3ecca3327e46837f4caf90e0e0e4f05 (diff)
Missing constructor
...the implementation in ChartView.cxx oddly got removed from <https://gerrit.libreoffice.org/#/c/14431/1> to <https://gerrit.libreoffice.org/#/c/14431/2>, but the declaration in chartcore.component was missing from the start Change-Id: I71699ee74278f7e419eca63c5784b46efc42d96b
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/chartcore.component3
-rw-r--r--chart2/source/view/main/ChartView.cxx8
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: */