diff options
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/xforms/model.hxx | 32 | ||||
-rw-r--r-- | forms/source/xforms/xforms_services.cxx | 2 |
2 files changed, 31 insertions, 3 deletions
diff --git a/forms/source/xforms/model.hxx b/forms/source/xforms/model.hxx index acbeff46366d..2e989ab1aa87 100644 --- a/forms/source/xforms/model.hxx +++ b/forms/source/xforms/model.hxx @@ -22,7 +22,7 @@ #include <cppuhelper/implbase4.hxx> #include <propertysetbase.hxx> -#include <com/sun/star/xforms/XModel.hpp> +#include <com/sun/star/xforms/XModel2.hpp> #include <com/sun/star/xforms/XFormsUIHelper1.hpp> #include <com/sun/star/util/XUpdatable.hpp> #include <com/sun/star/lang/XUnoTunnel.hpp> @@ -68,7 +68,7 @@ namespace xforms */ typedef cppu::ImplInheritanceHelper4< PropertySetBase, - com::sun::star::xforms::XModel, + com::sun::star::xforms::XModel2, com::sun::star::xforms::XFormsUIHelper1, com::sun::star::util::XUpdatable, com::sun::star::lang::XUnoTunnel @@ -281,7 +281,35 @@ public: virtual XSet_t SAL_CALL getSubmissions() throw( RuntimeException_t ); + // XPropertySet + virtual css::uno::Any SAL_CALL getPropertyValue(const rtl::OUString& p) + throw( css::uno::RuntimeException ) + { return PropertySetBase::getPropertyValue(p); } + + virtual void SAL_CALL addPropertyChangeListener(const rtl::OUString& p1, const css::uno::Reference<css::beans::XPropertyChangeListener>& p2) + throw( css::uno::RuntimeException ) + { PropertySetBase::addPropertyChangeListener(p1, p2); } + + virtual void SAL_CALL removePropertyChangeListener(const rtl::OUString& p1, const css::uno::Reference<css::beans::XPropertyChangeListener>& p2) + throw( css::uno::RuntimeException ) + { PropertySetBase::removePropertyChangeListener(p1, p2); } + + virtual void SAL_CALL addVetoableChangeListener(const rtl::OUString& p1, const css::uno::Reference<css::beans::XVetoableChangeListener>& p2) + throw( css::uno::RuntimeException ) + { PropertySetBase::addVetoableChangeListener(p1, p2); } + + virtual void SAL_CALL removeVetoableChangeListener(const rtl::OUString& p1, const css::uno::Reference<css::beans::XVetoableChangeListener>& p2) + throw( css::uno::RuntimeException ) + { PropertySetBase::removeVetoableChangeListener(p1, p2); } + + virtual css::uno::Reference<css::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() + throw( css::uno::RuntimeException ) + { return PropertySetBase::getPropertySetInfo(); } + + virtual void SAL_CALL setPropertyValue(const rtl::OUString& p1, const com::sun::star::uno::Any& p2) + throw( css::uno::RuntimeException ) + { PropertySetBase::setPropertyValue(p1, p2); } // // XFormsUIHelper1 & friends: diff --git a/forms/source/xforms/xforms_services.cxx b/forms/source/xforms/xforms_services.cxx index da09e6a911f1..7e03f9967239 100644 --- a/forms/source/xforms/xforms_services.cxx +++ b/forms/source/xforms/xforms_services.cxx @@ -46,7 +46,7 @@ Reference<XInterface> Model_CreateInstance( const Reference<XMultiServiceFactory>& ) throw( RuntimeException ) { - return static_cast<XPropertySet*>( new xforms::Model ); + return static_cast<XPropertySet*>( static_cast<PropertySetBase*>( new xforms::Model ) ); } Reference<XInterface> XForms_CreateInstance( |