summaryrefslogtreecommitdiff
path: root/comphelper/source/container
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper/source/container')
-rw-r--r--comphelper/source/container/container.cxx10
-rw-r--r--comphelper/source/container/containermultiplexer.cxx16
-rw-r--r--comphelper/source/container/enumerablemap.cxx48
-rw-r--r--comphelper/source/container/enumhelper.cxx20
4 files changed, 47 insertions, 47 deletions
diff --git a/comphelper/source/container/container.cxx b/comphelper/source/container/container.cxx
index b04c11aeb8ad..73a3b2016bd8 100644
--- a/comphelper/source/container/container.cxx
+++ b/comphelper/source/container/container.cxx
@@ -23,12 +23,12 @@
#include <comphelper/container.hxx>
#include <osl/diagnose.h>
-//.........................................................................
+
namespace comphelper
{
-//.........................................................................
-//==============================================================================
+
+
IndexAccessIterator::IndexAccessIterator(::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface> xStartingPoint)
:m_xStartingPoint(xStartingPoint)
,m_xCurrentObject(NULL)
@@ -133,9 +133,9 @@ IndexAccessIterator::~IndexAccessIterator() {}
return m_xCurrentObject;
}
-//.........................................................................
+
} // namespace comphelper
-//.........................................................................
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/comphelper/source/container/containermultiplexer.cxx b/comphelper/source/container/containermultiplexer.cxx
index 6c600b023927..4f04c5b53753 100644
--- a/comphelper/source/container/containermultiplexer.cxx
+++ b/comphelper/source/container/containermultiplexer.cxx
@@ -20,18 +20,18 @@
#include "comphelper/containermultiplexer.hxx"
#include "comphelper/uno3.hxx"
#include <osl/diagnose.h>
-//.........................................................................
+
namespace comphelper
{
-//.........................................................................
+
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::container;
- //=====================================================================
+
//= OContainerListener
- //=====================================================================
+
OContainerListener::OContainerListener(::osl::Mutex& _rMutex)
:m_pAdapter(NULL)
@@ -91,9 +91,9 @@ namespace comphelper
}
}
- //=====================================================================
+
//= OContainerListenerAdapter
- //=====================================================================
+
OContainerListenerAdapter::OContainerListenerAdapter(OContainerListener* _pListener,
const Reference< XContainer >& _rxContainer)
@@ -179,8 +179,8 @@ namespace comphelper
m_pListener->_elementReplaced(_rEvent);
}
-//.........................................................................
+
} // namespace comphelper
-//.........................................................................
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/comphelper/source/container/enumerablemap.cxx b/comphelper/source/container/enumerablemap.cxx
index 2d9eaa972541..8688486fc793 100644
--- a/comphelper/source/container/enumerablemap.cxx
+++ b/comphelper/source/container/enumerablemap.cxx
@@ -40,10 +40,10 @@
#include <map>
#include <boost/shared_ptr.hpp>
-//........................................................................
+
namespace comphelper
{
-//........................................................................
+
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::XInterface;
@@ -80,9 +80,9 @@ namespace comphelper
using ::com::sun::star::lang::WrappedTargetException;
using ::com::sun::star::lang::DisposedException;
- //====================================================================
+
//= MapData
- //====================================================================
+
class IMapModificationListener;
typedef ::std::vector< IMapModificationListener* > MapListeners;
@@ -114,9 +114,9 @@ namespace comphelper
MapData& operator=( const MapData& _source ); // not implemented
};
- //====================================================================
+
//= IMapModificationListener
- //====================================================================
+
/** implemented by components who want to be notified of modifications in the MapData they work with
*/
class SAL_NO_VTABLE IMapModificationListener
@@ -129,9 +129,9 @@ namespace comphelper
}
};
- //====================================================================
+
//= MapData helpers
- //====================================================================
+
static void lcl_registerMapModificationListener( MapData& _mapData, IMapModificationListener& _listener )
{
@@ -176,9 +176,9 @@ namespace comphelper
}
}
- //====================================================================
+
//= EnumerableMap
- //====================================================================
+
typedef ::cppu::WeakAggComponentImplHelper3 < XInitialization
, XEnumerableMap
, XServiceInfo
@@ -241,17 +241,17 @@ namespace comphelper
m_aDependentComponents;
};
- //====================================================================
+
//= EnumerationType
- //====================================================================
+
enum EnumerationType
{
eKeys, eValues, eBoth
};
- //====================================================================
+
//= MapEnumerator
- //====================================================================
+
class MapEnumerator : public IMapModificationListener
{
public:
@@ -299,9 +299,9 @@ namespace comphelper
MapEnumerator& operator=( const MapEnumerator& ); // not implemented
};
- //====================================================================
+
//= MapEnumeration
- //====================================================================
+
typedef ::cppu::WeakImplHelper1 < XEnumeration
> MapEnumeration_Base;
class MapEnumeration :public ComponentBase
@@ -339,9 +339,9 @@ namespace comphelper
MapEnumerator m_aEnumerator;
};
- //====================================================================
+
//= EnumerableMap
- //====================================================================
+
EnumerableMap::EnumerableMap()
:Map_IFace( m_aMutex )
@@ -721,9 +721,9 @@ namespace comphelper
return *new EnumerableMap;
}
- //====================================================================
+
//= MapEnumerator
- //====================================================================
+
bool MapEnumerator::hasMoreElements()
{
@@ -757,9 +757,9 @@ namespace comphelper
m_disposed = true;
}
- //====================================================================
+
//= MapEnumeration - implementation
- //====================================================================
+
::sal_Bool SAL_CALL MapEnumeration::hasMoreElements( ) throw (RuntimeException, std::exception)
{
@@ -774,9 +774,9 @@ namespace comphelper
return m_aEnumerator.nextElement();
}
-//........................................................................
+
} // namespace comphelper
-//........................................................................
+
void createRegistryInfo_Map()
{
diff --git a/comphelper/source/container/enumhelper.cxx b/comphelper/source/container/enumhelper.cxx
index 07cb797e7238..343b27655a95 100644
--- a/comphelper/source/container/enumhelper.cxx
+++ b/comphelper/source/container/enumhelper.cxx
@@ -20,14 +20,14 @@
#include <comphelper/enumhelper.hxx>
#include <com/sun/star/lang/XComponent.hpp>
-//.........................................................................
+
namespace comphelper
{
-//.........................................................................
-//==================================================================
+
+
//= OEnumerationByName
-//==================================================================
+
OEnumerationByName::OEnumerationByName(const staruno::Reference<starcontainer::XNameAccess>& _rxAccess)
:m_aNames(_rxAccess->getElementNames())
@@ -140,9 +140,9 @@ void OEnumerationByName::impl_stopDisposeListening()
--m_refCount;
}
-//==================================================================
+
//= OEnumerationByIndex
-//==================================================================
+
OEnumerationByIndex::OEnumerationByIndex(const staruno::Reference< starcontainer::XIndexAccess >& _rxAccess)
:m_nPos(0)
@@ -243,9 +243,9 @@ void OEnumerationByIndex::impl_stopDisposeListening()
--m_refCount;
}
-//==================================================================
+
//= OAnyEnumeration
-//==================================================================
+
OAnyEnumeration::OAnyEnumeration(const staruno::Sequence< staruno::Any >& lItems)
@@ -280,9 +280,9 @@ staruno::Any SAL_CALL OAnyEnumeration::nextElement( )
return m_lItems[nPos];
}
-//.........................................................................
+
} // namespace comphelper
-//.........................................................................
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */