diff options
Diffstat (limited to 'chart2/source/model/template/FilledNetChartType.cxx')
-rw-r--r-- | chart2/source/model/template/FilledNetChartType.cxx | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/chart2/source/model/template/FilledNetChartType.cxx b/chart2/source/model/template/FilledNetChartType.cxx index 6831eaa999ab..661805a4a474 100644 --- a/chart2/source/model/template/FilledNetChartType.cxx +++ b/chart2/source/model/template/FilledNetChartType.cxx @@ -62,24 +62,9 @@ OUString SAL_CALL FilledNetChartType::getChartType() return OUString(CHART2_SERVICE_NAME_CHARTTYPE_FILLED_NET); } -uno::Sequence< OUString > FilledNetChartType::getSupportedServiceNames_Static() -{ - uno::Sequence< OUString > aServices( 3 ); - aServices[ 0 ] = CHART2_SERVICE_NAME_CHARTTYPE_FILLED_NET; - aServices[ 1 ] = "com.sun.star.chart2.ChartType"; - aServices[ 2 ] = "com.sun.star.beans.PropertySet"; - return aServices; -} - -// implement XServiceInfo methods basing upon getSupportedServiceNames_Static OUString SAL_CALL FilledNetChartType::getImplementationName() throw( css::uno::RuntimeException, std::exception ) { - return getImplementationName_Static(); -} - -OUString FilledNetChartType::getImplementationName_Static() -{ return OUString("com.sun.star.comp.chart.FilledNetChartType"); } @@ -92,7 +77,10 @@ sal_Bool SAL_CALL FilledNetChartType::supportsService( const OUString& rServiceN css::uno::Sequence< OUString > SAL_CALL FilledNetChartType::getSupportedServiceNames() throw( css::uno::RuntimeException, std::exception ) { - return getSupportedServiceNames_Static(); + return { + CHART2_SERVICE_NAME_CHARTTYPE_FILLED_NET, + "com.sun.star.chart2.ChartType", + "com.sun.star.beans.PropertySet" }; } } // namespace chart |