20#include <com/sun/star/container/XSet.hpp>
23#include <com/sun/star/lang/XSingleServiceFactory.hpp>
24#include <com/sun/star/lang/XMultiServiceFactory.hpp>
29#define REGISTER_SERVICE(ImplName, ServiceName) \
30 sString = (ServiceName); \
31 xSingleFactory = ::cppu::createSingleFactory(xServiceFactory, \
32 OUString(), ImplName##_NewInstance_Impl, \
33 uno::Sequence< OUString>(&sString, 1)); \
34 if (xSingleFactory.is()) \
35 xSet->insert(uno::Any(xSingleFactory));
41 uno::Reference< lang::XMultiServiceFactory > xServiceFactory = ::comphelper::getProcessServiceFactory();
42 uno::Reference< container::XSet > xSet(xServiceFactory, uno::UNO_QUERY);
46 uno::Reference< lang::XSingleServiceFactory > xSingleFactory;
53 REGISTER_SERVICE( LegacyFormController,
"com.sun.star.form.FormController" );
57 xSingleFactory = ::cppu::createSingleFactory( xServiceFactory,
62 if ( xSingleFactory.is() )
63 xSet->insert(
uno::Any( xSingleFactory ) );
#define REGISTER_SERVICE(ImplName, ServiceName)
constexpr OUStringLiteral FM_CONTROL_GRIDCONTROL
constexpr OUStringLiteral FM_CONTROL_GRID
constexpr OUStringLiteral FM_SUN_CONTROL_GRIDCONTROL