summaryrefslogtreecommitdiff
path: root/toolkit/inc/toolkit
diff options
context:
space:
mode:
authorFrank Schönheit <fs@openoffice.org>2002-09-11 08:38:22 +0000
committerFrank Schönheit <fs@openoffice.org>2002-09-11 08:38:22 +0000
commita8001cbdeef69a69c9a4ef9f4c3c50e38e08b10a (patch)
tree3767cfd17b5e9ec1f4fa33f430bc3daf4cd03e7b /toolkit/inc/toolkit
parent8018a74a783e8f0160ad763b92a1c40a2027a00c (diff)
#100226# 'outsource' IMPL_IMPLEMENTATION_ID from IMPL_XTYPEPROVIDER_START so it can be used separatedly
Diffstat (limited to 'toolkit/inc/toolkit')
-rw-r--r--toolkit/inc/toolkit/helper/macros.hxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/toolkit/inc/toolkit/helper/macros.hxx b/toolkit/inc/toolkit/helper/macros.hxx
index a9681a5cadfb..90508673c360 100644
--- a/toolkit/inc/toolkit/helper/macros.hxx
+++ b/toolkit/inc/toolkit/helper/macros.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: macros.hxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: fs $ $Date: 2001-12-07 16:23:58 $
+ * last change: $Author: fs $ $Date: 2002-09-11 09:38:22 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -126,7 +126,7 @@ ClassName* ClassName::GetImplementation( const ::com::sun::star::uno::Reference<
// -------------------------------------------------------------------------------------
-#define IMPL_XTYPEPROVIDER_START( ClassName ) \
+#define IMPL_IMPLEMENTATION_ID( ClassName ) \
::com::sun::star::uno::Sequence< sal_Int8 > ClassName::getImplementationId() throw(::com::sun::star::uno::RuntimeException) \
{ \
static ::cppu::OImplementationId* pId = NULL; \
@@ -140,7 +140,10 @@ ClassName* ClassName::GetImplementation( const ::com::sun::star::uno::Reference<
} \
} \
return (*pId).getImplementationId(); \
-} \
+}
+
+#define IMPL_XTYPEPROVIDER_START( ClassName ) \
+IMPL_IMPLEMENTATION_ID( ClassName ) \
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > ClassName::getTypes() throw(::com::sun::star::uno::RuntimeException) \
{ \
static ::cppu::OTypeCollection* pCollection = NULL; \