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

Public Member Functions

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

Additional Inherited Members

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

Detailed Description

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

Implements IActionComponent based on the partial implementation CActionComponent.

Constructor & Destructor Documentation

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

Constructor.

Parameters
bossinterface ptr from boss object on which this interface is aggregated.
DataUpdaterUIActionComponent::~DataUpdaterUIActionComponent ()

destructor.

Member Function Documentation

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

The action component should do the requested action. This is where the menu item's action is taken.

Parameters
ac[IN] specifies context for menu action.
actionID[IN] identifies which action this action component should perform.
mousePoint[IN] contains the global mouse location at time of event-causing action (e.g. context menus). kInvalidMousePoint if not relevant.
widget[IN] contains 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.

Implements IActionComponent.

void DataUpdaterUIActionComponent::UpdateActionStates (IActiveContextac,
IActionStateListlistToUpdate,
GSysPoint mousePoint = kInvalidMousePoint,
IPMUnknownwidget = nil 
)
virtual

Enables or disables actions, see CActionComponent::UpdateActionStates.

Reimplemented from CActionComponent.