InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IIndexingHeaderSetHandler.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 
24 #ifndef __IIndexingHeaderSetHandler__
25 #define __IIndexingHeaderSetHandler__
26 
27 #include "IPMUnknown.h"
28 #include "IndexingID.h"
29 
30 class IIndexHeaderSet;
31 class IndexTopicEntry;
32 class PMString;
33 
38 {
39 public:
40  enum { kDefaultIID = IID_IINDEXINGHEADERSETHANDLER };
41 
42  virtual void GetName(PMString& name) const = 0;
43 
44  virtual int32 GetNumGroupingValues() const = 0;
45  virtual int32 GetNumGroupingOptionValues() const = 0;
46 
47  virtual void GetDefaultGroupingValues(int32& grouping, int32& groupingOption) const = 0;
48 
49  virtual int32 GetNthGroupingValue(int32 nth) const = 0;
50  virtual int32 GetNthGroupingOptionValue(int32 nth) const = 0;
51 
52  virtual int32 GetGroupingValueId(int32 value) const = 0;
53  virtual int32 GetGroupingOptionValueId(int32 value) const = 0;
54 
55  virtual void GetNthGroupingValueName(int32 nth, PMString& name) const = 0;
56  virtual void GetNthGroupingOptionValueName(int32 nth, PMString& name) const = 0;
57 
58  virtual void BuildHeaderSet(IIndexHeaderSet* headerSet) const = 0;
59 
60  virtual bool16 FindTopicSectionId(const IIndexHeaderSet* headerSet, const IndexTopicEntry& topicEntry, int32& sectionId, bool16 stripQuotes = kTrue) const = 0;
61 };
62 
63 #endif // __IIndexingHeaderSetHandler__