diff options
Diffstat (limited to 'toolkit/source/controls')
-rw-r--r-- | toolkit/source/controls/unocontrolmodel.cxx | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/toolkit/source/controls/unocontrolmodel.cxx b/toolkit/source/controls/unocontrolmodel.cxx index 11a255282130..5b93c3c00523 100644 --- a/toolkit/source/controls/unocontrolmodel.cxx +++ b/toolkit/source/controls/unocontrolmodel.cxx @@ -2,9 +2,9 @@ * * $RCSfile: unocontrolmodel.cxx,v $ * - * $Revision: 1.37 $ + * $Revision: 1.38 $ * - * last change: $Author: rt $ $Date: 2005-01-11 12:03:42 $ + * last change: $Author: kz $ $Date: 2005-01-21 16:47:22 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -91,6 +91,9 @@ #ifndef _CPPUHELPER_TYPEPROVIDER_HXX_ #include <cppuhelper/typeprovider.hxx> #endif +#ifndef _COMPHELPER_EXTRACT_HXX_ +#include <cppuhelper/extract.hxx> +#endif #ifndef _RTL_MEMORY_H_ #include <rtl/memory.h> #endif @@ -331,6 +334,7 @@ void UnoControlModel::ImplPropertyChanged( sal_uInt16 nPropId ) { switch ( nPropId ) { + case BASEPROPERTY_VERTICALALIGN: case BASEPROPERTY_BORDERCOLOR: case BASEPROPERTY_SYMBOL_COLOR: case BASEPROPERTY_TABSTOP: @@ -1214,7 +1218,13 @@ sal_Bool UnoControlModel::convertFastPropertyValue( Any & rConvertedValue, Any & } } break; - // TODO: perhaps we should allow us some more tolerance for enum types, too .... + case TypeClass_ENUM: + { + sal_Int32 nValue = 0; + if ( bConverted = ( rValue >>= nValue ) ) + rConvertedValue = ::cppu::int2enum( nValue, *pDestType ); + } + break; } if (!bConverted) |