InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPatientUserPreference.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Yeming Liu
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 // Purpose: Interface for handling patient user preference. This is a session preference.
24 //
25 //========================================================================================
26 
27 #ifndef __IPATIENTUSERPREFERENCE__
28 #define __IPATIENTUSERPREFERENCE__
29 
31 #define kMinPatientUserDelay -1
32 
34 #define kMaxPatientUserDelay 10000
35 
36 #ifndef __ODFRC__
37 
38 // ----- Interfaces -----
39 
40 #include "IPMUnknown.h"
41 
42 // ----- ID.h files -----
43 
44 #include "LayoutID.h"
45 
50 {
51  public:
52  enum { kDefaultIID = IID_IPATIENTUSERPREFERENCE };
53 
54  typedef enum { kPatientUserModeOff = -1,
55  kPatientUserWithNoDelay = 0,
56  kPatientUserWithFastDelay = 330, // milliseconds
57  kPatientUserWithStandardDelay = 500, // milliseconds
58  kPatientUserWithLongDelay = 1000 // milliseconds
59  } PatientUserDelayMode;
60 
67  virtual void SetPatientUserDelayTime(const int32& milliseconds) = 0;
68 
74  virtual int32 GetPatientUserDelayTime() const = 0;
75 };
76 
77 #endif // __ODFRC__
78 #endif //__IPATIENTUSERPREFERENCE__