InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITOCStyleInfo.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 // Comments: This interface saves the information about TOC style.
24 //
25 //========================================================================================
26 
27 #ifndef __ITOCSTYLEINFO__
28 #define __ITOCSTYLEINFO__
29 
30 #include "IPMUnknown.h"
31 #include "K2Vector.h"
32 #include "KeyValuePair.h"
33 #include "TOCID.h"
34 
35 class TOCFormatEntryInfo;
36 class PMString;
37 
39 
45 class ITOCStyleInfo : public IPMUnknown
46 {
47  public:
48  enum { kDefaultIID = IID_ITOCSTYLEINFO };
49 
52  typedef enum {
53  kHorizontal, // horizontal
54  kVertical // vertical
56 
59  typedef enum {
70 
75  virtual const PMString& GetName() const = 0;
76 
82  virtual void SetName(const PMString& s, bool16 translatable = kFalse) = 0;
83 
91  virtual const FormatEntriesInfo& GetTOCEntryMap() const = 0;
92 
96  virtual void SetTOCEntryMap(const FormatEntriesInfo& tocEntryMap) = 0;
97 
102  virtual const bool16 GetIncludeHidderLayerFlag() const = 0;
103 
107  virtual void SetIncludeHidderLayerFlag(bool16 includeHidderLayer = kFalse) = 0;
108 
113  virtual const bool16 GetIncludeBookPubs() const = 0;
114 
118  virtual void SetIncludeBookPubs(const bool16 includeBookPubs = kFalse) = 0;
119 
124  virtual const bool16 GetRunInFlag() const = 0;
125 
129  virtual void SetRunInFlag(bool16 runIn = kFalse) = 0;
130 
135  virtual const UID GetTOCTitleFormatStyle() const = 0;
136 
140  virtual void SetTOCTitleFormatStyle(const UID formatStyle) = 0;
141 
146  virtual const PMString& GetTOCTitle() const = 0;
147 
151  virtual void SetTOCTitle(const PMString& tocTitle) = 0;
152 
157  virtual const PMString& GetBookName() const = 0;
158 
162  virtual void SetBookName(const PMString& bookName) = 0;
163 
168  virtual const bool16 GetIncludeBookmarks() const = 0;
169 
173  virtual void SetIncludeBookmarks(const bool16 bIncludeBookmarks = kFalse) = 0;
174 
179  virtual const ITOCStyleInfo::TOCStoryDirection GetStoryDirection() const = 0;
180 
184  virtual void SetStoryDirection(const ITOCStyleInfo::TOCStoryDirection storyDirection = ITOCStyleInfo::kHorizontal) = 0;
185 
191 
196 
200  virtual const bool16 GetCreateTextAnchor() const = 0;
201 
205  virtual void SetCreateTextAnchor(bool16 insertTextAnchor) = 0;
206 
210  virtual const bool16 GetRemoveForcedLineBreak() const = 0;
211 
215  virtual void SetRemoveForcedLineBreak(bool16 removeForcedLineBreak) = 0;
216 };
217 
218 #endif // __ITOCSTYLEINFO__