InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IBookMarkData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Brendan O'Shea
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 __IBookMarkData__
25 #define __IBookMarkData__
26 
27 #include "IPMUnknown.h"
28 #include "HyperlinkID.h"
29 
34 class IBookMarkData : public IPMUnknown
35 {
36 public:
37  enum { kDefaultIID = IID_IBOOKMARKDATA };
38 
39  virtual void operator =(const IBookMarkData *other) = 0;
40 
41 
46  virtual void SetName(const PMString &bookMark) = 0;
47 
52  virtual PMString GetName() const = 0;
53 
54 
59  virtual void SetIndentLevel(int32 newIndentLevel) = 0;
60 
65  virtual int32 GetIndentLevel() const = 0;
66 
67 
72  virtual void SetContainingBookMarkUID(UID parentBookMark) = 0;
73 
78  virtual UID GetContainingBookMarkUID() const = 0;
79 
80 
85  virtual void AddChild(UID childBookmark) = 0;
86 
91  virtual void RemoveChild(UID childBookmark) = 0;
92 
93 
99  virtual void MoveChild(const UID child, int32 newIndex) = 0;
100 
101 
106  virtual int32 GetChildCount() const = 0;
107 
108 
113  virtual UID GetNthChild(int32 childIndex) const = 0;
114 
115 
120  virtual int32 GetChildWithUID(const UID child) const = 0;
121  // Use for locating a specified hyperlink
122 
123 
127  virtual void SetDestinationUID(const UID dest) = 0;
128 
133  virtual UID GetDestinationUID() const = 0;
134 
135 
139  virtual void GotoDestination() const = 0;
140 
141 
147  virtual ErrorCode ValidateBookmark() = 0;
148 
154  virtual void Invariant() const = 0;
155 
160  virtual void Invalidate() = 0;
161 
167  virtual void AddConversionData(UID parentBookMark, UID destinationUID) = 0;
168 };
169 
170 #endif