InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IActionStateList.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 // This interface is used for action components to update the state of their actions.
24 // It is NOT a standard boss interface - it does not inherit from IPMUnknown!
25 //
26 //========================================================================================
27 
28 #ifndef __IActionStateList__
29 #define __IActionStateList__
30 
32 const int16 kDisabled_Unselected = 0;
33 
35 const int16 kEnabledAction = 1;
36 
38 const int16 kSelectedAction = 2;
39 
41 const int16 kMultiSelectedAction = 4;
42 
44 const int16 kAltSelectedAction = 8;
45 
49 {
50  public:
51  virtual ~IActionStateList(){}
52 
56  virtual int32 Length() const = 0;
57 
62  virtual ActionID GetNthAction(int32 index) const = 0;
63 
68  virtual void SetNthActionState(int32 index, int16 state) = 0;
73  virtual int16 GetNthActionState(int32 index) const = 0;
74 
79  virtual void SetNthActionName(int32 index, const PMString& name) = 0;
84  virtual const PMString& GetNthActionName(int32 index) const = 0;
85 };
86 
87 #endif // __IActionStateList__