diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2005-09-23 10:59:08 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2005-09-23 10:59:08 +0000 |
commit | 216a3843c1e3b5f4cf6c5d2aacd7c9c7f079520e (patch) | |
tree | c5d111c8ea3ff5e6176607919cfb2184a94a5ea0 /svx/source/fmcomp | |
parent | 40bbc02981deb95ef799046c9a232dba8f375fe0 (diff) |
INTEGRATION: CWS dba201b (1.42.4); FILE MERGED
2005/09/21 17:12:46 oj 1.42.4.2: RESYNC: (1.42-1.43); FILE MERGED
2005/07/11 14:00:47 fs 1.42.4.1: merging CWS dba201a into CWS dba201b
Diffstat (limited to 'svx/source/fmcomp')
-rw-r--r-- | svx/source/fmcomp/gridcell.cxx | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx index 23bb7922eccf..d65fecdd247c 100644 --- a/svx/source/fmcomp/gridcell.cxx +++ b/svx/source/fmcomp/gridcell.cxx @@ -4,9 +4,9 @@ * * $RCSfile: gridcell.cxx,v $ * - * $Revision: 1.43 $ + * $Revision: 1.44 $ * - * last change: $Author: rt $ $Date: 2005-09-08 22:45:57 $ + * last change: $Author: hr $ $Date: 2005-09-23 11:59:08 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -789,15 +789,8 @@ void DbCellControl::implAdjustReadOnly( const Reference< XPropertySet >& _rxMode DBG_ASSERT( _rxModel.is(), "DbCellControl::implAdjustReadOnly: invalid model!" ); if ( m_pWindow && _rxModel.is() ) { - WindowType eType = m_pWindow->GetType(); - if ( ( WINDOW_EDIT == eType ) - || ( WINDOW_COMBOBOX == eType ) - || ( WINDOW_DATEFIELD == eType ) - || ( WINDOW_TIMEFIELD == eType ) - || ( WINDOW_NUMERICFIELD == eType ) - || ( WINDOW_PATTERNFIELD == eType ) - || ( WINDOW_CURRENCYFIELD == eType ) - ) + Edit* pEditWindow = dynamic_cast< Edit* >( m_pWindow ); + if ( pEditWindow ) { sal_Bool bReadOnly = sal_True; _rxModel->getPropertyValue( FM_PROP_READONLY ) >>= bReadOnly; |