InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITextWalkerSelectionUtils.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: HabibK
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 __TextWalkerSelectionUtils__
25 #define __TextWalkerSelectionUtils__
26 
27 #include "FindChangeID.h"
28 
29 class ITextModel;
30 class ITextWalker;
31 
37 {
38  public:
39  enum { kDefaultIID = IID_ITEXTWALKERSELECTIONUTILS };
40 
50  virtual bool16 SelectText( UIDRef &textStory, TextIndex nStart, int32 nnCount ) = 0;
51 
55  virtual void InitTextWalkerTerminator() = 0;
56 
60  virtual void TerminateTextWalkerTerminator() = 0;
61 
65  virtual void SaveSelectionsSnapshot() = 0; //SpellPanelObserver::Update
66 
70  virtual void RestoreSelectionsSnapshot() = 0; //SpellPanelObserver::Update
71 
75  virtual void ClearSelectionsSnapshot() = 0; //TextWalkerTerminator::DoHalt, TextWalkerSelectionUtils::SwitchToTextSelection
76 
82  virtual void RetainLastWindow() = 0;
83 
87  virtual void EnterWalkerSelections_CriticalSection() = 0;
88 
92  virtual void ExitWalkerSelections_CriticalSection () = 0;
93 
97  virtual void SwitchToTextSelection() = 0; //FindChangeService::ProcessFindChangeCommand, FindPanelObserver::Update
98 
99 };
100 
105 {
106  public:
108  fUtils(nil)
109  {
110  if (pUtils)
111  {
112  fUtils = pUtils;
113  pUtils->AddRef();
115  }
116  }
117 
119  {
120  if (fUtils)
121  {
123  fUtils->Release();
124  }
125  }
126  private:
128 };
129 #endif
130