InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IHidTxtModel.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Adobe Developer Technologies
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 __IHIDTXTMODEL__
25 #define __IHIDTXTMODEL__
26 
27 #include "IPMUnknown.h"
28 #include "HidTxtID.h"
29 
30 class ITextModel;
31 
38 class IHidTxtModel : public IPMUnknown
39 {
40  public:
42  enum { kDefaultIID = IID_IHIDTXTMODEL };
43 
44  // Methods in this section can be called by any client.
45  public:
50  virtual ITextModel* QueryTextModel() const = 0;
51 
57  virtual bool16 GetAnchorTextRange(TextIndex& start, int32& span) const = 0;
58 
65  virtual bool16 GetHiddenTextRange(TextIndex& start, int32& span) const = 0;
66 
67  // Methods in this section can by called by commands that
68  // manipulate the hidden text model or by implementations
69  // that form part of the hidden text model.
70  public:
75  virtual ErrorCode AttachToTextModel(UID textModelUID, const TextIndex& anchorTextIndex) = 0;
76 
80  virtual ErrorCode DetachFromTextModel() = 0;
81 
85  virtual bool16 GetConnectedToTextContent() const = 0;
86 
93  virtual void SetConnectedToTextContent(bool16 connected) = 0;
94 };
95 
96 #endif // __IHIDTXTMODEL__
97