InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITreeViewHierarchyAdapter.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 __ITreeViewHierarchyAdapter__
25 #define __ITreeViewHierarchyAdapter__
26 
27 #include "IPMUnknown.h"
28 #include "widgetid.h"
29 #include "NodeID.h"
30 
31 //----------------------------------------------------------------------------------------
32 // Forward Declarations
33 //----------------------------------------------------------------------------------------
34 class IControlView;
35 
36 //----------------------------------------------------------------------------------------
37 // ITreeViewHierarchyAdapter
38 //----------------------------------------------------------------------------------------
39 
52 {
53 public:
54  enum { kDefaultIID = IID_ITREEVIEWHIERARCHYADAPTER };
55 
61  virtual NodeID_rv GetRootNode() const = 0;
62 
65  virtual NodeID_rv GetParentNode( const NodeID& node ) const = 0;
66 
71  virtual int32 GetNumChildren( const NodeID& node ) const = 0;
72 
79  virtual bool16 ShouldAddNthChild( const NodeID& node, const int32& nth ) const = 0;
80 
86  virtual NodeID_rv GetNthChild( const NodeID& node, const int32& nth ) const = 0;
87 
93  virtual int32 GetChildIndex( const NodeID& parent, const NodeID& child ) const = 0;
94 
98  virtual NodeID_rv GetGenericNodeID() const = 0;
99 
100 };
101 
102 #endif // __ITreeViewMgr__