InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITextEditSuite.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Zak Williamson
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 // Notes:
24 //
25 //========================================================================================
26 
27 #ifndef __ITextEditSuite__
28 #define __ITextEditSuite__
29 
30 #include "IPMUnknown.h"
31 #include "TextID.h"
32 #include "CTextEnum.h"
33 #include "WideString.h"
34 
35 
40 class ITextEditSuite : public IPMUnknown
41 {
42  public:
43  enum { kDefaultIID = IID_ITEXTEDIT_ISUITE };
44 
47  virtual bool16 CanEditText() const = 0;
48 
51  virtual ErrorCode InsertCharacter(UTF32TextChar ch) = 0;
52 
53  typedef enum { kThisPage, kContinuedFrom, kContinuedOn } PageNumberType;
57  virtual ErrorCode InsertPageNumber(PageNumberType pageNumberType) = 0;
58 
62  virtual ErrorCode InsertBreakCharacter(Text::StartBreakLocation breakLocation) = 0;
63 
66  virtual bool16 CanInsertFootnote() = 0;
67 
71  virtual ErrorCode InsertFootnote() = 0;
72 
77  virtual bool16 CanConvertVariable(ClassID whichVariableClass = kInvalidClass) const = 0;
78 
81  virtual ErrorCode ConvertVariableToText(ClassID whichVariableClass = kInvalidClass) = 0;
82 
87  virtual ErrorCode InsertText(const WideString& theText) = 0;
88 
94  virtual ErrorCode Delete(CharCounter numChars = 1) = 0;
95 
101  virtual ErrorCode ForwardDelete(CharCounter numChars = 1) = 0;
102 
105  virtual ErrorCode InsertEndnote() = 0;
106 
109  virtual bool16 CanInsertEndnote() = 0;
110 
113  virtual bool16 IsTextSelectionInEndnoteStory() = 0;
114 
117  virtual bool16 IsInsideEndnoteTextRange() = 0;
118 
121  virtual bool16 IsInsideEndnoteAnchor() = 0;
122 
125  virtual bool16 GotoEndnoteAnchor() = 0;
126 
129  virtual bool16 GotoEndnoteTextRange() = 0;
130 };
131 
132 #endif