From c905425451f756e070a2f0991892d397ba84ed24 Mon Sep 17 00:00:00 2001 From: gustav_b Date: Thu, 29 Mar 2007 23:02:20 +0000 Subject: Notify UndoStackObservers on commited incomplete transactions and sp_document_{undo,redo}_clear, see #1684042. (bzr r2780) --- src/composite-undo-stack-observer.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'src/composite-undo-stack-observer.h') diff --git a/src/composite-undo-stack-observer.h b/src/composite-undo-stack-observer.h index 7e45ccae4..e24561ace 100644 --- a/src/composite-undo-stack-observer.h +++ b/src/composite-undo-stack-observer.h @@ -85,6 +85,26 @@ public: this->_observer.notifyUndoCommitEvent(log); } + /** + * Issue a clear undo event to the UndoStackObserver + * that is associated with this + * UndoStackObserverRecord. + */ + void issueClearUndo() + { + this->_observer.notifyClearUndoEvent(); + } + + /** + * Issue a clear redo event to the UndoStackObserver + * that is associated with this + * UndoStackObserverRecord. + */ + void issueClearRedo() + { + this->_observer.notifyClearRedoEvent(); + } + private: UndoStackObserver& _observer; }; @@ -134,6 +154,9 @@ public: */ void notifyUndoCommitEvent(Event* log); + virtual void notifyClearUndoEvent(); + virtual void notifyClearRedoEvent(); + private: // Remove an observer from a given list bool _remove_one(UndoObserverRecordList& list, UndoStackObserver& rec); -- cgit v1.2.3