InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IDropDownListController.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Michael Burbidge
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 __IDropDownListController_h__
25 #define __IDropDownListController_h__
26 
27 #include "widgetid.h"
28 
29 //========================================================================================
30 // CLASS TEMPLATE IDropDownListController
31 //========================================================================================
32 
34 {
35 public:
36  enum { kDefaultIID = IID_IDROPDOWNLISTCONTROLLER };
37  enum { kBeginning = 0, kNoSelection = -1, kEnd = -2, kDefaultSelection = -3 };
38 
39  // Selection
44  virtual void Select(int32 index, bool16 invalidate = kTrue, bool16 notifyOfChange = kTrue) = 0;
49  virtual void Deselect(bool16 invalidate = kTrue, bool16 notifyOfChange = kTrue) = 0;
54  virtual bool16 IsSelected(int32 index) const = 0;
58  virtual int32 GetSelected() const = 0;
63  virtual void SetDefaultSelection(int32 index) = 0;
64 
65 
66  // Enable/Disable
70  virtual void Enable(int32 index, bool16 doEnable = kTrue, bool16 invalidate = kTrue, bool16 notifyOfChange = kTrue) = 0;
71 
75  virtual void Disable(int32 index, bool16 invalidate = kTrue, bool16 notifyOfChange = kTrue) = 0;
76 
80  virtual bool16 IsEnabled(int32 index) const = 0;
81 
82 
83  //Utility
87  virtual bool16 IsDropDownOpen() const = 0;
88 };
89 
90 #endif