From 705af29850ea12bd23783ec2a6937a2bb0c25f12 Mon Sep 17 00:00:00 2001 From: "Thomas Lange [tl]" Date: Thu, 29 Jul 2010 13:51:02 +0200 Subject: cws tl83: #i113276# auto-update for right context menu and 'Elements' window fixed --- starmath/source/dialog.cxx | 1 + starmath/source/edit.cxx | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'starmath') diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx index 6067daa797dc..0dc58c8ed640 100644 --- a/starmath/source/dialog.cxx +++ b/starmath/source/dialog.cxx @@ -1485,6 +1485,7 @@ IMPL_LINK( SmSymbolDialog, GetClickHdl, Button *, EMPTYARG pButton ) { XubString aText ('%'); aText += pSym->GetName(); + aText += (sal_Unicode)' '; rViewSh.GetViewFrame()->GetDispatcher()->Execute( SID_INSERTTEXT, SFX_CALLMODE_STANDARD, diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx index fe849a36e358..020376c05dfb 100644 --- a/starmath/source/edit.cxx +++ b/starmath/source/edit.cxx @@ -251,10 +251,8 @@ IMPL_LINK( SmEditWindow, ModifyTimerHdl, Timer *, EMPTYARG /*pTimer*/ ) { SmModule *pp = SM_MOD(); if (pp->GetConfig()->IsAutoRedraw()) - { Flush(); - aModifyTimer.Stop(); - } + aModifyTimer.Stop(); return 0; } @@ -282,6 +280,7 @@ IMPL_LINK(SmEditWindow, CursorMoveTimerHdl, Timer *, EMPTYARG /*pTimer*/) aOldSelection = aNewSelection; } } + aCursorMoveTimer.Stop(); return 0; } @@ -438,7 +437,7 @@ void SmEditWindow::KeyInput(const KeyEvent& rKEvt) SmViewShell *pView = GetView(); if ( pView && !pView->KeyInput(rKEvt) ) { - /* fuert bei F1 (Hilfe) zum Zerstoeren von this! */ + /* fuert bei F1 (Hilfe) zum Zerstoeren von this! */ Flush(); if ( aModifyTimer.IsActive() ) aModifyTimer.Stop(); @@ -737,6 +736,9 @@ void SmEditWindow::InsertCommand(USHORT nCommand) pEditView->SetSelection(aSelection); } + aModifyTimer.Start(); + aCursorMoveTimer.Start(); + GrabFocus(); } } @@ -923,6 +925,7 @@ void SmEditWindow::InsertText(const String& Text) { pEditView->InsertText(Text); aModifyTimer.Start(); + aCursorMoveTimer.Start(); } } -- cgit