diff options
Diffstat (limited to 'chart2/source/controller/main/ChartFrameloader.cxx')
-rw-r--r-- | chart2/source/controller/main/ChartFrameloader.cxx | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/chart2/source/controller/main/ChartFrameloader.cxx b/chart2/source/controller/main/ChartFrameloader.cxx index 567b150efe16..fc574a241e5b 100644 --- a/chart2/source/controller/main/ChartFrameloader.cxx +++ b/chart2/source/controller/main/ChartFrameloader.cxx @@ -22,6 +22,7 @@ #include "MediaDescriptorHelper.hxx" #include "macros.hxx" #include <unotools/mediadescriptor.hxx> +#include <cppuhelper/supportsservice.hxx> #include <com/sun/star/document/XImporter.hpp> #include <com/sun/star/document/XFilter.hpp> #include <com/sun/star/frame/XLoadable.hpp> @@ -56,10 +57,30 @@ ChartFrameLoader::~ChartFrameLoader() // lang::XServiceInfo -APPHELPER_XSERVICEINFO_IMPL(ChartFrameLoader,CHART_FRAMELOADER_SERVICE_IMPLEMENTATION_NAME) +OUString SAL_CALL ChartFrameLoader::getImplementationName() + throw( css::uno::RuntimeException, std::exception ) +{ + return getImplementationName_Static(); +} + +OUString ChartFrameLoader::getImplementationName_Static() +{ + return CHART_FRAMELOADER_SERVICE_IMPLEMENTATION_NAME; +} + +sal_Bool SAL_CALL ChartFrameLoader::supportsService( const OUString& rServiceName ) + throw( css::uno::RuntimeException, std::exception ) +{ + return cppu::supportsService(this, rServiceName); +} + +css::uno::Sequence< OUString > SAL_CALL ChartFrameLoader::getSupportedServiceNames() + throw( css::uno::RuntimeException, std::exception ) +{ + return getSupportedServiceNames_Static(); +} - uno::Sequence< OUString > ChartFrameLoader -::getSupportedServiceNames_Static() +uno::Sequence< OUString > ChartFrameLoader::getSupportedServiceNames_Static() { uno::Sequence< OUString > aSNS( 1 ); aSNS.getArray()[ 0 ] = CHART_FRAMELOADER_SERVICE_NAME; |