InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ISplitterControlData.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 _ISplitterControlData_
25 #define _ISplitterControlData_
26 
27 #include "IPMUnknown.h"
28 #include "widgetid.h"
29 
34  {
35  public:
36  enum { kDefaultIID = IID_ISPLITTERCONTROLDATA };
37 
38  // Get & Set the widget ids of the widgets controlled by this splitter:
40  virtual int32 GetNumberOfControlledWidgets() = 0;
41 
43  virtual WidgetID GetNthControlledWidget(int32 index) = 0;
45  virtual void SetNthControlledWidget(int32 index, WidgetID id) = 0;
46 
48  virtual int32 GetNthMinimumSize(int32 index) = 0;
50  virtual void SetNthMinimumSize(int32 index, int32 minSize) = 0;
51 
53  virtual int32 GetNthSnapClosedPoint(int32 index) = 0;
55  virtual void SetNthSnapClosedPoint(int32 index, int32 snapPoint) = 0;
56 
58  virtual void RemoveNthControlledWidget(int32 index) = 0;
60  virtual void AddNthControlledWidget(int32 index, WidgetID id, int32 minimumSize, int32 snapClosedSize) = 0;
61 
65  virtual bool16 IsVertical() = 0;
66 
68  virtual PMRect GetOverallBoundingRect() = 0;
69 
70  };
71 
72 #endif // _ISplitterControlData_