InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
SnapActionComponent Class Reference
Inheritance diagram for SnapActionComponent:
CActionComponentIActionComponentIPMUnknown

Public Member Functions

 SnapActionComponent (IPMUnknown *boss)
 
virtual void DoAction (IActiveContext *ac, ActionID actionID, GSysPoint mousePoint, IPMUnknown *widget)
 
- Public Member Functions inherited from CActionComponent
 CActionComponent (IPMUnknown *boss)
 
virtual ~CActionComponent ()
 
virtual void UpdateActionStates (IActiveContext *ac, IActionStateList *listToUpdate, GSysPoint mousePoint, IPMUnknown *widget)
 

Additional Inherited Members

- Public Types inherited from IActionComponent
enum  { kDefaultIID = IID_IACTIONCOMPONENT }
 

Detailed Description

SnapActionComponent implements the actions that are executed when the plug-in's menu items are selected.

Constructor & Destructor Documentation

Binds the C implementation class onto its ImplementationID making the C code callable by the application * SnapActionComponent::SnapActionComponent (IPMUnknownboss)

Constructor.

Parameters
bossinterface ptr from boss object on which this interface is aggregated.

Member Function Documentation

void SnapActionComponent::DoAction (IActiveContextac,
ActionID actionID,
GSysPoint mousePoint,
IPMUnknownwidget 
)
virtual

Called by the framework when the action is to be performed.

Parameters
accontext in which action is to be performed.
actionIDidentifies the action that was selected.
mousePointcontains the global mouse location at time of event causing action (e.g. context menus). kInvalidMousePoint if not relevant.

Implements IActionComponent.