diff options
Diffstat (limited to 'dbaccess/source/core/dataaccess/documentevents.cxx')
-rw-r--r-- | dbaccess/source/core/dataaccess/documentevents.cxx | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/dbaccess/source/core/dataaccess/documentevents.cxx b/dbaccess/source/core/dataaccess/documentevents.cxx index 8d191c1d3503..e24c2bf59113 100644 --- a/dbaccess/source/core/dataaccess/documentevents.cxx +++ b/dbaccess/source/core/dataaccess/documentevents.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * @@ -37,11 +38,10 @@ #include <algorithm> #include <functional> +#include <o3tl/compat_functional.hxx> -//........................................................................ namespace dbaccess { -//........................................................................ /** === begin UNO using === **/ using ::com::sun::star::uno::Reference; @@ -87,7 +87,6 @@ namespace dbaccess bool bNeedsSyncNotify; }; - //-------------------------------------------------------------------- namespace { static const DocumentEventData* lcl_getDocumentEventData() @@ -126,7 +125,6 @@ namespace dbaccess //==================================================================== //= DocumentEvents //==================================================================== - //-------------------------------------------------------------------- DocumentEvents::DocumentEvents( ::cppu::OWeakObject& _rParent, ::osl::Mutex& _rMutex, DocumentEventsData& _rEventsData ) :m_pData( new DocumentEvents_Data( _rParent, _rMutex, _rEventsData ) ) { @@ -141,24 +139,20 @@ namespace dbaccess } } - //-------------------------------------------------------------------- DocumentEvents::~DocumentEvents() { } - //-------------------------------------------------------------------- void SAL_CALL DocumentEvents::acquire() throw() { m_pData->rParent.acquire(); } - //-------------------------------------------------------------------- void SAL_CALL DocumentEvents::release() throw() { m_pData->rParent.release(); } - //-------------------------------------------------------------------- bool DocumentEvents::needsSynchronousNotification( const ::rtl::OUString& _rEventName ) { const DocumentEventData* pEventData = lcl_getDocumentEventData(); @@ -173,7 +167,6 @@ namespace dbaccess return false; } - //-------------------------------------------------------------------- void SAL_CALL DocumentEvents::replaceByName( const ::rtl::OUString& _Name, const Any& _Element ) throw (IllegalArgumentException, NoSuchElementException, WrappedTargetException, RuntimeException) { ::osl::MutexGuard aGuard( m_pData->rMutex ); @@ -207,7 +200,6 @@ namespace dbaccess elementPos->second = aEventDescriptor; } - //-------------------------------------------------------------------- Any SAL_CALL DocumentEvents::getByName( const ::rtl::OUString& _Name ) throw (NoSuchElementException, WrappedTargetException, RuntimeException) { ::osl::MutexGuard aGuard( m_pData->rMutex ); @@ -223,7 +215,6 @@ namespace dbaccess return aReturn; } - //-------------------------------------------------------------------- Sequence< ::rtl::OUString > SAL_CALL DocumentEvents::getElementNames( ) throw (RuntimeException) { ::osl::MutexGuard aGuard( m_pData->rMutex ); @@ -233,12 +224,11 @@ namespace dbaccess m_pData->rEventsData.begin(), m_pData->rEventsData.end(), aNames.getArray(), - ::std::select1st< DocumentEventsData::value_type >() + ::o3tl::select1st< DocumentEventsData::value_type >() ); return aNames; } - //-------------------------------------------------------------------- ::sal_Bool SAL_CALL DocumentEvents::hasByName( const ::rtl::OUString& _Name ) throw (RuntimeException) { ::osl::MutexGuard aGuard( m_pData->rMutex ); @@ -246,20 +236,16 @@ namespace dbaccess return m_pData->rEventsData.find( _Name ) != m_pData->rEventsData.end(); } - //-------------------------------------------------------------------- Type SAL_CALL DocumentEvents::getElementType( ) throw (RuntimeException) { return ::cppu::UnoType< Sequence< PropertyValue > >::get(); } - //-------------------------------------------------------------------- ::sal_Bool SAL_CALL DocumentEvents::hasElements( ) throw (RuntimeException) { ::osl::MutexGuard aGuard( m_pData->rMutex ); return !m_pData->rEventsData.empty(); } - -//........................................................................ } // namespace dbaccess -//........................................................................ +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |