InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IIndexXRefEntryData.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 informations about an XRef Page Entry.
24 //
25 //========================================================================================
26 
27 #ifndef __IINDEXXREFENTRYDATA__
28 #define __IINDEXXREFENTRYDATA__
29 
30 #include "IPMUnknown.h"
31 #include "IndexingID.h"
32 
33 class WideString;
34 class IndexTopicEntry;
35 
40 {
41  public:
42  enum { kDefaultIID = IID_IINDEXXREFENTRYDATA };
43 
45  enum XRefType { kSeeOrAlso = 0, // also used in Japanese for "See [also], See also"
46  kSee = 1,
47  kSeeAlso = 2, // also used in Japanese for "Arrow"
48  kSeeHerein = 3, // also used in Japanese for "See herein, See also herein"
49  kSeeAlsoHerein = 4, // also used in Japanese for "Pointed hand"
50  kCustom = 5, // customString must be != NULL and not empty
51  // MH 07/31/01: 2 new XRefType values added to match with last version (6) of "InDesign Indexing Interface (Japanese)"
52  // kCustom is left and is identified to kCustomBefore: use now kCustomBefore
53  // There is really only one value added: kCustomAfter
54  // kCustomBefore: the custom string is display (preview or generated index) before the referenced topic
55  // kCustomAfter: the custom string is display (preview or generated index) after the referenced topic
56  // Ther file format is not changed
57  kCustomBefore = 5, // customString must be != NULL and not empty
58  kCustomAfter = 6}; // customString must be != NULL and not empty
59 
64  virtual IIndexXRefEntryData::XRefType GetXRefType(WideString* customString = NULL) const = 0;
65 
71  virtual void SetXRefType(const IIndexXRefEntryData::XRefType xRefType, const WideString* customString = NULL) = 0;
72 
76  virtual UID GetXRefLinkUID() const = 0;
77 
81  virtual void SetXRefLinkUID(const UID xRefLinkUID) = 0;
82 
88  virtual void GetRefedTopicEntry(IndexTopicEntry& topicEntry, UID *sectionUID = nil, int32 *nodeId = nil) const = 0;
89 
90 };
91 
92 #endif // __IINDEXXREFENTRYDATA__