InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ISupportedEvents.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Michael Brubidge
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //
23 // Comments: ISupportedEvents says whether an event type is supported.
24 //
25 //========================================================================================
26 
27 #ifndef __ISupportedEvents_h__
28 #define __ISupportedEvents_h__
29 
30 #include "IPMUnknown.h"
31 #include "BehaviorID.h"
32 
33 class IBehaviorEvent;
34 
35 //========================================================================================
36 // CLASS IBehaviorEvent
37 //========================================================================================
38 
61 {
62 public:
63  enum { kDefaultIID = IID_ISUPPORTEDEVENTS };
64 
66  virtual bool16 SupportsMouseEvents() const = 0;
68  virtual bool16 SupportsFocusEvents() const = 0; //focus/blur
71  virtual bool16 SupportsPageEvents() const = 0;
72 
73  /* Supports Format */
74  virtual bool16 SupportsFormatEvents() const = 0;
75  /* Supports KeyDown */
76  virtual bool16 SupportsKeystrokeEvents() const = 0;
77  /* Supports Validate */
78  virtual bool16 SupportsValidateEvents() const = 0;
79  /* Supports Calculate */
80  virtual bool16 SupportsCalculateEvents() const = 0;
81  /* Supports SignedEvents */
82  virtual bool16 SupportsSignedEvents() const = 0;
83  /* Supports SelectionChanged */
84  virtual bool16 SupportsSelectionChangedEvents() const = 0; //selection changed
85  /* Supports DocumentOpen (Document-Wide JavaScript), DocumentWill/Did Close/Save/Print */
86  virtual bool16 SupportsDocumentEvents() const = 0;
87 };
88 
89 #endif // __IBehaviorEvent_h__