InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ListIndexNodeID.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Matt Joss
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 __ListIndexNodeID__
25 #define __ListIndexNodeID__
26 
27 
28 #include "NodeID.h"
29 #include "IPMStream.h"
30 #include "widgetid.h"
31 
32 
33 //========================================================================================
34 // class ListIndexNodeID
35 //========================================================================================
36 class DV_ ListIndexNodeID : public NodeIDClass
37 {
38 public:
39  enum { kNodeType = kListIndexNodeID };
40 
41  virtual ~ListIndexNodeID() { }
42 
43  virtual NodeType GetNodeType() const { return kNodeType; }
44  virtual int32 Compare(const NodeIDClass* NodeID) const;
45  virtual NodeIDClass* Clone() const;
46  virtual void Read(IPMStream* stream);
47  virtual void Write(IPMStream* stream) const;
48  virtual PMString GetDescription() const;
49 
50  int32 GetIndex() const { return fIndex; }
51 
52  static NodeID_rv RootNodeID();
53  static NodeID_rv Create( const int32& index );
54 private:
55  ListIndexNodeID(int32 index) { fIndex = index; }
56  int32 fIndex;
57 };
58 
59 
60 
61 #endif