InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IIndexCmdData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Yves Carbonneaux
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 // Purpose: This is generic interface for setting/getting command data during creating and generating Index.
24 //
25 //========================================================================================
26 
27 #ifndef __IIndexCmdData__
28 #define __IIndexCmdData__
29 
30 #include "IPMUnknown.h"
31 #include "K2Vector.h"
32 #include "IndexingID.h"
33 
34 
35 class WideString;
36 
40 class IIndexCmdData : public IPMUnknown
41 {
42  public:
43  enum { kDefaultIID = IID_IINDEXCMDDATA };
44 
48  virtual const UIDRef& GetTargetItemRef() const = 0;
49 
53  virtual void SetTargetItemRef(const UIDRef& sourceItem) = 0;
54 
59  virtual void SetTextFrameRef(const UIDRef& textFrameItem) = 0;
60 
64  virtual UIDRef GetTextFrameRef() const = 0;
65 
69  virtual const bool16 GetReplaceExistingIndexFlag() const = 0;
70 
75  virtual void SetReplaceExistingIndexFlag(bool16 replaceExistingIndex) = 0;
76 
82  virtual const bool16 GetVerticalFlag() const = 0;
83 
89  virtual void SetVerticalFlag(bool16 bVertical) = 0;
90 
94  virtual void SetTopicListRef(const UIDRef& topicListRef) = 0;
95 
99  virtual const UIDRef GetTopicListRef() const = 0;
100 
104  virtual void SetTextModelRef(const UIDRef& textModelRef) = 0;
105 
109  virtual const UIDRef GetTextModelRef() const = 0;
110 
114  virtual const WideString& GetTitle() const = 0;
115 
119  virtual void SetTitle(const WideString& indexTitle) = 0;
120 
121  // --- Get/Set include overset flag
122 
126  virtual const bool16& GetIncludeOversetFlag() const = 0;
127 
131  virtual void SetIncludeOversetFlag(const bool16& includeOverset) = 0;
132 };
133 
134 #endif // __IIndexCmdData__