summaryrefslogtreecommitdiffstats
path: root/chart2/source/model/template/DataInterpreter.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-09 08:30:11 +0200
committerNoel Grandin <noel@peralex.com>2014-12-09 12:55:38 +0200
commitc227d963d8ea84445ef9617d30ac24092d33b92f (patch)
tree51482b0291486f526876c297271c78bc1ea1b41e /chart2/source/model/template/DataInterpreter.cxx
parentinline UNO helper macro APPHELPER_SERVICE_FACTORY_HELPER (diff)
downloadcore-c227d963d8ea84445ef9617d30ac24092d33b92f.tar.gz
core-c227d963d8ea84445ef9617d30ac24092d33b92f.zip
inline UNO helper macros
Change-Id: Ia401dd2f51108d2f3b08cd3d6d433a12ac17ee74
Diffstat (limited to 'chart2/source/model/template/DataInterpreter.cxx')
-rw-r--r--chart2/source/model/template/DataInterpreter.cxx24
1 files changed, 23 insertions, 1 deletions
diff --git a/chart2/source/model/template/DataInterpreter.cxx b/chart2/source/model/template/DataInterpreter.cxx
index 621bf1beab6e..5db7d6655344 100644
--- a/chart2/source/model/template/DataInterpreter.cxx
+++ b/chart2/source/model/template/DataInterpreter.cxx
@@ -26,6 +26,7 @@
#include "ContainerHelper.hxx"
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/chart2/data/XDataSink.hpp>
+#include <cppuhelper/supportsservice.hxx>
#include <vector>
#include <algorithm>
@@ -388,7 +389,28 @@ Sequence< OUString > DataInterpreter::getSupportedServiceNames_Static()
}
// implement XServiceInfo methods basing upon getSupportedServiceNames_Static
-APPHELPER_XSERVICEINFO_IMPL( DataInterpreter, OUString("com.sun.star.comp.chart2.DataInterpreter") );
+OUString SAL_CALL DataInterpreter::getImplementationName()
+ throw( css::uno::RuntimeException, std::exception )
+{
+ return getImplementationName_Static();
+}
+
+OUString DataInterpreter::getImplementationName_Static()
+{
+ return OUString("com.sun.star.comp.chart2.DataInterpreter");
+}
+
+sal_Bool SAL_CALL DataInterpreter::supportsService( const OUString& rServiceName )
+ throw( css::uno::RuntimeException, std::exception )
+{
+ return cppu::supportsService(this, rServiceName);
+}
+
+css::uno::Sequence< OUString > SAL_CALL DataInterpreter::getSupportedServiceNames()
+ throw( css::uno::RuntimeException, std::exception )
+{
+ return getSupportedServiceNames_Static();
+}
} // namespace chart