ListBox.cxx (07a3d7f1) | ListBox.cxx (a72d41dc) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 287 unchanged lines hidden (view full) --- 296 { 297 case PROPERTY_ID_BOUNDCOLUMN : 298 DBG_ASSERT((_rValue.getValueType().getTypeClass() == TypeClass_SHORT) || (_rValue.getValueType().getTypeClass() == TypeClass_VOID), 299 "OListBoxModel::setFastPropertyValue_NoBroadcast : invalid type !" ); 300 m_aBoundColumn = _rValue; 301 break; 302 303 case PROPERTY_ID_LISTSOURCETYPE : | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 287 unchanged lines hidden (view full) --- 296 { 297 case PROPERTY_ID_BOUNDCOLUMN : 298 DBG_ASSERT((_rValue.getValueType().getTypeClass() == TypeClass_SHORT) || (_rValue.getValueType().getTypeClass() == TypeClass_VOID), 299 "OListBoxModel::setFastPropertyValue_NoBroadcast : invalid type !" ); 300 m_aBoundColumn = _rValue; 301 break; 302 303 case PROPERTY_ID_LISTSOURCETYPE : |
304 DBG_ASSERT(_rValue.getValueType().equals(::getCppuType(reinterpret_cast<ListSourceType*>(NULL))), | 304 DBG_ASSERT(_rValue.getValueType().equals(::getCppuType(static_cast<ListSourceType*>(NULL))), |
305 "OComboBoxModel::setFastPropertyValue_NoBroadcast : invalid type !" ); 306 _rValue >>= m_eListSourceType; 307 break; 308 309 case PROPERTY_ID_LISTSOURCE: 310 { 311 // extract 312 Sequence< ::rtl::OUString > aListSource; --- 22 unchanged lines hidden (view full) --- 335 } 336 break; 337 338 case PROPERTY_ID_VALUE_SEQ : 339 OSL_ENSURE( false, "ValueItemList is read-only!" ); 340 throw PropertyVetoException(); 341 342 case PROPERTY_ID_DEFAULT_SELECT_SEQ : | 305 "OComboBoxModel::setFastPropertyValue_NoBroadcast : invalid type !" ); 306 _rValue >>= m_eListSourceType; 307 break; 308 309 case PROPERTY_ID_LISTSOURCE: 310 { 311 // extract 312 Sequence< ::rtl::OUString > aListSource; --- 22 unchanged lines hidden (view full) --- 335 } 336 break; 337 338 case PROPERTY_ID_VALUE_SEQ : 339 OSL_ENSURE( false, "ValueItemList is read-only!" ); 340 throw PropertyVetoException(); 341 342 case PROPERTY_ID_DEFAULT_SELECT_SEQ : |
343 DBG_ASSERT(_rValue.getValueType().equals(::getCppuType(reinterpret_cast< Sequence<sal_Int16>*>(NULL))), | 343 DBG_ASSERT(_rValue.getValueType().equals(::getCppuType(static_cast< Sequence<sal_Int16>*>(NULL))), |
344 "OListBoxModel::setFastPropertyValue_NoBroadcast : invalid type !" ); 345 _rValue >>= m_aDefaultSelectSeq; 346 347 DBG_ASSERT(m_xAggregateFastSet.is(), "OListBoxModel::setFastPropertyValue_NoBroadcast(DEFAULT_SELECT_SEQ) : invalid aggregate !"); 348 if ( m_xAggregateFastSet.is() ) 349 setControlValue( _rValue, eOther ); 350 break; 351 --- 18 unchanged lines hidden (view full) --- 370 sal_Bool OListBoxModel::convertFastPropertyValue( 371 Any& _rConvertedValue, Any& _rOldValue, sal_Int32 _nHandle, const Any& _rValue) 372 throw (IllegalArgumentException) 373 { 374 sal_Bool bModified(sal_False); 375 switch (_nHandle) 376 { 377 case PROPERTY_ID_BOUNDCOLUMN : | 344 "OListBoxModel::setFastPropertyValue_NoBroadcast : invalid type !" ); 345 _rValue >>= m_aDefaultSelectSeq; 346 347 DBG_ASSERT(m_xAggregateFastSet.is(), "OListBoxModel::setFastPropertyValue_NoBroadcast(DEFAULT_SELECT_SEQ) : invalid aggregate !"); 348 if ( m_xAggregateFastSet.is() ) 349 setControlValue( _rValue, eOther ); 350 break; 351 --- 18 unchanged lines hidden (view full) --- 370 sal_Bool OListBoxModel::convertFastPropertyValue( 371 Any& _rConvertedValue, Any& _rOldValue, sal_Int32 _nHandle, const Any& _rValue) 372 throw (IllegalArgumentException) 373 { 374 sal_Bool bModified(sal_False); 375 switch (_nHandle) 376 { 377 case PROPERTY_ID_BOUNDCOLUMN : |
378 bModified = tryPropertyValue(_rConvertedValue, _rOldValue, _rValue, m_aBoundColumn, ::getCppuType(reinterpret_cast<sal_Int16*>(NULL))); | 378 bModified = tryPropertyValue(_rConvertedValue, _rOldValue, _rValue, m_aBoundColumn, ::getCppuType(static_cast<sal_Int16*>(NULL))); |
379 break; 380 381 case PROPERTY_ID_LISTSOURCETYPE: 382 bModified = tryPropertyValueEnum(_rConvertedValue, _rOldValue, _rValue, m_eListSourceType); 383 break; 384 385 case PROPERTY_ID_LISTSOURCE: 386 bModified = tryPropertyValue(_rConvertedValue, _rOldValue, _rValue, lcl_convertToStringSequence( m_aListSourceValues ) ); --- 1466 unchanged lines hidden --- | 379 break; 380 381 case PROPERTY_ID_LISTSOURCETYPE: 382 bModified = tryPropertyValueEnum(_rConvertedValue, _rOldValue, _rValue, m_eListSourceType); 383 break; 384 385 case PROPERTY_ID_LISTSOURCE: 386 bModified = tryPropertyValue(_rConvertedValue, _rOldValue, _rValue, lcl_convertToStringSequence( m_aListSourceValues ) ); --- 1466 unchanged lines hidden --- |