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

Public Member Functions

 DynPnMgrActionComponent (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 IActionComponent; responsible for handling the 'new panel' and 'close panel' menu items located on the main plug-ins menu.

Constructor & Destructor Documentation

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

Constructor.

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

Member Function Documentation

void DynPnMgrActionComponent::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. When a menu item is selected, the Menu Manager determines which plug-in is responsible for it, and calls its DoAction with the ID for the menu item chosen.

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
widgetcontains the widget that invoked this action. May be nil.

Implements IActionComponent.

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

Called by the framework to allow items to be enabled or disabled. Custom enabling is used because we don't want to enable the close panel item to be seen where there is no dynamic panel to close.

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
widgetcontains the widget that invoked this action. May be nil.

Reimplemented from CActionComponent.