InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CommandFactory< CreateCmd, EditCmd, DeleteCmd, DeferredScrapCmd > Class Template Reference

#include <CommandFactory.h>

Inheritance diagram for CommandFactory< CreateCmd, EditCmd, DeleteCmd, DeferredScrapCmd >:
CPMUnknown< ICommandFactory >ICommandFactoryIPMUnknown

Public Member Functions

 CommandFactory (IPMUnknown *boss)
 
virtual ~CommandFactory ()
 
virtual ICommandCreateCreateCommand () const
 
virtual ICommandCreateEditCommand () const
 
virtual ICommandCreateDeleteCommand () const
 
virtual ICommandCreateDeferredScrapCommand () const
 
- Public Member Functions inherited from CPMUnknown< ICommandFactory >
IPMUnknownQueryInterface (PMIID interfaceID) const
 
void AddRef () const
 
void Release () const
 
void PreDirty (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue)
 
void PreDirtyNoMessage (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue)
 
 CPMUnknown (const CPMUnknown &)=delete
 
CPMUnknownoperator= (const CPMUnknown &)=delete
 

Additional Inherited Members

- Public Types inherited from ICommandFactory
enum  { kDefaultIID = IID_ICOMMANDFACTORY }
 
- Protected Member Functions inherited from CPMUnknown< ICommandFactory >
 CPMUnknown (IPMUnknown *boss)
 
- Protected Attributes inherited from CPMUnknown< ICommandFactory >
HelperInterface fHelperInterface
 

Detailed Description

template<int32 CreateCmd, int32 EditCmd, int32 DeleteCmd, int32 DeferredScrapCmd>
class CommandFactory< CreateCmd, EditCmd, DeleteCmd, DeferredScrapCmd >

CommandFactory is a template that can be used to declare a command factory for interactive behaviors. When a new interactive behavior is created there must be a command factory declared.

Constructor & Destructor Documentation

template<int32 CreateCmd, int32 EditCmd, int32 DeleteCmd, int32 DeferredScrapCmd>
CommandFactory< CreateCmd, EditCmd, DeleteCmd, DeferredScrapCmd >::CommandFactory(IPMUnknownboss)
inline

CommandFactory constructor

Parameters
boss
template<int32 CreateCmd, int32 EditCmd, int32 DeleteCmd, int32 DeferredScrapCmd>
virtual CommandFactory< CreateCmd, EditCmd, DeleteCmd, DeferredScrapCmd >::~CommandFactory()
inlinevirtual

CommandFactory destructor

Member Function Documentation

template<int32 CreateCmd, int32 EditCmd, int32 DeleteCmd, int32 DeferredScrapCmd>
virtual ICommand* CommandFactory< CreateCmd, EditCmd, DeleteCmd, DeferredScrapCmd >::CreateCreateCommand () const
inlinevirtual

CreateCreateCommand creates a creation command

Returns
the command.

Implements ICommandFactory.

template<int32 CreateCmd, int32 EditCmd, int32 DeleteCmd, int32 DeferredScrapCmd>
virtual ICommand* CommandFactory< CreateCmd, EditCmd, DeleteCmd, DeferredScrapCmd >::CreateDeferredScrapCommand () const
inlinevirtual

CreateCreateCommand creates a deffered scrap command

Returns
the command.

Implements ICommandFactory.

template<int32 CreateCmd, int32 EditCmd, int32 DeleteCmd, int32 DeferredScrapCmd>
virtual ICommand* CommandFactory< CreateCmd, EditCmd, DeleteCmd, DeferredScrapCmd >::CreateDeleteCommand () const
inlinevirtual

CreateCreateCommand creates a delete command

Returns
the command.

Implements ICommandFactory.

template<int32 CreateCmd, int32 EditCmd, int32 DeleteCmd, int32 DeferredScrapCmd>
virtual ICommand* CommandFactory< CreateCmd, EditCmd, DeleteCmd, DeferredScrapCmd >::CreateEditCommand () const
inlinevirtual

CreateCreateCommand creates an edit command

Returns
the command.

Implements ICommandFactory.