EditCommandList Class

Definition

Line 18 of System.Windows/EditCommand.cm

Constructors & Destructor

public nothrow EditCommandList(TextView* textView_)

Member Functions

public nothrow void AddCommand(EditCommand* command)
public nothrow void BeginGroup()
public nothrow bool CanRedo() const
public nothrow bool CanUndo() const
public nothrow void EndGroup()
public nothrow void Redo()
public nothrow void SetMenuItems(MenuItem* undoMenuItem_, MenuItem* redoMenuItem_)
public nothrow void Undo()
public nothrow void UpdateMenuItems()

Member Variables

private List<UniquePtr<EditCommand>> commands
private int currentIndex
private UniquePtr<GroupCommand> groupCommand
private bool inGroup
private MenuItem* redoMenuItem
private TextView* textView
private MenuItem* undoMenuItem

Constructor& Destructor Details

EditCommandList Constructor

public nothrow EditCommandList(TextView* textView_)

Definition
Line 20 of System.Windows/EditCommand.cm


Member Function Details

AddCommand Member Function

public nothrow void AddCommand(EditCommand* command)

Definition
Line 56 of System.Windows/EditCommand.cm


BeginGroup Member Function

public nothrow void BeginGroup()

Definition
Line 98 of System.Windows/EditCommand.cm


CanRedo Member Function

public nothrow bool CanRedo()

Definition
Line 33 of System.Windows/EditCommand.cm


CanUndo Member Function

public nothrow bool CanUndo()

Definition
Line 29 of System.Windows/EditCommand.cm


EndGroup Member Function

public nothrow void EndGroup()

Definition
Line 103 of System.Windows/EditCommand.cm


Redo Member Function

public nothrow void Redo()

Definition
Line 88 of System.Windows/EditCommand.cm


SetMenuItems Member Function

public nothrow void SetMenuItems(MenuItem* undoMenuItem_, MenuItem* redoMenuItem_)

Definition
Line 23 of System.Windows/EditCommand.cm


Undo Member Function

public nothrow void Undo()

Definition
Line 78 of System.Windows/EditCommand.cm


UpdateMenuItems Member Function

public nothrow void UpdateMenuItems()

Definition
Line 37 of System.Windows/EditCommand.cm