InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
FormFieldSupportedEvents.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Tim Wright
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: Implemention of ISupportedEvents for the basic form field types.
24 // ISupportedEvents says whether an event type is supported.
25 //
26 //========================================================================================
27 
28 #ifndef __FormFieldSupportedEvents_h__
29 #define __FormFieldSupportedEvents_h__
30 
31 #include "CPMUnknown.h"
32 #include "ISupportedEvents.h"
33 #include "FormFieldTypes.h"
34 
35 //========================================================================================
36 // TEMPLATE FormFieldSupportedEvents
37 //========================================================================================
38 
39 template <int32>
40 class FormFieldSupportedEvents : CPMUnknown<ISupportedEvents>
41 {
42 public:
43 
45  virtual bool16 SupportsMouseEvents() const { return kTrue; } //mouse up/down/over
46  virtual bool16 SupportsFocusEvents() const { return kTrue; } //focus/blur
47  virtual bool16 SupportsPageEvents() const { return kFalse; } //page open/close, we are kludging in support for these
48  //by allowing page open/close events to be attached to form
49  //fields.
50 
51  virtual bool16 SupportsFormatEvents() const { return kFalse; } //format
52  virtual bool16 SupportsKeystrokeEvents() const { return kFalse; } //keystroke
53  virtual bool16 SupportsValidateEvents() const { return kFalse; } //validate
54  virtual bool16 SupportsCalculateEvents() const{ return kFalse; } //calculate
55  virtual bool16 SupportsSignedEvents() const { return kFalse; } //signed
56  virtual bool16 SupportsSelectionChangedEvents() const { return kFalse; } //selection changed
57  virtual bool16 SupportsDocumentEvents() const { return kFalse; } //doc open/ will/did close/save/print
58 
59  virtual bool16 SupportsMiscEvent( IBehaviorEvent* inEvent ) const { return kFalse; } //catchall for events that don't fit into above...
60 };
61 
62 #endif // __FormFieldSupportedEvents_h__