InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
DataUpdaterUINodeID.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 __DataUpdaterUINodeID__
29 #define __DataUpdaterUINodeID__
30 
31 #include "NodeID.h"
32 #include "IPMStream.h"
33 #include "DataUpdaterUIID.h"
34 
41 {
42  public:
43  enum { kNodeType = kDataUpdaterUITreeViewWidgetBoss };
44 
45 
50  static NodeID_rv Create() { return new DataUpdaterUINodeID(); }
51 
56  static NodeID_rv Create(PMString type, int32 index, PMString value)
57  { return new DataUpdaterUINodeID(type, index, value); }
58 
61  virtual ~DataUpdaterUINodeID() {}
62 
63 
66  virtual NodeType GetNodeType() const { return kNodeType; }
67 
72  virtual int32 Compare(const NodeIDClass* NodeID) const;
73 
77  virtual NodeIDClass* Clone() const;
78 
83  virtual void Read(IPMStream* stream);
84 
89  virtual void Write(IPMStream* stream) const;
90 
94  const PMString& GetValue() const { return fValue; }
95 
99  const PMString& GetType() const { return fType; }
100 
104  const int32 GetIndex() const { return fIndex; }
105 
106  private:
107  // Note we're keeping the destructor private to force use of the factory methods
108  DataUpdaterUINodeID(): fIndex(0) {}
109 
110  DataUpdaterUINodeID(PMString type, int32 index, PMString value):fType(type),fIndex(index), fValue(value) {}
111 
112  PMString fType;
113  int32 fIndex;
114  PMString fValue;
115 };
116 
117 #endif // __DataUpdaterUINodeID__
118 
119