summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorThomas Lange [tl] <tl@openoffice.org>2010-07-29 13:51:02 +0200
committerThomas Lange [tl] <tl@openoffice.org>2010-07-29 13:51:02 +0200
commit705af29850ea12bd23783ec2a6937a2bb0c25f12 (patch)
tree5ee3453453f6411b7e42423c7e16fc277b266b50 /starmath
parentcdce29a326c834a269b33dff27e74ed34c82c7df (diff)
cws tl83: #i113276# auto-update for right context menu and 'Elements' window fixed
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/dialog.cxx1
-rw-r--r--starmath/source/edit.cxx11
2 files changed, 8 insertions, 4 deletions
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();
}
}