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

Public Member Functions

 DCLSizActionComponent (IPMUnknown *boss)
 
virtual void DoAction (IActiveContext *ac, ActionID actionID, GSysPoint mousePoint, IPMUnknown *widget)
 
virtual void UpdateActionStates (IActiveContext *ac, IActionStateList *listToUpdate, 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.

Constructor & Destructor Documentation

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

Constructor.

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

Member Function Documentation

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

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

Parameters
acpoints to the current 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 relevant.
widgetcontains the widget that invoked this action. May be nil.

Implements IActionComponent.

void DCLSizActionComponent::UpdateActionStates (IActiveContextac,
IActionStateListlistToUpdate,
GSysPoint mousePoint,
IPMUnknownwidget 
)
virtual

Called when the action component is asked to update a list of actions to the proper state. This method is required to be overridden by subclasses only if there are action components with kCustomEnabling specified.

The list of actions is initially disabled and unselected, so it only has to be changed if this state is not correct. Note that action components are never asked to update actions that don't belong to them, or actions they have not specified kCustomEnabling for.

Parameters
acpoints to the current active context
listToUpdatecontains the items that client code should update the state for
mousePointcontains the global mouse location at time of event causing action (e.g. context menus). kInvalidMousePoint if not relevant.
widgetcontains the widget that invoked this action. May be nil.

Reimplemented from CActionComponent.