InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IShortcutContext.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: lance bushore
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 
24 #ifndef __IShortcutContext__
25 #define __IShortcutContext__
26 
27 
28 #include "IPMUnknown.h"
29 
30 #include "PMString.h"
31 #include "ActionID.h"
32 #include "VirtualKey.h"
33 
34 #define kDefaultContext "DefaultContext"
35 
42 {
43  public:
44  enum { kDefaultIID = IID_ISHORTCUTCONTEXT };
45 
49  virtual PMString GetShortcutContextString() const= 0;
50 
57  virtual PMString GetNextContextString(const VirtualKey& key, int16 currentModifiers) const= 0;
58 
65  virtual VirtualKey RemapShortcutKey(const VirtualKey& key, int16 * pModifiers) const = 0;
66 
67 };
68 
69 #endif // __IShortcutContext__
70 
71