summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorMarcos Paulo de Souza <marcos.souza.org@gmail.com>2013-10-22 23:49:31 -0200
committerStephan Bergmann <sbergman@redhat.com>2013-10-23 11:05:43 +0200
commit8f6d2eef50e1fabac30233c23a800da2c1c8ebc9 (patch)
tree28a9920e2f1fe36aab244ea848d0262c587d8969 /sd
parent3e53bb6b67ca229a6a57b3d8847404b2feed8103 (diff)
fdo#54938: Kill ServiceInfoHelper::supportsService and use cppu's instead.
Change-Id: I1c2d95e4c3fb6242dcb4cdb88cf9733471a3412b Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/core/stlfamily.cxx14
-rw-r--r--sd/source/core/stlsheet.cxx15
-rw-r--r--sd/source/ui/slideshow/slideshow.cxx15
-rw-r--r--sd/source/ui/unoidl/SdUnoDrawView.cxx4
-rw-r--r--sd/source/ui/unoidl/SdUnoOutlineView.cxx6
-rw-r--r--sd/source/ui/unoidl/SdUnoSlideView.cxx4
-rw-r--r--sd/source/ui/unoidl/unocpres.cxx6
-rw-r--r--sd/source/ui/unoidl/unolayer.cxx6
-rw-r--r--sd/source/ui/unoidl/unomodel.cxx4
-rw-r--r--sd/source/ui/unoidl/unopage.cxx3
-rw-r--r--sd/source/ui/unoidl/unopback.cxx4
11 files changed, 24 insertions, 57 deletions
diff --git a/sd/source/core/stlfamily.cxx b/sd/source/core/stlfamily.cxx
index fe265b7562a4..179acbb1aad1 100644
--- a/sd/source/core/stlfamily.cxx
+++ b/sd/source/core/stlfamily.cxx
@@ -20,7 +20,7 @@
#include <com/sun/star/lang/DisposedException.hpp>
#include <com/sun/star/lang/IllegalAccessException.hpp>
-#include <comphelper/serviceinfohelper.hxx>
+#include <cppuhelper/supportsservice.hxx>
#include <osl/mutex.hxx>
#include <vcl/svapp.hxx>
@@ -171,24 +171,17 @@ SdStyleSheet* SdStyleFamily::GetSheetByName( const OUString& rName ) throw(NoSuc
throw NoSuchElementException();
}
-// ----------------------------------------------------------
// XServiceInfo
-// ----------------------------------------------------------
-
OUString SAL_CALL SdStyleFamily::getImplementationName() throw(RuntimeException)
{
return OUString( "SdStyleFamily" );
}
-// ----------------------------------------------------------
-
sal_Bool SAL_CALL SdStyleFamily::supportsService( const OUString& ServiceName ) throw(RuntimeException)
{
- return comphelper::ServiceInfoHelper::supportsService( ServiceName, getSupportedServiceNames() );
+ return cppu::supportsService( this, ServiceName );
}
-// ----------------------------------------------------------
-
Sequence< OUString > SAL_CALL SdStyleFamily::getSupportedServiceNames() throw(RuntimeException)
{
OUString aServiceName( "com.sun.star.style.StyleFamily" );
@@ -196,10 +189,7 @@ Sequence< OUString > SAL_CALL SdStyleFamily::getSupportedServiceNames() throw(Ru
return aSeq;
}
-// ----------------------------------------------------------
// XNamed
-// ----------------------------------------------------------
-
OUString SAL_CALL SdStyleFamily::getName() throw (RuntimeException)
{
if( mnFamily == SD_STYLE_FAMILY_MASTERPAGE )
diff --git a/sd/source/core/stlsheet.cxx b/sd/source/core/stlsheet.cxx
index 06ff9796a683..2fba24b44a49 100644
--- a/sd/source/core/stlsheet.cxx
+++ b/sd/source/core/stlsheet.cxx
@@ -24,7 +24,7 @@
#include <osl/mutex.hxx>
#include <vcl/svapp.hxx>
-#include <comphelper/serviceinfohelper.hxx>
+#include <cppuhelper/supportsservice.hxx>
#include <boost/bind.hpp>
#include <editeng/outliner.hxx>
@@ -873,25 +873,17 @@ void SdStyleSheet::notifyModifyListener()
}
}
-
-// --------------------------------------------------------------------
// XServiceInfo
-// --------------------------------------------------------------------
-
OUString SAL_CALL SdStyleSheet::getImplementationName() throw(RuntimeException)
{
return OUString( "SdStyleSheet" );
}
-// --------------------------------------------------------------------
-
sal_Bool SAL_CALL SdStyleSheet::supportsService( const OUString& ServiceName ) throw(RuntimeException)
{
- return comphelper::ServiceInfoHelper::supportsService( ServiceName, getSupportedServiceNames() );
+ return cppu::supportsService( this, ServiceName );
}
-// --------------------------------------------------------------------
-
Sequence< OUString > SAL_CALL SdStyleSheet::getSupportedServiceNames() throw(RuntimeException)
{
Sequence< OUString > aNameSequence( 10 );
@@ -911,10 +903,7 @@ Sequence< OUString > SAL_CALL SdStyleSheet::getSupportedServiceNames() throw(Run
return aNameSequence;
}
-// --------------------------------------------------------------------
// XNamed
-// --------------------------------------------------------------------
-
OUString SAL_CALL SdStyleSheet::getName() throw(RuntimeException)
{
SolarMutexGuard aGuard;
diff --git a/sd/source/ui/slideshow/slideshow.cxx b/sd/source/ui/slideshow/slideshow.cxx
index 2d50fc3ebf4f..7c305e85032f 100644
--- a/sd/source/ui/slideshow/slideshow.cxx
+++ b/sd/source/ui/slideshow/slideshow.cxx
@@ -26,6 +26,7 @@
#include <com/sun/star/util/URL.hpp>
#include <cppuhelper/bootstrap.hxx>
+#include <cppuhelper/supportsservice.hxx>
#include <comphelper/processfactory.hxx>
#include <osl/mutex.hxx>
@@ -260,24 +261,17 @@ void SlideShow::CreateController( ViewShell* pViewSh, ::sd::View* pView, ::Wind
}
-// --------------------------------------------------------------------
// XServiceInfo
-// --------------------------------------------------------------------
-
OUString SAL_CALL SlideShow::getImplementationName( ) throw(RuntimeException)
{
return OUString( "com.sun.star.comp.sd.SlideShow" );
}
-// --------------------------------------------------------------------
-
sal_Bool SAL_CALL SlideShow::supportsService( const OUString& ServiceName ) throw(RuntimeException)
{
- return comphelper::ServiceInfoHelper::supportsService( ServiceName, getSupportedServiceNames( ) );
+ return cppu::supportsService( this, ServiceName );
}
-// --------------------------------------------------------------------
-
Sequence< OUString > SAL_CALL SlideShow::getSupportedServiceNames( ) throw(RuntimeException)
{
OUString aService( "com.sun.star.presentation.Presentation" );
@@ -285,10 +279,7 @@ Sequence< OUString > SAL_CALL SlideShow::getSupportedServiceNames( ) throw(Runt
return aSeq;
}
-// --------------------------------------------------------------------
// XPropertySet
-// --------------------------------------------------------------------
-
Reference< XPropertySetInfo > SAL_CALL SlideShow::getPropertySetInfo() throw(RuntimeException)
{
SolarMutexGuard aGuard;
@@ -296,8 +287,6 @@ Reference< XPropertySetInfo > SAL_CALL SlideShow::getPropertySetInfo() throw(Run
return xInfo;
}
-// --------------------------------------------------------------------
-
void SAL_CALL SlideShow::setPropertyValue( const OUString& aPropertyName, const Any& aValue ) throw(UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException)
{
SolarMutexGuard aGuard;
diff --git a/sd/source/ui/unoidl/SdUnoDrawView.cxx b/sd/source/ui/unoidl/SdUnoDrawView.cxx
index ec0a54c17b7c..4e4e8ac2536a 100644
--- a/sd/source/ui/unoidl/SdUnoDrawView.cxx
+++ b/sd/source/ui/unoidl/SdUnoDrawView.cxx
@@ -31,7 +31,7 @@
#include "pres.hxx"
#include <cppuhelper/proptypehlp.hxx>
-#include <comphelper/serviceinfohelper.hxx>
+#include <cppuhelper/supportsservice.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/viewfrm.hxx>
#include <svx/svdpagv.hxx>
@@ -613,7 +613,7 @@ OUString SAL_CALL SdUnoDrawView::getImplementationName( ) throw (RuntimeExcepti
sal_Bool SAL_CALL SdUnoDrawView::supportsService( const OUString& ServiceName ) throw (RuntimeException)
{
- return comphelper::ServiceInfoHelper::supportsService( ServiceName, getSupportedServiceNames() );
+ return cppu::supportsService( this, ServiceName );
}
Sequence< OUString > SAL_CALL SdUnoDrawView::getSupportedServiceNames( ) throw (RuntimeException)
diff --git a/sd/source/ui/unoidl/SdUnoOutlineView.cxx b/sd/source/ui/unoidl/SdUnoOutlineView.cxx
index 282b080be86b..32b1606eb6b0 100644
--- a/sd/source/ui/unoidl/SdUnoOutlineView.cxx
+++ b/sd/source/ui/unoidl/SdUnoOutlineView.cxx
@@ -18,8 +18,6 @@
*/
-#include <comphelper/serviceinfohelper.hxx>
-
#include "SdUnoOutlineView.hxx"
#include "DrawController.hxx"
@@ -28,6 +26,7 @@
#include "unopage.hxx"
#include <cppuhelper/proptypehlp.hxx>
+#include <cppuhelper/supportsservice.hxx>
#include <svx/unopage.hxx>
#include <osl/mutex.hxx>
#include <vcl/svapp.hxx>
@@ -195,7 +194,6 @@ Any SAL_CALL SdUnoOutlineView::getFastPropertyValue (
return aValue;
}
-
// XServiceInfo
OUString SAL_CALL SdUnoOutlineView::getImplementationName( ) throw (RuntimeException)
{
@@ -204,7 +202,7 @@ OUString SAL_CALL SdUnoOutlineView::getImplementationName( ) throw (RuntimeExce
sal_Bool SAL_CALL SdUnoOutlineView::supportsService( const OUString& ServiceName ) throw (RuntimeException)
{
- return comphelper::ServiceInfoHelper::supportsService( ServiceName, getSupportedServiceNames() );
+ return cppu::supportsService( this, ServiceName );
}
Sequence< OUString > SAL_CALL SdUnoOutlineView::getSupportedServiceNames( ) throw (RuntimeException)
diff --git a/sd/source/ui/unoidl/SdUnoSlideView.cxx b/sd/source/ui/unoidl/SdUnoSlideView.cxx
index f1eb8e4688ad..e8c6c075ca88 100644
--- a/sd/source/ui/unoidl/SdUnoSlideView.cxx
+++ b/sd/source/ui/unoidl/SdUnoSlideView.cxx
@@ -18,7 +18,7 @@
*/
-#include <comphelper/serviceinfohelper.hxx>
+#include <cppuhelper/supportsservice.hxx>
#include "DrawController.hxx"
#include "SdUnoSlideView.hxx"
@@ -217,7 +217,7 @@ OUString SAL_CALL SdUnoSlideView::getImplementationName( ) throw (RuntimeExcept
sal_Bool SAL_CALL SdUnoSlideView::supportsService( const OUString& ServiceName ) throw (RuntimeException)
{
- return comphelper::ServiceInfoHelper::supportsService( ServiceName, getSupportedServiceNames() );
+ return cppu::supportsService( this, ServiceName );
}
Sequence< OUString > SAL_CALL SdUnoSlideView::getSupportedServiceNames( ) throw (RuntimeException)
diff --git a/sd/source/ui/unoidl/unocpres.cxx b/sd/source/ui/unoidl/unocpres.cxx
index ce3e77ab67e2..2cae9282d3ed 100644
--- a/sd/source/ui/unoidl/unocpres.cxx
+++ b/sd/source/ui/unoidl/unocpres.cxx
@@ -24,7 +24,7 @@
#include <vcl/svapp.hxx>
#include <svx/svdpage.hxx>
#include <comphelper/extract.hxx>
-#include <comphelper/serviceinfohelper.hxx>
+#include <cppuhelper/supportsservice.hxx>
#include "unohelp.hxx"
#include "unomodel.hxx"
@@ -73,7 +73,7 @@ OUString SAL_CALL SdXCustomPresentation::getImplementationName()
sal_Bool SAL_CALL SdXCustomPresentation::supportsService( const OUString& ServiceName )
throw(uno::RuntimeException)
{
- return comphelper::ServiceInfoHelper::supportsService( ServiceName, getSupportedServiceNames() );
+ return cppu::supportsService( this, ServiceName );
}
uno::Sequence< OUString > SAL_CALL SdXCustomPresentation::getSupportedServiceNames()
@@ -302,7 +302,7 @@ OUString SAL_CALL SdXCustomPresentationAccess::getImplementationName()
sal_Bool SAL_CALL SdXCustomPresentationAccess::supportsService( const OUString& ServiceName )
throw(uno::RuntimeException)
{
- return comphelper::ServiceInfoHelper::supportsService( ServiceName, getSupportedServiceNames() );
+ return cppu::supportsService( this, ServiceName );
}
uno::Sequence< OUString > SAL_CALL SdXCustomPresentationAccess::getSupportedServiceNames()
diff --git a/sd/source/ui/unoidl/unolayer.cxx b/sd/source/ui/unoidl/unolayer.cxx
index 41e38543e5da..557b54abaeb5 100644
--- a/sd/source/ui/unoidl/unolayer.cxx
+++ b/sd/source/ui/unoidl/unolayer.cxx
@@ -25,7 +25,7 @@
#include <svx/svdpagv.hxx>
#include <svx/unoshape.hxx>
#include <svx/svdobj.hxx>
-#include <comphelper/serviceinfohelper.hxx>
+#include <cppuhelper/supportsservice.hxx>
// folgende fuer InsertSdPage()
#include <svx/svdlayer.hxx>
@@ -163,7 +163,7 @@ OUString SAL_CALL SdLayer::getImplementationName()
sal_Bool SAL_CALL SdLayer::supportsService( const OUString& ServiceName )
throw(uno::RuntimeException)
{
- return comphelper::ServiceInfoHelper::supportsService( ServiceName, getSupportedServiceNames() );
+ return cppu::supportsService( this, ServiceName );
}
uno::Sequence< OUString > SAL_CALL SdLayer::getSupportedServiceNames()
@@ -498,7 +498,7 @@ OUString SAL_CALL SdLayerManager::getImplementationName()
sal_Bool SAL_CALL SdLayerManager::supportsService( const OUString& ServiceName )
throw(uno::RuntimeException)
{
- return comphelper::ServiceInfoHelper::supportsService( ServiceName, getSupportedServiceNames() );
+ return cppu::supportsService( this, ServiceName );
}
uno::Sequence< OUString > SAL_CALL SdLayerManager::getSupportedServiceNames()
diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx
index 22cb2bf6432d..a03775260e37 100644
--- a/sd/source/ui/unoidl/unomodel.cxx
+++ b/sd/source/ui/unoidl/unomodel.cxx
@@ -32,7 +32,7 @@
#include <osl/mutex.hxx>
#include <comphelper/sequence.hxx>
#include <comphelper/servicehelper.hxx>
-#include <comphelper/serviceinfohelper.hxx>
+#include <cppuhelper/supportsservice.hxx>
#include <editeng/unofield.hxx>
#include <unomodel.hxx>
@@ -3011,7 +3011,7 @@ OUString SAL_CALL SdDocLinkTargets::getImplementationName()
sal_Bool SAL_CALL SdDocLinkTargets::supportsService( const OUString& ServiceName )
throw(uno::RuntimeException)
{
- return comphelper::ServiceInfoHelper::supportsService( ServiceName, getSupportedServiceNames() );
+ return cppu::supportsService( this, ServiceName );
}
uno::Sequence< OUString > SAL_CALL SdDocLinkTargets::getSupportedServiceNames()
diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx
index 2c934f096c5b..185daab2a77d 100644
--- a/sd/source/ui/unoidl/unopage.cxx
+++ b/sd/source/ui/unoidl/unopage.cxx
@@ -28,6 +28,7 @@
#include <com/sun/star/presentation/EffectNodeType.hpp>
#include <comphelper/processfactory.hxx>
#include <comphelper/servicehelper.hxx>
+#include <cppuhelper/supportsservice.hxx>
#include <rtl/ustrbuf.hxx>
#include <vcl/bitmapex.hxx>
#include <vcl/metaact.hxx>
@@ -2011,7 +2012,7 @@ OUString SAL_CALL SdPageLinkTargets::getImplementationName()
sal_Bool SAL_CALL SdPageLinkTargets::supportsService( const OUString& ServiceName )
throw(uno::RuntimeException)
{
- return comphelper::ServiceInfoHelper::supportsService( ServiceName, getSupportedServiceNames() );
+ return cppu::supportsService( this, ServiceName );
}
Sequence< OUString > SAL_CALL SdPageLinkTargets::getSupportedServiceNames()
diff --git a/sd/source/ui/unoidl/unopback.cxx b/sd/source/ui/unoidl/unopback.cxx
index 5ee16950eeb7..2b5dcbd803c8 100644
--- a/sd/source/ui/unoidl/unopback.cxx
+++ b/sd/source/ui/unoidl/unopback.cxx
@@ -23,12 +23,12 @@
#include <svl/itemset.hxx>
#include <svx/svdpool.hxx>
#include <comphelper/extract.hxx>
+#include <cppuhelper/supportsservice.hxx>
#include <svx/xflbstit.hxx>
#include <svx/xflbmtit.hxx>
#include <svx/svdobj.hxx>
#include <svx/unoprov.hxx>
#include <svx/unoshape.hxx>
-#include <comphelper/serviceinfohelper.hxx>
#include "unopback.hxx"
#include "unohelp.hxx"
@@ -188,7 +188,7 @@ OUString SAL_CALL SdUnoPageBackground::getImplementationName()
sal_Bool SAL_CALL SdUnoPageBackground::supportsService( const OUString& ServiceName )
throw(uno::RuntimeException)
{
- return comphelper::ServiceInfoHelper::supportsService( ServiceName, getSupportedServiceNames() );
+ return cppu::supportsService( this, ServiceName );
}
uno::Sequence< OUString > SAL_CALL SdUnoPageBackground::getSupportedServiceNames()