index cd17c467575ca2415c89d0fb8d5db2b78658c3fc..5bf405f7f290f210d3695c2e1d0d155b2ac80ea4 100644 (file)
#ifndef __UNDO_COMMIT_OBSERVER_H__
#define __UNDO_COMMIT_OBSERVER_H__
+#include "gc-managed.h"
+
namespace Inkscape {
class Event;
* UndoStackObservers should not be used on their own. Instead, they should be registered
* with a CompositeUndoStackObserver.
*/
-class UndoStackObserver {
+class UndoStackObserver : public GC::Managed<> {
public:
UndoStackObserver() { }
virtual ~UndoStackObserver() { }
* \param log Pointer to an Event describing the committed events.
*/
virtual void notifyUndoCommitEvent(Event* log) = 0;
+
+ /**
+ * Triggered when the undo log is cleared.
+ */
+ virtual void notifyClearUndoEvent() = 0;
+
+ /**
+ * Triggered when the redo log is cleared.
+ */
+ virtual void notifyClearRedoEvent() = 0;
+
};
}