InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IIndexingDataSuite.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Yeming Liu
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 __IINDEXINGDATASUITE__
25 #define __IINDEXINGDATASUITE__
26 
27 // ----- Interface files
28 #include "IPMUnknown.h"
29 #include "IIndexPageEntryData.h"
30 #include "IIndexXRefEntryData.h"
31 
32 // ----- Include files
33 #include "IndexTopicEntry.h"
34 #include "K2Vector.h"
35 #include "K2Pair.h"
36 
37 // ----- ID files
38 #include "TextID.h"
39 
40 class WideString;
41 class RangeData;
42 
43 
44 // Associates a IndexTopicEntry with the position in the text
47 
53 {
54  public:
56  enum { kDefaultIID = IID_IINDEXINGDATASUITE };
57 
58  // ----- Abilities
59 
65  virtual bool16 CanCreateIndex() = 0;
66 
72  virtual bool16 CanGenerateIndex() = 0;
73 
83  virtual bool16 CanUpdateIndex() = 0;
84 
92  virtual void GetSelectedIndexStory(UIDRef& selectedIndexStory) = 0;
93 
99  virtual void GetSelectedText(WideString& selectedText) = 0;
100 
106  virtual void GetIndexMarkOfSelection(UID& indexMarkUID) = 0;
107 
108  // ----- Action
109 
123  virtual ErrorCode CreatePageReference
124  (
125  const IndexTopicEntry &entry,
127  UID nextStyleUID,
128  int32 numOfParOrPage,
129  UID styleUID,
130  bool16 updateSelection = kTrue,
131  bool16 sortPRefs = kTrue
132  ) = 0;
133 
148  virtual ErrorCode CreatePageReference1
149  (
150  const IndexTopicEntry &entry,
152  UID nextStyleUID,
153  int32 numOfParOrPage,
154  UID styleUID,
155  UIDRef textModelUIDRef,
156  int32 start,
157  int32 end,
158  bool16 updateSelection = kTrue,
159  bool16 sortPRefs = kTrue
160  ) = 0;
161 
162 
176  virtual ErrorCode CreatePageReferences
177  (
179  UID nextStyleUID,
180  int32 numOfParOrPage,
181  UID styleUID,
182  bool16 updateSelection = kTrue,
183  bool16 sortPRefs = kTrue,
184  bool16 reversedNames = kFalse
185  ) = 0;
186 
201  virtual ErrorCode CreatePageReferences1
202  (
203  TopicEntryInfoArray const& entries,
205  UID nextStyleUID,
206  int32 numOfParOrPage,
207  UID styleUID,
208  UIDRef textModelUIDRef,
209  bool16 updateSelection = kTrue,
210  bool16 sortPRefs = kTrue
211  ) = 0;
212 
213 
221  virtual ErrorCode CreateTopicEntriesForTopicList
222  (
223  UIDRef topicList,
224  bool16 bReversedNames
225  ) = 0;
226 };
227 
228 #endif // __IINDEXINGDATASUITE__