InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITextEditor.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: EricM and Michael Burbidge
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 __ITEXTEDITOR__
25 #define __ITEXTEDITOR__
26 
27 #include "IPMUnknown.h"
28 #include "TextEditorID.h"
29 
30 //========================================================================================
31 // Forward declarations
32 //========================================================================================
33 
34 class IFrameList;
35 class ITextCaret;
36 class ITextFocus;
37 class ILayoutControlData;
38 class RangeData;
39 class IConcreteSelection;
40 class ITextModel;
41 
42 
43 //========================================================================================
44 // CLASS ITextEditor
45 //========================================================================================
46 
50 class ITextEditor : public IPMUnknown
51 {
52 public:
53  enum { kDefaultIID = IID_ITEXTEDITOR };
54 
55  // ----- Selection
56 // enum { kDontDrawTextSelection = 0, kDrawTextSelection = 1, kDontGrabFocus = 0, kGrabFocus = 1};
57 
61  virtual void ActivateTextEditor( IConcreteSelection*) = 0;
62 
66  virtual void DeactivateTextEditor() = 0;
67 
72  virtual ITextFocus* QueryTextFocus() = 0;
73 
78  virtual ITextCaret* QueryTextCaret() = 0;
79 
85 
90  virtual IFrameList * QueryFrameList() = 0;
91 
96  virtual bool16 IsActive() = 0;
97 };
98 
99 
100 #endif