InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IIndexOptions.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 an Index instance (generated index).
24 //
25 //========================================================================================
26 
27 #ifndef __IINDEXOPTIONS__
28 #define __IINDEXOPTIONS__
29 
30 #include "IPMUnknown.h"
31 #include "IndexingID.h"
32 
33 class PMString;
34 class WideString;
35 
39 class IIndexOptions : public IPMUnknown
40 {
41  public:
42  enum { kDefaultIID = IID_IINDEXOPTIONS };
43 
47  virtual const WideString& GetTitle() const = 0;
48 
52  virtual void SetTitle(const WideString& indexTitle) = 0;
53 
57  virtual const PMString& GetTitleParagraphStyle() const = 0;
58 
62  virtual void SetTitleParagraphStyle(const PMString& style) = 0;
63 
67  virtual const bool16 GetReplaceExistingIndexFlag() const = 0;
68 
72  virtual void SetReplaceExistingIndexFlag(bool16 replaceExistingIndex = kFalse) = 0;
73 
78  virtual const PMString& GetBookName() const = 0;
79 
83  virtual void SetBookName(const PMString& bookName) = 0;
84 
86  typedef enum {
87  kDocumentScope = 0,
88  kBookScope = 1
89  } Scope;
90 
94  virtual const IIndexOptions::Scope GetScope() const = 0;
95 
99  virtual void SetScope(const IIndexOptions::Scope scope = kDocumentScope) = 0;
100 
105  virtual const bool16 GetShowEntriesOnHiddenLayerFlag() const = 0;
106 
111  virtual void SetShowEntriesOnHiddenLayerFlag(bool16 showEntriesOnHiddenLayer = kFalse) = 0;
112 
114  typedef enum {
115  kNested,
116  kRunIn
117  } IndexFormat;
118 
123  virtual const IIndexOptions::IndexFormat GetIndexFormat() const = 0;
124 
129  virtual void SetIndexFormat(const IIndexOptions::IndexFormat format = kNested) = 0;
130 
134  virtual const bool16 GetShowSectionHeadersFlag() const = 0;
135 
139  virtual void SetShowSectionHeadersFlag(bool16 showSectionHeaders = kTrue) = 0;
140 
144  virtual const bool16 GetShowEmptySectionsFlag() const = 0;
145 
149  virtual void SetShowEmptySectionsFlag(bool16 showEmptySections = kFalse) = 0;
150 
154  virtual const WideString& GetFollowingTopicSeparator() const = 0;
155 
159  virtual void SetFollowingTopicSeparator(const WideString& separator) = 0;
160 
164  virtual const WideString& GetBetweenPageNumberSeparator() const = 0;
165 
169  virtual void SetBetweenPageNumberSeparator(const WideString& separator) = 0;
170 
174  virtual const WideString& GetBetweenEntriesSeparator() const = 0;
175 
179  virtual void SetBetweenEntriesSeparator(const WideString& separator) = 0;
180 
184  virtual const WideString& GetBeforeXRefSeparator() const = 0;
185 
189  virtual void SetBeforeXRefSeparator(const WideString& separator) = 0;
190 
194  virtual const WideString& GetPageRangeSeparator() const = 0;
195 
199  virtual void SetPageRangeSeparator(const WideString& separator) = 0;
200 
204  virtual const WideString& GetEntryEndSeparator() const = 0;
205 
209  virtual void SetEntryEndSeparator(const WideString& separator) = 0;
210 
215  virtual void GetTopicLevelParagraphStyle(const int32 level, PMString& style) const = 0;
216 
221  virtual void SetTopicLevelParagraphStyle(const int32 level, const PMString& style) = 0;
222 
226  virtual const PMString& GetSectionHeaderParagraphStyle() const = 0;
227 
231  virtual void SetSectionHeaderParagraphStyle(const PMString& style) = 0;
232 
236  virtual const PMString& GetPageNumberCharacterStyle() const = 0;
237 
241  virtual void SetPageNumberCharacterStyle(const PMString& style) = 0;
242 
247  virtual const PMString& GetCrossRefCharacterStyle() const = 0;
248 
253  virtual void SetCrossRefCharacterStyle(const PMString& style) = 0;
254 
259  virtual const PMString& GetReferencedCharacterStyle() const = 0;
260 
265  virtual void SetReferencedCharacterStyle(const PMString& style) = 0;
266 
268  typedef enum {
269  kHorizontal,
270  kVertical
271  } FrameType;
272 
277  virtual const IIndexOptions::FrameType GetFrameType() const = 0;
278 
283  virtual void SetFrameType(const IIndexOptions::FrameType frameType = kHorizontal) = 0;
284 
290  virtual void CopyDataFrom(const IIndexOptions* source, bool16 bDirty = kTrue) = 0;
291 };
292 
293 #endif // __IINDEXOPTIONS__