InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CTextCommandPostProcess.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: robin briggs
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 __CTextCommandPostProcess__
25 #define __CTextCommandPostProcess__
26 
27 #include "ITextCommandPostProcess.h"
28 #include "CPMUnknown.h"
29 
30 
31 class CTextCommandPostProcess : public CPMUnknown<ITextCommandPostProcess>
32 {
33  public:
35 
36  virtual void InsertPostProcess(ITextModel* model, TextIndex position, const WideString* data, const ILanguage *pLanguage = nil );
37  virtual void ReplacePostProcess(ITextModel* model, TextIndex position, int32 length, const WideString* data, const ILanguage *pLanguage = nil );
38  virtual void DeletePostProcess(ITextModel* model, TextIndex position, int32 length);
39  virtual void ApplyStylePostProcess(ITextModel* model, TextIndex position, int32 length, UID styleRef, ClassID whichStrand);
40 
41  virtual void ApplyOverridesPostProcess(ITextModel* model, TextIndex position, int32 length, const AttributeBossList *attributes, ClassID whichStrand);
42  virtual void ClearOverridesPostProcess(ITextModel* model, TextIndex position, int32 length, const AttributeBossList *attributes, ClassID whichStrand);
43 
44  virtual void PastePostProcess(ITextModel* model, TextIndex position, const PasteData *data, int32 subrange);
45  virtual void ReplacePostProcess(ITextModel* model, const boost::shared_ptr<ITextModel::ReplacementList>& replList);
46 
47  virtual void BeginProcessCommand( ICommand *cmd );
48  virtual void EndProcessCommand( ICommand *cmd );
49 };
50 
51 
52 #endif
53  // __CTextCommandPostProcess__