summaryrefslogtreecommitdiff
path: root/sw/inc/IDocumentUndoRedo.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/inc/IDocumentUndoRedo.hxx')
-rw-r--r--sw/inc/IDocumentUndoRedo.hxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/sw/inc/IDocumentUndoRedo.hxx b/sw/inc/IDocumentUndoRedo.hxx
index d30d4c3aa5a3..6c044f618a5b 100644
--- a/sw/inc/IDocumentUndoRedo.hxx
+++ b/sw/inc/IDocumentUndoRedo.hxx
@@ -27,6 +27,7 @@
class SwRewriter;
class SwNodes;
class SwUndo;
+class SwView;
namespace sw {
class RepeatContext;
@@ -135,10 +136,12 @@ public:
/** Get Id and comment of last Undo action.
@param o_pStr if not 0, receives comment of last Undo action.
@param o_pId if not 0, receives Id of last Undo action.
+ @param pView if not nullptr, get the info for this view
@return true if there is a Undo action, false if none
*/
virtual bool GetLastUndoInfo(OUString *const o_pStr,
- SwUndoId *const o_pId) const = 0;
+ SwUndoId *const o_pId,
+ const SwView* pView = nullptr) const = 0;
/** Get comments of Undo actions.
@return comments of all top-level Undo actions.
@@ -154,10 +157,12 @@ public:
/** Get Id and comment of first Redo action.
@param o_pStr if not 0, receives comment of first Redo action.
@param o_pId if not 0, receives Id of first Redo action.
+ @param pView if not nullptr, get the info for this view
@return true if there is a Redo action, false if none
*/
virtual bool GetFirstRedoInfo(OUString *const o_pStr,
- SwUndoId *const o_pId = nullptr) const = 0;
+ SwUndoId *const o_pId = nullptr,
+ const SwView* pView = nullptr) const = 0;
/** Get comments of Redo actions.
@return comments of all top-level Redo actions.