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

chart2: use constructor feature for ChartController

Change-Id: Ie6c5c0e20ae2b2f38f176dee90c33e5baba100a5
üst 7f01a960
......@@ -23,7 +23,8 @@
constructor="com_sun_star_comp_chart_ElementSelectorToolbarController_get_implementation">
<service name="com.sun.star.frame.ToolbarController"/>
</implementation>
<implementation name="com.sun.star.comp.chart2.ChartController">
<implementation name="com.sun.star.comp.chart2.ChartController"
constructor="com_sun_star_comp_chart2_ChartController_get_implementation">
<service name="com.sun.star.chart2.ChartController"/>
<service name="com.sun.star.frame.Controller"/>
</implementation>
......
......@@ -1555,4 +1555,12 @@ void ChartController::impl_initializeAccessible( const uno::Reference< lang::XIn
} //namespace chart
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
com_sun_star_comp_chart2_ChartController_get_implementation(css::uno::XComponentContext *context,
css::uno::Sequence<css::uno::Any> const &)
{
return cppu::acquire(new chart::ChartController(context));
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -30,14 +30,6 @@
static const struct ::cppu::ImplementationEntry g_entries_chart2_controller[] =
{
{
::chart::ChartController::create
, ::chart::ChartController::getImplementationName_Static
, ::chart::ChartController::getSupportedServiceNames_Static
, ::cppu::createSingleComponentFactory
, 0
, 0
}
,{
::chart::ChartFrameLoader::create
, ::chart::ChartFrameLoader::getImplementationName_Static
, ::chart::ChartFrameLoader::getSupportedServiceNames_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