summaryrefslogtreecommitdiff
path: root/svx/source/form/fmservs.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/form/fmservs.cxx')
-rw-r--r--svx/source/form/fmservs.cxx32
1 files changed, 12 insertions, 20 deletions
diff --git a/svx/source/form/fmservs.cxx b/svx/source/form/fmservs.cxx
index b65bf8dfae2e..900a0132e77c 100644
--- a/svx/source/form/fmservs.cxx
+++ b/svx/source/form/fmservs.cxx
@@ -46,25 +46,11 @@ uno::Reference< uno::XInterface > SAL_CALL ImplName##_NewInstance_Impl(const uno
namespace svxform
{
-#define DECL_SELFAWARE_SERVICE( ClassName ) \
- uno::Reference< uno::XInterface > SAL_CALL ClassName##_Create( \
- const uno::Reference< lang::XMultiServiceFactory >& ); \
- OUString SAL_CALL ClassName##_GetImplementationName(); \
- uno::Sequence< OUString > SAL_CALL ClassName##_GetSupportedServiceNames(); \
-
-
-#define REGISTER_SELFAWARE_SERVICE( ClassName ) \
- xSingleFactory = ::cppu::createSingleFactory( xServiceFactory, \
- ClassName##_GetImplementationName(), \
- ClassName##_Create, \
- ClassName##_GetSupportedServiceNames() \
- ); \
- if ( xSingleFactory.is() ) \
- xSet->insert( uno::makeAny( xSingleFactory ) );
-
-
// ------------------------------------------------------------------------
- DECL_SELFAWARE_SERVICE( OAddConditionDialog )
+ // declare selfaware service
+ uno::Reference< uno::XInterface > SAL_CALL OAddConditionDialog_Create( const uno::Reference< lang::XMultiServiceFactory >& );
+ OUString SAL_CALL OAddConditionDialog_GetImplementationName();
+ uno::Sequence< OUString > SAL_CALL OAddConditionDialog_GetSupportedServiceNames();
// ------------------------------------------------------------------------
void ImplSmartRegisterUnoServices()
@@ -85,8 +71,14 @@ namespace svxform
REGISTER_SERVICE( LegacyFormController, OUString( "com.sun.star.form.FormController" ) );
// ------------------------------------------------------------------------
- // FormController
- REGISTER_SELFAWARE_SERVICE( OAddConditionDialog );
+ // FormController - register selfaware service
+ xSingleFactory = ::cppu::createSingleFactory( xServiceFactory,
+ OAddConditionDialog_GetImplementationName(),
+ OAddConditionDialog_Create,
+ OAddConditionDialog_GetSupportedServiceNames()
+ );
+ if ( xSingleFactory.is() )
+ xSet->insert( uno::makeAny( xSingleFactory ) );
// ------------------------------------------------------------------------
// DBGridControl