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