InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IIndexEntryData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Michel Hutinel
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 // Comments: This interface saves the information about a Index Entry.
24 //
25 //========================================================================================
26 
27 #ifndef __IINDEXENTRYDATA__
28 #define __IINDEXENTRYDATA__
29 
30 #include "IPMUnknown.h"
31 #include "IndexingID.h"
32 
33 class IndexTopicEntry;
34 class UIDRef;
35 
40 {
41  public:
42  enum { kDefaultIID = IID_IINDEXENTRYDATA };
43 
45  enum IndexEntryType { kNoEntryType, kPageRefType, kXRefType };
46 
51  virtual const IndexEntryType GetEntryType() const = 0;
52 
56  virtual void SetEntryType(const IndexEntryType entryType) = 0;
57 
61  virtual const UID GetTopicSectionUID() const = 0;
62 
66  virtual void SetTopicSectionUID(const UID topicSectionUID) = 0;
67 
73  virtual void GetTopicEntry(IndexTopicEntry& topicEntry, UID *sectionUID = nil, int32 *nodeId = nil) const = 0;
74 
78  virtual void GetTopicListUIDRef(UIDRef& topicListUIDRef) const = 0;
79 
83  virtual const UID GetBookContentUID() const = 0;
84 
88  virtual void SetBookContentUID(const UID& bookContentUID) = 0;
89 };
90 
91 #endif // __IINDEXENTRYDATA__