diff options
author | Jan Holesovsky <kendy@collabora.com> | 2015-02-17 10:21:14 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-02-17 11:34:20 +0100 |
commit | 5c3d918062107818e31ef8ddbbb82078faf6de28 (patch) | |
tree | d7ff90717ab3d8c933d49da67728553da67a4ca4 /forms/source/xforms | |
parent | 5d05f7ed8582193c39e29b7dc16767fb850e9f28 (diff) |
forms: Convert also com.sun.star.form.XForms.
Plus some associated cleanup.
Change-Id: I0a923198c23e2e4ecbc91e5b56cfac31b7f71256
Diffstat (limited to 'forms/source/xforms')
-rw-r--r-- | forms/source/xforms/xforms_services.cxx | 35 |
1 files changed, 7 insertions, 28 deletions
diff --git a/forms/source/xforms/xforms_services.cxx b/forms/source/xforms/xforms_services.cxx index 6d50f65f561e..9637ae1ae97c 100644 --- a/forms/source/xforms/xforms_services.cxx +++ b/forms/source/xforms/xforms_services.cxx @@ -17,42 +17,21 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include "services.hxx" - -#include "binding.hxx" #include "model.hxx" #include "NameContainer.hxx" +#include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/XComponentContext.hpp> #include <com/sun/star/uno/XInterface.hpp> -#include <com/sun/star/lang/XMultiServiceFactory.hpp> -#include <com/sun/star/uno/RuntimeException.hpp> -#include <com/sun/star/container/XNameContainer.hpp> - -using com::sun::star::uno::Reference; -using com::sun::star::uno::XInterface; -using com::sun::star::lang::XMultiServiceFactory; -using com::sun::star::uno::RuntimeException; -using com::sun::star::form::binding::XValueBinding; -using com::sun::star::beans::XPropertySet; -using com::sun::star::container::XNameContainer; +using namespace ::com::sun::star; -namespace frm +extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface* SAL_CALL +com_sun_star_form_XForms_get_implementation(uno::XComponentContext*, + uno::Sequence<uno::Any> const &) { - -Reference<XInterface> Model_CreateInstance( - const Reference<XMultiServiceFactory>& ) -{ - return static_cast<XPropertySet*>( static_cast<PropertySetBase*>( new xforms::Model ) ); -} - -Reference<XInterface> XForms_CreateInstance( - const Reference<XMultiServiceFactory>& ) -{ - return static_cast<XNameContainer*>( new NameContainer<Reference<XPropertySet> >() ); -} - + return cppu::acquire(new NameContainer<uno::Reference<beans::XPropertySet> >()); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |