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

chart2: use constructor feature for ShapeToolbarController

Change-Id: Ic0a9dc23ddfde00cbb2bfa7cf3983ff0c6276654
üst 50634a20
...@@ -43,7 +43,8 @@ ...@@ -43,7 +43,8 @@
constructor="com_sun_star_comp_chart2_ChartTypeDialog_get_implementation"> constructor="com_sun_star_comp_chart2_ChartTypeDialog_get_implementation">
<service name="com.sun.star.chart2.ChartTypeDialog"/> <service name="com.sun.star.chart2.ChartTypeDialog"/>
</implementation> </implementation>
<implementation name="com.sun.star.comp.chart2.ShapeToolbarController"> <implementation name="com.sun.star.comp.chart2.ShapeToolbarController"
constructor="com_sun_star_comp_chart2_ShapeToolbarController_get_implementation">
<service name="com.sun.star.chart2.ShapeToolbarController"/> <service name="com.sun.star.chart2.ShapeToolbarController"/>
</implementation> </implementation>
<implementation name="com.sun.star.comp.chart2.WizardDialog"> <implementation name="com.sun.star.comp.chart2.WizardDialog">
......
...@@ -281,4 +281,11 @@ void ShapeToolbarController::updateImage() throw (uno::RuntimeException, std::ex ...@@ -281,4 +281,11 @@ void ShapeToolbarController::updateImage() throw (uno::RuntimeException, std::ex
} // namespace chart } // namespace chart
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
com_sun_star_comp_chart2_ShapeToolbarController_get_implementation(css::uno::XComponentContext *context,
css::uno::Sequence<css::uno::Any> const &)
{
return cppu::acquire(new chart::ShapeToolbarController(context));
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -37,14 +37,6 @@ static const struct ::cppu::ImplementationEntry g_entries_chart2_controller[] = ...@@ -37,14 +37,6 @@ static const struct ::cppu::ImplementationEntry g_entries_chart2_controller[] =
, 0 , 0
, 0 , 0
} }
,{
::chart::ShapeToolbarController::create
, ::chart::ShapeToolbarController::getImplementationName_Static
, ::chart::ShapeToolbarController::getSupportedServiceNames_Static
, ::cppu::createSingleComponentFactory
, 0
, 0
}
,{ 0, 0, 0, 0, 0, 0 } ,{ 0, 0, 0, 0, 0, 0 }
}; };
......
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