diff options
author | Luke Dixon <6b8b4567@gmail.com> | 2011-02-15 22:46:54 +0000 |
---|---|---|
committer | Jonas Finnemann Jensen <jopsen@gmail.com> | 2011-02-16 08:39:11 +0100 |
commit | f91683cd4171531c2a27aa8904588eacb97f9673 (patch) | |
tree | 8fba01b50dec890771c212c91a7c31a6c9518a46 /starmath | |
parent | 8136f43382accc8dc7f50d01eee34a3f36ca145c (diff) |
Make Undo & Redo work with the visual formula editor
and update todo list.
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/cursor.cxx | 3 | ||||
-rw-r--r-- | starmath/source/document.cxx | 1 | ||||
-rw-r--r-- | starmath/visual-editor-todo | 13 |
3 files changed, 9 insertions, 8 deletions
diff --git a/starmath/source/cursor.cxx b/starmath/source/cursor.cxx index 8685ee5757..e9eb200488 100644 --- a/starmath/source/cursor.cxx +++ b/starmath/source/cursor.cxx @@ -1461,7 +1461,8 @@ void SmCursor::EndEdit(){ SmNodeToTextVisitor(pTree, formula); //pTree->CreateTextFromNode(formula); pDocShell->aText = formula; - pDocShell->GetEditEngine().SetText(formula); + pDocShell->GetEditEngine().QuickInsertText( formula, ESelection( 0, 0, EE_PARA_ALL, EE_PARA_ALL ) ); + pDocShell->GetEditEngine().QuickFormatDoc(); } void SmCursor::RequestRepaint(){ diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx index d98c406f71..eddbe9b91c 100644 --- a/starmath/source/document.cxx +++ b/starmath/source/document.cxx @@ -1174,6 +1174,7 @@ void SmDocShell::Execute(SfxRequest& rReq) (pTmpUndoMgr->*fnDo)( 0 ); } Repaint(); + UpdateText(); SfxViewFrame* pFrm = SfxViewFrame::GetFirst( this ); while( pFrm ) { diff --git a/starmath/visual-editor-todo b/starmath/visual-editor-todo index b19c1e7b77..3be3fd2fa4 100644 --- a/starmath/visual-editor-todo +++ b/starmath/visual-editor-todo @@ -36,10 +36,9 @@ Complex Complex and non-essential ------------------------- -1. Global clipboard integration -2. Support undo/redo with UndoManager integration -3. Consider improving GUI for "Formula Elements"-dialog, most buttons work with visual editor -4. Consider allowing users to enter commands in visual editor, by prefixing the command... -5. Optimize things, for instance SmCursor::AnnotateSelection() is called way too many places... -6. Improve handling of MoveUp and MoveDown in SmCursor::Move, SmCaretPos2LineVisitor might need improvement. -7. Synchronized command text caret and visual editor caret. +* Global clipboard integration +* Consider improving GUI for "Formula Elements"-dialog, most buttons work with visual editor +* Consider allowing users to enter commands in visual editor, by prefixing the command... +* Optimize things, for instance SmCursor::AnnotateSelection() is called way too many places... +* Improve handling of MoveUp and MoveDown in SmCursor::Move, SmCaretPos2LineVisitor might need improvement. +* Synchronized command text caret and visual editor caret. |