summaryrefslogtreecommitdiff
path: root/sfx2/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-03-16 15:31:10 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-03-20 12:57:31 +0000
commit0a14f36501e2e0ce8373464dc1655fdb1e9550b6 (patch)
treee175547213c8528499845a78064fd44a714f0ee9 /sfx2/inc
parent00f32691bfcbfbecc824e65e60a506b0035f9643 (diff)
split macros to elide unneeded methods
Diffstat (limited to 'sfx2/inc')
-rw-r--r--sfx2/inc/sfx2/sfxuno.hxx23
1 files changed, 20 insertions, 3 deletions
diff --git a/sfx2/inc/sfx2/sfxuno.hxx b/sfx2/inc/sfx2/sfxuno.hxx
index d9614d212a76..fa57a38a8db4 100644
--- a/sfx2/inc/sfx2/sfxuno.hxx
+++ b/sfx2/inc/sfx2/sfxuno.hxx
@@ -141,6 +141,7 @@ bool GetEncryptionData_Impl( const SfxItemSet* pSet, ::com::sun::star::uno::Sequ
#define SFX_DECL_XINTERFACE_XTYPEPROVIDER \
SFX_DECL_XINTERFACE \
SFX_DECL_XTYPEPROVIDER
+
//************************************************************************************************************************
// declaration of XInterface::queryInterface()
// XInterface::aquire()
@@ -153,9 +154,8 @@ bool GetEncryptionData_Impl( const SfxItemSet* pSet, ::com::sun::star::uno::Sequ
// static xxx::impl_getStaticSupportedServiceNames()
// static xxx::impl_getStaticImplementationName()
// static xxx::impl_createInstance()
-// static xxx::impl_createFactory()
//************************************************************************************************************************
-#define SFX_DECL_XSERVICEINFO \
+#define SFX_DECL_XSERVICEINFO_NOFACTORY \
/* XServiceInfo */ \
virtual rtl::OUString SAL_CALL getImplementationName() throw( UNORUNTIMEEXCEPTION ); \
virtual sal_Bool SAL_CALL supportsService( const rtl::OUString& sServiceName ) throw( UNORUNTIMEEXCEPTION ); \
@@ -166,7 +166,24 @@ bool GetEncryptionData_Impl( const SfxItemSet* pSet, ::com::sun::star::uno::Sequ
static rtl::OUString impl_getStaticImplementationName(); \
\
/* Helper for registry */ \
- static UNOREFERENCE< UNOXINTERFACE > SAL_CALL impl_createInstance( const UNOREFERENCE< UNOXMULTISERVICEFACTORY >& xServiceManager ) throw( UNOEXCEPTION );\
+ static UNOREFERENCE< UNOXINTERFACE > SAL_CALL impl_createInstance( const UNOREFERENCE< UNOXMULTISERVICEFACTORY >& xServiceManager ) throw( UNOEXCEPTION );
+
+//************************************************************************************************************************
+// declaration of XInterface::queryInterface()
+// XInterface::aquire()
+// XInterface::release()
+// XTypeProvider::getTypes()
+// XTypeProvider::getImplementationId()
+// XServiceInfo::getImplementationName()
+// XServiceInfo::supportsService()
+// XServiceInfo::getSupportedServiceNames()
+// static xxx::impl_getStaticSupportedServiceNames()
+// static xxx::impl_getStaticImplementationName()
+// static xxx::impl_createInstance()
+// static xxx::impl_createFactory()
+//************************************************************************************************************************
+#define SFX_DECL_XSERVICEINFO \
+ SFX_DECL_XSERVICEINFO_NOFACTORY \
static UNOREFERENCE< UNOXSINGLESERVICEFACTORY > impl_createFactory( const UNOREFERENCE< UNOXMULTISERVICEFACTORY >& xServiceManager );
#define SFX_DECL_XINTERFACE_XTYPEPROVIDER_XSERVICEINFO \