2004/07/26 16:45:18 dvo 1.1.2.4: #i31958# continue XForms implementation Issue number: Submitted by: Reviewed by: 2004/04/22 12:14:14 dvo 1.1.2.3: #114856# adopt new form::binding namespace Issue number: Submitted by: Reviewed by: 2004/03/18 17:09:42 dvo 1.1.2.2: #114856# continue XForms implementation 2004/01/14 13:00:46 dvo 1.1.2.1: #114856# start XForms core implementation
43 lines
1.1 KiB
C++
43 lines
1.1 KiB
C++
|
|
|
|
#include "services.hxx"
|
|
|
|
#include "binding.hxx"
|
|
#include "model.hxx"
|
|
#include "NameContainer.hxx"
|
|
|
|
#include <com/sun/star/uno/Reference.hxx>
|
|
#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 rtl::OUString;
|
|
|
|
|
|
namespace frm
|
|
{
|
|
|
|
Reference<XInterface> Model_CreateInstance(
|
|
const Reference<XMultiServiceFactory>& )
|
|
throw( RuntimeException )
|
|
{
|
|
return static_cast<XPropertySet*>( new xforms::Model );
|
|
}
|
|
|
|
Reference<XInterface> XForms_CreateInstance(
|
|
const Reference<XMultiServiceFactory>& )
|
|
throw( RuntimeException )
|
|
{
|
|
return static_cast<XNameContainer*>( new NameContainer<Reference<XPropertySet> >() );
|
|
}
|
|
|
|
}
|