diff options
Diffstat (limited to 'embedserv/source/embed/xwin.cxx')
-rw-r--r-- | embedserv/source/embed/xwin.cxx | 106 |
1 files changed, 53 insertions, 53 deletions
diff --git a/embedserv/source/embed/xwin.cxx b/embedserv/source/embed/xwin.cxx index 0eeb0124f0ea..700a0be23155 100644 --- a/embedserv/source/embed/xwin.cxx +++ b/embedserv/source/embed/xwin.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -37,7 +37,7 @@ ContainerWindowWrapper::ContainerWindowWrapper(HWND aHwnd) m_pDisposeEventListeners(0) { } - + ContainerWindowWrapper::~ContainerWindowWrapper() { delete m_pDisposeEventListeners; @@ -46,31 +46,31 @@ ContainerWindowWrapper::~ContainerWindowWrapper() void SAL_CALL ContainerWindowWrapper::dispose( -) +) throw ( ::com::sun::star::uno::RuntimeException ) { cppu::OInterfaceContainerHelper *pDisposeEventListeners(0); - + { osl::MutexGuard aGuard(m_aMutex); pDisposeEventListeners = m_pDisposeEventListeners; } - + if(pDisposeEventListeners) { lang::EventObject aEvt; aEvt.Source = static_cast< awt::XWindow* >(this); - + pDisposeEventListeners->disposeAndClear(aEvt); } } void SAL_CALL -ContainerWindowWrapper::addEventListener( +ContainerWindowWrapper::addEventListener( const ::com::sun::star::uno::Reference< - ::com::sun::star::lang::XEventListener >& Listener + ::com::sun::star::lang::XEventListener >& Listener ) throw ( ::com::sun::star::uno::RuntimeException @@ -81,14 +81,14 @@ ContainerWindowWrapper::addEventListener( osl::MutexGuard aGuard(m_aMutex); pDisposeEventListeners = m_pDisposeEventListeners; } - + if(! pDisposeEventListeners) { osl::MutexGuard aGuard(m_aMutex); pDisposeEventListeners = m_pDisposeEventListeners = new cppu::OInterfaceContainerHelper(m_aMutex); } - + pDisposeEventListeners->addInterface( Listener ); } @@ -97,11 +97,11 @@ void SAL_CALL ContainerWindowWrapper::removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& Listener -) +) throw ( ::com::sun::star::uno::RuntimeException ) -{ +{ cppu::OInterfaceContainerHelper *pDisposeEventListeners(0); { osl::MutexGuard aGuard(m_aMutex); @@ -116,15 +116,15 @@ ContainerWindowWrapper::removeEventListener( // XSystemDependentWindowPeer ::com::sun::star::uno::Any SAL_CALL -ContainerWindowWrapper::getWindowHandle( +ContainerWindowWrapper::getWindowHandle( const ::com::sun::star::uno::Sequence< sal_Int8 >& ProcessId, sal_Int16 SystemType -) +) throw ( ::com::sun::star::uno::RuntimeException ) { - if(SystemType == lang::SystemDependent::SYSTEM_WIN32 || + if(SystemType == lang::SystemDependent::SYSTEM_WIN32 || SystemType == lang::SystemDependent::SYSTEM_WIN16) { uno::Any aAny; @@ -137,24 +137,24 @@ ContainerWindowWrapper::getWindowHandle( } - + void SAL_CALL -ContainerWindowWrapper::setPosSize( +ContainerWindowWrapper::setPosSize( sal_Int32 X, sal_Int32 Y, - sal_Int32 Width, - sal_Int32 Height, + sal_Int32 Width, + sal_Int32 Height, sal_Int16 Flags ) throw ( ::com::sun::star::uno::RuntimeException) { - + } ::com::sun::star::awt::Rectangle SAL_CALL -ContainerWindowWrapper::getPosSize( -) +ContainerWindowWrapper::getPosSize( +) throw ( ::com::sun::star::uno::RuntimeException ) @@ -166,7 +166,7 @@ ContainerWindowWrapper::getPosSize( void SAL_CALL ContainerWindowWrapper::setVisible( sal_Bool Visible -) +) throw ( ::com::sun::star::uno::RuntimeException ) @@ -176,9 +176,9 @@ ContainerWindowWrapper::setVisible( void SAL_CALL -ContainerWindowWrapper::setEnable( +ContainerWindowWrapper::setEnable( sal_Bool Enable -) +) throw ( ::com::sun::star::uno::RuntimeException ) @@ -188,7 +188,7 @@ ContainerWindowWrapper::setEnable( void SAL_CALL ContainerWindowWrapper::setFocus( -) +) throw ( ::com::sun::star::uno::RuntimeException ) @@ -197,22 +197,22 @@ ContainerWindowWrapper::setFocus( } void SAL_CALL -ContainerWindowWrapper::addWindowListener( - const ::com::sun::star::uno::Reference< +ContainerWindowWrapper::addWindowListener( + const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowListener >& xListener -) +) throw ( ::com::sun::star::uno::RuntimeException ) { } - + void SAL_CALL ContainerWindowWrapper::removeWindowListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowListener >& xListener -) +) throw ( ::com::sun::star::uno::RuntimeException ) @@ -222,10 +222,10 @@ ContainerWindowWrapper::removeWindowListener( void SAL_CALL -ContainerWindowWrapper::addFocusListener( +ContainerWindowWrapper::addFocusListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XFocusListener >& xListener -) +) throw ( ::com::sun::star::uno::RuntimeException ) @@ -233,24 +233,24 @@ ContainerWindowWrapper::addFocusListener( } - + void SAL_CALL ContainerWindowWrapper::removeFocusListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XFocusListener >& xListener -) +) throw ( ::com::sun::star::uno::RuntimeException ) { } - + void SAL_CALL ContainerWindowWrapper::addKeyListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XKeyListener >& xListener -) +) throw ( ::com::sun::star::uno::RuntimeException ) @@ -259,10 +259,10 @@ ContainerWindowWrapper::addKeyListener( } void SAL_CALL -ContainerWindowWrapper::removeKeyListener( +ContainerWindowWrapper::removeKeyListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XKeyListener >& xListener -) +) throw ( ::com::sun::star::uno::RuntimeException ) @@ -270,21 +270,21 @@ ContainerWindowWrapper::removeKeyListener( } - + void SAL_CALL ContainerWindowWrapper::addMouseListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XMouseListener >& xListener -) +) throw ( ::com::sun::star::uno::RuntimeException ) { - + } + - -void SAL_CALL +void SAL_CALL ContainerWindowWrapper::removeMouseListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XMouseListener >& xListener @@ -300,17 +300,17 @@ ContainerWindowWrapper::removeMouseListener( void SAL_CALL ContainerWindowWrapper::addMouseMotionListener( const ::com::sun::star::uno::Reference< - ::com::sun::star::awt::XMouseMotionListener >& xListener -) + ::com::sun::star::awt::XMouseMotionListener >& xListener +) throw ( ::com::sun::star::uno::RuntimeException ) { } - + void SAL_CALL -ContainerWindowWrapper::removeMouseMotionListener( +ContainerWindowWrapper::removeMouseMotionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XMouseMotionListener >& xListener ) @@ -325,19 +325,19 @@ void SAL_CALL ContainerWindowWrapper::addPaintListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XPaintListener >& xListener -) +) throw ( ::com::sun::star::uno::RuntimeException ) { - + } void SAL_CALL -ContainerWindowWrapper::removePaintListener( - const ::com::sun::star::uno::Reference< +ContainerWindowWrapper::removePaintListener( + const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XPaintListener >& xListener -) +) throw ( ::com::sun::star::uno::RuntimeException ) |