diff options
author | Noel Power <noel.power@suse.com> | 2012-12-20 17:28:53 +0000 |
---|---|---|
committer | Noel Power <noel.power@suse.com> | 2012-12-20 17:36:42 +0000 |
commit | 9bf0f44d5aed9b8a11d0762571dd1e4e0a52390b (patch) | |
tree | 76208974611565fe3e4b1580a6b47dc047b3674e /toolkit | |
parent | 032d5ba4fa3389b968ceb0b6c3de587f979f3c04 (diff) |
fix dialog language support mess fdo#42978
during some rework ( not sure if it was me or not ) we try to register
ControlContainerBase on construction as a XModifyListener ( but it's not ). Patch
make ControlContainerBase implement XModifyListener now. iirc the code in question
was moved from UnoDialogControl at some stage and it appears some balls were
dropped :-)
Change-Id: Ifc7084bd7260ceb06334117582facb95bafb6fed
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/inc/toolkit/controls/controlmodelcontainerbase.hxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/toolkit/inc/toolkit/controls/controlmodelcontainerbase.hxx b/toolkit/inc/toolkit/controls/controlmodelcontainerbase.hxx index 72da8586447c..3a7e5987c15b 100644 --- a/toolkit/inc/toolkit/controls/controlmodelcontainerbase.hxx +++ b/toolkit/inc/toolkit/controls/controlmodelcontainerbase.hxx @@ -29,7 +29,7 @@ #include <com/sun/star/beans/XPropertyChangeListener.hpp> #include <com/sun/star/resource/XStringResourceResolver.hpp> #include <cppuhelper/implbase8.hxx> -#include <cppuhelper/implbase2.hxx> +#include <cppuhelper/implbase3.hxx> #include <toolkit/helper/listenermultiplexer.hxx> #include <toolkit/controls/unocontrolmodel.hxx> #include <toolkit/controls/unocontrolcontainer.hxx> @@ -208,9 +208,10 @@ class ResourceListener :public ::com::sun::star::util::XModifyListener, bool m_bListening; }; -typedef ::cppu::AggImplInheritanceHelper2 < UnoControlContainer +typedef ::cppu::AggImplInheritanceHelper3 < UnoControlContainer , ::com::sun::star::container::XContainerListener , ::com::sun::star::util::XChangesListener + , ::com::sun::star::util::XModifyListener > ContainerControl_IBase; class ControlContainerBase : public ContainerControl_IBase @@ -252,6 +253,10 @@ public: // ::com::sun::star::awt::XControl sal_Bool SAL_CALL setModel( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >& Model ) throw(::com::sun::star::uno::RuntimeException); void SAL_CALL setDesignMode( sal_Bool bOn ) throw(::com::sun::star::uno::RuntimeException); + // XModifyListener + // Using a dummy/no-op implementation here, not sure if every container control needs + // to implement this, certainly Dialog does, lets see about others + virtual void SAL_CALL modified( const ::com::sun::star::lang::EventObject& ) throw (::com::sun::star::uno::RuntimeException) {} protected: virtual void ImplModelPropertiesChanged( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyChangeEvent >& rEvents ) throw(::com::sun::star::uno::RuntimeException); virtual void removingControl( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl >& _rxControl ); |