diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2003-05-19 12:08:11 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2003-05-19 12:08:11 +0000 |
commit | 0105a5ddadc81e7112ed9e9b6608ce1815348637 (patch) | |
tree | 7e72bf7fdc8c43c52c86d4613bb265c8bedcf2ea /forms/source/component/Date.cxx | |
parent | a7d6769a60db431c567651bce06ec1854698370b (diff) |
INTEGRATION: CWS dba05 (1.10.50); FILE MERGED
2003/05/07 07:59:14 oj 1.10.50.1: #i13806# change the property boundfield to be bound
Diffstat (limited to 'forms/source/component/Date.cxx')
-rw-r--r-- | forms/source/component/Date.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/forms/source/component/Date.cxx b/forms/source/component/Date.cxx index ae5c2cbbcbc3..d1a8a532293a 100644 --- a/forms/source/component/Date.cxx +++ b/forms/source/component/Date.cxx @@ -2,9 +2,9 @@ * * $RCSfile: Date.cxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: fs $ $Date: 2002-12-02 09:56:29 $ + * last change: $Author: vg $ $Date: 2003-05-19 13:08:11 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -219,7 +219,7 @@ void ODateModel::fillProperties( DECL_PROP1(TAG, ::rtl::OUString, BOUND); DECL_PROP1(TABINDEX, sal_Int16, BOUND); DECL_PROP1(CONTROLSOURCE, ::rtl::OUString, BOUND); - DECL_IFACE_PROP2(BOUNDFIELD, XPropertySet, READONLY, TRANSIENT); + DECL_IFACE_PROP3(BOUNDFIELD, XPropertySet, BOUND,READONLY, TRANSIENT); DECL_IFACE_PROP2(CONTROLLABEL, XPropertySet, BOUND, MAYBEVOID); DECL_PROP2(CONTROLSOURCEPROPERTY, ::rtl::OUString, READONLY, TRANSIENT); DECL_PROP1(FORMATKEY, sal_Int32, TRANSIENT); @@ -274,13 +274,14 @@ void SAL_CALL ODateModel::setFastPropertyValue_NoBroadcast(sal_Int32 _nHandle, c void ODateModel::_loaded(const EventObject& rEvent) { OBoundControlModel::_loaded(rEvent); - if (m_xField.is()) + Reference<XPropertySet> xField = getField(); + if (xField.is()) { m_bDateTimeField = sal_False; try { sal_Int32 nFieldType; - m_xField->getPropertyValue(PROPERTY_FIELDTYPE) >>= nFieldType; + xField->getPropertyValue(PROPERTY_FIELDTYPE) >>= nFieldType; m_bDateTimeField = (nFieldType == DataType::TIMESTAMP); } catch(Exception&) |