diff options
Diffstat (limited to 'chart2/source/model/template/AreaChartType.cxx')
-rw-r--r-- | chart2/source/model/template/AreaChartType.cxx | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/chart2/source/model/template/AreaChartType.cxx b/chart2/source/model/template/AreaChartType.cxx index c739d1c3f351..7f16f17c7c02 100644 --- a/chart2/source/model/template/AreaChartType.cxx +++ b/chart2/source/model/template/AreaChartType.cxx @@ -20,6 +20,7 @@ #include "AreaChartType.hxx" #include "macros.hxx" #include "servicenames_charttypes.hxx" +#include <cppuhelper/supportsservice.hxx> using namespace ::com::sun::star; @@ -61,8 +62,28 @@ uno::Sequence< OUString > AreaChartType::getSupportedServiceNames_Static() } // implement XServiceInfo methods basing upon getSupportedServiceNames_Static -APPHELPER_XSERVICEINFO_IMPL( AreaChartType, - OUString("com.sun.star.comp.chart.AreaChartType") ); +OUString SAL_CALL AreaChartType::getImplementationName() + throw( css::uno::RuntimeException, std::exception ) +{ + return getImplementationName_Static(); +} + +OUString AreaChartType::getImplementationName_Static() +{ + return OUString("com.sun.star.comp.chart.AreaChartType"); +} + +sal_Bool SAL_CALL AreaChartType::supportsService( const OUString& rServiceName ) + throw( css::uno::RuntimeException, std::exception ) +{ + return cppu::supportsService(this, rServiceName); +} + +css::uno::Sequence< OUString > SAL_CALL AreaChartType::getSupportedServiceNames() + throw( css::uno::RuntimeException, std::exception ) +{ + return getSupportedServiceNames_Static(); +} } // namespace chart |