InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ICommandMgr Class Referenceabstract

#include <ICommandMgr.h>

Inheritance diagram for ICommandMgr:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_ICOMMANDMGR }
 

Public Member Functions

virtual void Do (ICommand *cmd)=0
 
virtual void ExecuteImmediate (ICommand *cmd)=0
 
virtual void ExecuteDynamic (ICommand *cmd)=0
 
virtual void DiscardedHistorySteps ()=0
 
virtual void StartHistorySequence ()=0
 
virtual void AddedHistoryStep ()=0
 
virtual void UndidHistorySteps ()=0
 
virtual void RedidHistorySteps ()=0
 
virtual void EndHistorySequence ()=0
 
virtual IDataBaseGetTargetDB () const =0
 
virtual void SetTargetDB (IDataBase *db)=0
 
virtual bool16 SetUndoSupport (bool16 on)=0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

Targets an an InDesign database (see IDataBase) and executes commands on it; you should not need to call any methods of this interface from client code, to process commands use CmdUtils.

See Also
CmdUtils
ICommand
IDataBase
ICmdHistory

Member Function Documentation

virtual void ICommandMgr::AddedHistoryStep ()
pure virtual

Direct notification to the commandmgr that a history step was added

virtual void ICommandMgr::DiscardedHistorySteps ()
pure virtual

direct notifications that tell the commandmgr about changes to its cmdhistory

virtual void ICommandMgr::Do (ICommandcmd)
pure virtual

Execute the cmd

virtual void ICommandMgr::EndHistorySequence ()
pure virtual

Direct notification to the commandmgr to end a history sequence

virtual void ICommandMgr::ExecuteDynamic (ICommandcmd)
pure virtual

DEPRICATED Avoid using this function if possible - this is legacy and is deprecated. Execute the cmd dynamically

virtual void ICommandMgr::ExecuteImmediate (ICommandcmd)
pure virtual

Execute the cmd immediately

virtual IDataBase* ICommandMgr::GetTargetDB () const
pure virtual

Get the database of the commandmgr

virtual void ICommandMgr::RedidHistorySteps ()
pure virtual

Direct notification to the commandmgr that history steps were redone

virtual void ICommandMgr::SetTargetDB (IDataBasedb)
pure virtual

Set the database of the commandmgr

virtual bool16 ICommandMgr::SetUndoSupport (bool16 on)
pure virtual

For internal use only

virtual void ICommandMgr::StartHistorySequence ()
pure virtual

Direct notification to the commandmgr to start a history sequence

virtual void ICommandMgr::UndidHistorySteps ()
pure virtual

Direct notification to the commandmgr that history steps were undone