From c61a00b8ed5be66211806eaf23effe31b5601abe Mon Sep 17 00:00:00 2001 From: Vladimir Glazounov Date: Mon, 19 May 2003 12:09:27 +0000 Subject: [PATCH] INTEGRATION: CWS dba05 (1.26.50); FILE MERGED 2003/05/07 07:59:16 oj 1.26.50.1: #i13806# change the property boundfield to be bound --- forms/source/component/ListBox.cxx | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx index 43cc35d27752..9ae30a44210c 100644 --- a/forms/source/component/ListBox.cxx +++ b/forms/source/component/ListBox.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ListBox.cxx,v $ * - * $Revision: 1.26 $ + * $Revision: 1.27 $ * - * last change: $Author: fs $ $Date: 2002-12-02 09:56:34 $ + * last change: $Author: vg $ $Date: 2003-05-19 13:09:27 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -293,7 +293,7 @@ void SAL_CALL OListBoxModel::refresh() throw(RuntimeException) ::osl::MutexGuard aGuard(m_aMutex); if (m_eListSourceType != ListSourceType_VALUELIST) { - if (m_xField.is()) + if (getField().is()) m_aValueSeq = StringSequence(); if (m_xCursor.is()) @@ -359,7 +359,7 @@ void OListBoxModel::setFastPropertyValue_NoBroadcast(sal_Int32 _nHandle, const A if (m_eListSourceType == ListSourceType_VALUELIST) m_aValueSeq = m_aListSourceSeq; - else if (m_xCursor.is() && !m_xField.is()) // Listbox bereits mit Datenbank verbunden + else if (m_xCursor.is() && !getField().is()) // Listbox bereits mit Datenbank verbunden // Aenderung der Datenquelle -> neu laden loadData(); @@ -453,14 +453,14 @@ void OListBoxModel::fillProperties( DECL_PROP1(TAG, ::rtl::OUString, BOUND); DECL_PROP1(TABINDEX, sal_Int16, BOUND); DECL_PROP2(BOUNDCOLUMN, sal_Int16, BOUND, MAYBEVOID); - DECL_PROP1(LISTSOURCETYPE, ListSourceType, BOUND); + DECL_PROP1(LISTSOURCETYPE, ListSourceType, BOUND); DECL_PROP1(LISTSOURCE, StringSequence, BOUND); DECL_PROP3(VALUE_SEQ, StringSequence, BOUND, READONLY, TRANSIENT); - DECL_PROP1(DEFAULT_SELECT_SEQ, Sequence, BOUND); + DECL_PROP1(DEFAULT_SELECT_SEQ, Sequence, BOUND); DECL_PROP1(CONTROLSOURCE, ::rtl::OUString, BOUND); - DECL_IFACE_PROP2(BOUNDFIELD, XPropertySet, READONLY, TRANSIENT); - DECL_IFACE_PROP2(CONTROLLABEL, XPropertySet, BOUND, MAYBEVOID); - DECL_PROP2(CONTROLSOURCEPROPERTY, rtl::OUString, READONLY, TRANSIENT); + DECL_IFACE_PROP3(BOUNDFIELD, XPropertySet, BOUND,READONLY, TRANSIENT); + DECL_IFACE_PROP2(CONTROLLABEL, XPropertySet, BOUND, MAYBEVOID); + DECL_PROP2(CONTROLSOURCEPROPERTY, rtl::OUString, READONLY, TRANSIENT); FRM_END_PROP_HELPER(); } @@ -800,7 +800,7 @@ void OListBoxModel::loadData() vector< ::rtl::OUString > aValueList, aStringList; aValueList.reserve(16); aStringList.reserve(16); - sal_Bool bUseNULL = m_xField.is() && !m_bRequired; + sal_Bool bUseNULL = getField().is() && !m_bRequired; try { switch (m_eListSourceType) @@ -971,14 +971,14 @@ void OListBoxModel::loadData() void OListBoxModel::_loaded(const EventObject& rEvent) { // an Felder gebundene Listboxen haben keine Multiselektion - if (m_xField.is()) + if (getField().is()) { setFastPropertyValue(PROPERTY_ID_MULTISELECTION, ::cppu::bool2any((sal_False))); } if (m_eListSourceType != ListSourceType_VALUELIST) { - if (m_xField.is()) + if (getField().is()) m_aValueSeq = StringSequence(); if (m_xCursor.is())