SECEditCompositeCommand Class

class SECEditCompositeCommand: public MvcCommand

SECEditCompositeCommand represents an ordered group of SECEditCommands. Although this class derives from MvcCommand , executing or unexecuting an SECEditCompositeCommand causes all referenced commands held in its list of commands to be executed or unexecuted as a group and in the proper order.

Defined in: SECEditCompositeCommand.h

Class Members

Construction / destruction

EDIT_API SECEditCompositeCommand()

Constructor.

Attributes

EDIT_API virtual int GetCmdCount() const

Retrieves the number of command objects in this composite command.

EDIT_API virtual unsigned int GetTypeID() const

Retrieves the type id for this command.

EDIT_API virtual BOOL IsUndoable()

Queries the undo state for this composite command.

Operations

EDIT_API virtual void DispatchCmds(sfl::IMvcSubject* pSubject, sfl::IMvcObserver* pObserver)

Called to Dispatch all of its commands to the OnUpdate handlers.

EDIT_API virtual void Sprint(CString& strCmd)

Formats descriptive information about this command to a CString.

EDIT_API virtual BOOL Unexecute()

Unexecutes all commands.

EDIT_API virtual BOOL Execute()

Executes all commands.

EDIT_API virtual BOOL AddCommand(sfl::MvcCommand* pCommand)

Adds a command to the list of commands.

Implementation

EDIT_API virtual BOOL IsCommandUnique(sfl::MvcCommand* pCommand)

Queries whether a command is unique to all other commands in the composite command.

Protected data members

CTypedPtrList<CPtrList, sfl::MvcCommand*> m_CmdList

The list of commands in this composite command.