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

Public Member Functions

 DVEditBoxEventHandler (IPMUnknown *boss)
 
virtual bool16 KeyDown (IEvent *e)
 
virtual bool16 LButtonDn (IEvent *e)
 
virtual void PostGetKeyFocus ()
 
virtual void PostGiveUpKeyFocus ()
 
virtual bool16 CanHaveKeyFocus () const
 
virtual bool16 WillingToGiveUpKeyFocus ()
 
virtual bool16 AttemptApplyEntry ()
 
virtual bool16 ValidateContents ()
 
virtual bool16 WantsTabKeyFocus () const
 
virtual bool16 IsBackSpaceKeyStroke () const
 
- Public Member Functions inherited from DVControlEventHandler
 DVControlEventHandler (IPMUnknown *boss)
 
virtual const char * class_name ()
 
- Public Member Functions inherited from DVHostedWidgetEH
 DVHostedWidgetEH (IPMUnknown *boss)
 
virtual bool16 Activate (IEvent *)
 
virtual bool16 Deactivate (IEvent *)
 
virtual bool16 Suspend (IEvent *)
 
virtual bool16 Resume (IEvent *)
 
virtual bool16 MouseMove (IEvent *)
 
virtual bool16 MouseExit (IEvent *)
 
virtual bool16 MouseDrag (IEvent *)
 
virtual bool16 RButtonDn (IEvent *)
 
virtual bool16 MButtonDn (IEvent *)
 
virtual bool16 LButtonUp (IEvent *)
 
virtual bool16 RButtonUp (IEvent *)
 
virtual bool16 MButtonUp (IEvent *)
 
virtual bool16 ButtonDblClk (IEvent *)
 
virtual bool16 ButtonTrplClk (IEvent *)
 
virtual bool16 ButtonQuadClk (IEvent *)
 
virtual bool16 ButtonQuintClk (IEvent *)
 
virtual bool16 MouseWheel (IEvent *)
 
virtual bool16 TabletEvent (IEvent *)
 
virtual bool16 GestureEvent (IEvent *)
 
virtual bool16 MultiTouchEvent (IEvent *)
 
virtual bool16 BaseHandlePointerEvent (IEvent *)
 
virtual bool16 KeyCmd (IEvent *)
 
virtual bool16 KeyUp (IEvent *)
 
virtual bool16 BaseHandleKeyboardEvent (IEvent *)
 
virtual void PreGetKeyFocus ()
 
virtual void PreGiveUpKeyFocus ()
 
virtual bool16 SuspendKeyFocus ()
 
virtual bool16 ResumeKeyFocus ()
 
virtual bool16 ControlCmd (IEvent *)
 
virtual bool16 Update (IEvent *)
 
virtual bool16 PlatformEvent (IEvent *)
 
virtual bool16 CallSysEventHandler (IEvent *)
 
virtual void SetView (IControlView *)
 

Protected Member Functions

void NotifyObserver (IPMUnknown *pUnknown)
 
IControlViewFindNudgeControl ()
 
virtual bool16 RememberFocusIfInPalette ()
 
void ReplaceSelection (const PMString &replaceWithStr)
 
virtual bool16 IsChanged ()
 

Protected Attributes

bool16 fIsDisplayingAlert
 
bool16 fIMEStatus
 
bool16 fSettingIMEStatus
 
bool16 fIsBackSpaceKeyStroke
 

Additional Inherited Members

- Public Types inherited from IEventHandler
enum  { kDefaultIID = IID_IEVENTHANDLER }
 

Member Function Documentation

virtual bool16 DVEditBoxEventHandler::CanHaveKeyFocus () const
virtual

Determine if this eventhandler can be focus of keyboard event

Returns
kTrue if this eventhandler supports being the focus of keyboard event

Reimplemented from DVHostedWidgetEH.

virtual bool16 DVEditBoxEventHandler::KeyDown (IEvente)
virtual

Keyboard key down for every key. Normally you want to override KeyCmd, rather than KeyDown.

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

Reimplemented from DVHostedWidgetEH.

Reimplemented in CelPnlEditBoxEventHandler.

virtual bool16 DVEditBoxEventHandler::LButtonDn (IEvente)
virtual

Left mouse button (or only mouse button) has been pressed.

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

Reimplemented from DVHostedWidgetEH.

virtual void DVEditBoxEventHandler::PostGetKeyFocus ()
virtual

Called after getting focus onto the associated widget/window

Parameters
none
Returns
none

Reimplemented from DVHostedWidgetEH.

virtual void DVEditBoxEventHandler::PostGiveUpKeyFocus ()
virtual

Called after giving up focus onto the associated widget/window

Parameters
none
Returns
none

Reimplemented from DVHostedWidgetEH.

virtual bool16 DVEditBoxEventHandler::WantsTabKeyFocus () const
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.

Returns
kTrue if event handler wants to get focus during tabbing, kFalse otherwise

Reimplemented from DVHostedWidgetEH.

virtual bool16 DVEditBoxEventHandler::WillingToGiveUpKeyFocus ()
virtual

Typically called before the keyfocus is taken from the widget/window is called. Return kFalse to hold onto the keyboard focus.

Returns
kFalse to hold onto the keyboard focus

Reimplemented from DVHostedWidgetEH.