diff options
author | Alexandre Vicenzi <vicenzi.alexandre@gmail.com> | 2014-02-05 00:43:23 -0200 |
---|---|---|
committer | Marcos Souza <marcos.souza.org@gmail.com> | 2014-02-05 14:01:18 +0000 |
commit | 625971b104bd39c0168816f822d1a0c491e25f45 (patch) | |
tree | 487c0b1e56e9c6806c5d93be2b3b1b384963c700 /xmloff | |
parent | 6a6a51ed0546de2d6e198b0d7486d347b2fb345b (diff) |
fdo#54938 Convert sfx2, xmloff and connec.. to cppu::supportsService
Change-Id: Ib5d3aabf8aa88ec24e44584047d0405a09fa44ed
Reviewed-on: https://gerrit.libreoffice.org/7864
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/core/XMLEmbeddedObjectExportFilter.cxx | 7 | ||||
-rw-r--r-- | xmloff/source/transform/OOo2Oasis.cxx | 5 | ||||
-rw-r--r-- | xmloff/source/transform/Oasis2OOo.cxx | 5 |
3 files changed, 9 insertions, 8 deletions
diff --git a/xmloff/source/core/XMLEmbeddedObjectExportFilter.cxx b/xmloff/source/core/XMLEmbeddedObjectExportFilter.cxx index eb2c0b68cfd9..0817d86aef61 100644 --- a/xmloff/source/core/XMLEmbeddedObjectExportFilter.cxx +++ b/xmloff/source/core/XMLEmbeddedObjectExportFilter.cxx @@ -18,7 +18,7 @@ */ #include <xmloff/XMLEmbeddedObjectExportFilter.hxx> - +#include <cppuhelper/supportsservice.hxx> using namespace ::com::sun::star::uno; using namespace ::com::sun::star::xml::sax; @@ -35,7 +35,6 @@ XMLEmbeddedObjectExportFilter::~XMLEmbeddedObjectExportFilter () throw() { } - void SAL_CALL XMLEmbeddedObjectExportFilter::startDocument( void ) throw( SAXException, RuntimeException ) { @@ -153,10 +152,10 @@ OUString SAL_CALL XMLEmbeddedObjectExportFilter::getImplementationName() return aStr; } -sal_Bool SAL_CALL XMLEmbeddedObjectExportFilter::supportsService( const OUString& ) +sal_Bool SAL_CALL XMLEmbeddedObjectExportFilter::supportsService( const OUString& ServiceName ) throw(RuntimeException) { - return sal_False; + return cppu::supportsService(this, ServiceName); } Sequence< OUString > SAL_CALL XMLEmbeddedObjectExportFilter::getSupportedServiceNames( ) diff --git a/xmloff/source/transform/OOo2Oasis.cxx b/xmloff/source/transform/OOo2Oasis.cxx index 9619cbfb8029..e956b4d93212 100644 --- a/xmloff/source/transform/OOo2Oasis.cxx +++ b/xmloff/source/transform/OOo2Oasis.cxx @@ -38,6 +38,7 @@ #include "PropertyActionsOOo.hxx" #include "TransformerActions.hxx" #include "OOo2Oasis.hxx" +#include <cppuhelper/supportsservice.hxx> using namespace ::xmloff::token; using namespace ::com::sun::star::uno; @@ -2019,10 +2020,10 @@ OUString SAL_CALL OOo2OasisTransformer::getImplementationName() return m_aImplName; } -sal_Bool SAL_CALL OOo2OasisTransformer::supportsService( const OUString& ) +sal_Bool SAL_CALL OOo2OasisTransformer::supportsService( const OUString& ServiceName ) throw(RuntimeException) { - return sal_False; + return cppu::supportsService(this, ServiceName); } Sequence< OUString > SAL_CALL OOo2OasisTransformer::getSupportedServiceNames( ) diff --git a/xmloff/source/transform/Oasis2OOo.cxx b/xmloff/source/transform/Oasis2OOo.cxx index 1592679fcd24..ff1adbe92d53 100644 --- a/xmloff/source/transform/Oasis2OOo.cxx +++ b/xmloff/source/transform/Oasis2OOo.cxx @@ -42,6 +42,7 @@ #include "FamilyType.hxx" #include <comphelper/servicehelper.hxx> #include "Oasis2OOo.hxx" +#include <cppuhelper/supportsservice.hxx> using namespace ::osl; using namespace ::xmloff::token; @@ -2007,10 +2008,10 @@ OUString SAL_CALL Oasis2OOoTransformer::getImplementationName() return Oasis2OOoTransformer_getImplementationName(); } -sal_Bool SAL_CALL Oasis2OOoTransformer::supportsService( const OUString& ) +sal_Bool SAL_CALL Oasis2OOoTransformer::supportsService( const OUString& ServiceName ) throw(RuntimeException) { - return sal_False; + return cppu::supportsService(this, ServiceName); } Sequence< OUString > SAL_CALL Oasis2OOoTransformer::getSupportedServiceNames( ) |