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

chart2: use constructor feature for ChartTypeDialog

Change-Id: I5efc89d8d0139216c1ae92aa692704f9f58915ca
üst 167cd680
......@@ -39,7 +39,8 @@
constructor="com_sun_star_comp_chart2_ChartFrameLoader_get_implementation">
<service name="com.sun.star.frame.SynchronousFrameLoader"/>
</implementation>
<implementation name="com.sun.star.comp.chart2.ChartTypeDialog">
<implementation name="com.sun.star.comp.chart2.ChartTypeDialog"
constructor="com_sun_star_comp_chart2_ChartTypeDialog_get_implementation">
<service name="com.sun.star.chart2.ChartTypeDialog"/>
</implementation>
<implementation name="com.sun.star.comp.chart2.ShapeToolbarController">
......
......@@ -107,4 +107,11 @@ uno::Reference<beans::XPropertySetInfo> SAL_CALL ChartTypeUnoDlg::getPropertySe
} //namespace chart
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
com_sun_star_comp_chart2_ChartTypeDialog_get_implementation(css::uno::XComponentContext *context,
css::uno::Sequence<css::uno::Any> const &)
{
return cppu::acquire(new chart::ChartTypeUnoDlg(context));
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -37,14 +37,6 @@ static const struct ::cppu::ImplementationEntry g_entries_chart2_controller[] =
, 0
, 0
}
,{
::chart::ChartTypeUnoDlg::Create
, ::chart::ChartTypeUnoDlg::getImplementationName_Static
, ::chart::ChartTypeUnoDlg::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