diff options
-rw-r--r-- | toolkit/inc/toolkit/controls/unocontrolbase.hxx | 5 | ||||
-rw-r--r-- | toolkit/source/controls/unocontrolbase.cxx | 10 |
2 files changed, 11 insertions, 4 deletions
diff --git a/toolkit/inc/toolkit/controls/unocontrolbase.hxx b/toolkit/inc/toolkit/controls/unocontrolbase.hxx index 72c77fb3c9b0..0aedb6f688c0 100644 --- a/toolkit/inc/toolkit/controls/unocontrolbase.hxx +++ b/toolkit/inc/toolkit/controls/unocontrolbase.hxx @@ -2,9 +2,9 @@ * * $RCSfile: unocontrolbase.hxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 17:02:08 $ + * last change: $Author: mt $ $Date: 2001-10-11 14:56:21 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -75,6 +75,7 @@ class UnoControlBase : public UnoControl { protected: + sal_Bool ImplHasProperty( sal_uInt16 nProp ); sal_Bool ImplHasProperty( const ::rtl::OUString& aPropertyName ); void ImplSetPropertyValue( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue, sal_Bool bUpdateThis ); ::com::sun::star::uno::Any ImplGetPropertyValue( const ::rtl::OUString& aPropertyName ); diff --git a/toolkit/source/controls/unocontrolbase.cxx b/toolkit/source/controls/unocontrolbase.cxx index 3bfead451907..b0cc24f082c8 100644 --- a/toolkit/source/controls/unocontrolbase.cxx +++ b/toolkit/source/controls/unocontrolbase.cxx @@ -2,9 +2,9 @@ * * $RCSfile: unocontrolbase.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 17:02:09 $ + * last change: $Author: mt $ $Date: 2001-10-11 14:58:22 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -75,6 +75,12 @@ // class UnoControlBase // ---------------------------------------------------- +sal_Bool UnoControlBase::ImplHasProperty( sal_uInt16 nPropId ) +{ + ::rtl::OUString aPropName( GetPropertyName( nPropId ) ); + return ImplHasProperty( aPropName ); +} + sal_Bool UnoControlBase::ImplHasProperty( const ::rtl::OUString& aPropertyName ) { ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > xPSet( mxModel, ::com::sun::star::uno::UNO_QUERY ); |