summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-01-27 18:01:52 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-02-09 08:09:25 +0100
commita11c71f7f109e1bccba667efd7c061229193a2a9 (patch)
tree0102b71cc1677e673132deac01d36da2724d3a7b /forms
parent73076f5e9ac5e84e22234c9b87b53b9a3179e74b (diff)
forms: use constructor feature for ODatabaseForm
Change-Id: I1f36b28c3d71b90e439c6ba86bba09cf55bc43ae
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/DatabaseForm.cxx6
-rw-r--r--forms/source/misc/services.cxx3
-rw-r--r--forms/util/frm.component3
3 files changed, 8 insertions, 4 deletions
diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx
index 0ef7c003feba..753fe891ddf5 100644
--- a/forms/source/component/DatabaseForm.cxx
+++ b/forms/source/component/DatabaseForm.cxx
@@ -4115,5 +4115,11 @@ void SAL_CALL ODatabaseForm::setName(const OUString& aName) throw( RuntimeExcept
} // namespace frm
+extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* SAL_CALL
+com_sun_star_comp_forms_ODatabaseForm_get_implementation(css::uno::XComponentContext* context,
+ css::uno::Sequence<css::uno::Any> const &)
+{
+ return cppu::acquire(new frm::ODatabaseForm(context));
+}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/forms/source/misc/services.cxx b/forms/source/misc/services.cxx
index 2283418be80d..fe49f0debad7 100644
--- a/forms/source/misc/services.cxx
+++ b/forms/source/misc/services.cxx
@@ -221,9 +221,6 @@ void SAL_CALL createRegistryInfo_FORMS()
static bool bInit = false;
if (!bInit)
{
-#if HAVE_FEATURE_DBCONNECTIVITY
- createRegistryInfo_ODatabaseForm();
-#endif
createRegistryInfo_OFilterControl();
createRegistryInfo_OScrollBarModel();
createRegistryInfo_OSpinButtonModel();
diff --git a/forms/util/frm.component b/forms/util/frm.component
index 18900aa7beef..276b7c4f2121 100644
--- a/forms/util/frm.component
+++ b/forms/util/frm.component
@@ -33,7 +33,8 @@
<implementation name="com.sun.star.comp.forms.FormOperations">
<service name="com.sun.star.form.runtime.FormOperations"/>
</implementation>
- <implementation name="com.sun.star.comp.forms.ODatabaseForm">
+ <implementation name="com.sun.star.comp.forms.ODatabaseForm"
+ constructor="com_sun_star_comp_forms_ODatabaseForm_get_implementation">
<service name="com.sun.star.form.FormComponent"/>
<service name="com.sun.star.form.FormComponents"/>
<service name="com.sun.star.form.component.DataForm"/>