InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITreeViewWidgetMgr.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Matt Joss
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 __ITreeViewWidgetMgr__
25 #define __ITreeViewWidgetMgr__
26 
27 #include "IPMUnknown.h"
28 #include "widgetid.h"
29 #include "NodeID.h"
30 #include "PMPoint.h"
31 #include "TreeViewDefs.h"
32 
33 //----------------------------------------------------------------------------------------
34 // Forward Declarations
35 //----------------------------------------------------------------------------------------
36 class IControlView;
37 
38 //----------------------------------------------------------------------------------------
39 // ITreeViewWidgetMgr
40 //----------------------------------------------------------------------------------------
47 {
48 public:
49  enum { kDefaultIID = IID_ITREEVIEWWIDGETMGR };
50 
53 
58  virtual IControlView* CreateWidgetForNode(const NodeID& node) const = 0;
59 
65  virtual WidgetID GetWidgetTypeForNode(const NodeID& node) const = 0;
66 
76  virtual bool16 ApplyNodeIDToWidget( const NodeID& node, IControlView* widget, int32 message = 0 ) const = 0;
77 
86  virtual void PreDeleteWidget( IControlView* widget ) = 0;
88 
89 
92 
97  virtual PMReal GetNodeWidgetHeight(const NodeID& node) const = 0;
98 
103  virtual PMReal GetNodeWidgetWidth(const NodeID& node) const = 0;
104 
109  virtual PMReal GetIndentForNode(const NodeID& node) const = 0;
111 
119  virtual void SetStyle(int32 styleIdentifier) = 0;
120 
124  virtual int32 GetStyle() const = 0;
126 
127 
128 
129 };
130 
131 #endif // __ITreeViewMgr__