InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IListBoxAttributes.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Frits Habermann
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 __IListBoxAttributes__
25 #define __IListBoxAttributes__
26 
27 #ifdef ID_DEPRECATED // listboxes will disappear from a future version of InDesign. Please use TreeViews instead.
28 
29 #include "PMPoint.h"
30 #include "widgetid.h"
31 
34 class IListBoxAttributes : public IPMUnknown
35 {
36 public:
37  enum { kDefaultIID = IID_ILISTBOXATTRIBUTES };
38 
41 
49  virtual void Init(const PMPoint& listDimensions, const PMReal& cellHeight, const PMReal& borderWidth,
50  const bool16& hasVerticalScrollBar, const bool16& hasHorizontalScrollBar) = 0;
51 
53 
56 
60  virtual RsrcID GetItemWidgetRsrcID() const = 0;
61 
62 
66  virtual void SetItemWidgetRsrcID(const RsrcID& rsrcID) = 0;
67 
69 
72 
78  virtual PMPoint GetListDimensions() const = 0;
79 
83  virtual PMReal GetCellHeight() const = 0;
84 
88  virtual PMReal GetBorderWidth() const = 0;
89 
91 
94 
98  virtual bool16 HasVerticalScrollBar() const = 0;
99 
103  virtual int32 GetVerticalScrollBarWidth() const = 0;
104 
108  virtual bool16 HasHorizontalScrollBar() const = 0;
109 
113  virtual int32 GetHorizontalScrollBarHeight() const = 0;
114 
115 
120  virtual void MuteDrawing(bool16 Mute) = 0;
121 
125  virtual bool16 IsDrawingMuted() const = 0;
126 
128 
131 
135  virtual void SetMultiSelection(bool16 OnOrOff) = 0;
136 
140  virtual bool16 GetMultiSelection() const = 0;
141 
142 
143 
148  virtual void SetAlwaysSelected(bool16 OnOrOff) = 0;
149 
153  virtual bool16 GetAlwaysSelected() const = 0;
154 
155 
160  virtual void SetNotifyOnReselect(bool16 notify) = 0;
161 
165  virtual bool16 GetNotifyOnReselect() const = 0;
166 
168 
169 
172 
178  virtual void SetReorderable(bool16 OnOrOff) = 0;
179 
183  virtual bool16 GetReorderable() const = 0;
184 
185 
186 
190  virtual void SetDraggable(bool16 OnOrOff) = 0;
191 
195  virtual bool16 GetDraggable() const = 0;
196 
197 
198 
202  virtual void SetDragDroppable(bool16 OnOrOff) = 0;
203 
207  virtual bool16 GetDragDroppable() const = 0;
208 
210 
213 
217  virtual void SetCellHeight(const PMReal& cellHeight) = 0;
218 
220 
221 };
222 
223 #endif
224 
225 #endif