diff options
author | Frank Schönheit <fs@openoffice.org> | 2002-05-16 04:47:45 +0000 |
---|---|---|
committer | Frank Schönheit <fs@openoffice.org> | 2002-05-16 04:47:45 +0000 |
commit | 80c070d84521cdbd6bc9a28e682205b874df07f3 (patch) | |
tree | 011b5cfd0a38ae95e10bac27d1913d178fe1f432 /toolkit/inc | |
parent | 779ae5904eb939fa52ab9e4ac8963014684b40a0 (diff) |
#99314# +ImplNormalizePropertySequence
Diffstat (limited to 'toolkit/inc')
-rw-r--r-- | toolkit/inc/toolkit/controls/unocontrolmodel.hxx | 17 | ||||
-rw-r--r-- | toolkit/inc/toolkit/controls/unocontrols.hxx | 10 |
2 files changed, 23 insertions, 4 deletions
diff --git a/toolkit/inc/toolkit/controls/unocontrolmodel.hxx b/toolkit/inc/toolkit/controls/unocontrolmodel.hxx index c41b636574ab..a2dbbaa297c3 100644 --- a/toolkit/inc/toolkit/controls/unocontrolmodel.hxx +++ b/toolkit/inc/toolkit/controls/unocontrolmodel.hxx @@ -2,9 +2,9 @@ * * $RCSfile: unocontrolmodel.hxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: hr $ $Date: 2001-09-28 09:52:24 $ + * last change: $Author: fs $ $Date: 2002-05-16 05:47:20 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -131,6 +131,19 @@ protected: virtual ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const; sal_Bool ImplHasProperty( sal_uInt16 nPropId ) const; + /** called before setting multiple properties, allows to care for property dependencies + + <p>When multiple property values are set (e.g. XPropertySet::setPropertyValues), it may happen that some + of them are dependent. For this, derivees which know such dependencies can affect the order in which + the properties are internally really set.</p> + */ + virtual void ImplNormalizePropertySequence( + const sal_Int32 _nCount, /// the number of entries in the arrays + sal_Int32* _pHandles, /// the handles of the properties to set + ::com::sun::star::uno::Any* _pValues, /// the values of the properties to set + sal_Int32* _pValidHandles /// pointer to the valid handles, allowed to be adjusted + ) const SAL_THROW(()); + public: UnoControlModel(); UnoControlModel( const UnoControlModel& rModel ); diff --git a/toolkit/inc/toolkit/controls/unocontrols.hxx b/toolkit/inc/toolkit/controls/unocontrols.hxx index ec429b2e934e..a6b9071c7a73 100644 --- a/toolkit/inc/toolkit/controls/unocontrols.hxx +++ b/toolkit/inc/toolkit/controls/unocontrols.hxx @@ -2,9 +2,9 @@ * * $RCSfile: unocontrols.hxx,v $ * - * $Revision: 1.23 $ + * $Revision: 1.24 $ * - * last change: $Author: fs $ $Date: 2002-01-08 13:43:32 $ + * last change: $Author: fs $ $Date: 2002-05-16 05:47:45 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -935,6 +935,12 @@ public: UnoControlModel* Clone() const { return new UnoControlListBoxModel( *this ); } void ImplPropertyChanged( sal_uInt16 nPropId ); + virtual void ImplNormalizePropertySequence( + const sal_Int32 _nCount, /// the number of entries in the arrays + sal_Int32* _pHandles, /// the handles of the properties to set + ::com::sun::star::uno::Any* _pValues, /// the values of the properties to set + sal_Int32* _pValidHandles /// pointer to the valid handles, allowed to be adjusted + ) const SAL_THROW(()); // ::com::sun::star::beans::XMultiPropertySet ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException); |