summaryrefslogtreecommitdiff
path: root/extensions/source/inc
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/source/inc')
-rw-r--r--extensions/source/inc/componentmodule.cxx16
-rw-r--r--extensions/source/inc/componentmodule.hxx28
2 files changed, 22 insertions, 22 deletions
diff --git a/extensions/source/inc/componentmodule.cxx b/extensions/source/inc/componentmodule.cxx
index 57c29dc34b58..2b8afdbd6652 100644
--- a/extensions/source/inc/componentmodule.cxx
+++ b/extensions/source/inc/componentmodule.cxx
@@ -28,10 +28,10 @@
::osl::MutexGuard aGuard(s_aMutex); \
ensureImpl()
-//.........................................................................
+
namespace COMPMOD_NAMESPACE
{
-//.........................................................................
+
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
@@ -39,9 +39,9 @@ namespace COMPMOD_NAMESPACE
using namespace ::comphelper;
using namespace ::cppu;
- //=========================================================================
+
//= OModuleImpl
- //=========================================================================
+
/** implementation for <type>OModule</type>. not threadsafe, has to be guarded by it's owner
*/
class OModuleImpl
@@ -93,9 +93,9 @@ namespace COMPMOD_NAMESPACE
return m_pResources;
}
- //=========================================================================
+
//= OModule
- //=========================================================================
+
::osl::Mutex OModule::s_aMutex;
sal_Int32 OModule::s_nClients = 0;
OModuleImpl* OModule::s_pImpl = NULL;
@@ -276,8 +276,8 @@ namespace COMPMOD_NAMESPACE
}
-//.........................................................................
+
} // namespace COMPMOD_NAMESPACE
-//.........................................................................
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/extensions/source/inc/componentmodule.hxx b/extensions/source/inc/componentmodule.hxx
index b34a84fcf87a..2f2e5ad0ad5b 100644
--- a/extensions/source/inc/componentmodule.hxx
+++ b/extensions/source/inc/componentmodule.hxx
@@ -39,10 +39,10 @@
class ResMgr;
-//.........................................................................
+
namespace COMPMOD_NAMESPACE
{
-//.........................................................................
+
typedef ::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleServiceFactory > (SAL_CALL *FactoryInstantiation)
(
@@ -53,9 +53,9 @@ typedef ::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleService
rtl_ModuleCount*
);
- //=========================================================================
+
//= OModule
- //=========================================================================
+
class OModuleImpl;
class OModule
{
@@ -140,9 +140,9 @@ typedef ::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleService
static void ensureImpl();
};
- //=========================================================================
+
//= OModuleResourceClient
- //=========================================================================
+
/** base class for objects which uses any global module-specific resources
*/
class OModuleResourceClient
@@ -152,9 +152,9 @@ typedef ::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleService
~OModuleResourceClient() { OModule::revokeClient(); }
};
- //=========================================================================
+
//= ModuleRes
- //=========================================================================
+
/** specialized ResId, using the resource manager provided by the global module
*/
class ModuleRes : public ::ResId
@@ -163,9 +163,9 @@ typedef ::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleService
ModuleRes(sal_uInt16 _nId) : ResId(_nId, *OModule::getResManager()) { }
};
- //==========================================================================
+
//= OMultiInstanceAutoRegistration
- //==========================================================================
+
template <class TYPE>
class OMultiInstanceAutoRegistration
{
@@ -205,9 +205,9 @@ typedef ::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleService
OModule::revokeComponent(TYPE::getImplementationName_Static());
}
- //==========================================================================
+
//= OOneInstanceAutoRegistration
- //==========================================================================
+
template <class TYPE>
class OOneInstanceAutoRegistration
{
@@ -247,9 +247,9 @@ typedef ::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleService
OModule::revokeComponent(TYPE::getImplementationName_Static());
}
-//.........................................................................
+
} // namespace COMPMOD_NAMESPACE
-//.........................................................................
+
#endif // _EXTENSIONS_COMPONENT_MODULE_HXX_