diff options
Diffstat (limited to 'sd/source/ui/unoidl/randomnode.cxx')
-rw-r--r-- | sd/source/ui/unoidl/randomnode.cxx | 170 |
1 files changed, 82 insertions, 88 deletions
diff --git a/sd/source/ui/unoidl/randomnode.cxx b/sd/source/ui/unoidl/randomnode.cxx index fe02c933becf..e41558577ac6 100644 --- a/sd/source/ui/unoidl/randomnode.cxx +++ b/sd/source/ui/unoidl/randomnode.cxx @@ -77,64 +77,64 @@ public: void init( sal_Int16 nPresetClass ); // XInitialization - void SAL_CALL initialize( const Sequence< Any >& aArguments ) throw (Exception, RuntimeException, std::exception) override; + void SAL_CALL initialize( const Sequence< Any >& aArguments ) override; // XChild - Reference< XInterface > SAL_CALL getParent( ) throw (RuntimeException, std::exception) override; - void SAL_CALL setParent( const Reference< XInterface >& Parent ) throw (NoSupportException, RuntimeException, std::exception) override; + Reference< XInterface > SAL_CALL getParent( ) override; + void SAL_CALL setParent( const Reference< XInterface >& Parent ) override; // XCloneable - virtual Reference< XCloneable > SAL_CALL createClone() throw (RuntimeException, std::exception) override; + virtual Reference< XCloneable > SAL_CALL createClone() override; // XServiceInfo - OUString SAL_CALL getImplementationName() throw(std::exception) override; - Sequence< OUString > SAL_CALL getSupportedServiceNames() throw(std::exception) override; - sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw(std::exception) override; + OUString SAL_CALL getImplementationName() override; + Sequence< OUString > SAL_CALL getSupportedServiceNames() override; + sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override; // XAnimationNode - ::sal_Int16 SAL_CALL getType() throw (RuntimeException, std::exception) override; - Any SAL_CALL getBegin() throw (RuntimeException, std::exception) override; - void SAL_CALL setBegin( const Any& _begin ) throw (RuntimeException, std::exception) override; - Any SAL_CALL getDuration() throw (RuntimeException, std::exception) override; - void SAL_CALL setDuration( const Any& _duration ) throw (RuntimeException, std::exception) override; - Any SAL_CALL getEnd() throw (RuntimeException, std::exception) override; - void SAL_CALL setEnd( const Any& _end ) throw (RuntimeException, std::exception) override; - Any SAL_CALL getEndSync() throw (RuntimeException, std::exception) override; - void SAL_CALL setEndSync( const Any& _endsync ) throw (RuntimeException, std::exception) override; - Any SAL_CALL getRepeatCount() throw (RuntimeException, std::exception) override; - void SAL_CALL setRepeatCount( const Any& _repeatcount ) throw (RuntimeException, std::exception) override; - Any SAL_CALL getRepeatDuration() throw (RuntimeException, std::exception) override; - void SAL_CALL setRepeatDuration( const Any& _repeatduration ) throw (RuntimeException, std::exception) override; - ::sal_Int16 SAL_CALL getFill() throw (RuntimeException, std::exception) override; - void SAL_CALL setFill( ::sal_Int16 _fill ) throw (RuntimeException, std::exception) override; - ::sal_Int16 SAL_CALL getFillDefault() throw (RuntimeException, std::exception) override; - void SAL_CALL setFillDefault( ::sal_Int16 _filldefault ) throw (RuntimeException, std::exception) override; - ::sal_Int16 SAL_CALL getRestart() throw (RuntimeException, std::exception) override; - void SAL_CALL setRestart( ::sal_Int16 _restart ) throw (RuntimeException, std::exception) override; - ::sal_Int16 SAL_CALL getRestartDefault() throw (RuntimeException, std::exception) override; - void SAL_CALL setRestartDefault( ::sal_Int16 _restartdefault ) throw (RuntimeException, std::exception) override; - double SAL_CALL getAcceleration() throw (RuntimeException, std::exception) override; - void SAL_CALL setAcceleration( double _acceleration ) throw (RuntimeException, std::exception) override; - double SAL_CALL getDecelerate() throw (RuntimeException, std::exception) override; - void SAL_CALL setDecelerate( double _decelerate ) throw (RuntimeException, std::exception) override; - sal_Bool SAL_CALL getAutoReverse() throw (RuntimeException, std::exception) override; - void SAL_CALL setAutoReverse( sal_Bool _autoreverse ) throw (RuntimeException, std::exception) override; - Sequence< NamedValue > SAL_CALL getUserData() throw (RuntimeException, std::exception) override; - void SAL_CALL setUserData( const Sequence< NamedValue >& _userdata ) throw (RuntimeException, std::exception) override; + ::sal_Int16 SAL_CALL getType() override; + Any SAL_CALL getBegin() override; + void SAL_CALL setBegin( const Any& _begin ) override; + Any SAL_CALL getDuration() override; + void SAL_CALL setDuration( const Any& _duration ) override; + Any SAL_CALL getEnd() override; + void SAL_CALL setEnd( const Any& _end ) override; + Any SAL_CALL getEndSync() override; + void SAL_CALL setEndSync( const Any& _endsync ) override; + Any SAL_CALL getRepeatCount() override; + void SAL_CALL setRepeatCount( const Any& _repeatcount ) override; + Any SAL_CALL getRepeatDuration() override; + void SAL_CALL setRepeatDuration( const Any& _repeatduration ) override; + ::sal_Int16 SAL_CALL getFill() override; + void SAL_CALL setFill( ::sal_Int16 _fill ) override; + ::sal_Int16 SAL_CALL getFillDefault() override; + void SAL_CALL setFillDefault( ::sal_Int16 _filldefault ) override; + ::sal_Int16 SAL_CALL getRestart() override; + void SAL_CALL setRestart( ::sal_Int16 _restart ) override; + ::sal_Int16 SAL_CALL getRestartDefault() override; + void SAL_CALL setRestartDefault( ::sal_Int16 _restartdefault ) override; + double SAL_CALL getAcceleration() override; + void SAL_CALL setAcceleration( double _acceleration ) override; + double SAL_CALL getDecelerate() override; + void SAL_CALL setDecelerate( double _decelerate ) override; + sal_Bool SAL_CALL getAutoReverse() override; + void SAL_CALL setAutoReverse( sal_Bool _autoreverse ) override; + Sequence< NamedValue > SAL_CALL getUserData() override; + void SAL_CALL setUserData( const Sequence< NamedValue >& _userdata ) override; // XElementAccess - virtual Type SAL_CALL getElementType() throw (RuntimeException, std::exception) override; - virtual sal_Bool SAL_CALL hasElements() throw (RuntimeException, std::exception) override; + virtual Type SAL_CALL getElementType() override; + virtual sal_Bool SAL_CALL hasElements() override; // XEnumerationAccess - virtual Reference< XEnumeration > SAL_CALL createEnumeration() throw (RuntimeException, std::exception) override; + virtual Reference< XEnumeration > SAL_CALL createEnumeration() override; // XTimeContainer - Reference< XAnimationNode > SAL_CALL insertBefore( const Reference< XAnimationNode >& newChild, const Reference< XAnimationNode >& refChild ) throw (IllegalArgumentException, NoSuchElementException, ElementExistException, WrappedTargetException, RuntimeException, std::exception) override; - Reference< XAnimationNode > SAL_CALL insertAfter( const Reference< XAnimationNode >& newChild, const Reference< XAnimationNode >& refChild ) throw (IllegalArgumentException, NoSuchElementException, ElementExistException, WrappedTargetException, RuntimeException, std::exception) override; - Reference< XAnimationNode > SAL_CALL replaceChild( const Reference< XAnimationNode >& newChild, const Reference< XAnimationNode >& oldChild ) throw (IllegalArgumentException, NoSuchElementException, ElementExistException, WrappedTargetException, RuntimeException, std::exception) override; - Reference< XAnimationNode > SAL_CALL removeChild( const Reference< XAnimationNode >& oldChild ) throw (IllegalArgumentException, NoSuchElementException, WrappedTargetException, RuntimeException, std::exception) override; - Reference< XAnimationNode > SAL_CALL appendChild( const Reference< XAnimationNode >& newChild ) throw (IllegalArgumentException, ElementExistException, WrappedTargetException, RuntimeException, std::exception) override; + Reference< XAnimationNode > SAL_CALL insertBefore( const Reference< XAnimationNode >& newChild, const Reference< XAnimationNode >& refChild ) override; + Reference< XAnimationNode > SAL_CALL insertAfter( const Reference< XAnimationNode >& newChild, const Reference< XAnimationNode >& refChild ) override; + Reference< XAnimationNode > SAL_CALL replaceChild( const Reference< XAnimationNode >& newChild, const Reference< XAnimationNode >& oldChild ) override; + Reference< XAnimationNode > SAL_CALL removeChild( const Reference< XAnimationNode >& oldChild ) override; + Reference< XAnimationNode > SAL_CALL appendChild( const Reference< XAnimationNode >& newChild ) override; private: // our first, last and only protection from mutli-threads! @@ -202,7 +202,7 @@ void RandomAnimationNode::init( sal_Int16 nPresetClass ) } // XInitialization -void SAL_CALL RandomAnimationNode::initialize( const Sequence< Any >& aArguments ) throw (Exception, RuntimeException, std::exception) +void SAL_CALL RandomAnimationNode::initialize( const Sequence< Any >& aArguments ) { if( aArguments.getLength() != 1 ) throw IllegalArgumentException(); @@ -222,242 +222,241 @@ void SAL_CALL RandomAnimationNode::initialize( const Sequence< Any >& aArguments } // XAnimationNode -sal_Int16 SAL_CALL RandomAnimationNode::getType() throw (RuntimeException, std::exception) +sal_Int16 SAL_CALL RandomAnimationNode::getType() { Guard< Mutex > aGuard( maMutex ); return css::animations::AnimationNodeType::PAR; } // XAnimationNode -Any SAL_CALL RandomAnimationNode::getBegin() throw (RuntimeException, std::exception) +Any SAL_CALL RandomAnimationNode::getBegin() { Guard< Mutex > aGuard( maMutex ); return maBegin; } // XAnimationNode -void SAL_CALL RandomAnimationNode::setBegin( const Any& _begin ) throw (RuntimeException, std::exception) +void SAL_CALL RandomAnimationNode::setBegin( const Any& _begin ) { Guard< Mutex > aGuard( maMutex ); maBegin = _begin; } // XAnimationNode -Any SAL_CALL RandomAnimationNode::getDuration() throw (RuntimeException, std::exception) +Any SAL_CALL RandomAnimationNode::getDuration() { Guard< Mutex > aGuard( maMutex ); return maDuration; } // XAnimationNode -void SAL_CALL RandomAnimationNode::setDuration( const Any& _duration ) throw (RuntimeException, std::exception) +void SAL_CALL RandomAnimationNode::setDuration( const Any& _duration ) { Guard< Mutex > aGuard( maMutex ); maDuration = _duration; } // XAnimationNode -Any SAL_CALL RandomAnimationNode::getEnd() throw (RuntimeException, std::exception) +Any SAL_CALL RandomAnimationNode::getEnd() { Guard< Mutex > aGuard( maMutex ); return maEnd; } // XAnimationNode -void SAL_CALL RandomAnimationNode::setEnd( const Any& _end ) throw (RuntimeException, std::exception) +void SAL_CALL RandomAnimationNode::setEnd( const Any& _end ) { Guard< Mutex > aGuard( maMutex ); maEnd = _end; } // XAnimationNode -Any SAL_CALL RandomAnimationNode::getEndSync() throw (RuntimeException, std::exception) +Any SAL_CALL RandomAnimationNode::getEndSync() { Guard< Mutex > aGuard( maMutex ); return maEndSync; } // XAnimationNode -void SAL_CALL RandomAnimationNode::setEndSync( const Any& _endsync ) throw (RuntimeException, std::exception) +void SAL_CALL RandomAnimationNode::setEndSync( const Any& _endsync ) { Guard< Mutex > aGuard( maMutex ); maEndSync = _endsync; } // XAnimationNode -Any SAL_CALL RandomAnimationNode::getRepeatCount() throw (RuntimeException, std::exception) +Any SAL_CALL RandomAnimationNode::getRepeatCount() { Guard< Mutex > aGuard( maMutex ); return maRepeatCount; } // XAnimationNode -void SAL_CALL RandomAnimationNode::setRepeatCount( const Any& _repeatcount ) throw (RuntimeException, std::exception) +void SAL_CALL RandomAnimationNode::setRepeatCount( const Any& _repeatcount ) { Guard< Mutex > aGuard( maMutex ); maRepeatCount = _repeatcount; } // XAnimationNode -Any SAL_CALL RandomAnimationNode::getRepeatDuration() throw (RuntimeException, std::exception) +Any SAL_CALL RandomAnimationNode::getRepeatDuration() { Guard< Mutex > aGuard( maMutex ); return maRepeatDuration; } // XAnimationNode -void SAL_CALL RandomAnimationNode::setRepeatDuration( const Any& _repeatduration ) throw (RuntimeException, std::exception) +void SAL_CALL RandomAnimationNode::setRepeatDuration( const Any& _repeatduration ) { Guard< Mutex > aGuard( maMutex ); maRepeatDuration = _repeatduration; } // XAnimationNode -sal_Int16 SAL_CALL RandomAnimationNode::getFill() throw (RuntimeException, std::exception) +sal_Int16 SAL_CALL RandomAnimationNode::getFill() { Guard< Mutex > aGuard( maMutex ); return mnFill; } // XAnimationNode -void SAL_CALL RandomAnimationNode::setFill( sal_Int16 _fill ) throw (RuntimeException, std::exception) +void SAL_CALL RandomAnimationNode::setFill( sal_Int16 _fill ) { Guard< Mutex > aGuard( maMutex ); mnFill = _fill; } // XAnimationNode -sal_Int16 SAL_CALL RandomAnimationNode::getFillDefault() throw (RuntimeException, std::exception) +sal_Int16 SAL_CALL RandomAnimationNode::getFillDefault() { Guard< Mutex > aGuard( maMutex ); return mnFillDefault; } // XAnimationNode -void SAL_CALL RandomAnimationNode::setFillDefault( sal_Int16 _filldefault ) throw (RuntimeException, std::exception) +void SAL_CALL RandomAnimationNode::setFillDefault( sal_Int16 _filldefault ) { Guard< Mutex > aGuard( maMutex ); mnFillDefault = _filldefault; } // XAnimationNode -sal_Int16 SAL_CALL RandomAnimationNode::getRestart() throw (RuntimeException, std::exception) +sal_Int16 SAL_CALL RandomAnimationNode::getRestart() { Guard< Mutex > aGuard( maMutex ); return mnRestart; } // XAnimationNode -void SAL_CALL RandomAnimationNode::setRestart( sal_Int16 _restart ) throw (RuntimeException, std::exception) +void SAL_CALL RandomAnimationNode::setRestart( sal_Int16 _restart ) { Guard< Mutex > aGuard( maMutex ); mnRestart = _restart; } // XAnimationNode -sal_Int16 SAL_CALL RandomAnimationNode::getRestartDefault() throw (RuntimeException, std::exception) +sal_Int16 SAL_CALL RandomAnimationNode::getRestartDefault() { Guard< Mutex > aGuard( maMutex ); return mnRestartDefault; } // XAnimationNode -void SAL_CALL RandomAnimationNode::setRestartDefault( sal_Int16 _restartdefault ) throw (RuntimeException, std::exception) +void SAL_CALL RandomAnimationNode::setRestartDefault( sal_Int16 _restartdefault ) { Guard< Mutex > aGuard( maMutex ); mnRestartDefault = _restartdefault; } // XAnimationNode -double SAL_CALL RandomAnimationNode::getAcceleration() throw (RuntimeException, std::exception) +double SAL_CALL RandomAnimationNode::getAcceleration() { Guard< Mutex > aGuard( maMutex ); return mfAcceleration; } // XAnimationNode -void SAL_CALL RandomAnimationNode::setAcceleration( double _acceleration ) throw (RuntimeException, std::exception) +void SAL_CALL RandomAnimationNode::setAcceleration( double _acceleration ) { Guard< Mutex > aGuard( maMutex ); mfAcceleration = _acceleration; } // XAnimationNode -double SAL_CALL RandomAnimationNode::getDecelerate() throw (RuntimeException, std::exception) +double SAL_CALL RandomAnimationNode::getDecelerate() { Guard< Mutex > aGuard( maMutex ); return mfDecelerate; } // XAnimationNode -void SAL_CALL RandomAnimationNode::setDecelerate( double _decelerate ) throw (RuntimeException, std::exception) +void SAL_CALL RandomAnimationNode::setDecelerate( double _decelerate ) { Guard< Mutex > aGuard( maMutex ); mfDecelerate = _decelerate; } // XAnimationNode -sal_Bool SAL_CALL RandomAnimationNode::getAutoReverse() throw (RuntimeException, std::exception) +sal_Bool SAL_CALL RandomAnimationNode::getAutoReverse() { Guard< Mutex > aGuard( maMutex ); return mbAutoReverse; } // XAnimationNode -void SAL_CALL RandomAnimationNode::setAutoReverse( sal_Bool _autoreverse ) throw (RuntimeException, std::exception) +void SAL_CALL RandomAnimationNode::setAutoReverse( sal_Bool _autoreverse ) { Guard< Mutex > aGuard( maMutex ); mbAutoReverse = _autoreverse; } -Sequence< NamedValue > SAL_CALL RandomAnimationNode::getUserData() throw (RuntimeException, std::exception) +Sequence< NamedValue > SAL_CALL RandomAnimationNode::getUserData() { Guard< Mutex > aGuard( maMutex ); return maUserData; } -void SAL_CALL RandomAnimationNode::setUserData( const Sequence< NamedValue >& _userdata ) throw (RuntimeException, std::exception) +void SAL_CALL RandomAnimationNode::setUserData( const Sequence< NamedValue >& _userdata ) { Guard< Mutex > aGuard( maMutex ); maUserData = _userdata; } // XChild -Reference< XInterface > SAL_CALL RandomAnimationNode::getParent() throw (RuntimeException, std::exception) +Reference< XInterface > SAL_CALL RandomAnimationNode::getParent() { Guard< Mutex > aGuard( maMutex ); return mxParent; } // XChild -void SAL_CALL RandomAnimationNode::setParent( const Reference< XInterface >& Parent ) throw (NoSupportException, RuntimeException, std::exception) +void SAL_CALL RandomAnimationNode::setParent( const Reference< XInterface >& Parent ) { Guard< Mutex > aGuard( maMutex ); mxParent = Parent; } // XCloneable -Reference< XCloneable > SAL_CALL RandomAnimationNode::createClone() throw (RuntimeException, std::exception) +Reference< XCloneable > SAL_CALL RandomAnimationNode::createClone() { Reference< XCloneable > xNewNode( new RandomAnimationNode( *this ) ); return xNewNode; } // XElementAccess -Type SAL_CALL RandomAnimationNode::getElementType() throw (RuntimeException, std::exception) +Type SAL_CALL RandomAnimationNode::getElementType() { return cppu::UnoType<XAnimationNode>::get(); } // XElementAccess -sal_Bool SAL_CALL RandomAnimationNode::hasElements() throw (RuntimeException, std::exception) +sal_Bool SAL_CALL RandomAnimationNode::hasElements() { return true; } // XEnumerationAccess Reference< XEnumeration > SAL_CALL RandomAnimationNode::createEnumeration() - throw (RuntimeException, std::exception) { Guard< Mutex > aGuard( maMutex ); @@ -501,35 +500,30 @@ Reference< XEnumeration > SAL_CALL RandomAnimationNode::createEnumeration() // XTimeContainer Reference< XAnimationNode > SAL_CALL RandomAnimationNode::insertBefore( const Reference< XAnimationNode >& newChild, const Reference< XAnimationNode >& ) - throw (IllegalArgumentException, NoSuchElementException, ElementExistException, WrappedTargetException, RuntimeException, std::exception) { return appendChild( newChild ); } // XTimeContainer Reference< XAnimationNode > SAL_CALL RandomAnimationNode::insertAfter( const Reference< XAnimationNode >& newChild, const Reference< XAnimationNode >& ) - throw (IllegalArgumentException, NoSuchElementException, ElementExistException, WrappedTargetException, RuntimeException, std::exception) { return appendChild( newChild ); } // XTimeContainer Reference< XAnimationNode > SAL_CALL RandomAnimationNode::replaceChild( const Reference< XAnimationNode >& newChild, const Reference< XAnimationNode >& ) - throw( IllegalArgumentException, NoSuchElementException, ElementExistException, WrappedTargetException, RuntimeException, std::exception) { return appendChild( newChild ); } // XTimeContainer Reference< XAnimationNode > SAL_CALL RandomAnimationNode::removeChild( const Reference< XAnimationNode >& oldChild ) - throw(IllegalArgumentException, NoSuchElementException, WrappedTargetException, RuntimeException, std::exception) { return oldChild; } // XTimeContainer Reference< XAnimationNode > SAL_CALL RandomAnimationNode::appendChild( const Reference< XAnimationNode >& newChild ) - throw(IllegalArgumentException, ElementExistException, WrappedTargetException, RuntimeException, std::exception) { Reference< XAnimate > xAnimate( newChild, UNO_QUERY ); if( xAnimate.is() ) @@ -546,19 +540,19 @@ Reference< XAnimationNode > SAL_CALL RandomAnimationNode::appendChild( const Ref } // XServiceInfo -OUString RandomAnimationNode::getImplementationName() throw(std::exception) +OUString RandomAnimationNode::getImplementationName() { return OUString( "sd::RandomAnimationNode" ) ; } // XServiceInfo -sal_Bool RandomAnimationNode::supportsService(const OUString& ServiceName) throw(std::exception) +sal_Bool RandomAnimationNode::supportsService(const OUString& ServiceName) { return cppu::supportsService(this, ServiceName); } // XServiceInfo -Sequence< OUString > RandomAnimationNode::getSupportedServiceNames() throw(std::exception) +Sequence< OUString > RandomAnimationNode::getSupportedServiceNames() { Sequence< OUString > aSeq( 2 ); aSeq[0] = "com.sun.star.animations.ParallelTimeContainer"; |