diff options
Diffstat (limited to 'chart2/source/tools/DataSource.cxx')
-rw-r--r-- | chart2/source/tools/DataSource.cxx | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/chart2/source/tools/DataSource.cxx b/chart2/source/tools/DataSource.cxx index 24f8b5140be1..a8a38532dd69 100644 --- a/chart2/source/tools/DataSource.cxx +++ b/chart2/source/tools/DataSource.cxx @@ -19,6 +19,7 @@ #include "DataSource.hxx" #include "LabeledDataSequence.hxx" +#include <cppuhelper/supportsservice.hxx> using ::osl::MutexGuard; using ::com::sun::star::uno::Sequence; @@ -69,7 +70,28 @@ Sequence< OUString > DataSource::getSupportedServiceNames_Static() return aServices; } -APPHELPER_XSERVICEINFO_IMPL( DataSource, OUString(lcl_aServiceName) ); +OUString SAL_CALL DataSource::getImplementationName() + throw( css::uno::RuntimeException, std::exception ) +{ + return getImplementationName_Static(); +} + +OUString DataSource::getImplementationName_Static() +{ + return OUString(lcl_aServiceName); +} + +sal_Bool SAL_CALL DataSource::supportsService( const OUString& rServiceName ) + throw( css::uno::RuntimeException, std::exception ) +{ + return cppu::supportsService(this, rServiceName); +} + +css::uno::Sequence< OUString > SAL_CALL DataSource::getSupportedServiceNames() + throw( css::uno::RuntimeException, std::exception ) +{ + return getSupportedServiceNames_Static(); +} } // namespace chart |