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

Public Member Functions

 HiDPIActionComponent (IPMUnknown *boss)
 
void DoAction (IActiveContext *ac, ActionID actionID, GSysPoint mousePoint=kInvalidMousePoint, IPMUnknown *widget=nil)
 
- 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 }
 

Member Function Documentation

void HiDPIActionComponent::DoAction (IActiveContextac,
ActionID actionID,
GSysPoint mousePoint = kInvalidMousePoint,
IPMUnknownwidget = nil 
)
virtual

The action component should do the requested action. Note this will never be called except when the action is enabled.

Parameters
acpointer to the active context
actionIDidentifies which action this action component should perform
mousePointcontains the global mouse location at time of event causing action (e.g. context menus). kInvalidMousePoint if not known or relevant.
widgetcontains the widget that invoked this action. May be nil. e.g. Useful to use as a basis for Utils<IWidgetUtils>()->QueryRelatedWidget(...) to find widgets in a panel after its popup menu is hit. NB: Don't assume it's a widget from your panel (menu scripting may access any menu at any time).

Implements IActionComponent.