InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
WLBCmpNodeID.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 __WLBCmpNodeID__
29 #define __WLBCmpNodeID__
30 
31 #include "NodeID.h"
32 #include "IPMStream.h"
33 #include "WLBCmpID.h"
34 
39 class WLBCmpNodeID : public NodeIDClass
40 {
41  public:
42  enum { kNodeType = kWLBCmpListBoxWidgetBoss };
43 
44 
49  static NodeID_rv Create() { return new WLBCmpNodeID(); }
50 
55  static NodeID_rv Create(PMString name)
56  { return new WLBCmpNodeID(name); }
57 
60  virtual ~WLBCmpNodeID() {}
61 
62 
65  virtual NodeType GetNodeType() const { return kNodeType; }
66 
71  virtual int32 Compare(const NodeIDClass* NodeID) const;
72 
76  virtual NodeIDClass* Clone() const;
77 
82  virtual void Read(IPMStream* stream);
83 
88  virtual void Write(IPMStream* stream) const;
89 
93  const PMString& GetName() const { return fName; }
94 
95 
96  private:
97  // Note we're keeping the destructor private to force use of the factory methods
98  WLBCmpNodeID() {}
99 
100  WLBCmpNodeID(PMString name):fName(name) {}
101 
102  PMString fName;
103 };
104 
105 #endif // __WLBCmpNodeID__
106 
107