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