InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITextFocus.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Eric_Kenninga
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 __ITextFocus__
25 #define __ITextFocus__
26 
27 #include "IPMUnknown.h"
28 #include "TextID.h"
29 #include "RangeData.h"
30 #include "ITextFocusManager.h"
31 class ITextModel;
32 
42 class ITextFocus : public IPMUnknown
43 {
44  public:
45  enum { kDefaultIID = IID_ITEXTFOCUS };
46 
52  virtual void Initialize(ITextModel* model, const RangeData& range) = 0;
53 
57  virtual ITextModel* QueryModel() const = 0;
58 
63  virtual void PreDirtyFocus() = 0;
64 
65  virtual void SetRange(bool16 allowNotify, const RangeData& range, bool16 excludeCacheEnd = kTrue) = 0;
66 
70  virtual RangeData GetCurrentRange() const = 0;
71 
77  virtual TextIndex GetStart(RangeData::Lean* lean) const = 0;
78 
82  virtual TextIndex GetEnd() const = 0;
83 
87  virtual bool16 IsRange() const = 0;
88 
92  virtual uint32 Length() const = 0;
93 
99  virtual void Inserted(TextIndex start, int32 count, bool16 allowNotify) = 0;
100 
106  virtual void Deleted(TextIndex start, int32 count, bool16 allowNotify) = 0;
107 
112  virtual void Update(const ITextFocusManager::FocusUpdateInfoList & updateInfoList, bool16 allowNotify) = 0;
113 
117  virtual void NotifyChanged(bool16 excludeCacheEnd = kTrue) = 0;
118  virtual void DeRegisterFromModel(void) = 0;
119 };
120 
121 #endif
122  // __ITextFocus__
123