InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ICusDtLnkUITreeDataModel.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Adobe Developer Technologies
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 __ICusDtLnkUITreeDataModel_H_DEFINED__
25 #define __ICusDtLnkUITreeDataModel_H_DEFINED__
26 
27 #include "IPMUnknown.h"
28 #include "CusDtLnkUIID.h"
29 
31 class IWorkspace;
32 
39 {
40 public:
41  enum { kDefaultIID = IID_ICUSDTLNKUITREEDATAMODEL };
42 
45  virtual void Rebuild(IWorkspace * ws)=0;
46 
50  virtual IWorkspace* GetWorkspace() const =0;
51 
55  virtual PMString GetRootNodeUniqueKey() const=0;
56 
60  virtual CusDtLnkUITreeDataNode* GetRootNode() const=0;
61 
66  virtual CusDtLnkUITreeDataNode* GetNode(const PMString& uniqueKey) const = 0;
67 
72  virtual PMString GetParentPath(const PMString& path) const=0;
73 
78  virtual int32 GetChildCount(const PMString& path)=0;
79 
85  virtual PMString GetNthChildPath(const PMString& path, int32 nth)=0;
86 
93  virtual int32 GetChildIndexFor(const PMString& par, const PMString& kid)=0;
94 
95 };
96 
97 
98 #endif // __ICusDtLnkUITreeDataModel_H_DEFINED__
99