diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-08-14 11:08:54 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-08-14 11:08:54 +0000 |
commit | 6c55b75a8d00d1c192aca282bce8b140c80072b0 (patch) | |
tree | d679528da1cc17d3a7d1bb97960ce9701f6263a5 /forms | |
parent | 411a5e74e09a3d2acb0e13a85cc3a8508e1ed433 (diff) |
INTEGRATION: CWS dba30h_DEV300 (1.22.2); FILE MERGED
2008/07/28 07:33:12 fs 1.22.2.1: copying the fix for #i90914# herein, to try to get it for 3.0
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/inc/FormComponent.hxx | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/forms/source/inc/FormComponent.hxx b/forms/source/inc/FormComponent.hxx index 83f4b14c676c..7ee8e98f96d0 100644 --- a/forms/source/inc/FormComponent.hxx +++ b/forms/source/inc/FormComponent.hxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: FormComponent.hxx,v $ - * $Revision: 1.22 $ + * $Revision: 1.23 $ * * This file is part of OpenOffice.org. * @@ -1046,8 +1046,18 @@ protected: const ::com::sun::star::uno::Type& getExternalValueType() const { return m_aExternalValueType; } + /** initializes the control from m_xField + + Basically, this method calls transferDbValueToControl - but only if our cursor is positioned + on a valid row. Otherwise, the control is reset. + + @precond + m_xField is not <NULL/> + */ + void initFromField( const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRowSet>& _rxForm ); + private: - sal_Bool connectToField(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRowSet>& _rxForm); + sal_Bool connectToField( const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRowSet>& _rxForm ); void resetField(); /** does a new validation of the control value |