#include <ICommandFactory.h>
|
| enum | { kDefaultIID = IID_ICOMMANDFACTORY } |
| |
Creates commands to manipulate behaviors. There is a corresponding ICommandFactory implemention for each behavior implementation For example, ICommandFactory is an interface on kBehaviorDataBoss and kActionFactoryBoss (a service provider)
- See Also
- CommandFactory
| virtual ICommand* ICommandFactory::CreateCreateCommand | ( | | ) | const |
| pure virtual |
| virtual ICommand* ICommandFactory::CreateDeferredScrapCommand | ( | | ) | const |
| pure virtual |
- Returns
- A command to be executed after the particular behavior is copied.
Such commands are called Fixup*BhvrCmd where * is the name of the behavior Examples are FixupShowHideFieldsBhvrCmd, FixupSoundBhvrCmd If you don't reference other UIDs, you can usually just return kNoOpCmdBoss for this.
Fixup commands (or DeferredScrap Commands) generally look at IXReferenceUID and edit the behavior so that the UIDs that are source refs in IXReferenceUID are changed to the corresponding destination refs
- See Also
- IXReferenceUID, FixupSoundBhvrCmd, FixupShowHideFieldsBhvrCmd
Implemented in CommandFactory< CreateCmd, EditCmd, DeleteCmd, DeferredScrapCmd >.
| virtual ICommand* ICommandFactory::CreateDeleteCommand | ( | | ) | const |
| pure virtual |
| virtual ICommand* ICommandFactory::CreateEditCommand | ( | | ) | const |
| pure virtual |