-
Notifications
You must be signed in to change notification settings - Fork 1
/
MPOLnchNodeID.h
113 lines (89 loc) · 2.84 KB
/
MPOLnchNodeID.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
//========================================================================================
//
// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/MPOLnchNodeID.h $
//
// Owner: Adobe Developer Technologies
//
// $Author: pmbuilder $
//
// $DateTime: 2008/08/19 04:03:07 $
//
// $Revision: #1 $
//
// $Change: 643572 $
//
// Copyright 1997-2008 Adobe Systems Incorporated. All rights reserved.
//
// NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
// with the terms of the Adobe license agreement accompanying it. If you have received
// this file from a source other than Adobe, then your use, modification, or
// distribution of it requires the prior written permission of Adobe.
//
//
// Each C++ implementation class in the plug-in and its corresponding ImplementationID
// should be registered in this file.
//
//========================================================================================
#ifndef __MPOLnchNodeID__
#define __MPOLnchNodeID__
#include "NodeID.h"
#include "IPMStream.h"
#include "MPOLnchID.h"
/** Represents a node in the tree view. It is the list item.
@ingroup wlistboxcomposite
*/
class MPOLnchNodeID : public NodeIDClass
{
public:
enum { kNodeType = kMPOLnchListBoxWidgetBoss };
/** Factory method to create
new object of this class
@return new instance of this class
*/
static NodeID_rv Create() { return new MPOLnchNodeID(); }
/** Factory method to create new object of this class
@param path [IN] specifies initial path
@return new instance of this class
*/
static NodeID_rv Create(PMString name)
{ return new MPOLnchNodeID(name); }
/** Destructor
*/
virtual ~MPOLnchNodeID() {}
/** @return type of this node
*/
virtual NodeType GetNodeType() const { return kNodeType; }
/** Comparator function
@param NodeID [IN] specifies the node that we should compare against
@return Comparison results
*/
virtual int32 Compare(const NodeIDClass* NodeID) const;
/** Create a copy of this
@return
*/
virtual NodeIDClass* Clone() const;
/** Read this from the given stream
@param stream [IN] specified stream
@return
*/
virtual void Read(IPMStream* stream);
/** Write this to the given stream
@param [OUT] stream
@return
*/
virtual void Write(IPMStream* stream) const;
/** Accessor for the value associated with this node
@return const PMString&
*/
const PMString& GetName() const { return fName; }
/** Set the Name Of the Node An Associated Javascript
@param PMString
*/
//virtual void SetName(const PMString& newName) = 0;
private:
// Note we're keeping the destructor private to force use of the factory methods
MPOLnchNodeID() {}
MPOLnchNodeID(PMString name):fName(name) {}
PMString fName;
};
#endif // __MPOLnchNodeID__