27 #ifndef __ICMDHISTORY__ 28 #define __ICMDHISTORY__ 30 #include "CommandID.h" 31 #include "IPMUnknown.h" 51 enum { kDefaultIID = IID_ICMDHISTORY };
59 virtual bool16 CanUndo(
const UIDRef &target) = 0;
60 virtual int32 GetUndoStepCount(
const UIDRef &target) = 0;
61 virtual void GetNthUndoStepName(
PMString *text, int32 n,
const UIDRef &target) = 0;
62 virtual ErrorCode Undo(int32 steps,
const UIDRef &target) = 0;
65 virtual bool16 CanRedo(
const UIDRef &target) = 0;
66 virtual int32 GetRedoStepCount(
const UIDRef &target) = 0;
67 virtual void GetNthRedoStepName(
PMString *text, int32 n,
const UIDRef &target) = 0;
68 virtual ErrorCode Redo(int32 steps,
const UIDRef &target) = 0;
71 virtual void Discard(
const UIDRef &target) = 0;
72 virtual void Disable(
const UIDRef &target) = 0;
73 virtual void Enable(
const UIDRef &target) = 0;
74 virtual bool16 BeginPush(int32 numItems) = 0;
75 virtual void Push(
const CmdStackItem &item) = 0;
76 virtual void EndPush() = 0;
77 virtual bool16 Enabled(
const UIDRef &target)
const = 0;
80 virtual bool16 DiscardRedo(
const UIDRef &target) = 0;
83 #endif // __ICMDHISTORY__