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

#include <IActionContextChecker.h>

Inheritance diagram for IActionContextChecker:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IACTIONCONTEXTCHECKER }
 

Public Member Functions

virtual bool16 AllowActionToRun (ActionID actionID, uint32 enablingType)=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

This interface exists to allow some actions which are usually disabled when a modal dialog is displayed to be enabled in certain cases. Usually the action manager automatically disables all actions which do not specify kEnableEvenDuringDialogs. When InCopy is running, it will first look for an IActionContextChecker interface on the current shortcut context, and call AllowActionToRun to see if the action should be enabled.

See Also
IShortcutContext

Member Enumeration Documentation

anonymous enum

Default IID to make UseDefaultIID()) work

Member Function Documentation

virtual bool16 IActionContextChecker::AllowActionToRun (ActionID actionID,
uint32 enablingType 
)
pure virtual

Check if this action should get to run. Gets passed the actionID of the action in question, and it's enabling type.