Kaydet (Commit) b038c4ec authored tarafından Miklos Vajna's avatar Miklos Vajna

chart2: use constructor feature for ChartDocumentWrapper

Change-Id: I5b99d64be17a0e7d3c1bb630e1f35afe0eb62c81
üst 899c018a
......@@ -1564,4 +1564,11 @@ APPHELPER_XSERVICEINFO_IMPL( ChartDocumentWrapper, CHART_CHARTAPIWRAPPER_IMPLEME
} // namespace wrapper
} // namespace chart
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
com_sun_star_comp_chart2_ChartDocumentWrapper_get_implementation(css::uno::XComponentContext *context,
css::uno::Sequence<css::uno::Any> const &)
{
return cppu::acquire(new ::chart::wrapper::ChartDocumentWrapper(context));
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -28,7 +28,8 @@
<service name="com.sun.star.chart2.ChartController"/>
<service name="com.sun.star.frame.Controller"/>
</implementation>
<implementation name="com.sun.star.comp.chart2.ChartDocumentWrapper">
<implementation name="com.sun.star.comp.chart2.ChartDocumentWrapper"
constructor="com_sun_star_comp_chart2_ChartDocumentWrapper_get_implementation">
<service name="com.sun.star.beans.PropertySet"/>
<service name="com.sun.star.chart.ChartDocument"/>
<service name="com.sun.star.chart2.ChartDocumentWrapper"/>
......
......@@ -53,14 +53,6 @@ static const struct ::cppu::ImplementationEntry g_entries_chart2_controller[] =
, 0
, 0
}
,{
::chart::wrapper::ChartDocumentWrapper::create
, ::chart::wrapper::ChartDocumentWrapper::getImplementationName_Static
, ::chart::wrapper::ChartDocumentWrapper::getSupportedServiceNames_Static
, ::cppu::createSingleComponentFactory
, 0
, 0
}
,{
::chart::ShapeToolbarController::create
, ::chart::ShapeToolbarController::getImplementationName_Static
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment