summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-01-27 17:54:08 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-02-09 08:09:25 +0100
commit73076f5e9ac5e84e22234c9b87b53b9a3179e74b (patch)
treec87bacd2b13df6e67bd88c9d0cbff629cd5ec97d /forms
parent4c51ea9c0524cc2656c05e1f2537f85f4ce9d00b (diff)
forms: use constructor feature for OFormsCollection
Change-Id: Ifdc031480617ec4d0a50ae5b6cd6a2c838ae076a
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/FormsCollection.cxx6
-rw-r--r--forms/source/misc/services.cxx1
-rw-r--r--forms/util/frm.component3
3 files changed, 8 insertions, 2 deletions
diff --git a/forms/source/component/FormsCollection.cxx b/forms/source/component/FormsCollection.cxx
index 1114961e1a0c..d67c10861032 100644
--- a/forms/source/component/FormsCollection.cxx
+++ b/forms/source/component/FormsCollection.cxx
@@ -160,5 +160,11 @@ InterfaceRef OFormsCollection::getParent() throw( RuntimeException, std::except
} // namespace frm
+extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* SAL_CALL
+com_sun_star_form_OFormsCollection_get_implementation(css::uno::XComponentContext* context,
+ css::uno::Sequence<css::uno::Any> const &)
+{
+ return cppu::acquire(new frm::OFormsCollection(context));
+}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/forms/source/misc/services.cxx b/forms/source/misc/services.cxx
index d8e5a8e60709..2283418be80d 100644
--- a/forms/source/misc/services.cxx
+++ b/forms/source/misc/services.cxx
@@ -197,7 +197,6 @@ void ensureClassInfos()
// = various
aServices.realloc(1);
aServices.getArray()[0] = "com.sun.star.form.Forms";
- REGISTER_CLASS_CORE(OFormsCollection);
REGISTER_CLASS1(ImageProducer, SRV_AWT_IMAGEPRODUCER);
diff --git a/forms/util/frm.component b/forms/util/frm.component
index 23833eb8e9ad..18900aa7beef 100644
--- a/forms/util/frm.component
+++ b/forms/util/frm.component
@@ -155,7 +155,8 @@
<implementation name="com.sun.star.form.OFormattedFieldWrapper">
<service name="stardiv.one.form.component.Edit"/>
</implementation>
- <implementation name="com.sun.star.form.OFormsCollection">
+ <implementation name="com.sun.star.form.OFormsCollection"
+ constructor="com_sun_star_form_OFormsCollection_get_implementation">
<service name="com.sun.star.form.Forms"/>
</implementation>
<implementation name="com.sun.star.form.OGridControlModel">