![]() | InDesign SDK 20.5 |
#include <ICommandInterceptor.h>

Public Types | |
| enum | { kDefaultIID = IID_ICOMMANDINTERCEPTOR } |
| enum | InterceptResult { kCmdNotHandled, kCmdNotHandledSkipInterceptors, kCmdHandled } |
Public Member Functions | |
| virtual InterceptResult | InterceptProcessCommand (ICommand *cmd)=0 |
| virtual InterceptResult | InterceptScheduleCommand (ICommand *cmd)=0 |
| virtual InterceptResult | InterceptExecuteDynamic (ICommand *cmd)=0 |
| virtual void | InstallSelf ()=0 |
| virtual void | DeinstallSelf ()=0 |
| virtual InterceptResult | InterceptExecuteImmediate (ICommand *cmd)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
A CommandInterceptor can be installed at the CommandProcessor in order to intercept any command before it is processed. The Interceptor decides whether the command will processed at all. There can be more than one CommandInterceptor at once. Use with extreme caution from third-party client code.
| pure virtual |
DEPRICATED Avoid using this function if possible - this is legacy and is deprecated.