summaryrefslogtreecommitdiff
path: root/sw/inc/IDocumentUndoRedo.hxx
diff options
context:
space:
mode:
authorMichael Stahl <mst@openoffice.org>2010-12-15 09:14:11 +0100
committerMichael Stahl <mst@openoffice.org>2010-12-15 09:14:11 +0100
commit1ba0c1878116ada5dc4ebdecdb1e0a3da9758547 (patch)
treef05a3cd3b9edf548208503349b23aab3063c8973 /sw/inc/IDocumentUndoRedo.hxx
parentadd33f72ec6c6dbdc8cb11b24c018c8033f9a570 (diff)
undoapi: #i115383#: derive sw::UndoManager from SfxUndoManager:
derive SwUndo from SfxUndoAction. throw away most of docundo.cxx. throw away SwUndoStart and SwUndoEnd. replace SwUndoIter with sw::UndoRedoContext and sw::RepeatContext. SwUndo::GetId() no longer public to prevent abuse. add SwEditShell::HandleUndoRedoContext().
Diffstat (limited to 'sw/inc/IDocumentUndoRedo.hxx')
-rw-r--r--sw/inc/IDocumentUndoRedo.hxx15
1 files changed, 8 insertions, 7 deletions
diff --git a/sw/inc/IDocumentUndoRedo.hxx b/sw/inc/IDocumentUndoRedo.hxx
index 389b12239ee3..d8e4f8827fbb 100644
--- a/sw/inc/IDocumentUndoRedo.hxx
+++ b/sw/inc/IDocumentUndoRedo.hxx
@@ -33,11 +33,14 @@
#include <swundo.hxx>
-class SwUndoIter;
class SwRewriter;
class SwNodes;
class SwUndo;
+namespace sw {
+ class RepeatContext;
+}
+
/** IDocumentUndoRedo
@@ -98,10 +101,9 @@ public:
/** Execute Undo.
- @postcondition rUndoIter.pAktPam will contain the affected range.
@return true if executing the last Undo action was successful.
*/
- virtual bool Undo(SwUndoIter & rUndoIter) = 0; // -> #111827#
+ virtual sal_Bool Undo() = 0;
/** Opens undo block.
@@ -159,10 +161,9 @@ public:
/** Execute Redo.
- @postcondition rUndoIter.pAktPam will contain the affected range.
@return true if executing the first Redo action was successful.
*/
- virtual bool Redo(SwUndoIter & rUndoIter) = 0;
+ virtual sal_Bool Redo() = 0;
/** Get comment of first Redo action.
@param o_pStr if not 0, receives comment of first Redo action.
@@ -178,8 +179,8 @@ public:
/** Repeat the last Undo action.
@return true if repeating the last Undo Redo action was attempted.
*/
- virtual bool Repeat(SwUndoIter & rUndoIter, sal_uInt16 const nRepeatCnt)
- = 0;
+ virtual bool Repeat(::sw::RepeatContext & rContext,
+ sal_uInt16 const nRepeatCnt) = 0;
/** Get Id and comment of last Undo action, if it is Repeat capable.
@param o_pStr if not 0, receives comment of last Undo action