InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ObjectWalkerScopeOptions.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Raveendra Madala
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 __OBJECTWALKERSCOPEOPTIONS_H
25 #define __OBJECTWALKERSCOPEOPTIONS_H
26 
27 #include "UIDList.h"
34 {
35 public:
36  enum WalkType
37  {
54  };
55 
57  {
70  };
71 
72  // default ctor
74  {
75  fIncludeMasterPages = kTrue;
76  fIncludeLockedLayers = kTrue;
77  fIncludeHiddenLayers = kTrue;
78  fIncludeLockedStories = kTrue;
79  fIncludeFootnotes = kTrue;
80  fWalkType = kAllFrames;
81  fSearchScopeType = kDocument;
82  }
83  // default dtor
85  {
86  }
98  ObjectWalkerScopeOptions(bool16 includeMasterPages,bool16 includeLockedLayers,bool16 includeHiddenLayers,bool16 includeLockedStories,bool16 includeFootnotes,WalkType walkType,SearchScopeType scopeType)
99  {
100  fIncludeMasterPages = includeMasterPages;
101  fIncludeLockedLayers = includeLockedLayers;
102  fIncludeHiddenLayers = includeHiddenLayers;
103  fIncludeLockedStories = includeLockedStories;
104  fIncludeFootnotes = includeFootnotes;
105  fWalkType = walkType;
106  fSearchScopeType = scopeType;
107  }
113  bool16 GetIncludeMasterPages() const
114  {
115  return fIncludeMasterPages;
116  }
122  void SetIncludeMasterPages(bool16 inIncludeMasterPages)
123  {
124  fIncludeMasterPages = inIncludeMasterPages;
125  }
131  bool16 GetIncludeLockedLayers() const
132  {
133  return fIncludeLockedLayers;
134  }
140  void SetIncludeLockedLayers(bool16 inIncludeLockedLayers)
141  {
142  fIncludeLockedLayers = inIncludeLockedLayers;
143  }
149  bool16 GetIncludeHiddenLayers() const
150  {
151  return fIncludeHiddenLayers;
152  }
158  void SetIncludeHiddenLayers(bool16 inIncludeHiddenLayers)
159  {
160  fIncludeHiddenLayers = inIncludeHiddenLayers;
161  }
167  bool16 GetIncludeLockedStories() const
168  {
169  return fIncludeLockedStories;
170  }
176  void SetIncludeLockedStories(bool16 inIncludeLockedStories)
177  {
178  fIncludeLockedStories = inIncludeLockedStories;
179  }
185  bool16 GetIncludeFootnotes() const
186  {
187  return fIncludeFootnotes;
188  }
194  void SetIncludeFootnotes(bool16 inIncludeFootnotes)
195  {
196  fIncludeFootnotes = inIncludeFootnotes;
197  }
207  {
208  return fWalkType;
209  }
215  void SetObjectWalkType(WalkType inWalkType)
216  {
217  fWalkType = inWalkType;
218  }
227  {
228  return fSearchScopeType;
229  }
236  {
237  fSearchScopeType = scopeType;
238  }
243  {
244  return fDocRef;
245  }
250  {
251  fDocRef = inDocRef;
252  }
257  {
258  return fSelectedItemList;
259  }
264  {
265  fSelectedItemList = inItemList;
266  }
267 private:
268  bool16 fIncludeMasterPages; // data member for storing include master pages option
269  bool16 fIncludeLockedLayers; // data member for storing include locked layers option
270  bool16 fIncludeHiddenLayers; // data member for storing include hidden layers option
271  bool16 fIncludeLockedStories; // data member for storing include locked stories option
272  bool16 fIncludeFootnotes; // data member for storing include footnotes option
273  WalkType fWalkType; // data member for storing walk type
274  SearchScopeType fSearchScopeType; // data member for storing search scope type
275  UIDRef fDocRef; // data member for storing the document that needs to be searched when search scope type is kDocument
276  UIDList fSelectedItemList; // data member for storing the items that needs to be searched when search scope type is kSelection
277 };
278 
279 #endif