summaryrefslogtreecommitdiff
path: root/chart2/source/model/template/PieChartType.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/model/template/PieChartType.cxx')
-rw-r--r--chart2/source/model/template/PieChartType.cxx25
1 files changed, 23 insertions, 2 deletions
diff --git a/chart2/source/model/template/PieChartType.cxx b/chart2/source/model/template/PieChartType.cxx
index 841bf5a6ce28..1fff9a05b8c4 100644
--- a/chart2/source/model/template/PieChartType.cxx
+++ b/chart2/source/model/template/PieChartType.cxx
@@ -25,6 +25,7 @@
#include "servicenames_charttypes.hxx"
#include "ContainerHelper.hxx"
#include "AxisIndexDefines.hxx"
+#include <cppuhelper/supportsservice.hxx>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/chart2/AxisType.hpp>
@@ -239,8 +240,28 @@ uno::Sequence< OUString > PieChartType::getSupportedServiceNames_Static()
}
// implement XServiceInfo methods basing upon getSupportedServiceNames_Static
-APPHELPER_XSERVICEINFO_IMPL( PieChartType,
- OUString("com.sun.star.comp.chart.PieChartType") );
+OUString SAL_CALL PieChartType::getImplementationName()
+ throw( css::uno::RuntimeException, std::exception )
+{
+ return getImplementationName_Static();
+}
+
+OUString PieChartType::getImplementationName_Static()
+{
+ return OUString("com.sun.star.comp.chart.PieChartType");
+}
+
+sal_Bool SAL_CALL PieChartType::supportsService( const OUString& rServiceName )
+ throw( css::uno::RuntimeException, std::exception )
+{
+ return cppu::supportsService(this, rServiceName);
+}
+
+css::uno::Sequence< OUString > SAL_CALL PieChartType::getSupportedServiceNames()
+ throw( css::uno::RuntimeException, std::exception )
+{
+ return getSupportedServiceNames_Static();
+}
} // namespace chart