![]() | InDesign SDK 20.5 |
#include <IEventHandler.h>

Public Types | |
| enum | { kDefaultIID = IID_IEVENTHANDLER } |
Public Member Functions | |
| virtual bool16 | Activate (IEvent *e)=0 |
| virtual bool16 | Deactivate (IEvent *e)=0 |
| virtual bool16 | Suspend (IEvent *e)=0 |
| virtual bool16 | Resume (IEvent *e)=0 |
| virtual bool16 | MouseMove (IEvent *e)=0 |
| virtual bool16 | MouseExit (IEvent *e)=0 |
| virtual bool16 | MouseDrag (IEvent *e)=0 |
| virtual bool16 | LButtonDn (IEvent *e)=0 |
| virtual bool16 | RButtonDn (IEvent *e)=0 |
| virtual bool16 | MButtonDn (IEvent *e)=0 |
| virtual bool16 | LButtonUp (IEvent *e)=0 |
| virtual bool16 | RButtonUp (IEvent *e)=0 |
| virtual bool16 | MButtonUp (IEvent *e)=0 |
| virtual bool16 | ButtonDblClk (IEvent *e)=0 |
| virtual bool16 | ButtonTrplClk (IEvent *e)=0 |
| virtual bool16 | ButtonQuadClk (IEvent *e)=0 |
| virtual bool16 | ButtonQuintClk (IEvent *e)=0 |
| virtual bool16 | MouseWheel (IEvent *e)=0 |
| virtual bool16 | TabletEvent (IEvent *e)=0 |
| virtual bool16 | GestureEvent (IEvent *e)=0 |
| virtual bool16 | MultiTouchEvent (IEvent *e)=0 |
| virtual bool16 | ControlCmd (IEvent *e)=0 |
| virtual bool16 | KeyDown (IEvent *e)=0 |
| virtual bool16 | KeyCmd (IEvent *e)=0 |
| virtual bool16 | KeyUp (IEvent *e)=0 |
| virtual void | PreGetKeyFocus ()=0 |
| virtual void | PostGetKeyFocus ()=0 |
| virtual void | PreGiveUpKeyFocus ()=0 |
| virtual void | PostGiveUpKeyFocus ()=0 |
| virtual bool16 | WillingToGiveUpKeyFocus ()=0 |
| virtual bool16 | SuspendKeyFocus ()=0 |
| virtual bool16 | ResumeKeyFocus ()=0 |
| virtual bool16 | CanHaveKeyFocus () const =0 |
| virtual bool16 | WantsTabKeyFocus () const =0 |
| virtual void | SetView (IControlView *view)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Event handler interface.
Defines an interface for handling events. Events themselves are untyped, but are always handled to a specific event-typed handler. The event handling method returns True if the event has been handled and should not be further dispatched. False means that the event will be passed to the next event handler.
| pure virtual |
Window has been activated. Traditional response is to activate the controls in the window.
| e | event of interest |
Implemented in CusDtLnkUITreeNodeEH, PnlTrvNodeEH, DVHostedWidgetEH, CEventHandler, and CWindowEH.
| pure virtual |
Double click with any button.
| e | event of interest |
Implemented in CusDtLnkUITreeNodeEH, PnlTrvNodeEH, CEventHandler, DVHostedWidgetEH, and CWindowEH.
| pure virtual |
Quadruple click with any button.
| e | event of interest |
Implemented in CusDtLnkUITreeNodeEH, PnlTrvNodeEH, CEventHandler, DVHostedWidgetEH, and MenuPopupEventHandler.
| pure virtual |
Quintuple click with any button.
| e | event of interest |
Implemented in CusDtLnkUITreeNodeEH, PnlTrvNodeEH, CEventHandler, DVHostedWidgetEH, and MenuPopupEventHandler.
| pure virtual |
Triple click with any button.
| e | event of interest |
Implemented in CusDtLnkUITreeNodeEH, PnlTrvNodeEH, CEventHandler, DVHostedWidgetEH, MenuPopupEventHandler, and CWindowEH.
| pure virtual |
Determine if this eventhandler can be focus of keyboard event
Implemented in CEventHandler, CusDtLnkUITreeNodeEH, PnlTrvNodeEH, DVHostedWidgetEH, C9PointProxyEH, MenuPopupEventHandler, and DVEditBoxEventHandler.
| pure virtual |
Event for a particular control. Used only on Windows.
| e | event of interest |
Implemented in CusDtLnkUITreeNodeEH, CEventHandler, PnlTrvNodeEH, DVHostedWidgetEH, and CWindowEH.
| pure virtual |
Window has been deactivated. Traditional response is to deactivate the controls in the window.
| e | event of interest |
Implemented in CTrackerEventHandler, CusDtLnkUITreeNodeEH, PnlTrvNodeEH, CEventHandler, DVHostedWidgetEH, and CWindowEH.
| pure virtual |
Keyboard key down that generates a character.
| e | event of interest |
Implemented in CusDtLnkUITreeNodeEH, CEventHandler, PnlTrvNodeEH, CTrackerEventHandler, DVHostedWidgetEH, DVToolControlEventHandler, and CWindowEH.
| pure virtual |
Keyboard key down for every key. Normally you want to override KeyCmd, rather than KeyDown.
| e | event of interest |
Implemented in CusDtLnkUITreeNodeEH, CEventHandler, PnlTrvNodeEH, CTrackerEventHandler, DVHostedWidgetEH, C9PointProxyEH, CelPnlEditBoxEventHandler, MenuPopupEventHandler, DVEditBoxEventHandler, and DVToolControlEventHandler.
| pure virtual |
Keyboard key released.
| e | event of interest |
Implemented in CusDtLnkUITreeNodeEH, CEventHandler, PnlTrvNodeEH, CTrackerEventHandler, DVHostedWidgetEH, DVToolControlEventHandler, and CWindowEH.
| pure virtual |
Left mouse button (or only mouse button) has been pressed.
| e | event of interest |
Implemented in CusDtLnkUITreeNodeEH, PnlTrvNodeEH, CEventHandler, C9PointProxyEH, PicIcoPictureWidgetEH, DVHostedWidgetEH, CTrackerEventHandler, DVEditBoxEventHandler, CusCondTxtIconEventHandler, DVToolControlEventHandler, MenuPopupEventHandler, and HiDPIWidgetEventHandler.
| pure virtual |
Left mouse button released.
| e | event of interest |
Implemented in CusDtLnkUITreeNodeEH, PnlTrvNodeEH, CEventHandler, DVHostedWidgetEH, TableCellEventHandler, CTrackerEventHandler, CWindowEH, MenuPopupEventHandler, and DVToolControlEventHandler.
| pure virtual |
Middle mouse button of a 3 button mouse has been pressed.
| e | event of interest |
Implemented in CusDtLnkUITreeNodeEH, PnlTrvNodeEH, CEventHandler, and DVHostedWidgetEH.
| pure virtual |
Middle mouse button released.
| e | event of interest |
Implemented in CusDtLnkUITreeNodeEH, PnlTrvNodeEH, CEventHandler, and DVHostedWidgetEH.
| pure virtual |
User is holding down the mouse button and dragging the mouse.
| e | event of interest |
Implemented in CusDtLnkUITreeNodeEH, PnlTrvNodeEH, CEventHandler, CTrackerEventHandler, DVHostedWidgetEH, and CWindowEH.
| pure virtual |
Mouse has exited the current control's bounds.
| e | event of interest |
Implemented in CEventHandler, and DVHostedWidgetEH.
| pure virtual |
Mouse has moved outside the sensitive region.
| e | event of interest |
Implemented in CusDtLnkUITreeNodeEH, PnlTrvNodeEH, CEventHandler, DVHostedWidgetEH, and CWindowEH.
| pure virtual |
Mouse wheel moved
| e | event of interest |
Implemented in CusDtLnkUITreeNodeEH, PnlTrvNodeEH, CEventHandler, CTrackerEventHandler, and DVHostedWidgetEH.
| pure virtual |
MultiTouchEvents events New for CC
| e | event of interest |
Implemented in CEventHandler, and DVHostedWidgetEH.
| pure virtual |
Called after getting focus onto the associated widget/window
| none |
Implemented in CEventHandler, C9PointProxyEH, DVHostedWidgetEH, and DVEditBoxEventHandler.
| pure virtual |
Called after giving up focus onto the associated widget/window
| none |
Implemented in CEventHandler, C9PointProxyEH, DVHostedWidgetEH, and DVEditBoxEventHandler.
| pure virtual |
Called before getting focus onto the associated widget/window
| none |
Implemented in CusDtLnkUITreeNodeEH, CEventHandler, PnlTrvNodeEH, and DVHostedWidgetEH.
| pure virtual |
Called before giving up focus onto the associated widget/window
| none |
Implemented in CEventHandler, CusDtLnkUITreeNodeEH, PnlTrvNodeEH, and DVHostedWidgetEH.
| pure virtual |
Right mouse button (or second button) has been pressed.
| e | event of interest |
Implemented in CusDtLnkUITreeNodeEH, CTrackerEventHandler, PnlTrvNodeEH, CEventHandler, and DVHostedWidgetEH.
| pure virtual |
Right mouse button released.
| e | event of interest |
Implemented in CusDtLnkUITreeNodeEH, PnlTrvNodeEH, CTrackerEventHandler, CEventHandler, and DVHostedWidgetEH.
| pure virtual |
Application has been resumed. Control is passed back to the application from another application.
| e | event of interest |
Implemented in CusDtLnkUITreeNodeEH, PnlTrvNodeEH, CEventHandler, and DVHostedWidgetEH.
| pure virtual |
The keyboard has been handed back.
Implemented in CEventHandler, CusDtLnkUITreeNodeEH, PnlTrvNodeEH, and DVHostedWidgetEH.
| pure virtual |
Temporary.
Implemented in CEventHandler, CusDtLnkUITreeNodeEH, PnlTrvNodeEH, and DVHostedWidgetEH.
| pure virtual |
Application has been suspended. Control is passed to another application.
| e | event of interest |
Implemented in CTrackerEventHandler, CusDtLnkUITreeNodeEH, PnlTrvNodeEH, CEventHandler, and DVHostedWidgetEH.
| pure virtual |
The keyboard focus if going to be taken offis temporarily being taken away. Remember enough state to resume where you left off.
Implemented in CEventHandler, CusDtLnkUITreeNodeEH, PnlTrvNodeEH, and DVHostedWidgetEH.
| pure virtual |
Tablet and Gesture events New for CC, previously these would come through PlatformEvent
| e | event of interest |
Implemented in CEventHandler, and DVHostedWidgetEH.
| pure virtual |
Return kTrue if this event handler wants to get keyboard focus while tabbing through widgets. Note: For almost all event handlers CanHaveKeyFocus and WantsTabKeyFocus will return the same value. If WantsTabKeyFocus returns kTrue then CanHaveKeyFocus should also return kTrue for the event handler to actually get keyboard focus. If WantsTabKeyFocus returns kFalse then the event handler is skipped.
Implemented in CEventHandler, CusDtLnkUITreeNodeEH, PnlTrvNodeEH, DVHostedWidgetEH, and DVEditBoxEventHandler.
| pure virtual |
Typically called before the keyfocus is taken from the widget/window is called. Return kFalse to hold onto the keyboard focus.
Implemented in CEventHandler, CusDtLnkUITreeNodeEH, PnlTrvNodeEH, DVHostedWidgetEH, and DVEditBoxEventHandler.