diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2013-04-21 15:45:58 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2013-04-22 17:54:39 +0200 |
commit | d645a6a17cd03d0f875e1246652664860d91c0c5 (patch) | |
tree | 91ffe4cd54cffa6b6f29d4e0c155f2d9e455d3f6 /extensions | |
parent | 52bc6737cde524f04c9e0af7b7bc98c2030f2ff0 (diff) |
Data-aware ListBox: can have a BoundColumn even without bound database column
It defines what goes into the ValueList property, what getCurrentValue() returns, and what an external value binding gets.
Change-Id: I9242d3a6040ec98c22b1d4350942dfa0e7aa6c5b
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/propctrlr/formcomponenthandler.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx index 773a4e6e199d..0937f1440454 100644 --- a/extensions/source/propctrlr/formcomponenthandler.cxx +++ b/extensions/source/propctrlr/formcomponenthandler.cxx @@ -1331,7 +1331,7 @@ namespace pcr Optional< double > aMinValue( sal_True, 0 ); Optional< double > aMaxValue( sal_True, 0x7FFFFFFF ); - if ( nPropId == PROPERTY_ID_MAXTEXTLEN ) + if ( nPropId == PROPERTY_ID_MAXTEXTLEN || nPropId == PROPERTY_ID_BOUNDCOLUMN ) aMinValue.Value = -1; else if ( nPropId == PROPERTY_ID_VISIBLESIZE ) aMinValue.Value = 1; @@ -1573,7 +1573,6 @@ namespace pcr if ( !_bFirstTimeInit && m_bHaveListSource ) // available list source values (tables or queries) might have changed _rxInspectorUI->rebuildPropertyUI( PROPERTY_LISTSOURCE ); - aDependentProperties.push_back( PROPERTY_ID_BOUNDCOLUMN ); aDependentProperties.push_back( PROPERTY_ID_STRINGITEMLIST ); // NO break! @@ -1837,15 +1836,11 @@ namespace pcr // ----- BoundColumn ----- case PROPERTY_ID_BOUNDCOLUMN: { - OUString sControlSource; - OSL_VERIFY( impl_getPropertyValue_throw( PROPERTY_CONTROLSOURCE ) >>= sControlSource ); - ListSourceType eLSType = ListSourceType_VALUELIST; OSL_VERIFY( impl_getPropertyValue_throw( PROPERTY_LISTSOURCETYPE ) >>= eLSType ); _rxInspectorUI->enablePropertyUI( PROPERTY_BOUNDCOLUMN, - ( !sControlSource.isEmpty() ) - && ( eLSType != ListSourceType_TABLEFIELDS ) + ( eLSType != ListSourceType_TABLEFIELDS ) && ( eLSType != ListSourceType_VALUELIST ) ); } |