diff options
author | Noel Grandin <noel@peralex.com> | 2013-03-19 10:52:27 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-03-20 07:32:51 +0200 |
commit | 286a86221b0b666fb9c54ffc30fdf1fd99a1316d (patch) | |
tree | 9f5b292c981bfca0be9b4e79770fbf51bae87e13 /dbaccess | |
parent | 24d53ed075b9c904c6947cf3ca7096d3d4a70bce (diff) |
fdo#46808, Convert sdb::TextConnectionSettings to new style
The service already existed, it just needed an IDL file
Change-Id: If86cb14d107077da5f10bddd81deda7cf61442ed
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/uno/textconnectionsettings_uno.cxx | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/dbaccess/source/ui/uno/textconnectionsettings_uno.cxx b/dbaccess/source/ui/uno/textconnectionsettings_uno.cxx index 5cc0b6ac5d47..1db5b7a12460 100644 --- a/dbaccess/source/ui/uno/textconnectionsettings_uno.cxx +++ b/dbaccess/source/ui/uno/textconnectionsettings_uno.cxx @@ -28,9 +28,11 @@ #include <com/sun/star/beans/XPropertySetInfo.hpp> #include <com/sun/star/beans/PropertyAttribute.hpp> +#include <com/sun/star/sdb/XTextConnectionSettings.hpp> #include <comphelper/componentcontext.hxx> #include <svtools/genericunodialog.hxx> +#include <cppuhelper/implbase1.hxx> //........................................................................ namespace dbaui @@ -58,12 +60,15 @@ namespace dbaui //==================================================================== class OTextConnectionSettingsDialog; - typedef ODatabaseAdministrationDialog OTextConnectionSettingsDialog_BASE; + typedef ::cppu::ImplInheritanceHelper1 < ODatabaseAdministrationDialog + , ::com::sun::star::sdb::XTextConnectionSettings + > OTextConnectionSettingsDialog_BASE; typedef ::comphelper::OPropertyArrayUsageHelper< OTextConnectionSettingsDialog > OTextConnectionSettingsDialog_PBASE; class OTextConnectionSettingsDialog :public OTextConnectionSettingsDialog_BASE ,public OTextConnectionSettingsDialog_PBASE + ,public ::cppu::WeakImplHelper1< com::sun::star::sdb::XTextConnectionSettings > { OModuleClient m_aModuleClient; PropertyValues m_aPropertyValues; @@ -81,6 +86,24 @@ namespace dbaui virtual sal_Bool SAL_CALL convertFastPropertyValue( Any& rConvertedValue, Any& rOldValue, sal_Int32 nHandle, const Any& rValue) throw(IllegalArgumentException); virtual void SAL_CALL getFastPropertyValue( Any& rValue, sal_Int32 nHandle ) const; + // Overrides to resolve inheritance ambiguity + virtual void SAL_CALL setPropertyValue(const rtl::OUString& p1, const css::uno::Any& p2) throw (css::uno::RuntimeException) + { ODatabaseAdministrationDialog::setPropertyValue(p1, p2); } + virtual css::uno::Any SAL_CALL getPropertyValue(const rtl::OUString& p1) throw (css::uno::RuntimeException) + { return ODatabaseAdministrationDialog::getPropertyValue(p1); } + virtual void SAL_CALL addPropertyChangeListener(const rtl::OUString& p1, const css::uno::Reference<css::beans::XPropertyChangeListener>& p2) throw (css::uno::RuntimeException) + { ODatabaseAdministrationDialog::addPropertyChangeListener(p1, p2); } + virtual void SAL_CALL removePropertyChangeListener(const rtl::OUString& p1, const css::uno::Reference<css::beans::XPropertyChangeListener>& p2) throw (css::uno::RuntimeException) + { ODatabaseAdministrationDialog::removePropertyChangeListener(p1, p2); } + virtual void SAL_CALL addVetoableChangeListener(const rtl::OUString& p1, const css::uno::Reference<css::beans::XVetoableChangeListener>& p2) throw (css::uno::RuntimeException) + { ODatabaseAdministrationDialog::addVetoableChangeListener(p1, p2); } + virtual void SAL_CALL removeVetoableChangeListener(const rtl::OUString& p1, const css::uno::Reference<css::beans::XVetoableChangeListener>& p2) throw (css::uno::RuntimeException) + { ODatabaseAdministrationDialog::removeVetoableChangeListener(p1, p2); } + virtual void SAL_CALL setTitle(const rtl::OUString& p1) throw (css::uno::RuntimeException) + { ODatabaseAdministrationDialog::setTitle(p1); } + virtual sal_Int16 SAL_CALL execute() throw (css::uno::RuntimeException) + { return ODatabaseAdministrationDialog::execute(); } + protected: // OGenericUnoDialog overridables virtual Dialog* createDialog( Window* _pParent ); |