summaryrefslogtreecommitdiff
path: root/unotools/inc/unotools/componentresmodule.hxx
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-01-30 08:32:14 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-01-30 08:32:14 +0000
commit5acba3fde03b8e4b9dc050d0bf3e0b4bc42e1b18 (patch)
treec6a14b777ae49a2f5a5055da417ed89fd24bb6df /unotools/inc/unotools/componentresmodule.hxx
parent0862d2850c01a5a166c0d6ca0893eff8934a4bc6 (diff)
INTEGRATION: CWS dba24d (1.3.30); FILE MERGED
2007/11/22 13:03:05 fs 1.3.30.1: #i81658# +OLegacySingleRegistration
Diffstat (limited to 'unotools/inc/unotools/componentresmodule.hxx')
-rw-r--r--unotools/inc/unotools/componentresmodule.hxx31
1 files changed, 29 insertions, 2 deletions
diff --git a/unotools/inc/unotools/componentresmodule.hxx b/unotools/inc/unotools/componentresmodule.hxx
index fa648b243e95..ea67be9553f9 100644
--- a/unotools/inc/unotools/componentresmodule.hxx
+++ b/unotools/inc/unotools/componentresmodule.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: componentresmodule.hxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: rt $ $Date: 2007-04-26 10:03:04 $
+ * last change: $Author: rt $ $Date: 2008-01-30 09:32:14 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -150,8 +150,35 @@ namespace utl
OAutoRegistration() : BaseClass( ModuleClass::getInstance() ) \
{ \
} \
+ }; \
+ \
+ /* -------------------------------------------------------------------- */ \
+ template < class TYPE > \
+ class OSingletonRegistration : public ::comphelper::OSingletonRegistration< TYPE > \
+ { \
+ private: \
+ typedef ::comphelper::OSingletonRegistration< TYPE > BaseClass; \
+ \
+ public: \
+ OSingletonRegistration() : BaseClass( ModuleClass::getInstance() ) \
+ { \
+ } \
+ }; \
+ \
+ /* -------------------------------------------------------------------- */ \
+ template < class TYPE > \
+ class OLegacySingletonRegistration : public ::comphelper::OLegacySingletonRegistration< TYPE > \
+ { \
+ private: \
+ typedef ::comphelper::OLegacySingletonRegistration< TYPE > BaseClass; \
+ \
+ public: \
+ OLegacySingletonRegistration() : BaseClass( ModuleClass::getInstance() ) \
+ { \
+ } \
};
+
//====================================================================
//= implementing a concrete module
//====================================================================