InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CusDtLnkUIFileNodeID.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 // Each C++ implementation class in the plug-in and its corresponding ImplementationID
24 // should be registered in this file.
25 //
26 //========================================================================================
27 
28 #ifndef __CusDtLnkUIFileNodeID__
29 #define __CusDtLnkUIFileNodeID__
30 
31 #include "NodeID.h"
32 #include "IPMStream.h"
33 #include "CusDtLnkUIID.h"
34 
39 {
40 public:
41  enum { kNodeType = kCusDtLnkUITreeViewWidgetBoss };
42 
43 
48  static NodeID_rv Create() { return new CusDtLnkUIFileNodeID(); }
49 
54  static NodeID_rv Create(const PMString& p)
55  { return new CusDtLnkUIFileNodeID(p); }
56 
59  virtual ~CusDtLnkUIFileNodeID() {}
60 
61 
64  virtual NodeType GetNodeType() const { return kNodeType; }
65 
70  virtual int32 Compare(const NodeIDClass* NodeID) const;
71 
75  virtual NodeIDClass* Clone() const;
76 
81  virtual void Read(IPMStream* stream);
82 
87  virtual void Write(IPMStream* stream) const;
88 
91  const PMString& GetUniqueKey() const { return this->fUniqueKey; }
92 
93 private:
94  // Note we're keeping the destructor private to force use of the factory methods
96 
97  CusDtLnkUIFileNodeID(PMString p):fUniqueKey(p) { }
98 
99  PMString fUniqueKey;
100 };
101 
102 #endif // __CusDtLnkUIFileNodeID__
103 
104