diff options
author | Niklas Nebel <nn@openoffice.org> | 2002-04-17 10:39:42 +0000 |
---|---|---|
committer | Niklas Nebel <nn@openoffice.org> | 2002-04-17 10:39:42 +0000 |
commit | 2424032a715571fd7f55a898a1852852efd2e920 (patch) | |
tree | 021d63e61230ad112ff2d2c279ebb1e6b4a09410 | |
parent | 26c44586cc72e854f556a0703c29306d2bf11f22 (diff) |
#95409# UseColData: when editing in input line, apply to both edit views
-rw-r--r-- | sc/source/ui/app/inputhdl.cxx | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx index 570d62465f8f..a2c1761583a8 100644 --- a/sc/source/ui/app/inputhdl.cxx +++ b/sc/source/ui/app/inputhdl.cxx @@ -2,9 +2,9 @@ * * $RCSfile: inputhdl.cxx,v $ * - * $Revision: 1.32 $ + * $Revision: 1.33 $ * - * last change: $Author: nn $ $Date: 2002-04-05 19:19:10 $ + * last change: $Author: nn $ $Date: 2002-04-17 11:39:42 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -994,12 +994,22 @@ void ScInputHandler::UseColData() // beim Tippen ULONG nEdLen = pEngine->GetTextLen() + nParCnt - 1; String aIns = aNew.Copy( (xub_StrLen)nEdLen ); - // Selektion muss "verkehrtherum" sein, damit der Cursor hinter - // dem eingegebenen Zeichen steht: - pActiveView->InsertText( aIns, FALSE ); - pActiveView->SetSelection( ESelection( - aSel.nEndPara, aSel.nEndPos + aIns.Len(), - aSel.nEndPara, aSel.nEndPos ) ); + // selection must be "backwards", so the cursor stays behind the last + // typed character + ESelection aSelection( aSel.nEndPara, aSel.nEndPos + aIns.Len(), + aSel.nEndPara, aSel.nEndPos ); + + // when editing in input line, apply to both edit views + if ( pTableView ) + { + pTableView->InsertText( aIns, FALSE ); + pTableView->SetSelection( aSelection ); + } + if ( pTopView ) + { + pTopView->InsertText( aIns, FALSE ); + pTopView->SetSelection( aSelection ); + } aAutoSearch = aText; // zum Weitersuchen - nAutoPos ist gesetzt |