InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPnlTrvDataModel.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 __IPnlTrvDataModel_H_DEFINED__
25 #define __IPnlTrvDataModel_H_DEFINED__
26 
27 #include "IPMUnknown.h"
28 #include "PnlTrvID.h"
29 
30 class PnlTrvDataNode;
34 {
35 public:
36  enum { kDefaultIID = IID_IPNLTRVDATAMODEL };
37 
41  virtual PMString GetRootPath() const =0 ;
42 
43 
44  virtual PnlTrvDataNode* GetNode(const PMString& path) const = 0;
45 
50  virtual PMString GetParentPath(const PMString& path) const=0;
51 
56  virtual int32 GetChildCount(const PMString& path)=0;
57 
63  virtual PMString GetNthChildPath(const PMString& path, int32 nth)=0;
64 
71  virtual int32 GetChildIndexFor(const PMString& par, const PMString& kid)=0;
72 
75  virtual void Rebuild(const PMString& rootPath)=0;
76 
77 };
78 
79 
80 #endif // __IPnlTrvDataModel_H_DEFINED__
81