InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CTextCommandPreProcess.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 __CTextCommandPreProcess__
25 #define __CTextCommandPreProcess__
26 
27 #include "ITextCommandPreProcess.h"
28 #include "CPMUnknown.h"
29 
30 class CTextCommandPreProcess : public CPMUnknown<ITextCommandPreProcess>
31 {
32  public:
34 
35  virtual bool16 DeletePreProcess(ITextModel* model, TextIndex& position, int32& length);
36  virtual bool16 ApplyStylePreProcess(ITextModel* model, TextIndex& position, int32& length, UID& styleRef, ClassID& whichStrand);
37 
38  virtual WideString* InsertPreProcess(ITextModel* model, TextIndex& position, const WideString* data, const ILanguage *language = nil );
39 
40  virtual WideString* ReplacePreProcess(ITextModel* model, TextIndex& position, int32& length, const WideString* data, const ILanguage *language = nil);
41 
42  virtual AttributeBossList* ApplyOverridesPreProcess(ITextModel* model, TextIndex& position, int32& length, const AttributeBossList *attributes, ClassID& whichStrand);
43  virtual AttributeBossList* ClearOverridesPreProcess(ITextModel* model, TextIndex& position, int32& length, const AttributeBossList *attributes, ClassID& whichStrand);
44 
45  virtual PasteData* PastePreProcess(ITextModel* model, TextIndex& position, const PasteData *data, int32 subrange);
46 
47  virtual void GetSubRangePreProcess(ITextModel* model, TextIndex& start, int32& length, const Text::StoryRangeList& contextList, int32 contextListIndex);
48 
49  virtual void BeginProcessCommand( ICommand *cmd );
50  virtual void EndProcessCommand( ICommand *cmd );
51 };
52 
53 
54 
55 #endif // __CTextCommandPreProcess__