diff options
author | Noel Grandin <noel@peralex.com> | 2016-07-04 10:41:44 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-07-04 12:21:58 +0000 |
commit | c752aad43352478ef7065ca7ab844650811e6745 (patch) | |
tree | b532c9f6f38634733f48753fa75b12f37c132e79 /vcl/source/helper | |
parent | 3459ab4a5de1af443a85f66cecc0eeeb6d46df3f (diff) |
merge vcl::DisplayConnectionDispatch with vcl::DisplayConnection
Change-Id: I0eb83905896e1d7549a5bd4adde45e9d69209401
Reviewed-on: https://gerrit.libreoffice.org/26888
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/source/helper')
-rw-r--r-- | vcl/source/helper/displayconnectiondispatch.cxx (renamed from vcl/source/helper/xconnection.cxx) | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/vcl/source/helper/xconnection.cxx b/vcl/source/helper/displayconnectiondispatch.cxx index 45e5008ffe02..77c9dab8d3b1 100644 --- a/vcl/source/helper/xconnection.cxx +++ b/vcl/source/helper/displayconnectiondispatch.cxx @@ -19,7 +19,7 @@ #include <vcl/svapp.hxx> -#include "xconnection.hxx" +#include "displayconnectiondispatch.hxx" #include "svdata.hxx" #include "salinst.hxx" @@ -28,7 +28,7 @@ using namespace vcl; using namespace com::sun::star::uno; using namespace com::sun::star::awt; -DisplayConnection::DisplayConnection() +DisplayConnectionDispatch::DisplayConnectionDispatch() { SalInstance::ConnectionIdentifierType eType; int nBytes; @@ -44,17 +44,17 @@ DisplayConnection::DisplayConnection() } } -DisplayConnection::~DisplayConnection() +DisplayConnectionDispatch::~DisplayConnectionDispatch() {} -void DisplayConnection::start() +void DisplayConnectionDispatch::start() { DBG_TESTSOLARMUTEX(); ImplSVData* pSVData = ImplGetSVData(); pSVData->mpDefInst->SetEventCallback( this ); } -void DisplayConnection::terminate() +void DisplayConnectionDispatch::terminate() { DBG_TESTSOLARMUTEX(); ImplSVData* pSVData = ImplGetSVData(); @@ -73,40 +73,40 @@ void DisplayConnection::terminate() (*it)->handleEvent( aEvent ); } -void SAL_CALL DisplayConnection::addEventHandler( const Any& /*window*/, const css::uno::Reference< XEventHandler >& handler, sal_Int32 /*eventMask*/ ) throw(std::exception) +void SAL_CALL DisplayConnectionDispatch::addEventHandler( const Any& /*window*/, const css::uno::Reference< XEventHandler >& handler, sal_Int32 /*eventMask*/ ) throw(std::exception) { MutexGuard aGuard( m_aMutex ); m_aHandlers.push_back( handler ); } -void SAL_CALL DisplayConnection::removeEventHandler( const Any& /*window*/, const css::uno::Reference< XEventHandler >& handler ) throw(std::exception) +void SAL_CALL DisplayConnectionDispatch::removeEventHandler( const Any& /*window*/, const css::uno::Reference< XEventHandler >& handler ) throw(std::exception) { MutexGuard aGuard( m_aMutex ); m_aHandlers.remove( handler ); } -void SAL_CALL DisplayConnection::addErrorHandler( const css::uno::Reference< XEventHandler >& handler ) throw(std::exception) +void SAL_CALL DisplayConnectionDispatch::addErrorHandler( const css::uno::Reference< XEventHandler >& handler ) throw(std::exception) { MutexGuard aGuard( m_aMutex ); m_aErrorHandlers.push_back( handler ); } -void SAL_CALL DisplayConnection::removeErrorHandler( const css::uno::Reference< XEventHandler >& handler ) throw(std::exception) +void SAL_CALL DisplayConnectionDispatch::removeErrorHandler( const css::uno::Reference< XEventHandler >& handler ) throw(std::exception) { MutexGuard aGuard( m_aMutex ); m_aErrorHandlers.remove( handler ); } -Any SAL_CALL DisplayConnection::getIdentifier() throw(std::exception) +Any SAL_CALL DisplayConnectionDispatch::getIdentifier() throw(std::exception) { return m_aAny; } -bool DisplayConnection::dispatchEvent( void* pData, int nBytes ) +bool DisplayConnectionDispatch::dispatchEvent( void* pData, int nBytes ) { SolarMutexReleaser aRel; |