InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
SnpTextModelHelper.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 __SnpTextModelHelper_H_DEFINED__
25 #define __SnpTextModelHelper_H_DEFINED__
26 
27 #include "TextRange.h"
28 
49 {
50  public:
54 
57  virtual ~SnpTextModelHelper();
58 
65  ErrorCode InsertText(ITextModel* textModel, const TextIndex position, const boost::shared_ptr<WideString>& text);
66 
73  ErrorCode DeleteText(ITextModel* textModel, const TextIndex position, const int32 length);
74 
82  ErrorCode ReplaceText(ITextModel* textModel, const TextIndex position, const int32 length, const boost::shared_ptr<WideString>& text);
83 
93  ErrorCode ApplyOverrides(ITextModel* textModel, const TextIndex position, const int32 length, const boost::shared_ptr<AttributeBossList>& attr, ClassID whichStrand);
94 
104  ErrorCode ClearOverrides(ITextModel* textModel, const TextIndex position, const int32 length, const boost::shared_ptr<AttributeBossList>& attr, ClassID whichStrand);
105 
127  ErrorCode ProcessCopyStoryRangeCmd
128  (
129  const UIDRef& sourceStory,
130  TextIndex sourceStart,
131  int32 sourceLength,
132  const UIDRef& destStory,
133  TextIndex destStart,
134  int32 destLength
135  );
142  bool16 IsStoryOverset(InterfacePtr<ITextModel> textModel);
143 
148  bool16 IsTextFrameOverset(const InterfacePtr<ITextFrameColumn> textFrameColumn);
149 
152  bool16 IsParcelOverset(const InterfacePtr<IParcel> parcel);
153 
161  IParcel* QueryParcelContaining(ITextModel* textModel, const TextIndex at);
162 
168 
174 
180 };
181 
182 #endif // __SnpTextModelHelper_H_DEFINED__
183 
184 //End, SnpTextModelHelper.h