diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-08-19 08:55:12 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-08-19 08:55:12 +0000 |
commit | 021f83e43594e585359ac3ad29c9282ba953b5d5 (patch) | |
tree | d32004912faa6658ad3e1473092a5bd9471dcb74 /dbaccess/source/ui | |
parent | 40de2c47cdd70351ec4b49937b82524140128946 (diff) |
INTEGRATION: CWS dba31a (1.85.22); FILE MERGED
2008/07/04 20:10:50 fs 1.85.22.1: #i66628# functionality of RowChanged/ColChanged moved to base class
Diffstat (limited to 'dbaccess/source/ui')
-rw-r--r-- | dbaccess/source/ui/browser/sbagrid.cxx | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/dbaccess/source/ui/browser/sbagrid.cxx b/dbaccess/source/ui/browser/sbagrid.cxx index bc506ea0d..b7d93c96a 100644 --- a/dbaccess/source/ui/browser/sbagrid.cxx +++ b/dbaccess/source/ui/browser/sbagrid.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: sbagrid.cxx,v $ - * $Revision: 1.85 $ + * $Revision: 1.86 $ * * This file is part of OpenOffice.org. * @@ -939,8 +939,6 @@ SbaGridControl::SbaGridControl(Reference< XMultiServiceFactory > _rM, :FmGridControl(_rM,pParent, _pPeer, nBits) ,m_pMasterListener(NULL) ,m_nAsyncDropEvent(0) - ,m_nLastColId((USHORT)-1) - ,m_nLastRowId(-1) ,m_nCurrentActionColId((USHORT)-1) ,m_bActivatingForDrop(sal_False) { @@ -1168,13 +1166,6 @@ void SbaGridControl::Select() void SbaGridControl::CursorMoved() { FmGridControl::CursorMoved(); - if (m_nLastRowId != GetCurRow()) - RowChanged(); - if (m_nLastColId != GetCurColumnId()) - ColChanged(); - - m_nLastColId = GetCurColumnId(); - m_nLastRowId = (sal_uInt16)GetCurRow(); } //--------------------------------------------------------------------------------------- @@ -1194,18 +1185,19 @@ void SbaGridControl::DeactivateCell(sal_Bool bUpdate /*= sal_True*/) } //--------------------------------------------------------------------------------------- -void SbaGridControl::RowChanged() +void SbaGridControl::onRowChange() { - if (m_pMasterListener) + if ( m_pMasterListener ) m_pMasterListener->RowChanged(); } //--------------------------------------------------------------------------------------- -void SbaGridControl::ColChanged() +void SbaGridControl::onColumnChange() { - if (m_pMasterListener) + if ( m_pMasterListener ) m_pMasterListener->ColumnChanged(); } + //--------------------------------------------------------------------------------------- void SbaGridControl::BeforeDrop() { |