InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPageItemEventAction Class Referenceabstract

#include <IPageItemEventAction.h>

Inheritance diagram for IPageItemEventAction:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IPAGEITEMEVENTACTION }
 

Public Member Functions

virtual bool16 ButtonDblClk (IEvent *e)=0
 
virtual bool16 ButtonTrplClk (IEvent *e)=0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

Command-Handler Interface for AutoLayout, provides an interface for page-items to respond to certain events. It is similar to EventHandler but it sits in special PageItem bosses (instead of widgets) and only responds to certain events. (In fact this interface is introduced for double click on pageitems only, define it this way just for extensibility consideration. ) It does intend to replace or handle these events.

The event on pageitems is caught by LayoutEventHandler(IEvent *pEvent), which will ask ILayoutControlViewHelper to QueryHitTestPageItemNew and get the pageitem. From the pageitem get this Interface to do any actions.

See also IEventHandler.h

Member Function Documentation

virtual bool16 IPageItemEventAction::ButtonDblClk (IEvente)
pure virtual

Double click the page item.

Parameters
eevent of interest
Returns
kTrue if event has been handled and should not be further dispatched, kFalse otherwise (pass event to next handler), normally we should return kFalse unless we called EventHandler and that return kTrue(handled)
virtual bool16 IPageItemEventAction::ButtonTrplClk (IEvente)
pure virtual

Triple click with any button.

Parameters
eevent of interest
Returns
kTrue if event has been handled and should not be further dispatched, kFalse otherwise (pass event to next handler)