diff options
Diffstat (limited to 'UnoControls/source/base/basecontrol.cxx')
-rw-r--r-- | UnoControls/source/base/basecontrol.cxx | 94 |
1 files changed, 47 insertions, 47 deletions
diff --git a/UnoControls/source/base/basecontrol.cxx b/UnoControls/source/base/basecontrol.cxx index b355344467b3..064785105504 100644 --- a/UnoControls/source/base/basecontrol.cxx +++ b/UnoControls/source/base/basecontrol.cxx @@ -78,7 +78,7 @@ BaseControl::~BaseControl() // XInterface -Any SAL_CALL BaseControl::queryInterface( const Type& rType ) throw( RuntimeException ) +Any SAL_CALL BaseControl::queryInterface( const Type& rType ) throw( RuntimeException, std::exception ) { Any aReturn ; if ( m_xDelegator.is() ) @@ -126,7 +126,7 @@ void SAL_CALL BaseControl::release() throw() // XTypeProvider -Sequence< Type > SAL_CALL BaseControl::getTypes() throw( RuntimeException ) +Sequence< Type > SAL_CALL BaseControl::getTypes() throw( RuntimeException, std::exception ) { // Optimize this method ! // We initialize a static variable only one time. And we don't must use a mutex at every call! @@ -163,7 +163,7 @@ Sequence< Type > SAL_CALL BaseControl::getTypes() throw( RuntimeException ) // XTypeProvider -Sequence< sal_Int8 > SAL_CALL BaseControl::getImplementationId() throw( RuntimeException ) +Sequence< sal_Int8 > SAL_CALL BaseControl::getImplementationId() throw( RuntimeException, std::exception ) { // Create one Id for all instances of this class. // Use ethernet address to do this! (sal_True) @@ -195,7 +195,7 @@ Sequence< sal_Int8 > SAL_CALL BaseControl::getImplementationId() throw( RuntimeE // XAggregation -void SAL_CALL BaseControl::setDelegator( const Reference< XInterface >& xDel ) throw( RuntimeException ) +void SAL_CALL BaseControl::setDelegator( const Reference< XInterface >& xDel ) throw( RuntimeException, std::exception ) { // Ready for multithreading MutexGuard aGuard( m_aMutex ); @@ -206,7 +206,7 @@ void SAL_CALL BaseControl::setDelegator( const Reference< XInterface >& xDel ) t // XAggregation -Any SAL_CALL BaseControl::queryAggregation( const Type& aType ) throw( RuntimeException ) +Any SAL_CALL BaseControl::queryAggregation( const Type& aType ) throw( RuntimeException, std::exception ) { // Ask for my own supported interfaces ... // Attention: XTypeProvider and XInterface are supported by OComponentHelper! @@ -237,7 +237,7 @@ Any SAL_CALL BaseControl::queryAggregation( const Type& aType ) throw( RuntimeEx // XServiceInfo -OUString SAL_CALL BaseControl::getImplementationName() throw( RuntimeException ) +OUString SAL_CALL BaseControl::getImplementationName() throw( RuntimeException, std::exception ) { return impl_getStaticImplementationName(); } @@ -246,7 +246,7 @@ OUString SAL_CALL BaseControl::getImplementationName() throw( RuntimeException ) // XServiceInfo -sal_Bool SAL_CALL BaseControl::supportsService( const OUString& sServiceName ) throw( RuntimeException ) +sal_Bool SAL_CALL BaseControl::supportsService( const OUString& sServiceName ) throw( RuntimeException, std::exception ) { return cppu::supportsService(this, sServiceName); } @@ -255,7 +255,7 @@ sal_Bool SAL_CALL BaseControl::supportsService( const OUString& sServiceName ) t // XServiceInfo -Sequence< OUString > SAL_CALL BaseControl::getSupportedServiceNames() throw( RuntimeException ) +Sequence< OUString > SAL_CALL BaseControl::getSupportedServiceNames() throw( RuntimeException, std::exception ) { return impl_getStaticSupportedServiceNames(); } @@ -264,7 +264,7 @@ Sequence< OUString > SAL_CALL BaseControl::getSupportedServiceNames() throw( Run // XComponent -void SAL_CALL BaseControl::dispose() throw( RuntimeException ) +void SAL_CALL BaseControl::dispose() throw( RuntimeException, std::exception ) { // Ready for multithreading MutexGuard aGuard( m_aMutex ); @@ -293,7 +293,7 @@ void SAL_CALL BaseControl::dispose() throw( RuntimeException ) // XComponent -void SAL_CALL BaseControl::addEventListener( const Reference< XEventListener >& xListener ) throw( RuntimeException ) +void SAL_CALL BaseControl::addEventListener( const Reference< XEventListener >& xListener ) throw( RuntimeException, std::exception ) { // Ready for multithreading MutexGuard aGuard( m_aMutex ); @@ -304,7 +304,7 @@ void SAL_CALL BaseControl::addEventListener( const Reference< XEventListener >& // XComponent -void SAL_CALL BaseControl::removeEventListener( const Reference< XEventListener >& xListener ) throw( RuntimeException ) +void SAL_CALL BaseControl::removeEventListener( const Reference< XEventListener >& xListener ) throw( RuntimeException, std::exception ) { // Ready for multithreading MutexGuard aGuard( m_aMutex ); @@ -316,7 +316,7 @@ void SAL_CALL BaseControl::removeEventListener( const Reference< XEventListener void SAL_CALL BaseControl::createPeer( const Reference< XToolkit >& xToolkit , - const Reference< XWindowPeer >& xParentPeer ) throw( RuntimeException ) + const Reference< XWindowPeer >& xParentPeer ) throw( RuntimeException, std::exception ) { // Ready for multithreading MutexGuard aGuard( m_aMutex ); @@ -378,7 +378,7 @@ void SAL_CALL BaseControl::createPeer( const Reference< XToolkit >& xToo // XControl -void SAL_CALL BaseControl::setContext( const Reference< XInterface >& xContext ) throw( RuntimeException ) +void SAL_CALL BaseControl::setContext( const Reference< XInterface >& xContext ) throw( RuntimeException, std::exception ) { // Ready for multithreading MutexGuard aGuard( m_aMutex ); @@ -389,7 +389,7 @@ void SAL_CALL BaseControl::setContext( const Reference< XInterface >& xContext ) // XControl -void SAL_CALL BaseControl::setDesignMode( sal_Bool bOn ) throw( RuntimeException ) +void SAL_CALL BaseControl::setDesignMode( sal_Bool bOn ) throw( RuntimeException, std::exception ) { // Ready for multithreading MutexGuard aGuard( m_aMutex ); @@ -400,7 +400,7 @@ void SAL_CALL BaseControl::setDesignMode( sal_Bool bOn ) throw( RuntimeException // XControl -Reference< XInterface > SAL_CALL BaseControl::getContext() throw( RuntimeException ) +Reference< XInterface > SAL_CALL BaseControl::getContext() throw( RuntimeException, std::exception ) { // Ready for multithreading MutexGuard aGuard( m_aMutex ); @@ -411,7 +411,7 @@ Reference< XInterface > SAL_CALL BaseControl::getContext() throw( RuntimeExcepti // XControl -Reference< XWindowPeer > SAL_CALL BaseControl::getPeer() throw( RuntimeException ) +Reference< XWindowPeer > SAL_CALL BaseControl::getPeer() throw( RuntimeException, std::exception ) { // Ready for multithreading MutexGuard aGuard( m_aMutex ); @@ -422,7 +422,7 @@ Reference< XWindowPeer > SAL_CALL BaseControl::getPeer() throw( RuntimeException // XControl -Reference< XView > SAL_CALL BaseControl::getView() throw( RuntimeException ) +Reference< XView > SAL_CALL BaseControl::getView() throw( RuntimeException, std::exception ) { // Ready for multithreading MutexGuard aGuard( m_aMutex ); @@ -433,7 +433,7 @@ Reference< XView > SAL_CALL BaseControl::getView() throw( RuntimeException ) // XControl -sal_Bool SAL_CALL BaseControl::isDesignMode() throw( RuntimeException ) +sal_Bool SAL_CALL BaseControl::isDesignMode() throw( RuntimeException, std::exception ) { // Ready for multithreading MutexGuard aGuard( m_aMutex ); @@ -444,7 +444,7 @@ sal_Bool SAL_CALL BaseControl::isDesignMode() throw( RuntimeException ) // XControl -sal_Bool SAL_CALL BaseControl::isTransparent() throw( RuntimeException ) +sal_Bool SAL_CALL BaseControl::isTransparent() throw( RuntimeException, std::exception ) { return sal_False ; } @@ -457,7 +457,7 @@ void SAL_CALL BaseControl::setPosSize( sal_Int32 nX , sal_Int32 nY , sal_Int32 nWidth , sal_Int32 nHeight , - sal_Int16 nFlags ) throw( RuntimeException ) + sal_Int16 nFlags ) throw( RuntimeException, std::exception ) { // - change size and position of window and save the values @@ -496,7 +496,7 @@ void SAL_CALL BaseControl::setPosSize( sal_Int32 nX , // XWindow -void SAL_CALL BaseControl::setVisible( sal_Bool bVisible ) throw( RuntimeException ) +void SAL_CALL BaseControl::setVisible( sal_Bool bVisible ) throw( RuntimeException, std::exception ) { // Ready for multithreading MutexGuard aGuard( m_aMutex ); @@ -515,7 +515,7 @@ void SAL_CALL BaseControl::setVisible( sal_Bool bVisible ) throw( RuntimeExcepti // XWindow -void SAL_CALL BaseControl::setEnable( sal_Bool bEnable ) throw( RuntimeException ) +void SAL_CALL BaseControl::setEnable( sal_Bool bEnable ) throw( RuntimeException, std::exception ) { // Ready for multithreading MutexGuard aGuard( m_aMutex ); @@ -534,7 +534,7 @@ void SAL_CALL BaseControl::setEnable( sal_Bool bEnable ) throw( RuntimeException // XWindow -void SAL_CALL BaseControl::setFocus() throw( RuntimeException ) +void SAL_CALL BaseControl::setFocus() throw( RuntimeException, std::exception ) { // Ready for multithreading MutexGuard aGuard( m_aMutex ); @@ -549,7 +549,7 @@ void SAL_CALL BaseControl::setFocus() throw( RuntimeException ) // XWindow -Rectangle SAL_CALL BaseControl::getPosSize() throw( RuntimeException ) +Rectangle SAL_CALL BaseControl::getPosSize() throw( RuntimeException, std::exception ) { // Ready for multithreading MutexGuard aGuard( m_aMutex ); @@ -560,7 +560,7 @@ Rectangle SAL_CALL BaseControl::getPosSize() throw( RuntimeException ) // XWindow -void SAL_CALL BaseControl::addWindowListener( const Reference< XWindowListener >& xListener ) throw( RuntimeException ) +void SAL_CALL BaseControl::addWindowListener( const Reference< XWindowListener >& xListener ) throw( RuntimeException, std::exception ) { impl_getMultiplexer()->advise( ::getCppuType(( const Reference< XWindowListener >*)0), xListener ); } @@ -569,7 +569,7 @@ void SAL_CALL BaseControl::addWindowListener( const Reference< XWindowListener > // XWindow -void SAL_CALL BaseControl::addFocusListener( const Reference< XFocusListener >& xListener ) throw( RuntimeException ) +void SAL_CALL BaseControl::addFocusListener( const Reference< XFocusListener >& xListener ) throw( RuntimeException, std::exception ) { impl_getMultiplexer()->advise( ::getCppuType(( const Reference< XFocusListener >*)0), xListener ); } @@ -578,7 +578,7 @@ void SAL_CALL BaseControl::addFocusListener( const Reference< XFocusListener >& // XWindow -void SAL_CALL BaseControl::addKeyListener( const Reference< XKeyListener >& xListener ) throw( RuntimeException ) +void SAL_CALL BaseControl::addKeyListener( const Reference< XKeyListener >& xListener ) throw( RuntimeException, std::exception ) { impl_getMultiplexer()->advise( ::getCppuType(( const Reference< XKeyListener >*)0), xListener ); } @@ -587,7 +587,7 @@ void SAL_CALL BaseControl::addKeyListener( const Reference< XKeyListener >& xLis // XWindow -void SAL_CALL BaseControl::addMouseListener( const Reference< XMouseListener >& xListener ) throw( RuntimeException ) +void SAL_CALL BaseControl::addMouseListener( const Reference< XMouseListener >& xListener ) throw( RuntimeException, std::exception ) { impl_getMultiplexer()->advise( ::getCppuType(( const Reference< XMouseListener >*)0), xListener ); } @@ -596,7 +596,7 @@ void SAL_CALL BaseControl::addMouseListener( const Reference< XMouseListener >& // XWindow -void SAL_CALL BaseControl::addMouseMotionListener( const Reference< XMouseMotionListener >& xListener ) throw( RuntimeException ) +void SAL_CALL BaseControl::addMouseMotionListener( const Reference< XMouseMotionListener >& xListener ) throw( RuntimeException, std::exception ) { impl_getMultiplexer()->advise( ::getCppuType(( const Reference< XMouseMotionListener >*)0), xListener ); } @@ -605,7 +605,7 @@ void SAL_CALL BaseControl::addMouseMotionListener( const Reference< XMouseMotion // XWindow -void SAL_CALL BaseControl::addPaintListener( const Reference< XPaintListener >& xListener ) throw( RuntimeException ) +void SAL_CALL BaseControl::addPaintListener( const Reference< XPaintListener >& xListener ) throw( RuntimeException, std::exception ) { impl_getMultiplexer()->advise( ::getCppuType(( const Reference< XPaintListener >*)0), xListener ); } @@ -614,7 +614,7 @@ void SAL_CALL BaseControl::addPaintListener( const Reference< XPaintListener >& // XWindow -void SAL_CALL BaseControl::removeWindowListener( const Reference< XWindowListener >& xListener ) throw( RuntimeException ) +void SAL_CALL BaseControl::removeWindowListener( const Reference< XWindowListener >& xListener ) throw( RuntimeException, std::exception ) { impl_getMultiplexer()->unadvise( ::getCppuType(( const Reference< XWindowListener >*)0), xListener ); } @@ -623,7 +623,7 @@ void SAL_CALL BaseControl::removeWindowListener( const Reference< XWindowListene // XWindow -void SAL_CALL BaseControl::removeFocusListener( const Reference< XFocusListener >& xListener ) throw( RuntimeException ) +void SAL_CALL BaseControl::removeFocusListener( const Reference< XFocusListener >& xListener ) throw( RuntimeException, std::exception ) { impl_getMultiplexer()->unadvise( ::getCppuType(( const Reference< XFocusListener >*)0), xListener ); } @@ -632,7 +632,7 @@ void SAL_CALL BaseControl::removeFocusListener( const Reference< XFocusListener // XWindow -void SAL_CALL BaseControl::removeKeyListener( const Reference< XKeyListener >& xListener ) throw( RuntimeException ) +void SAL_CALL BaseControl::removeKeyListener( const Reference< XKeyListener >& xListener ) throw( RuntimeException, std::exception ) { impl_getMultiplexer()->unadvise( ::getCppuType(( const Reference< XKeyListener >*)0), xListener ); } @@ -641,7 +641,7 @@ void SAL_CALL BaseControl::removeKeyListener( const Reference< XKeyListener >& x // XWindow -void SAL_CALL BaseControl::removeMouseListener( const Reference< XMouseListener >& xListener ) throw( RuntimeException ) +void SAL_CALL BaseControl::removeMouseListener( const Reference< XMouseListener >& xListener ) throw( RuntimeException, std::exception ) { impl_getMultiplexer()->unadvise( ::getCppuType(( const Reference< XMouseListener >*)0), xListener ); } @@ -650,7 +650,7 @@ void SAL_CALL BaseControl::removeMouseListener( const Reference< XMouseListener // XWindow -void SAL_CALL BaseControl::removeMouseMotionListener( const Reference< XMouseMotionListener >& xListener ) throw( RuntimeException ) +void SAL_CALL BaseControl::removeMouseMotionListener( const Reference< XMouseMotionListener >& xListener ) throw( RuntimeException, std::exception ) { impl_getMultiplexer()->unadvise( ::getCppuType(( const Reference< XMouseMotionListener >*)0), xListener ); } @@ -659,7 +659,7 @@ void SAL_CALL BaseControl::removeMouseMotionListener( const Reference< XMouseMo // XWindow -void SAL_CALL BaseControl::removePaintListener( const Reference< XPaintListener >& xListener ) throw( RuntimeException ) +void SAL_CALL BaseControl::removePaintListener( const Reference< XPaintListener >& xListener ) throw( RuntimeException, std::exception ) { impl_getMultiplexer()->unadvise( ::getCppuType(( const Reference< XPaintListener >*)0), xListener ); } @@ -669,7 +669,7 @@ void SAL_CALL BaseControl::removePaintListener( const Reference< XPaintListener void SAL_CALL BaseControl::draw( sal_Int32 nX , - sal_Int32 nY ) throw( RuntimeException ) + sal_Int32 nY ) throw( RuntimeException, std::exception ) { // Ready for multithreading MutexGuard aGuard( m_aMutex ); @@ -684,7 +684,7 @@ void SAL_CALL BaseControl::draw( sal_Int32 nX , // XView -sal_Bool SAL_CALL BaseControl::setGraphics( const Reference< XGraphics >& xDevice ) throw( RuntimeException ) +sal_Bool SAL_CALL BaseControl::setGraphics( const Reference< XGraphics >& xDevice ) throw( RuntimeException, std::exception ) { // - set the graphics for an view // - in this class exist 2 graphics-member ... one for peer[_xGraphicsPeer] and one for view[_xGraphicsView] @@ -707,7 +707,7 @@ sal_Bool SAL_CALL BaseControl::setGraphics( const Reference< XGraphics >& xDevic void SAL_CALL BaseControl::setZoom( float /*fZoomX*/ , - float /*fZoomY*/ ) throw( RuntimeException ) + float /*fZoomY*/ ) throw( RuntimeException, std::exception ) { // Not implemented yet } @@ -716,7 +716,7 @@ void SAL_CALL BaseControl::setZoom( float /*fZoomX*/ , // XView -Reference< XGraphics > SAL_CALL BaseControl::getGraphics() throw( RuntimeException ) +Reference< XGraphics > SAL_CALL BaseControl::getGraphics() throw( RuntimeException, std::exception ) { // Ready for multithreading MutexGuard aGuard( m_aMutex ); @@ -727,7 +727,7 @@ Reference< XGraphics > SAL_CALL BaseControl::getGraphics() throw( RuntimeExcepti // XView -Size SAL_CALL BaseControl::getSize() throw( RuntimeException ) +Size SAL_CALL BaseControl::getSize() throw( RuntimeException, std::exception ) { // Ready for multithreading MutexGuard aGuard( m_aMutex ); @@ -738,7 +738,7 @@ Size SAL_CALL BaseControl::getSize() throw( RuntimeException ) // XEventListener -void SAL_CALL BaseControl::disposing( const EventObject& /*aSource*/ ) throw( RuntimeException ) +void SAL_CALL BaseControl::disposing( const EventObject& /*aSource*/ ) throw( RuntimeException, std::exception ) { // Ready for multithreading MutexGuard aGuard( m_aMutex ); @@ -762,7 +762,7 @@ void SAL_CALL BaseControl::disposing( const EventObject& /*aSource*/ ) throw( Ru // XPaintListener -void SAL_CALL BaseControl::windowPaint( const PaintEvent& /*aEvent*/ ) throw( RuntimeException ) +void SAL_CALL BaseControl::windowPaint( const PaintEvent& /*aEvent*/ ) throw( RuntimeException, std::exception ) { // Ready for multithreading MutexGuard aGuard( m_aMutex ); @@ -777,7 +777,7 @@ void SAL_CALL BaseControl::windowPaint( const PaintEvent& /*aEvent*/ ) throw( Ru // XWindowListener -void SAL_CALL BaseControl::windowResized( const WindowEvent& aEvent ) throw( RuntimeException ) +void SAL_CALL BaseControl::windowResized( const WindowEvent& aEvent ) throw( RuntimeException, std::exception ) { // Ready for multithreading MutexGuard aGuard( m_aMutex ); @@ -794,7 +794,7 @@ void SAL_CALL BaseControl::windowResized( const WindowEvent& aEvent ) throw( Run // XWindowListener -void SAL_CALL BaseControl::windowMoved( const WindowEvent& aEvent ) throw( RuntimeException ) +void SAL_CALL BaseControl::windowMoved( const WindowEvent& aEvent ) throw( RuntimeException, std::exception ) { // Ready for multithreading MutexGuard aGuard( m_aMutex ); @@ -811,7 +811,7 @@ void SAL_CALL BaseControl::windowMoved( const WindowEvent& aEvent ) throw( Runti // XWindowListener -void SAL_CALL BaseControl::windowShown( const EventObject& /*aEvent*/ ) throw( RuntimeException ) +void SAL_CALL BaseControl::windowShown( const EventObject& /*aEvent*/ ) throw( RuntimeException, std::exception ) { } @@ -819,7 +819,7 @@ void SAL_CALL BaseControl::windowShown( const EventObject& /*aEvent*/ ) throw( R // XWindowListener -void SAL_CALL BaseControl::windowHidden( const EventObject& /*aEvent*/ ) throw( RuntimeException ) +void SAL_CALL BaseControl::windowHidden( const EventObject& /*aEvent*/ ) throw( RuntimeException, std::exception ) { } |