InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IUIDListControlData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Brendan O'Shea
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 __IUIDListControlData_h__
25 #define __IUIDListControlData_h__
26 
27 #include "IPMUnknown.h"
28 #include "widgetid.h"
29 
30 const int32 kUIDListControlDataDefaultChunkSize = 8;
31 
32 //========================================================================================
33 // CLASS IUIDListControlData
36 //========================================================================================
37 
39 {
40 public:
41  enum { kDefaultIID = IID_IUIDLISTCONTROLDATA };
42 
43  // ----- Constants -----
45  enum {
49  kEnd___ = -2,
52  };
54  enum {
61 
62  kDefaultDrawAction___ = kForceDraw___
63  };
64 
65  // ----- List maintainence -----
66 
68  virtual void SetDataBase___(IDataBase *db) = 0;
70  virtual IDataBase *GetDataBase___() const = 0;
71 
77  virtual void AddUID___(const UID& newUID, int32 drawAction /*= kForceDraw*/, bool16 notifyOfChange = kTrue) = 0;
78 
84  virtual void RemoveUID___(UID uid, int32 drawAction /*= kForceDraw*/, bool16 notifyOfChange = kTrue) = 0;
85 
90  virtual void Clear___(int32 drawAction /*= kForceDraw*/, bool16 notifyOfChange = kTrue) = 0;
91 
93  virtual UID GetUID___(int32 index) const = 0;
94 
96  virtual int32 GetIndex___(const UID& uid) const = 0;
97 
99  virtual int32 Length___() const = 0;
100 
102  virtual void Sort___(bool16 bReverse = kFalse) = 0;
103 
105  virtual void Replace___(int32 at, const UID& uid) = 0;
106 
107 };
108 
109 #endif