summaryrefslogtreecommitdiff
path: root/animations
diff options
context:
space:
mode:
authorAlexandre Vicenzi <vicenzi.alexandre@gmail.com>2014-01-25 16:24:52 -0200
committerMarcos Souza <marcos.souza.org@gmail.com>2014-02-03 14:35:46 +0000
commitf9369d33a455b328f96fa554e3e942e64a40a4da (patch)
tree20916e357bd757412b977800a74141592928aaaf /animations
parent326bec33e0a08123d716b9d2a06884368a8f07eb (diff)
fdo#54938 Convert to cppu::supportsService
Change-Id: I512c525029ebd63d261560d27e9f38bbe94f7e10 Reviewed-on: https://gerrit.libreoffice.org/7649 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com> Tested-by: Marcos Souza <marcos.souza.org@gmail.com>
Diffstat (limited to 'animations')
-rw-r--r--animations/source/animcore/targetpropertiescreator.cxx20
1 files changed, 5 insertions, 15 deletions
diff --git a/animations/source/animcore/targetpropertiescreator.cxx b/animations/source/animcore/targetpropertiescreator.cxx
index 6141f676b2bc..04cc32fc74ef 100644
--- a/animations/source/animcore/targetpropertiescreator.cxx
+++ b/animations/source/animcore/targetpropertiescreator.cxx
@@ -31,16 +31,16 @@
#include <com/sun/star/drawing/XShape.hpp>
#include <com/sun/star/animations/AnimationNodeType.hpp>
#include <com/sun/star/animations/XAnimate.hpp>
+
+#include <animations/animationnodehelper.hxx>
+#include <boost/unordered_map.hpp>
#include <cppuhelper/compbase3.hxx>
#include <cppuhelper/factory.hxx>
#include <cppuhelper/implementationentry.hxx>
+#include <cppuhelper/supportsservice.hxx>
#include <comphelper/broadcasthelper.hxx>
#include <comphelper/sequence.hxx>
-
-#include <animations/animationnodehelper.hxx>
-
#include <vector>
-#include <boost/unordered_map.hpp>
using namespace ::com::sun::star;
@@ -88,8 +88,6 @@ namespace animcore
TargetPropertiesCreator( const uno::Reference< uno::XComponentContext >& rxContext );
};
- // --------------------------------------------------------------------
-
uno::Reference< uno::XInterface > SAL_CALL createInstance_TargetPropertiesCreator( const uno::Reference< uno::XComponentContext > & rSMgr ) throw (uno::Exception)
{
return TargetPropertiesCreator::createInstance( rSMgr );
@@ -107,8 +105,6 @@ namespace animcore
return aRet;
}
- // --------------------------------------------------------------------
-
namespace
{
// Vector containing all properties for a given shape
@@ -201,7 +197,6 @@ namespace animcore
{
// extract target shape from iterate node
// (will override the target for all children)
- // --------------------------------------------------
uno::Reference< animations::XIterateContainer > xIterNode( xNode,
uno::UNO_QUERY );
@@ -395,8 +390,6 @@ namespace animcore
};
}
- // --------------------------------------------------------------------
-
TargetPropertiesCreator::TargetPropertiesCreator( const uno::Reference< uno::XComponentContext >& ) :
TargetPropertiesCreator_Base( m_aMutex )
{
@@ -433,10 +426,7 @@ namespace animcore
// it actually does right now, for the slideshow implementation).
aFunctor( xRootNode );
-
// output to result sequence
- // ----------------------------------------------------------------------
-
uno::Sequence< animations::TargetProperties > aRes( aShapeHash.size() );
::std::size_t nCurrIndex(0);
@@ -474,7 +464,7 @@ namespace animcore
sal_Bool SAL_CALL TargetPropertiesCreator::supportsService( const OUString& ServiceName ) throw( uno::RuntimeException )
{
- return ServiceName.equalsIgnoreAsciiCase(SERVICE_NAME);
+ return cppu::supportsService(this, ServiceName);
}
uno::Sequence< OUString > SAL_CALL TargetPropertiesCreator::getSupportedServiceNames() throw( uno::RuntimeException )